diff options
author | foobar <sniper@php.net> | 2001-08-18 18:15:22 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-08-18 18:15:22 +0000 |
commit | e455e7cbcaae080ee06b74e9c7362097d51250c0 (patch) | |
tree | 8b0cb4a32cccc99bef663e6924bac1435bfdb49b | |
parent | b33f9a00d2382c66322b56e22ab086a93af81429 (diff) | |
download | php-git-e455e7cbcaae080ee06b74e9c7362097d51250c0.tar.gz |
MFH
-rw-r--r-- | configure.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 109f0d4239..2cb88e480a 100644 --- a/configure.in +++ b/configure.in @@ -609,9 +609,14 @@ PHP_ARG_ENABLE(dmalloc,whether to enable dmalloc, [ --enable-dmalloc Enable dmalloc]) if test "$PHP_DMALLOC" = "yes"; then - AC_DEFINE(HAVE_DMALLOC,1,[Whether you have dmalloc]) - PHP_ADD_LIBRARY(dmalloc) - CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" + + AC_CHECK_LIB(dmalloc, dmalloc_error, [ + PHP_ADD_LIBRARY(dmalloc) + AC_DEFINE(HAVE_DMALLOC,1,[Whether you have dmalloc]) + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" + ], [ + AC_MSG_ERROR(Problem with enabling dmalloc. Please check config.log for details.) + ]) fi # temporary until streams are better integrated |