diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-08 18:49:25 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-08 18:49:25 +0200 |
commit | 36476eaf763d29e8885f519ab1e0b8beda28074a (patch) | |
tree | 72efadf2d7c25299e2f0c351b906faa92d32a2eb /netsniff-ng | |
parent | 78b9949fa486acc9a192df6e6283699fbe9b813a (diff) |
configure: netsniff-ng: libpcap is not a hard dependency
netsniff-ng uses libpcap only for high-level filter compiling.
Thus, let netsniff-ng not "hard-depend" on libpcap, but rather
disable filter compiling in case the user does not want to
install libpcap.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'netsniff-ng')
-rw-r--r-- | netsniff-ng/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/netsniff-ng/Makefile b/netsniff-ng/Makefile index 356ae2e..e05ad1d 100644 --- a/netsniff-ng/Makefile +++ b/netsniff-ng/Makefile @@ -1,10 +1,13 @@ netsniff-ng-libs = -lGeoIP \ $(shell pkg-config --libs libnl-3.0) \ $(shell pkg-config --libs libnl-genl-3.0) \ - -lpcap \ -lpthread \ -lz +ifeq ($(CONFIG_LIBPCAP), 1) +netsniff-ng-libs += -lpcap +endif + netsniff-ng-objs = dissector.o \ dissector_eth.o \ dissector_80211.o \ @@ -46,7 +49,6 @@ netsniff-ng-objs = dissector.o \ xmalloc.o \ hash.o \ bpf.o \ - bpf_comp.o \ oui.o \ pcap_rw.o \ pcap_sg.o \ @@ -60,3 +62,7 @@ netsniff-ng-objs = dissector.o \ geoip.o \ mac80211.o \ netsniff-ng.o + +ifeq ($(CONFIG_LIBPCAP), 1) +netsniff-ng-objs += bpf_comp.o +endif |