From a32d7528f62ea5a61a3d35fe3056f62153fd27c3 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 5 Feb 2018 10:22:16 +0100 Subject: [PATCH] Check for pkgconfig's presence before using it. Fixes #710. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 559dc4db..df922e07 100644 --- a/configure.ac +++ b/configure.ac @@ -259,6 +259,7 @@ fi AC_ARG_ENABLE(delayacct, [AS_HELP_STRING([--enable-delayacct], [enable linux delay accounting])],, enable_delayacct="no") if test "x$enable_delayacct" = xyes then + PKG_PROG_PKG_CONFIG() PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [], [missing_libraries="$missing_libraries libnl-3"]) PKG_CHECK_MODULES(LIBNL3GENL, libnl-genl-3.0, [], [missing_libraries="$missing_libraries libnl-genl-3"]) CFLAGS+=" $LIBNL3_CFLAGS $LIBNL3GENL_CFLAGS"