# HG changeset patch # User Alexander Dahl # Date 1585322591 -28800 # Node ID 49cb3cf4bd6f1b989e91e54b64aa101b2a87456b # Parent 986126448688313427710960f359d686de0c555f When explicitly passing --disable-fuzz to ./configure fuzz was actually enabled. Signed-off-by: Alexander Dahl diff -r 986126448688 -r 49cb3cf4bd6f configure.ac --- a/configure.ac Tue Mar 10 15:38:38 2020 +0100 +++ b/configure.ac Fri Mar 27 23:23:11 2020 +0800 @@ -341,14 +341,21 @@ AC_ARG_ENABLE(fuzz, [ --enable-fuzz Build fuzzing. Not recommended for deployment.], [ - AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing) - AC_MSG_NOTICE(Enabling fuzzing) - DROPBEAR_FUZZ=1 - # libfuzzer needs linking with c++ libraries - AC_PROG_CXX + if test "x$enableval" = "xyes"; then + AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing) + AC_MSG_NOTICE(Enabling fuzzing) + DROPBEAR_FUZZ=1 + # libfuzzer needs linking with c++ libraries + AC_PROG_CXX + else + AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing) + AC_MSG_NOTICE(Disabling fuzzing) + DROPBEAR_FUZZ=0 + fi ], [ AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing) + AC_MSG_NOTICE(Disabling fuzzing) DROPBEAR_FUZZ=0 ]