File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,12 @@ if test "$PHP_EXTERNAL_PCRE" != "no"; then
2828 AS_VAR_IF ( [ PHP_PCRE_JIT] , [ no] ,,
2929 [ AC_CACHE_CHECK ( [ whether external PCRE2 library has JIT supported] ,
3030 [ php_cv_have_pcre2_jit] ,
31- [ AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [
31+ [
32+ CFLAGS_SAVE=$CFLAGS
33+ LIBS_SAVE=$LIBS
34+ CFLAGS="$CFLAGS $PCRE2_CFLAGS"
35+ LIBS="$LIBS $PCRE2_LIBS"
36+ AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [
3237 #include <pcre2.h>
3338 #include <stdlib.h>
3439 int main(void) {
@@ -42,7 +47,10 @@ if test "$PHP_EXTERNAL_PCRE" != "no"; then
4247 [ AS_CASE ( [ $host_cpu] ,
4348 [ arm*|i[ [ 34567] ] 86|x86_64|mips*|powerpc*|sparc] ,
4449 [ php_cv_have_pcre2_jit=yes] ,
45- [ php_cv_have_pcre2_jit=no] ) ] ) ] )
50+ [ php_cv_have_pcre2_jit=no] ) ] )
51+ CFLAGS=$CFLAGS_SAVE
52+ LIBS=$LIBS_SAVE
53+ ] )
4654 AS_VAR_IF ( [ php_cv_have_pcre2_jit] , [ yes] ,
4755 [ AC_DEFINE ( [ HAVE_PCRE_JIT_SUPPORT] , [ 1] ) ] )
4856 ] )
You can’t perform that action at this time.
0 commit comments