]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pcre: on ppc64 disable only for specific versions
authorVictor Julien <victor@inliniac.net>
Thu, 13 Apr 2017 07:58:36 +0000 (09:58 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 13 Apr 2017 07:58:36 +0000 (09:58 +0200)
Disable jit only for libpcre 8.39 and 8.40 as those were the buggy
versions.

Thanks to Zoltán Herczeg.

configure.ac

index 91f4925d9d9acb84e4e0564d10336d96a79b1317..5f5ae55ee447f0677eba64d021ec9c8445fb24b8 100644 (file)
 
     case $host in
         *powerpc64*)
-            # on powerpc64, both gcc and clang lead to SIGILL in
-            # unittests when jit is enabled.
-            pcre_jit_available="no, pcre jit disabled for powerpc64"
+            PKG_CHECK_MODULES(LIBPCREVERSION, [libpcre = 8.39],[libpcre_ppc64_buggy_found1="yes"],[libprce_ppc64_buggy_found1="no"])
+            PKG_CHECK_MODULES(LIBPCREVERSION, [libpcre = 8.40],[libpcre_ppc64_buggy_found2="yes"],[libprce_ppc64_buggy_found2="no"])
+
+            if test "$libprce_ppc64_buggy_found1" = "yes" || test "$libprce_ppc64_buggy_found2"; then
+                # on powerpc64, both gcc and clang lead to SIGILL in
+                # unittests when jit is enabled.
+                pcre_jit_available="no, pcre 8.39/8.40 jit disabled for powerpc64"
+            fi
         ;;
         *)
             # bug 1693, libpcre 8.35 is broken and debian jessie is still using that