From: Fabian Keil <fk@fabiankeil.de>
Date: Thu, 25 May 2017 11:14:53 +0000 (+0000)
Subject: Properly disable fuzz support when it hasn't been requested
X-Git-Tag: v_3_0_27~158
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/developer-manual/static/documentation.html?a=commitdiff_plain;h=9c070f54df677ce76d49a071bc288765be940ce7;p=privoxy.git

Properly disable fuzz support when it hasn't been requested

Previously fuzz.o was compiled and linked in anyway
while the code was unreachable.
---

diff --git a/configure.in b/configure.in
index 7df0b50b..2adba9d3 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl
-dnl $Id: configure.in,v 1.210 2017/05/04 14:34:28 fabiankeil Exp $
+dnl $Id: configure.in,v 1.211 2017/05/25 11:14:27 fabiankeil Exp $
 dnl
 dnl Written by and Copyright (C) 2001-2017 the
 dnl Privoxy team. https://www.privoxy.org/
@@ -32,7 +32,7 @@ dnl =================================================================
 dnl AutoConf Initialization
 dnl =================================================================
 
-AC_REVISION($Revision: 1.210 $)
+AC_REVISION($Revision: 1.211 $)
 AC_INIT(jcc.c)
 
 if test ! -f config.h.in; then
@@ -1026,13 +1026,12 @@ else
 fi
 AC_SUBST(FEATURE_CLIENT_TAGS_ONLY)
 
+FUZZ_ONLY="#"
 AC_ARG_ENABLE(fuzz,
 [  --enable-fuzz                Enable code that makes fuzzing more convenient],
 [if test $enableval = yes; then
   FUZZ_ONLY=""
   AC_DEFINE(FUZZ,1,[Define to make fuzzing more convenient.])
- else
-  FUZZ_ONLY="#"
 fi])
 AC_SUBST(FUZZ_ONLY)