File tree 3 files changed +30
-22
lines changed
3 files changed +30
-22
lines changed Original file line number Diff line number Diff line change @@ -3310,23 +3310,3 @@ dnl Load the AX_CHECK_COMPILE_FLAG macro from the autoconf archive.
3310
3310
m4_include ( [ build/ax_check_compile_flag.m4] )
3311
3311
3312
3312
m4_include ( [ build/ax_gcc_func_attribute.m4] )
3313
-
3314
- dnl PHP_CHECK_VALGRIND
3315
- AC_DEFUN ( [ PHP_CHECK_VALGRIND] , [
3316
- AC_MSG_CHECKING ( [ for valgrind] )
3317
-
3318
- SEARCH_PATH="/usr/local /usr"
3319
- SEARCH_FOR="/include/valgrind/valgrind.h"
3320
- for i in $SEARCH_PATH ; do
3321
- if test -r $i/$SEARCH_FOR; then
3322
- VALGRIND_DIR=$i
3323
- fi
3324
- done
3325
-
3326
- if test -z "$VALGRIND_DIR"; then
3327
- AC_MSG_RESULT ( [ not found] )
3328
- else
3329
- AC_MSG_RESULT ( found in $VALGRIND_DIR )
3330
- AC_DEFINE ( HAVE_VALGRIND , 1 , [ ] )
3331
- fi
3332
- ] )
Original file line number Diff line number Diff line change @@ -784,7 +784,35 @@ if test "$ac_cv__asm_goto" = yes; then
784
784
AC_DEFINE ( HAVE_ASM_GOTO ,1 ,[ Define if asm goto support] )
785
785
fi
786
786
787
- PHP_CHECK_VALGRIND
787
+ dnl Check valgrind support
788
+ PHP_ARG_WITH(valgrind, [ whether to enable valgrind support] ,
789
+ [ --with-valgrind=DIR Enable valgrind support] , yes, no)
790
+
791
+ if test "$PHP_VALGRIND" != "no"; then
792
+
793
+ AC_MSG_CHECKING ( [ for valgrind header] )
794
+
795
+ if test "$PHP_VALGRIND" = "yes"; then
796
+ SEARCH_PATH="/usr/local /usr"
797
+ else
798
+ SEARCH_PATH="$PHP_VALGRIND"
799
+ fi
800
+
801
+ SEARCH_FOR="/include/valgrind/valgrind.h"
802
+ for i in $SEARCH_PATH ; do
803
+ if test -r $i/$SEARCH_FOR; then
804
+ VALGRIND_DIR=$i
805
+ fi
806
+ done
807
+
808
+ if test -z "$VALGRIND_DIR"; then
809
+ AC_MSG_RESULT ( [ not found] )
810
+ else
811
+ AC_MSG_RESULT ( found in $VALGRIND_DIR )
812
+ AC_DEFINE ( HAVE_VALGRIND , 1 , [ ] )
813
+ fi
814
+
815
+ fi
788
816
789
817
dnl General settings.
790
818
dnl -------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ extern zend_module_entry xml_module_entry;
36
36
37
37
#ifdef HAVE_XML
38
38
39
- #include "ext/xml/ expat_compat.h"
39
+ #include "expat_compat.h"
40
40
41
41
#ifdef XML_UNICODE
42
42
#error "UTF-16 Unicode support not implemented!"
You can’t perform that action at this time.
0 commit comments