port: fix pcap support with meson
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 24 Sep 2019 12:04:14 +0000 (13:04 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Oct 2019 16:23:02 +0000 (17:23 +0100)
commit268fa581b1ffbd3077279c18f5a86992b747a9c0
tree41a6b9af6c36c1f9bfca7d1cdf86b2ef588f304d
parentf1c16d40ed843923bde9b9e8362f11cffa486fb8
port: fix pcap support with meson

The meson build was missing the define to enable pcap port support if
libpcap (development) package was found on the build platform. Rather than
duplicating the checks for libpcap found in the pcap net PMD build file, we
can move the checks to the top-level config directory and reference the
RTE_PCAP_PORT setting elsewhere in the build.

Bugzilla ID: 351
Fixes: 5b9656b157d3 ("lib: build with meson")
Cc: stable@dpdk.org
Reported-by: Cristian Bidea <cristian.bidea@keysight.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Cristian Bidea <cristian.bidea@keysight.com>
config/meson.build
drivers/net/pcap/meson.build
lib/librte_port/meson.build