pcre: compile jit by default if available.

remotes/origin/master-1.2.x
Eric Leblond 13 years ago committed by Victor Julien
parent 5a769c02ee
commit 3d558bf06f

@ -300,16 +300,13 @@ AC_INIT(configure.in)
fi
#enable support for PCRE-jit available since pcre-8.20
AC_ARG_ENABLE(pcre-jit,
AS_HELP_STRING([--enable-pcre-jit], [Enable experimental support for PCRE-jit]),,[enable_pcre_jit=no])
AS_IF([test "x$enable_pcre_jit" = "xyes"], [
AC_MSG_CHECKING(for PCRE JIT support)
AC_TRY_COMPILE([ #include <pcre.h> ],
[
int jit = 0;
pcre_config(PCRE_CONFIG_JIT, &jit);
],
[ pcre_jit_available=yes ], [:]
[ pcre_jit_available=yes ], [ pcre_jit_available=no ]
)
if test "x$pcre_jit_available" = "xyes"; then
@ -346,16 +343,7 @@ AC_INIT(configure.in)
else
AC_MSG_RESULT(yes)
fi
else
AC_MSG_RESULT(no)
echo
echo " Error! --enable-pcre-jit set but PCRE_CONFIG_JIT not found"
echo " Make sure your PCRE supports JIT. Version 8.20+ with"
echo " --enable-jit passed to it's configure script."
echo
exit 1
fi
])
#libyaml
AC_ARG_WITH(libyaml_includes,
@ -1086,5 +1074,5 @@ Suricata Configuration:
GCC Profile enabled: ${enable_gccprofile}
Old barnyard2 support: ${enable_old_barnyard2}
Non-bundled htp: ${enable_non_bundled_htp}
PCRE jit: ${enable_pcre_jit}
PCRE jit: ${pcre_jit_available}
"

Loading…
Cancel
Save