version 1.12, 2002/03/21 10:54:37 |
version 1.14, 2002/04/15 12:04:30 |
| |
| |
AC_PROG_INSTALL | AC_PROG_INSTALL |
| |
| AC_PATH_PROG(CCACHE, ccache) |
| if test "$CCACHE" |
| then |
| CXX="ccache $CXX" |
| fi |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Configure Settings | dnl Configure Settings |
| |
dnl nelns configuration and logs file location | dnl nelns configuration and logs file location |
dnl ==================================================================== | dnl ==================================================================== |
| |
pkgsysconfdir='${sysconfdir}/nelns' | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| |
| AC_ARG_WITH(sysconfdir, |
| [ --with-sysconfdir[=DIR] |
| use DIR instead of the default sysconfdir/nelns], |
| [pkgsysconfdir=$withval], |
| [pkgsysconfdir='${sysconfdir}/nelns']) |
AC_SUBST(pkgsysconfdir) | AC_SUBST(pkgsysconfdir) |
| |
eval NELNS_STATE=\"$localstatedir/games/nelns/\" | eval eval NELNS_CONFIG=\"$pkgsysconfdir/\" |
| AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") |
| |
| AC_ARG_WITH(localstatedir, |
| [ --with-localstatedir[=DIR] |
| use DIR instead of the default localstatedir/game/nelns], |
| [pkglocalstatedir=$withval], |
| [pkglocalstatedir=${localstatedir}/game/nelns]) |
| AC_SUBST(pkglocalstatedir) |
| |
| eval eval NELNS_STATE=\"$pkglocalstatedir/\" |
AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") | AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") |
| |
eval NELNS_CONFIG=\"$sysconfdir/nelns/\" | AC_ARG_WITH(logdir, |
AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") | [ --with-logdir[=DIR] |
| use DIR instead of the default localstatedir/log/nelns], |
| [logdir=$withval], |
| [logdir='${localstatedir}/log/nelns']) |
| AC_SUBST(logdir) |
| |
eval NELNS_LOGS=\"$localstatedir/log/nelns/\" | eval eval NELNS_LOGS=\"$logdir/\" |
AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") | AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") |
| |
dnl ==================================================================== | dnl ==================================================================== |