dnl Process this file with autoconf to produce a configure script.
AC_PRERQ(2.50)
-AC_INIT(source/Makefile.in)
-AM_INIT_AUTOMAKE([Bobot++], [2.1.0])
+dnl AC_INIT(source/Makefile.in)
+AC_INIT([Bobot++], [2.1.2CVS], [clinton@unknownlamer.org], [bobotpp])
+AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
dnl Options
[AC_HELP_STRING(--disable-crypt, Do not use the crypt function)],
[
if test $enableval = "no"; then
- AC_DEFINE(NOCRYPT,1)
+ AC_DEFINE(NOCRYPT,1, [No crypt support])
fi
])
-
AC_ARG_ENABLE(scripting,
[AC_HELP_STRING(--disable-scripting, Do not use Guile scripts)],
[
else
GUILE_PROGS
GUILE_FLAGS
- AC_DEFINE(USESCRIPTS,1)
- AC_DEFINE(MULTITHREAD,1)
+ AC_DEFINE(USESCRIPTS,1,[Do we have Guile script support?])
+ AC_DEFINE(MULTITHREAD,1,[Is the bot Multithreaded?])
fi
],
[
AC_DEFINE(MULTITHREAD,1)
])
-dnl check for guile stuff and define flags needed to enable scripting
-dnl HINT: use an AM_CONDITIONAL to change LDFLAGS
-dnl Make it a --disable-scripting because enabling scripting is a good
-dnl default behavior
-dnl AC_DEFINE(USESCRIPTS,1)
-dnl AC_DEFINE(MULTITHREAD,1)
-dnl GUILE_PROGS
-dnl GUILE_FLAGS
-
-
-dnl I don't think this works at all!
+dnl Removed this from the source tree
dnl AC_ARG_ENABLE(telnetserver,
dnl [ --enable-telnetserver Use the Telnet server],
dnl [
dnl AC_SUBST(TSERVER_INCLUDES)
dnl ])
-
dnl Checks for programs.
AC_PROG_CXX
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(select socket strtoul)
+
+dnl PREFIX (I know, I know. Not very nice but...)
+if test "x$prefix" == "xNONE"
+then
+ AC_DEFINE_UNQUOTED(PREFIX, "$ac_default_prefix", [Install prefix])
+else
+ AC_DEFINE_UNQUOTED(PREFIX, "$prefix", [Install Prefix])
+fi
+
dnl Generates the makefiles
AC_OUTPUT(source/Makefile)
+AC_OUTPUT(scripts/Makefile)
AC_OUTPUT(Makefile)