acinclude: handle dependencies for DPDK's AF_XDP PMD
If RTE_LIBRTE_AF_XDP is enabled in the DPDK build, OVS must link
the libbpf library, otherwise build failures will occur.
@@ -359,6 +359,10 @@ AC_DEFUN([OVS_CHECK_DPDK], [
OVS_FIND_DEPENDENCY([pcap_dump_close], [pcap], [libpcap])
], [], [[#include <rte_config.h>]])
+ AC_CHECK_DECL([RTE_LIBRTE_PMD_AF_XDP], [
+ LIBBPF_LDADD="-lbpf"
+ ], [], [[#include <rte_config.h>]])
+
AC_CHECK_DECL([RTE_LIBRTE_VHOST_NUMA], [
AC_DEFINE([VHOST_NUMA], [1], [NUMA Aware vHost support detected in DPDK.])
], [], [[#include <rte_config.h>]])
