From: Michael Jeanson Date: Mon, 21 Aug 2017 20:56:05 +0000 (-0400) Subject: Fix: support older pkg-config autoconf macros X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3d130ada32fe8c36fa77f0ca2a535dc89141419f;p=deliverable%2Fbabeltrace.git Fix: support older pkg-config autoconf macros Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/configure.ac b/configure.ac index 4c1b31598..3102dc72e 100644 --- a/configure.ac +++ b/configure.ac @@ -630,6 +630,11 @@ LIBS="$LIBS $GLIB_LIBS" # glib.h is not platform specific but it includes glibconfig.h which is and # is usually installed in a non-standard path. +# Older versions of the pkg-config macros disallows PKG_* in the autoconf +# output. Specifically allow pkg_config_libdir to be able to print the +# error message. +m4_pattern_allow([PKG_CONFIG_LIBDIR]) + save_CFLAGS=${CFLAGS} CFLAGS="${CFLAGS} ${AM_CFLAGS}" AC_COMPILE_IFELSE([