X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.in;fp=configure.in;h=5c3564c42b7b631f5cd038eae077400b0add1d93;hp=89c870b4aeaa5feaafa46eaa8be2b9aa0e9b53d6;hb=a24baf2ad70837ea46cacbfee6e03537cf284ad5;hpb=86d38d88547bd38bcb0e5a450508f1bcfc14c810 diff --git a/configure.in b/configure.in index 89c870b4..5c3564c4 100644 --- a/configure.in +++ b/configure.in @@ -2556,19 +2556,13 @@ then fi if test "x$with_libpcap" = "xyes" then - AC_CHECK_HEADERS(pcap.h, - [ - AC_DEFINE(HAVE_PCAP_H, 1, [Define to 1 if you have the header file.]) - ], [with_libpcap="no (pcap.h not found)"]) + AC_CHECK_HEADERS(pcap.h,, + [with_libpcap="no (pcap.h not found)"]) fi if test "x$with_libpcap" = "xyes" then - collect_libpcap=1 -else - collect_libpcap=0 + AC_CHECK_HEADERS(pcap-bpf.h) fi -AC_DEFINE_UNQUOTED(COLLECT_LIBPCAP, [$collect_libpcap], - [Wether or not to use the pcap library]) AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes") # }}}