summaryrefslogtreecommitdiffstats
path: root/output/pcap
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2022-01-09 11:57:47 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2022-01-11 22:15:33 +0100
commitbe4df8f66eb843dc19c7d1fed7c33fd7a40c2e21 (patch)
tree99953ed7f800622791f4fed6c88c4f4e7e1f614c /output/pcap
parent3d64f815687c33c3dbaa51ca4f3ee51441fde487 (diff)
build: use pkg-config or pcap-config for libpcap
Recent versions of libpcap support pkg-config. Older versions provide a pcap-config script. Use pkg-config if available, otherwise fall back to pcap-config. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'output/pcap')
-rw-r--r--output/pcap/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/output/pcap/Makefile.am b/output/pcap/Makefile.am
index 9b4b3dd..b5064ea 100644
--- a/output/pcap/Makefile.am
+++ b/output/pcap/Makefile.am
@@ -1,5 +1,7 @@
include $(top_srcdir)/Make_global.am
+AM_CPPFLAGS += $(libpcap_CFLAGS)
+
pkglib_LTLIBRARIES = ulogd_output_PCAP.la
ulogd_output_PCAP_la_SOURCES = ulogd_output_PCAP.c