summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-11-05 01:15:09 +0100
committerAnatol Belski <ab@php.net>2018-11-05 01:15:09 +0100
commit68ad401b34dd52f7d72c3161a6cb87b96af5da2a (patch)
tree8374047a9057b8ac764d9d8caa61cc3c4f3136ce
parentdb1534b1b4bc2b9dde14e2394ab1179e8445ea9c (diff)
downloadphp-git-68ad401b34dd52f7d72c3161a6cb87b96af5da2a.tar.gz
Implement handling for JIT recognition when cross compiling
-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