--- deliantra/server/configure.ac 2006/12/11 19:10:58 1.24 +++ deliantra/server/configure.ac 2006/12/15 19:29:18 1.27 @@ -29,43 +29,30 @@ ;; esac - AC_PROG_CPP AM_PROG_LEX AC_PROG_AWK -AC_ARG_ENABLE(dmalloc, [ --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working], - use_dmalloc=yes, use_dmalloc=no) - dnl AC_ARG_WITH(python, [ --with-python=dir Directory to look for python headers/library (default=standard system location) ], PYTHON_HOME="$withval") - dnl check for some other programs AC_PATH_PROG(LATEX, latex) AC_PATH_PROG(GZIP, gzip) -AC_PATH_PROG(GUNZIP, gunzip) +AC_PATH_PROG(BZIP, bzip2) AC_PATH_PROG(TAR, tar) -AC_PATH_PROG(PERL, perl) AC_PATH_PROG(BASENAME, basename) -AC_PATH_PROG(GPERF, gperf) -if test -n "$GZIP" -a -z "$GUNZIP" ; then - echo "Found gzip, but not gunzip - setting GUNZIP to gzip -c"; - GUNZIP="$GZIP -c" -fi; +AC_PATH_PROG(PERL, perl5.8) +AC_PATH_PROG(PERL, perl5) +AC_PATH_PROG(PERL, perl) -if test -z "$COMPRESS" ; then - AC_PATH_PROG(COMPRESS, compress) - AC_PATH_PROG(UNCOMPRESS, uncompress) +AC_PATH_PROG(GPERF, gperf) +if test -z "$GPERF"; then + AC_MSG_ERROR([we need gperf, the GNU perfect hash generator]) fi -AC_PATH_PROG(BZIP, bzip2) -AC_PATH_PROG(BUNZIP, bunzip2) - -if test -n "$BZIP" -a -z "$BUNZIP" ; then - echo "Found bzip2, but not bunzip2 - setting BUNZIP to bzip2 -c"; - BUNZIP="$BZIP -c" -fi; +GUNZIP="$GZIP -c" +BUNZIP="$BZIP -c" if test -z "$COMPRESS" -a -z "$GZIP" -a -z "$BZIP" ; then echo "Unable to find either compress, bzip2, or gzip - hope you don't plan on compressing"; @@ -89,41 +76,18 @@ AC_CHECK_LIB(crypt, main) AC_CHECK_LIB(des, des_crypt) -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. - -if eval "test x$use_dmalloc = xyes"; then - AC_CHECK_LIB(dmalloc, main) -else - AC_CHECK_LIB(dmalloclp, main) -fi - dnl Checks for header files. -AC_HEADER_DIRENT -AC_HEADER_STDC -AC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h sys/file.h sys/ioctl.h sys/time.h time.h unistd.h stddef.h stdlib.h sys/ttycom.h sys/termios.h crypt.h arpa/inet.h des.h) - +AC_CHECK_HEADERS(crypt.h des.h) dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST AC_C_INLINE -AC_TYPE_PID_T -AC_TYPE_SIZE_T -AC_HEADER_TIME -AC_STRUCT_TM -AC_TYPE_UID_T AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long long) dnl Checks for library functions. AC_PROG_GCC_TRADITIONAL -AC_FUNC_MEMCMP -AC_FUNC_SETPGRP AC_TYPE_SIGNAL -AC_FUNC_STRFTIME -AC_FUNC_VPRINTF -AC_CHECK_FUNCS(gettimeofday mkdir mktime rmdir select socket strcspn strerror strspn strstr strtol strcasecmp strncasecmp snprintf setsid srandom getdtablesize srand48 srand sysconf scandir) dnl alphasort can not be added to AC_CHECK_FUNCS because AC_MSG_CHECKING(checking if alphasort is defined) @@ -196,10 +160,6 @@ AC_DEFINE_UNQUOTED(BZIP,"${BZIP}",[Path to the bzip binary]) AC_DEFINE_UNQUOTED(BUNZIP,"${BUNZIP}",[Path to the bunzip binary]) -AC_PATH_PROG(PERL, perl5.8) -AC_PATH_PROG(PERL, perl5) -AC_PATH_PROG(PERL, perl) - AC_MSG_CHECKING(for $PERL suitability) if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then @@ -238,7 +198,7 @@ AC_OUTPUT([Makefile include/Makefile lib/Makefile pod/Makefile random_maps/Makefile socket/Makefile - server/Makefile src/Makefile utils/Makefile + server/Makefile src/Makefile utils/Makefile ext/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile