[project @ 2002-11-04 23:42:01 by unknown_lamer]
[clinton/bobotpp.git] / configure.ac
index eca44c7..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,17 +33,7 @@ AC_ARG_ENABLE(scripting,
   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 [
@@ -57,7 +47,6 @@ dnl   AC_SUBST(TSERVER_SOURCES)
 dnl   AC_SUBST(TSERVER_INCLUDES)
 dnl ])
 
-
 dnl Checks for programs.
 AC_PROG_CXX
 
@@ -84,6 +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
 AC_OUTPUT(source/Makefile)
+AC_OUTPUT(scripts/Makefile)
 AC_OUTPUT(Makefile)