[project @ 2002-11-04 23:42:01 by unknown_lamer]
[clinton/bobotpp.git] / configure.ac
index 8da8e69..3c96d2a 100644 (file)
@@ -1,7 +1,8 @@
 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
@@ -9,11 +10,10 @@ AC_ARG_ENABLE(crypt,
 [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)],
 [
@@ -22,8 +22,8 @@ AC_ARG_ENABLE(scripting,
   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
 ],
 [
@@ -33,7 +33,7 @@ AC_ARG_ENABLE(scripting,
   AC_DEFINE(MULTITHREAD,1)
 ])
 
-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 [
@@ -73,8 +73,16 @@ dnl Checks for library functions.
 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
-dnl AC_OUTPUT(source/bobot-scheme.scm)
 AC_OUTPUT(source/Makefile)
 AC_OUTPUT(scripts/Makefile)
 AC_OUTPUT(Makefile)