Only compile in filtering if /usr/include/pcap-bpf.h exists.
authorPaul Mackerras <paulus@samba.org>
Mon, 1 Nov 2004 03:49:20 +0000 (03:49 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 1 Nov 2004 03:49:20 +0000 (03:49 +0000)
pppd/Makefile.linux

index cfa2d1a1fe870e44bebc32d6adc2622bc8111831..aaf5c31322cf36277103bbc1fbf8644334bf96aa 100644 (file)
@@ -1,6 +1,6 @@
 #
 # pppd makefile for Linux
-# $Id: Makefile.linux,v 1.64 2004/10/31 22:09:03 paulus Exp $
+# $Id: Makefile.linux,v 1.65 2004/11/01 03:49:20 paulus Exp $
 #
 
 # Default installation locations
@@ -171,9 +171,11 @@ LIBS       += -ldl
 endif
 
 ifdef FILTER
+ifneq ($(wildcard /usr/include/pcap-bpf.h),)
 LIBS    += -lpcap
 CFLAGS  += -DPPP_FILTER
 endif
+endif
 
 ifdef HAVE_INET6
      PPPDSRCS += ipv6cp.c eui64.c