diff options
author | Martin Schwenke <martin@meltin.net> | 2021-07-23 14:39:05 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2022-09-20 10:43:37 +0000 |
commit | a83e9ca696a37b00231ce40cca5a043beb9b5590 (patch) | |
tree | 772a5b2bb7942e1f73aa50d22d2bff39d98ef2fc /ctdb | |
parent | 3b6255b5b902a062744912a6a3a82f7fb7279b23 (diff) | |
download | samba-a83e9ca696a37b00231ce40cca5a043beb9b5590.tar.gz |
ctdb-build: Use pcap-config when available
The build currently fails on AIX, which can't find the pcap headers
because they're installed in a non-standard place. However, there is
a pcap-config script available.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/wscript | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/wscript b/ctdb/wscript index c082c3b7a7d..8f6e2bb5203 100644 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -204,6 +204,12 @@ def configure(conf): if sys.platform.startswith('linux'): conf.SET_TARGET_TYPE('pcap', 'EMPTY') else: + conf.find_program('pcap-config', var='PCAP_CONFIG') + if conf.env.PCAP_CONFIG: + conf.CHECK_CFG(path=conf.env.PCAP_CONFIG, + args="--cflags --libs", + package="", + uselib_store="PCAP") if not conf.CHECK_HEADERS('pcap.h'): Logs.error('Need libpcap') sys.exit(1) |