Subject: bug#41142: closed (Re: bug#41142: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 27 May 2020 20:23:02 +0000

Your bug report

#41142: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
41142: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41142
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#41142: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing
From: Ludovic Courtès <[email-masked]>
To: Mathieu Lirzin <[email-masked]>
Cc: [email-masked]
Date: Wed, 27 May 2020 22:22:30 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Mathieu,

Mathieu Lirzin <[email-masked]> skribis:

> * meta/guile.m4 (GUILE_PKG): Ensure that 'pkg-config' is available. Use
> AC_REQUIRE for PKG_PROG_PKG_CONFIG to avoid unnecessary invocations.

Applied, thanks!

Ludo’.

Subject: [PATCH] GUILE_PKG bails out when 'pkg-config' is missing
From: Mathieu Lirzin <[email-masked]>
To: [email-masked]
Cc: Mathieu Lirzin <[email-masked]>
Date: Sat, 9 May 2020 01:02:01 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* meta/guile.m4 (GUILE_PKG): Ensure that 'pkg-config' is available. Use
AC_REQUIRE for PKG_PROG_PKG_CONFIG to avoid unnecessary invocations.
---
 meta/guile.m4 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/guile.m4 b/meta/guile.m4
index bc0daaf46..508f8b9d4 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(["Missing pkg-config"])
+  fi
   _guile_versions_to_search="m4_default([$1], [3.0 2.2 2.0])"
   if test -n "$GUILE_EFFECTIVE_VERSION"; then
     _guile_tmp=""
-- 
2.20.1