civodul pushed a commit to branch devel
in repository shepherd.

commit d69163a37f5cffc08d37c3c8f363400e284c2772
Author: Ludovic Courtès <l...@gnu.org>
AuthorDate: Thu Sep 26 15:22:27 2024 +0200

    build: Explicitly check that ‘pkg.m4’ is available.
    
    * configure.ac: Add ‘m4_pattern_forbid’ uses for pkg.m4.
    
    Reported-by: Attila Lendvai <att...@lendvai.name>
---
 configure.ac | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c992e92..bcfef13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,8 +47,13 @@ AC_PATH_PROG([TIMEOUT], [timeout], [not-found])
 AM_CONDITIONAL([HAVE_TIMEOUT], [test "x$TIMEOUT" != "xnot-found"])
 AC_SUBST([TIMEOUT])
 
+dnl We require pkg.m4 (from pkg-config) and guile.m4 (from Guile.)
+dnl Make sure they are available.
+m4_pattern_forbid([PKG_CHECK_MODULES])
+m4_pattern_forbid([GUILE_MODULE_AVAILABLE])
+m4_pattern_forbid([GUILE_PKG])
+
 dnl Check for Guile.
-m4_pattern_forbid([^GUILE_PKG$])
 GUILE_PKG([3.0])
 
 dnl Checks for programs.

Reply via email to