--- ./GNUnet.20020615/configure.in Sun Jun 9 16:38:49 2002 +++ ./GNUnet/configure.in Sat Jun 15 23:58:30 2002 @@ -91,6 +91,18 @@ AM_GNUNET_PATH_GTK(1.2.0)] ) +AC_MSG_CHECKING(wether to link against dmalloc) +AC_ARG_WITH(dmalloc, + [ --with-dmalloc Debug using dmalloc (default is no)], + [with_dmalloc=yes + AC_MSG_RESULT(yes)], + [with_dmalloc=no + AC_MSG_RESULT(no)] +) +if test "$with_dmalloc" = yes; then + AC_CHECK_LIB([dmalloc], [main],,AC_MSG_ERROR(cannot find libdmalloc)) +fi + dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC