From: Michael Jeanson Date: Mon, 21 Aug 2017 20:56:05 +0000 (-0400) Subject: Fix: support older pkg-config autoconf macros X-Git-Tag: v2.0.0-pre4~104 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=ecca2f36b50d82cdc877bd6f292a5e7d051bb48a 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 8df8dee9..7e22f2d3 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([