From: Hangbin Liu <liuhangbin@gmail.com>
To: netfilter dev <netfilter@vger.kernel.org>
Cc: Hangbin Liu <liuhangbin@gmail.com>
Subject: [contrack-tools PATCH] build: do not compile nfct if we disabled cttimeout
Date: Thu, 8 May 2014 18:02:25 +0800 [thread overview]
Message-ID: <1399543345-3634-1-git-send-email-liuhangbin@gmail.com> (raw)
If we do not have libnetfilter_cttimeout and disabled cttimeout, conntrack-tools
will compile fail because nfct.c include nfnetlink_cttimeout.h. Fix it by only
compile nfct when we have enabled cttimeout
---
src/Makefile.am | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 1bc3622..3f8ddee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,10 @@ AM_YFLAGS = -d
CLEANFILES = read_config_yy.c read_config_lex.c
-sbin_PROGRAMS = conntrack conntrackd nfct
+sbin_PROGRAMS = conntrack conntrackd
+if HAVE_CTTIMEOUT
+sbin_PROGRAMS += nfct
+endif
conntrack_SOURCES = conntrack.c
conntrack_LDADD = ../extensions/libct_proto_tcp.la ../extensions/libct_proto_udp.la ../extensions/libct_proto_udplite.la ../extensions/libct_proto_icmp.la ../extensions/libct_proto_icmpv6.la ../extensions/libct_proto_sctp.la ../extensions/libct_proto_dccp.la ../extensions/libct_proto_gre.la ../extensions/libct_proto_unknown.la ${LIBNETFILTER_CONNTRACK_LIBS} ${LIBMNL_LIBS} ${LIBNFNETLINK_LIBS}
--
1.8.1.4
next reply other threads:[~2014-05-08 10:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 10:02 Hangbin Liu [this message]
2014-05-09 11:29 ` [contrack-tools PATCH] build: do not compile nfct if we disabled cttimeout Pablo Neira Ayuso
2014-05-09 11:54 ` Hangbin Liu
2014-05-09 13:59 ` Pablo Neira Ayuso
2014-05-10 2:51 ` Hangbin Liu
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=1399543345-3634-1-git-send-email-liuhangbin@gmail.com \
--to=liuhangbin@gmail.com \
--cc=netfilter@vger.kernel.org \
/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