From 02a31d6885e1ee4dde9d843c4bdf501a5b952983 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Sat, 9 May 2020 01:02:01 +0200 Subject: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * meta/guile.m4 (GUILE_PKG): Ensure that 'pkg-config' is available. Use AC_REQUIRE for PKG_PROG_PKG_CONFIG to avoid unnecessary invocations. Signed-off-by: Ludovic Courtès --- meta/guile.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/guile.m4 b/meta/guile.m4 index bc0daaf46..696897364 100644 --- a/meta/guile.m4 +++ b/meta/guile.m4 @@ -60,7 +60,10 @@ # @code{AC_SUBST}. # AC_DEFUN([GUILE_PKG], - [PKG_PROG_PKG_CONFIG + [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + if test "x$PKG_CONFIG" = x; then + AC_MSG_ERROR([pkg-config is missing, please install it]) + fi _guile_versions_to_search="m4_default([$1], [3.0 2.2 2.0])" if test -n "$GUILE_EFFECTIVE_VERSION"; then _guile_tmp=""