From b2dfb5c9350c58f1025a852d2d78afc5cfa42c5a Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 4 Apr 2018 13:50:08 +0200 Subject: configure: don't enable xtables when --without-xtables is passed AC_ARG_WITH runs this when EITHER --with-foo or --without-foo is given, so use 'withval'. After this patch: ./configure -> xtables off ./configure --with-xtables -> xtables on ./configure --without-xtables -> xtables off (was on). Reported-by: Alexander Dahl Signed-off-by: Florian Westphal --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 284bcc50..eb673d52 100644 --- a/configure.ac +++ b/configure.ac @@ -99,7 +99,7 @@ AM_CONDITIONAL([BUILD_CLI], [test "x$with_cli" != xno]) AC_ARG_WITH([xtables], [AS_HELP_STRING([--with-xtables], [Use libxtables for iptables interaction)])], - [with_libxtables=yes], [with_libxtables=no]) + [with_libxtables=$withval], [with_libxtables=no]) AS_IF([test "x$with_libxtables" != xno], [ PKG_CHECK_MODULES([XTABLES], [xtables >= 1.6.1]) AC_DEFINE([HAVE_LIBXTABLES], [1], [0]) -- cgit v1.2.3