From: Jeremy Sowden Date: Sun, 9 Jan 2022 11:57:51 +0000 (+0000) Subject: build: if `--enable-pcap` is `yes`, abort if libpcap is not found X-Git-Tag: ulogd-2.0.8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f807212797e94533f73c4e8640e43cd00d5648d9;p=thirdparty%2Fulogd2.git build: if `--enable-pcap` is `yes`, abort if libpcap is not found If libpcap support has been explicitly requested, abort if it is not available. Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- diff --git a/configure.ac b/configure.ac index 620cb34..41eeb52 100644 --- a/configure.ac +++ b/configure.ac @@ -213,6 +213,12 @@ AS_IF([test "x$enable_pcap" != "xno"], [ AC_MSG_RESULT([no]) ]) + AS_IF([test "x$libpcap_LIBS" = "x"], [ + AS_IF([test "x$enable_pcap" = "xyes"], [ + AC_MSG_ERROR([libpcap not found]) + ]) + ]) + ]) ])