File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1002,15 +1002,11 @@ PHP_ARG_ENABLE([dmalloc],
1002
1002
[ no] ,
1003
1003
[ no] )
1004
1004
1005
- if test "$PHP_DMALLOC" = "yes"; then
1006
- AC_CHECK_LIB ( dmalloc , dmalloc_error , [
1007
- PHP_ADD_LIBRARY(dmalloc)
1008
- AC_DEFINE ( HAVE_DMALLOC ,1 ,[ Whether you have dmalloc] )
1009
- CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
1010
- ] , [
1011
- AC_MSG_ERROR ( [ Problem with enabling dmalloc. Please check config.log for details.] )
1012
- ] )
1013
- fi
1005
+ AS_VAR_IF ( [ PHP_DMALLOC] , [ yes] ,
1006
+ [ AC_SEARCH_LIBS ( [ dmalloc_error] , [ dmalloc] ,
1007
+ [ AC_DEFINE ( [ HAVE_DMALLOC] , [ 1] , [ Define to 1 if you have dmalloc.] )
1008
+ AS_VAR_APPEND ( [ CPPFLAGS] , [ " -DDMALLOC_FUNC_CHECK"] ) ] ,
1009
+ [ AC_MSG_ERROR ( [ Problem with enabling dmalloc. Please, check config.log for details.] ) ] ) ] )
1014
1010
1015
1011
PHP_ARG_ENABLE([ ipv6] ,
1016
1012
[ whether to enable IPv6 support] ,
You can’t perform that action at this time.
0 commit comments