]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/Makefile.linux
pppd/Makefile.linux: do not check for bpf header presence on the host (#201)
[ppp.git] / pppd / Makefile.linux
index a971ff34b33d7506865912f75acbe26d5bb18614..15fb8da976a6fc24153da9ce39b423e3113a8664 100644 (file)
@@ -140,7 +140,7 @@ CFLAGS   += -DHAS_SHADOW
 #LIBS     += -lshadow $(LIBS)
 endif
 
-ifneq ($(wildcard $(shell $(CC) --print-sysroot)/usr/include/crypt.h),)
+ifeq ($(shell echo '\#include <crypt.h>' | $(CC) -E - >/dev/null 2>&1 && echo yes),yes)
 CFLAGS  += -DHAVE_CRYPT_H=1
 LIBS   += -lcrypt
 endif
@@ -207,11 +207,9 @@ 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