summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hauke <mardnh@gmx.de>2015-11-05 12:54:09 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-05 13:25:29 +0100
commit19991f90d8398a944721b684b1584c1e339c6fec (patch)
tree1a19946b0c447eab58227bc9dec1a1e4ff587849
parentced058002d01024a18e9d9e2dda2a9af5854e232 (diff)
build: Handle libnetfilter-conntrack with pkg-config
Needed for openSUSE since they have versioned libnetfilter-header files. Signed-off-by: Martin Hauke <mardnh@gmx.de> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rwxr-xr-xconfigure2
-rw-r--r--flowtop/Makefile3
2 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 8956f0f..5bf898a 100755
--- a/configure
+++ b/configure
@@ -343,7 +343,7 @@ int main(void)
}
EOF
- $CC -o $TMPDIR/nfcttest $TMPDIR/nfcttest.c -lnetfilter_conntrack >> config.log 2>&1
+ $CC -o $TMPDIR/nfcttest $TMPDIR/nfcttest.c $(pkg-config libnetfilter_conntrack --cflags) -lnetfilter_conntrack >> config.log 2>&1
if [ ! -x $TMPDIR/nfcttest ] ; then
echo "[NO]"
MISSING_DEFS=1
diff --git a/flowtop/Makefile b/flowtop/Makefile
index cb57cb3..bc7afb5 100644
--- a/flowtop/Makefile
+++ b/flowtop/Makefile
@@ -30,7 +30,8 @@ flowtop-objs += geoip.o \
ioops.o
endif
-flowtop-eflags = $(shell $(PKG_CONFIG) --cflags ncurses)
+flowtop-eflags = $(shell $(PKG_CONFIG) --cflags ncurses) \
+ $(shell $(PKG_CONFIG) --cflags libnetfilter_conntrack)
flowtop-confs = tcp.conf \
udp.conf \