version 1.21 | | version 1.22 |
---|
| | |
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.in,v 1.21 2002/04/15 06:20:54 mwedel Exp $) | | AC_REVISION($Id: configure.in,v 1.22 2002/06/14 06:35:21 mwedel Exp $) |
| | |
AC_INIT(CREDITS) | | AC_INIT(CREDITS) |
| | |
AC_PREFIX_DEFAULT(/usr/games/crossfire) | | AC_PREFIX_DEFAULT(/usr/games/crossfire) |
| | |
| | |
dnl we want a config.h file instead of -D options. | | dnl we want a config.h file instead of -D options. |
AC_CONFIG_HEADER(include/autoconf.h) | | AC_CONFIG_HEADER(include/autoconf.h) |
AC_CONFIG_AUX_DIR(utils/) | | AC_CONFIG_AUX_DIR(utils/) |
| | |
dnl Gros - Support for the dynamic loader library | | dnl Gros - Support for the dynamic loader library |
AC_CHECK_LIB(dl, main) | | AC_CHECK_LIB(dl, main) |
| | |
| | dnl This is sort of bogus, but this library seems to be |
| | dnl in a very non standard place. Need to wildcard this, |
| | dnl since it changes for each version. In my limited |
| | dnl testing, it seems that if the path doesn't match, |
| | dnl then this leaves the * in place, which is why |
| | dnl we check to see that this actually exists. |
| | echo -n "checking for python lib... " |
| | PYTHON_LIB=`echo /usr/lib/python*/config/libpython*.a` |
| | if test ! -f $PYTHON_LIB ; then |
| | echo "no" |
| | PYTHON_LIB="" |
| | else |
| | dnl the following libs are only used with the python plugin. |
| | echo "yes" |
| | AC_CHECK_LIB(pthread, main, PY_LIBS="$PY_LIBS -lpthread", , $PY_LIBS ) |
| | AC_CHECK_LIB(util, main, PY_LIBS="$PY_LIBS -lutil", , $PY_LIBS ) |
| | fi |
| | |
| | |
| | |
dnl Checks for header files. | | dnl Checks for header files. |
AC_HEADER_DIRENT | | AC_HEADER_DIRENT |
AC_HEADER_STDC | | 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(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 Python.h) |
| | |
dnl Checks for typedefs, structures, and compiler characteristics. | | dnl Checks for typedefs, structures, and compiler characteristics. |
AC_C_CONST | | AC_C_CONST |
| | |
AC_SUBST(no_x) | | AC_SUBST(no_x) |
AC_SUBST(X11LIBS) | | AC_SUBST(X11LIBS) |
AC_SUBST(PERL) | | AC_SUBST(PERL) |
| | AC_SUBST(PYTHON_LIB) |
| | AC_SUBST(PY_LIBS) |
| | |
dnl Do the evals because most of these are made up of sub variables and | | dnl Do the evals because most of these are made up of sub variables and |
dnl we don't want the include to have something like | | dnl we don't want the include to have something like |
| | |
include/Makefile utils/Makefile lib/checkarch.pl | | include/Makefile utils/Makefile lib/checkarch.pl |
lib/collect.pl utils/add_throw.perl utils/crossloop utils/crossloop.pl | | lib/collect.pl utils/add_throw.perl utils/crossloop utils/crossloop.pl |
utils/metaserver.pl utils/crossloop.web | | utils/metaserver.pl utils/crossloop.web |
common/Makefile | | common/Makefile plugin/Makefile |
) | | ) |