added Makefile.am to each directory
[NeonServV5.git] / configure.ac
index b118cae671fd144c8e7ed399d738769bee2b9d58..e75bc48a9bcb19ff480853ff11a681f5e7959252 100644 (file)
@@ -3,9 +3,12 @@
 AC_PREREQ([2.67])
 AC_INIT([NeonServ], [5.3], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de])
 AC_PREFIX_DEFAULT([~/neonserv])
+AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE([foreign subdir-objects])
 AC_CONFIG_HEADERS([config.h])
 
+LT_INIT([disable-static])
+
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_AWK
@@ -62,6 +65,13 @@ AC_ARG_ENABLE([threads],
   ],
   [])
 
+AC_ARG_ENABLE([memory-debug],
+  [AS_HELP_STRING([--enable-memory-debug], [run memory debugger])],
+  [
+    AC_DEFINE([ENABLE_MEMORY_DEBUG], 1, [Define if you enable memoryDebug.c])
+  ],
+  [])
+
 AC_ARG_ENABLE([debug],
   [AS_HELP_STRING([--enable-debug], [debug mode (compile using -O0 -Wall -Wshadow -Werror)])],
   [CFLAGS='-g -O0 -Wall -Wshadow -Werror'],
@@ -78,5 +88,7 @@ AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([gethostbyname memset select socket strchr strdup strstr])
 
-AC_CONFIG_FILES([Makefile])
+MY_SUBDIRS="src"
+AC_SUBST(MY_SUBDIRS)
+AC_CONFIG_FILES(Makefile src/Makefile src/modules/Makefile)
 AC_OUTPUT
\ No newline at end of file