diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-05-17 10:47:30 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-05-17 10:47:30 -0700 |
commit | 032642d666080cbd1a7f759ece90c2f06ed69fe3 (patch) | |
tree | 0519ba6112f514fdd8c78bb2ac4bae0886257702 /configure | |
parent | e8cd6c12e3a15dda738c5215b997c0b3fe5e2096 (diff) | |
download | tcpdump-032642d666080cbd1a7f759ece90c2f06ed69fe3.tar.gz |
Don't assume you have <net/if_pflog.h> if you have <net/pfvar.h>.
Debian/kFreeBSD ships <net/pfvar.h> but not <net/if_pflog.h>.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -4213,7 +4213,25 @@ fi done if test "$ac_cv_header_net_pfvar_h" = yes; then - LOCALSRC="print-pflog.c $LOCALSRC" + for ac_header in net/if_pflog.h +do : + ac_fn_c_check_header_compile "$LINENO" "net/if_pflog.h" "ac_cv_header_net_if_pflog_h" "#include <sys/types.h> + #include <sys/socket.h> + #include <net/if.h> + #include <net/pfvar.h> +" +if test "x$ac_cv_header_net_if_pflog_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NET_IF_PFLOG_H 1 +_ACEOF + +fi + +done + + if test "$ac_cv_header_net_if_pflog_h" = yes; then + LOCALSRC="print-pflog.c $LOCALSRC" + fi fi for ac_header in netinet/if_ether.h do : |