#define CONFIGURATION_FILE_PATH "php3.ini"
#define USE_CONFIG_FILE 1
+#undef HAVE_DMALLOC
+
/* Some global constants defined by conigure */
#undef PHP_BUILD_DATE
#undef PHP_OS
AC_MSG_RESULT(yes)
])
+DMALLOC_RESULT=no
+AC_MSG_CHECKING(whether to enable dmalloc)
+AC_ARG_ENABLE(dmalloc,
+[ --enable-dmalloc Enable dmalloc],
+[
+ if test "$enableval" = "yes" ; then
+ AC_DEFINE(HAVE_DMALLOC, 1)
+ AC_ADD_LIBRARY(dmalloc)
+ CFLAGS="$CFLAGS -DDMALLOC_FUNC_CHECK"
+ DMALLOC_RESULT=yes
+ fi
+])
+AC_MSG_RESULT($DMALLOC_RESULT)
divert(3)