From: Alexander Kanavin <alex@linutronix.de>
To: phil@nwl.cc, netfilter-devel@vger.kernel.org
Cc: "Maxin B. John" <maxin.john@intel.com>,
Khem Raj <raj.khem@gmail.com>,
Alexander Kanavin <alex@linutronix.de>
Subject: [iptables][PATCH] configure: Add option to enable/disable libnfnetlink
Date: Wed, 24 Apr 2024 14:28:04 +0200 [thread overview]
Message-ID: <20240424122804.980366-1-alex@linutronix.de> (raw)
From: "Maxin B. John" <maxin.john@intel.com>
This changes the configure behaviour from autodetecting
for libnfnetlink to having an option to disable it explicitly.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
configure.ac | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index d99fa3b9..d6077723 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,9 @@ AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
AC_ARG_ENABLE([nftables],
AS_HELP_STRING([--disable-nftables], [Do not build nftables compat]),
[enable_nftables="$enableval"], [enable_nftables="yes"])
+AC_ARG_ENABLE([libnfnetlink],
+ AS_HELP_STRING([--disable-libnfnetlink], [Do not use netfilter netlink library]),
+ [enable_libnfnetlink="$enableval"], [enable_libnfnetlink="yes"])
AC_ARG_ENABLE([connlabel],
AS_HELP_STRING([--disable-connlabel],
[Do not build libnetfilter_conntrack]),
@@ -113,9 +116,10 @@ AM_CONDITIONAL([ENABLE_SYNCONF], [test "$enable_nfsynproxy" = "yes"])
AM_CONDITIONAL([ENABLE_NFTABLES], [test "$enable_nftables" = "yes"])
AM_CONDITIONAL([ENABLE_CONNLABEL], [test "$enable_connlabel" = "yes"])
-PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0],
- [nfnetlink=1], [nfnetlink=0])
-AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "$nfnetlink" = 1])
+AS_IF([test "x$enable_libnfnetlink" = "xyes"], [
+ PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0])
+ ])
+AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "x$enable_libnfnetlink" = "xyes"])
if test "x$enable_bpfc" = "xyes" || test "x$enable_nfsynproxy" = "xyes"; then
PKG_CHECK_MODULES([libpcap], [libpcap], [], [
--
2.39.2
next reply other threads:[~2024-04-24 12:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 12:28 Alexander Kanavin [this message]
2024-04-24 12:53 ` [iptables][PATCH] configure: Add option to enable/disable libnfnetlink Phil Sutter
2024-04-24 14:11 ` Alexander Kanavin
2024-04-24 14:58 ` Phil Sutter
2024-04-24 15:20 ` Pablo Neira Ayuso
2024-04-24 18:35 ` Phil Sutter
2024-04-24 20:14 ` Pablo Neira Ayuso
2024-04-25 8:59 ` Alexander Kanavin
-- strict thread matches above, loose matches on Subject: below --
2024-04-24 12:29 Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240424122804.980366-1-alex@linutronix.de \
--to=alex@linutronix.de \
--cc=maxin.john@intel.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=phil@nwl.cc \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).