From: Philippe Antoine Date: Thu, 26 Mar 2020 13:29:38 +0000 (+0100) Subject: configure: right test for AFLFUZZ_PERSISTANT_MODE X-Git-Tag: suricata-6.0.0-beta1~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e15f3db4740c53275fbee5642e643360d5ed3420;p=thirdparty%2Fsuricata.git configure: right test for AFLFUZZ_PERSISTANT_MODE --- diff --git a/configure.ac b/configure.ac index dd053c134b..e707d8f8ce 100644 --- a/configure.ac +++ b/configure.ac @@ -465,9 +465,12 @@ AC_PROG_CXX AS_IF([test "x$enable_fuzztargets" = "xyes"], [ AC_DEFINE([AFLFUZZ_NO_RANDOM], [1], [Disable all use of random functions]) + CFLAGS_ORIG=$CFLAGS + CFLAGS="-Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[while (__AFL_LOOP(1000))]])], [AC_DEFINE([AFLFUZZ_PERSISTANT_MODE], [1], [Enable AFL PERSISTANT_MODE])], []) + CFLAGS=$CFLAGS_ORIG AC_LANG_PUSH(C++) tmp_saved_flags=$[]_AC_LANG_PREFIX[]FLAGS AS_IF([test "x$LIB_FUZZING_ENGINE" = "x"], [