dnl Process this file with autoconf to produce a configure script.
AC_PRERQ(2.50)
-AC_INIT([Bobot++], [2.2.2], [clinton@unknownlamer.org], [bobotpp])
+AC_INIT([Bobot++], [2.3.0], [clinton@unknownlamer.org], [bobotpp])
AC_LANG([C++])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
else
GUILE_PROGS
GUILE_FLAGS
+ GUILE_SITE_DIR
AC_DEFINE(USESCRIPTS,1,[Do we have Guile script support?])
AC_DEFINE(MULTITHREAD,1,[Is the bot Multithreaded?])
fi
],
[
+ enable_scripting=yes
GUILE_PROGS
GUILE_FLAGS
GUILE_SITE_DIR
AC_DEFINE(USESCRIPTS,1)
AC_DEFINE(MULTITHREAD,1)
])
+AM_CONDITIONAL([SCRIPTING], [test x$enable_scripting = xyes])
AC_SUBST(CXXFLAGS, "$GUILE_CFLAGS $CXXFLAGS")
AC_SUBST(LDFLAGS, "$GUILE_LDFLAGS $LDFLAGS")
-dnl Removed this from the source tree
-dnl AC_ARG_ENABLE(telnetserver,
-dnl [ --enable-telnetserver Use the Telnet server],
-dnl [
-dnl if test $enableval = "yes"; then
-dnl TSERVER_DEFINES="-DTSERVER"
-dnl TSERVER_SOURCES=""
-dnl TSERVER_INCLUDES=""
-dnl fi
-dnl AC_SUBST(TSERVER_DEFINES)
-dnl AC_SUBST(TSERVER_SOURCES)
-dnl AC_SUBST(TSERVER_INCLUDES)
-dnl ])
-
dnl Checks for programs.
AC_PROG_CXX
AC_CHECK_LIB(socket, socket, [LDFLAGS="-lsocket $LDFLAGS]")
AC_CHECK_LIB(nsl, connect, [LDFLAGS="-lnsl $LDFLAGS]")
-dnl CC++ is special (no function to check_lib on
-dnl AC_CHECK_PROG(CCGNU_FOUND, [ccgnu2-config],
-dnl [yes], [no])
-dnl if test x$CCGNU_FOUND = "xyes";
-dnl then
-dnl LDFLAGS="$(ccgnu2-config --libs) $LDFLAGS"
-dnl else
-dnl AC_MSG_ERROR([Please install CommonC++2 1.0 or greater])
-dnl fi
-
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
fi
dnl Generates the makefiles
-AC_OUTPUT(source/Makefile scripts/Makefile Makefile)
+AC_OUTPUT(documentation/Makefile source/Makefile scripts/Makefile Makefile)