Code

configure.ac: dpdk: tolerate no pkg-config
authorroot <root@zesty-test.lxd>
Thu, 17 Aug 2017 14:18:02 +0000 (14:18 +0000)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 17 Aug 2017 14:38:17 +0000 (16:38 +0200)
Since pull request #2400 pkg-config works great for dpdk, but not if
there is no pkg-config around at all.
To fix that the PKG_CHECK_MODULES macro needs to define a valid fourth
argument, otherwise it will error out.

This closes 2404

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
configure.ac

index 13e63404995c2920c5668d0b1c42ca9a57aa4774..14f85acbe0437907bc428f51eea02727ee1fbf21 100644 (file)
@@ -2360,7 +2360,8 @@ AC_ARG_WITH([libdpdk],
 )
 
 if test "x$with_libdpdk" != "xno"; then
-  PKG_CHECK_MODULES([DPDK], [libdpdk])
+  PKG_CHECK_MODULES([DPDK], [libdpdk], [],
+                   [AC_MSG_NOTICE([no DPDK pkg-config, using defaults])])
   if test "x$LIBDPDK_CPPFLAGS" = "x"; then
     LIBDPDK_CPPFLAGS="-I/usr/include/dpdk"
   fi