]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: warn if libpcre 8.35 is used
authorAndreas Herz <andi@geekosphere.org>
Sun, 21 Feb 2016 20:54:32 +0000 (21:54 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 22 Feb 2016 10:52:27 +0000 (11:52 +0100)
configure.ac

index 79578fb31058a46caa89fc9195de8b41a03df1b2..ae085d87d20acbd733318af18ce1b929757c1175 100644 (file)
         exit 1
     fi
 
+    # libpcre 8.35 (especially on debian) has a known issue that results in segfaults
+    # see https://redmine.openinfosecfoundation.org/issues/1693
+    PKG_CHECK_MODULES(LIBPCREVERSION, [libpcre = 8.35],[libpcre_buggy_found="yes"],[libprce_buggy_found="no"])
+    if test "$libpcre_buggy_found" = "yes"; then
+        echo
+        echo "   Warning! libpcre version 8.35 found"
+        echo "   This version has a known issue that could result in segfaults"
+        echo "   please upgrade to a newer version of pcre which you can get from"
+        echo "   www.pcre.org."
+        echo "   Continuing for now...."
+        echo
+    fi
+
     # To prevent duping the lib link we reset LIBS after this check. Setting action-if-found to NULL doesn't seem to work
     # see: http://blog.flameeyes.eu/2008/04/29/i-consider-ac_check_lib-harmful
     PCRE=""