diff options
author | Martin Hauke <mardnh@gmx.de> | 2015-11-05 12:54:09 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-11-05 13:25:29 +0100 |
commit | 19991f90d8398a944721b684b1584c1e339c6fec (patch) | |
tree | 1a19946b0c447eab58227bc9dec1a1e4ff587849 | |
parent | ced058002d01024a18e9d9e2dda2a9af5854e232 (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-x | configure | 2 | ||||
-rw-r--r-- | flowtop/Makefile | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -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 \ |