diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2018-02-25 16:57:00 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2018-02-25 16:57:00 +0000 |
commit | 4d590720d0cf0fbba5c21275afbf20ecb78f34a5 (patch) | |
tree | 6944e0d3a676e5b772c626b3c3da6d6b90843970 | |
parent | 25ba46be7b2732a4e1fb272208d15c12807fd0ae (diff) | |
download | pcre-4d590720d0cf0fbba5c21275afbf20ecb78f34a5.tar.gz |
Add --enable-jit=auto support.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1728 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | configure.ac | 12 |
2 files changed, 14 insertions, 0 deletions
@@ -51,6 +51,8 @@ crash. This issue was fixed for other kinds of repeat in release 8.37 by change 6. A small fix to pcregrep to avoid compiler warnings for -Wformat-overflow=2. +7. Added --enable-jit=auto support to configure.ac. + Version 8.41 05-July-2017 ------------------------- diff --git a/configure.ac b/configure.ac index 5838eb9..6268ec4 100644 --- a/configure.ac +++ b/configure.ac @@ -155,6 +155,18 @@ AC_ARG_ENABLE(jit, [enable Just-In-Time compiling support]), , enable_jit=no) +# This code enables JIT if the hardware supports it. + +if test "$enable_jit" = "auto"; then + AC_LANG(C) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #define SLJIT_CONFIG_AUTO 1 + #include "sljit/sljitConfigInternal.h" + #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) + #error unsupported + #endif]])], enable_jit=yes, enable_jit=no) +fi + # Handle --disable-pcregrep-jit (enabled by default) AC_ARG_ENABLE(pcregrep-jit, AS_HELP_STRING([--disable-pcregrep-jit], |