build: fix check for libbsd in meson
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 27 Apr 2018 13:49:27 +0000 (14:49 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 8 May 2018 20:21:56 +0000 (22:21 +0200)
commit9009d00746abbe17ce0a860e48d1dac9cb455199
treee6b2eb30cac2b32d3857a2b7c9d97a242fd2f538
parent89200580ef0f89ef247ca32e9299c670beb95cc0
build: fix check for libbsd in meson

When we check for libbsd we were just checking for the library itself.
However, on some distros, e.g. CentOS, libbsd will be found even though
it's not usable by DPDK as it's missing the string header. Therefore we
should check for both the library and the header file.

Fixes: 5364de644a4b ("eal: support strlcpy function")

Signed-off-by: Bruce Richarson <bruce.richardson@intel.com>
Reported-by: Vladimir Medvedkin <medvedkinv@gmail.com>
Acked-by: Vladimir Medvedkin <medvedkinv@gmail.com>
Acked-by: Luca Boccassi <bluca@debian.org>
config/meson.build