dnl Process this file with autoconf to produce a configure script. AC_INIT(src/musicmud.cc) AC_CONFIG_HEADER(configure.h) dnl Checks for programs. AC_PROG_CC AC_PROG_CXX dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(libintl.h getopt.h) LIBS="$LIBS" AC_CHECK_LIB(dl, dlopen, , , $LIBS) echo -n checking for socklen_t... AC_TRY_COMPILE( [#include <sys/types.h> #include <sys/socket.h>], [ socklen_t thing; ], [ echo yes AC_DEFINE(HAVE_SOCKLEN_T) ], [ echo no ] ) AC_CHECK_FUNC(strcasestr) if test $ac_cv_func_strcasestr = yes; then AC_DEFINE(HAVE_STRCASESTR) fi AC_CHECK_FUNC(crypt) if test $ac_cv_func_crypt = no; then AC_CHECK_LIB(crypt, crypt, , , $LIBS) fi AC_CHECK_FUNC(connect) if test $ac_cv_func_connect = no; then AC_CHECK_LIB(socket, connect, , , $LIBS) fi AC_CHECK_LIB(z, deflate, [zlib=found=yes; LIBS="$LIBS -lz"; AC_DEFINE(HAVE_ZLIB)], echo "Cannot find zlib. MCCP support will not be built.", $LIBS) AC_LANG_CPLUSPLUS echo -n "checking if time_t is signed int.. " AC_TRY_COMPILE( [ #include <time.h> ], [ void a(time_t); void a(int); ] , [echo no] , AC_DEFINE(TIMET_IS_INT) [echo yes] ) LIBS="$LIBS -L/home/cryosphere/lib" AC_CHECK_LIB(mysqlclient, mysql_query, , , $LIBS) PROGS="src/musicmud" AC_SUBST(PROGS) VERSION=2.1.6 AC_SUBST(VERSION) PACKAGE=musicmud AC_OUTPUT(Makefile Makefile.rules data/info/issue.i data/info/credits.i include/musicversion.h)