[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/06: GUILE_PKG bails out when 'pkg-config' is missing
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 02/06: GUILE_PKG bails out when 'pkg-config' is missing |
Date: |
Wed, 27 May 2020 16:48:40 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guile.
commit 02a31d6885e1ee4dde9d843c4bdf501a5b952983
Author: Mathieu Lirzin <mthl@gnu.org>
AuthorDate: Sat May 9 01:02:01 2020 +0200
GUILE_PKG bails out when 'pkg-config' is missing
* 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 <ludo@gnu.org>
---
meta/guile.m4 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/guile.m4 b/meta/guile.m4
index bc0daaf..6968973 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=""
- [Guile-commits] branch master updated (db4af31 -> 4310567), Ludovic Courtès, 2020/05/27
- [Guile-commits] 02/06: GUILE_PKG bails out when 'pkg-config' is missing,
Ludovic Courtès <=
- [Guile-commits] 03/06: doc: Reword unclear sentence about programs., Ludovic Courtès, 2020/05/27
- [Guile-commits] 06/06: doc: Fix a few typos in vm section., Ludovic Courtès, 2020/05/27
- [Guile-commits] 04/06: doc: Rephrase documentation of 'thunk?'., Ludovic Courtès, 2020/05/27
- [Guile-commits] 05/06: doc: Fix typos in the manual., Ludovic Courtès, 2020/05/27
- [Guile-commits] 01/06: doc: Add reference to Guile Hall in the manual., Ludovic Courtès, 2020/05/27