]> git.proxmox.com Git - mirror_ovs.git/commit - acinclude.m4
acinclude: Also use LIBS from dpkg pkg-config
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Tue, 12 Feb 2019 06:29:58 +0000 (07:29 +0100)
committerIan Stokes <ian.stokes@intel.com>
Wed, 13 Feb 2019 20:15:11 +0000 (20:15 +0000)
commit5b5aa2d8a54c006b6c5239d04b7a751ca5ff5d44
treeee8e3cc7959c28e9eaaffc3be7bc765b7890fb77
parent439abc0999e57df6dd335feefc87f2f3d9d6cfb9
acinclude: Also use LIBS from dpkg pkg-config

DPDK 18.11 builds using the more modern meson build system no more
provide the -ldpdk linker script. Instead it is expected to use
pkgconfig for linker options as well.

This change will set DPDK_LIB from pkg-config (if pkg-config was
available) and since that already carries the whole-archive flags
around the PMDs skips the further wrapping in more whole-archive
if that is already part of DPDK_LIB.

To work reliable in all environments this needs pkg-config 0.29.1.
We want to be able to use PKG_CHECK_MODULES_STATIC which
is not yet available in 0.24. Therefore update pkg.m4
to pkg-config 0.29.1.

This should be backport-safe as these macro files are all versioned.
autoconf is smart enough to check the version if you have it locally,
and if the system's is higher, it will use that one instead.

Acked-by: Luca Boccassi <bluca@debian.org>
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
acinclude.m4
m4/pkg.m4