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
],
[])
+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'],
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