@@ -78,15 +78,20 @@ PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT functionality]
78
78
fi
79
79
fi
80
80
81
- PHP_ARG_WITH(pcre-valgrind,,[ --with-pcre-valgrind=DIR
82
- Enable PCRE valgrind support. Developers only!] , $PHP_DEBUG, no)
81
+ if test "$PHP_DEBUG" != "no" && test "$PHP_DEBUG" != "0"; then
82
+ PHP_ARG_WITH(pcre-valgrind,,[ --with-pcre-valgrind=DIR
83
+ Enable PCRE valgrind support. Developers only!] , yes, no)
84
+ else
85
+ PHP_ARG_WITH(pcre-valgrind,,[ --with-pcre-valgrind=DIR
86
+ Enable PCRE valgrind support. Developers only!] , no, no)
87
+ fi
83
88
84
89
if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
85
90
AC_MSG_WARN ( [ PHP is going to be linked with an external PCRE, --with-pcre-valgrind has no effect] )
86
91
else
87
- if test "$PHP_PCRE_VALGRIND" = "no" && test "$PHP_DEBUG" != "no "; then
92
+ if test "$PHP_PCRE_VALGRIND" = "no" && test "$PHP_DEBUG" != "0 "; then
88
93
AC_MSG_NOTICE ( [ PCRE Valgrind support is disabled for debug build] )
89
- elif test "$PHP_PCRE_VALGRIND" != "no" || test "$PHP_DEBUG" != "no "; then
94
+ elif test "$PHP_PCRE_VALGRIND" != "no" || test "$PHP_DEBUG" != "0 "; then
90
95
PHP_PCRE_VALGRIND_INCDIR=
91
96
AC_MSG_CHECKING ( [ for Valgrind headers location] )
92
97
for i in $PHP_PCRE_VALGRIND $PHP_PCRE_VALGRIND/include $PHP_PCRE_VALGRIND/local/include /usr/include /usr/local/include; do
0 commit comments