build: skip detecting libpcap via pcap-config
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 9 Oct 2020 14:19:14 +0000 (15:19 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 12 Oct 2020 14:59:23 +0000 (16:59 +0200)
commitcce5aecf3c3ce30724e4686bf867f146dd2fb625
treec31db699737b746298f96d8aaba440d9878de3d2
parent1a11380bf45be83d66493819f3a6e8c9868869be
build: skip detecting libpcap via pcap-config

When compiling for a slightly different architecture, e.g. 32-bit on 64-bit
systems using CFLAGS rather than a cross-file, the pcap-config utility can
often return parameters that are unusable for the build in question, i.e.
providing the native 64-bit library paths rather than checking for 32-bit
equivalent.

Since many distros now include a version of libpcap with a
pkg-config file, and for those that don't find-library should work ok as a
fallback, we can explicitly just use pkg-config in the dependency search,
causing meson to skip trying to use pcap-config.

Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Luca Boccassi <bluca@debian.org>
Tested-by: David Marchand <david.marchand@redhat.com>
config/meson.build