cvs: php4 / configure.in

From: Date: Sat, 18 Aug 2001 18:14:22 +0000
Subject: cvs: php4 / configure.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6940@lists.php.net to get a copy of this message
sniper Sat Aug 18 14:14:22 2001 EDT Modified files: /php4 configure.in Log: Added a check for libdmalloc whether it works (is found..) or not. # We should always test every library (when possible) before # adding them.. Index: php4/configure.in diff -u php4/configure.in:1.269 php4/configure.in:1.270 --- php4/configure.in:1.269 Wed Aug 15 17:39:32 2001 +++ php4/configure.in Sat Aug 18 14:14:22 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.269 2001/08/15 21:39:32 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.270 2001/08/18 18:14:22 sniper Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -609,9 +609,14 @@ [ --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

« previous php.cvs (#6940) next »