]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
configure: don't enable xtables when --without-xtables is passed
authorFlorian Westphal <fw@strlen.de>
Wed, 4 Apr 2018 11:50:08 +0000 (13:50 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 4 Apr 2018 12:00:02 +0000 (14:00 +0200)
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 <ada@thorsis.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
configure.ac

index 284bcc502346a0039110e16d62e49ecfbd4e07d6..eb673d52c6f26e00df2aa27ba12c9c716679c88b 100644 (file)
@@ -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])