AboutSummaryRefsLogTreeCommitDiffStats
path: root/configure.ac
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2020-05-08 19:24:00 +0200
committerMathieu Lirzin <mthl@gnu.org>2020-05-17 11:51:55 +0200
commitbfe2a8921226cc7ccb54357d4f0c07534b763671 (patch)
tree57906e2a02664c49052f62248819a286d048c46c /configure.ac
parent6ae322468832759c1950779d6faff0fa550580ce (diff)
downloadmcron-bfe2a8921226cc7ccb54357d4f0c07534b763671.tar.gz
mcron-bfe2a8921226cc7ccb54357d4f0c07534b763671.tar.bz2
mcron-bfe2a8921226cc7ccb54357d4f0c07534b763671.zip
build: Detect guile M4 macro expansion errors
This ensures that the absence of 'pkg-config' or 'guile' M4 macros expansion do not pass the bootstrap step. * configure.ac: Allow or forbid some M4 macros patterns in the generated 'configure' script.
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f92619b..d27e12e 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
## Process this file with autoconf to produce a configure script.
#
# Copyright © 2003, 2005, 2012, 2014 Dale Mellor <mcron-lsfnyl@rdmp.org>
-# Copyright © 2015, 2016, 2017, 2018 Mathieu Lirzin <mthl@gnu.org>
+# Copyright © 2015, 2016, 2017, 2018, 2020 Mathieu Lirzin <mthl@gnu.org>
# Copyright © 2018 宋文武 <iyzsong@member.fsf.org>
#
# This file is part of GNU Mcron.
@@ -33,6 +33,13 @@ AM_SILENT_RULES([yes]) # Enables silent rules by default.
AC_CANONICAL_HOST
+dnl We require pkg.m4 (from pkg-config) and guile.m4 (from Guile.)
+dnl Make sure they are available when generating the configure script.
+m4_pattern_forbid([^PKG_PROG])
+m4_pattern_forbid([^PKG_CHECK])
+m4_pattern_forbid([^GUILE_P])
+m4_pattern_allow([^GUILE_PKG_ERRORS])
+
# Check for Guile development files.
GUILE_PKG([3.0 2.2 2.0])