From 36476eaf763d29e8885f519ab1e0b8beda28074a Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Mon, 8 Jul 2013 18:49:25 +0200 Subject: 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 --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index f31cfa0..04c9c4e 100755 --- a/configure +++ b/configure @@ -359,11 +359,12 @@ EOF $CC -o $TMPDIR/pcaptest $TMPDIR/pcaptest.c -lpcap >> $TMPDIR/config.log 2>&1 if [ ! -x $TMPDIR/pcaptest ] ; then echo "[NO]" + echo "CONFIG_LIBPCAP=0" >> Config MISSING_DEFS=1 - tools_remove "netsniff-ng" tools_remove "mausezahn" else echo "[YES]" + echo "CONFIG_LIBPCAP=1" >> Config fi } -- cgit v1.2.3-54-g00ecf