summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pcre/config0.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4
index 6b94bac3c9..b9542f0113 100644
--- a/ext/pcre/config0.m4
+++ b/ext/pcre/config0.m4
@@ -71,8 +71,16 @@ PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT functionality
AC_MSG_RESULT([no])
],
[
- dnl cross compilation might want to rely on arch names
- AC_MSG_RESULT([no])
+ AC_CANONICAL_HOST
+ case $host_cpu in
+ arm*|i[34567]86|x86_64|mips*|powerpc*|sparc)
+ AC_MSG_RESULT([yes])
+ AC_DEFINE(HAVE_PCRE_JIT_SUPPORT, 1, [])
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
])
fi