summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-05-21 20:50:54 +0000
committerrillig <rillig@pkgsrc.org>2020-05-21 20:50:54 +0000
commit8e57c858a30009d531a2c98956af89fb2d48122e (patch)
treeaa0a36d0a9744c748d79fef0b8c959824f086a87
parentf10db914efc69561b984074ae252d34998b4a53f (diff)
downloadpkgsrc-8e57c858a30009d531a2c98956af89fb2d48122e.tar.gz
mk/configure: add variable GNU_CONFIGURE_QUIET
This allows bulk builds or other setups to see interesting error messages, without them being hidden in the noise of "checking ...".
-rw-r--r--mk/configure/gnu-configure.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/configure/gnu-configure.mk b/mk/configure/gnu-configure.mk
index 7d42d9159ed..bc745558b33 100644
--- a/mk/configure/gnu-configure.mk
+++ b/mk/configure/gnu-configure.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gnu-configure.mk,v 1.24 2020/05/21 15:29:25 rillig Exp $
+# $NetBSD: gnu-configure.mk,v 1.25 2020/05/21 20:50:54 rillig Exp $
#
# Package-settable variables:
#
@@ -9,6 +9,14 @@
# Possible: yes no
# Default: undefined
#
+# GNU_CONFIGURE_QUIET
+# When set to "yes", runs the configure scripts in quiet mode,
+# which does not print the typical "checking for ...".
+#
+# By omitting these, any accidental output or other error messages
+# are more easily visible in the log. This can help find
+# unportable use of tools like sed, awk, test.
+#
# GNU_CONFIGURE_STRICT
# Whether unknown --enable/--disable/--with/--without options make
# the package fail immediately.
@@ -209,6 +217,10 @@ GNU_CONFIGURE_STRICT?= warn
CONFIGURE_ARGS+= --enable-option-checking=yes
.endif
+.if ${GNU_CONFIGURE_QUIET:Uno:tl} == yes
+CONFIGURE_ARGS+= --quiet
+.endif
+
_SHOW_UNKNOWN_CONFIGURE_OPTIONS_CMD= \
cd ${WRKSRC}; \
configures=$$( \