prefix="$ac_default_prefix"
fi
-if test x$datadir = x'${datarootdir}'
-then
- eval datarootdir="$datarootdir"
- eval datadir="$datadir/yoink"
-fi
+AC_ARG_WITH([assetdir],
+ [AS_HELP_STRING([--with-assetdir=DIR],
+ [real path to game assets (default: $datarootdir/yoink)])],
+ [DATADIR="$withval"],
+ [eval DATADIR="$datarootdir/yoink"])
+
+AC_SUBST([DATADIR])
-AC_DEFINE_UNQUOTED([YOINK_DATADIR], ["$datadir"],
+AC_DEFINE_UNQUOTED([YOINK_DATADIR], ["$DATADIR"],
[Define to path of game asset directory.])
AC_DEFINE_UNQUOTED([YOINK_CONFIGFILES],
- ["\$HOME/.yoinkrc:/etc/yoinkrc:$datadir/yoinkrc"],
+ ["\$HOME/.yoinkrc:/etc/yoinkrc:$DATADIR/yoinkrc"],
[Define to colon-delimited config file paths.])
# Checks for libraries.
#
-AM_PATH_SDL([1.2.14],
+AM_PATH_SDL([1.2.10],
[CFLAGS="$CFLAGS $SDL_CFLAGS"
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"])
echo ""
echo " Prefix: $prefix"
-echo " Data: $datadir"
+echo " Data: $DATADIR"
echo ""
if test x$debug = xyes
-nobase_dist_data_DATA = @DATA_FILES@
+nobase_dist_pkgdata_DATA = @DATA_FILES@
appsdir=$(prefix)/share/applications
dist_apps_DATA = yoink.desktop
3. /etc/yoinkrc
This is a system-wide configuration file.
.TP
-4. @datadir@/yoinkrc
+4. @DATADIR@/yoinkrc
This is the base configuration file which should be considered read-only. Look
to this file as an example of the format used for configuration files.
.PP