version 1.2 | | version 1.3 |
---|
| | |
dnl Process this file with autoconf to produce a configure script. | | dnl Process this file with autoconf to produce a configure script. |
| | |
AC_REVISION($Id: configure.ac,v 1.2 2002/09/15 04:56:36 mwedel Exp $) | | AC_REVISION($Id: configure.ac,v 1.3 2002/10/08 06:38:22 mwedel Exp $) |
AC_INIT([crossfire], [1.4.0], [crossfire-devel@listserv.real-time.com]) | | AC_INIT([crossfire], [1.4.0], [crossfire-devel@listserv.real-time.com]) |
AC_CONFIG_AUX_DIR(utils) | | AC_CONFIG_AUX_DIR(utils) |
AC_CONFIG_SRCDIR([server/main.c]) | | AC_CONFIG_SRCDIR([server/main.c]) |
| | |
AM_PROG_LEX | | AM_PROG_LEX |
AC_PROG_AWK | | AC_PROG_AWK |
| | |
AC_ARG_ENABLE(old-layout, [ --enable-old-layout Use the old (0.95.3 and earlier) install layout], | | AC_ARG_ENABLE(dmalloc, [ --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working], |
old_layout=yes, old_layout=no) | | use_dmalloc=yes, use_dmalloc=no) |
| | |
dnl check for some other programs | | dnl check for some other programs |
AC_PATH_PROG(LATEX, latex) | | AC_PATH_PROG(LATEX, latex) |
| | |
dnl Gros - Changed this to support some external programs that do not like dmalloc (like Python). | | dnl Gros - Changed this to support some external programs that do not like dmalloc (like Python). |
dnl If you really need to make some memory debugging, uncomment the dmalloc line and comment out the dmalloclp one. | | dnl If you really need to make some memory debugging, uncomment the dmalloc line and comment out the dmalloclp one. |
| | |
| | if eval "test x$use_dmalloc = xyes"; then |
| | AC_CHECK_LIB(dmalloc, main) |
| | else |
AC_CHECK_LIB(dmalloclp, main) | | AC_CHECK_LIB(dmalloclp, main) |
dnl AC_CHECK_LIB(dmalloc, main) | | fi |
| | |
dnl Checks for header files. | | dnl Checks for header files. |
AC_HEADER_DIRENT | | AC_HEADER_DIRENT |
| | |
AC_SUBST(PERL) | | AC_SUBST(PERL) |
AC_SUBST(BASENAME) | | AC_SUBST(BASENAME) |
| | |
if eval "test x$old_layout = xyes"; then | | |
AC_SUBST(pkgdatadir,$datadir) | | |
AC_SUBST(pkgstatedir,$localstatedir) | | |
AC_SUBST(pkgconfdir,$datadir) | | |
else | | |
echo "" | | |
echo "If you are upgrading an 0.95.3 or earlier release, you may want to use" | | |
echo "--enable-old-layout to use the same install directories" | | |
echo "" | | |
AC_SUBST(pkgstatedir,$localstatedir/$PACKAGE) | | AC_SUBST(pkgstatedir,$localstatedir/$PACKAGE) |
AC_SUBST(pkgconfdir,$sysconfdir/$PACKAGE) | | AC_SUBST(pkgconfdir,$sysconfdir/$PACKAGE) |
fi | | |
| | |
AC_DEFINE_UNQUOTED(COMPRESS,"${COMPRESS}",[Path to the compress binary]) | | AC_DEFINE_UNQUOTED(COMPRESS,"${COMPRESS}",[Path to the compress binary]) |
AC_DEFINE_UNQUOTED(UNCOMPRESS,"${UNCOMPRESS}",[Path to the uncompress binary]) | | AC_DEFINE_UNQUOTED(UNCOMPRESS,"${UNCOMPRESS}",[Path to the uncompress binary]) |