]> arthur.barton.de Git - ngircd-alex.git/blobdiff - configure.in
Enable GNU libc "memory tracing" when compiled with debug code.
[ngircd-alex.git] / configure.in
index a1d1452ca59d39db319fd79e21e1fda762dbb0ce..36f0bc28afb18e27f728af621bd2bb739774156f 100644 (file)
@@ -125,7 +125,10 @@ AC_TYPE_SIZE_T
 
 
 # -- Libraries --
+
+AC_CHECK_LIB(UTIL,memmove)
 AC_CHECK_LIB(socket,bind)
+AC_CHECK_LIB(nsl,gethostent)
 
 # -- Functions --
 
@@ -454,6 +457,7 @@ AC_ARG_ENABLE(debug,
 if test "$x_debug_on" = "yes"; then
        AC_DEFINE(DEBUG, 1)
        test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
+       AC_CHECK_FUNCS(mtrace)
 fi
 
 # enable "strict RFC rules"?
@@ -494,6 +498,7 @@ AC_OUTPUT([ \
        contrib/Debian/Makefile \
        contrib/MacOSX/Makefile \
        contrib/MacOSX/ngIRCd.xcodeproj/Makefile \
+       contrib/MacOSX/ngIRCd.pmdoc/Makefile \
 ])
 
 type dpkg >/dev/null 2>&1