pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/configure Added the variable CONFIG_SHELL_FLAGS tha...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6ab3d381e17f
branches: trunk
changeset: 523438:6ab3d381e17f
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Jan 08 02:26:03 2007 +0000
description:
Added the variable CONFIG_SHELL_FLAGS that is intended to be set to -x
on the command line when nothing else helps.
Added the configure-help target that runs configure --help.
diffstat:
mk/configure/configure.mk | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diffs (53 lines):
diff -r edb92ad9098e -r 6ab3d381e17f mk/configure/configure.mk
--- a/mk/configure/configure.mk Mon Jan 08 02:24:13 2007 +0000
+++ b/mk/configure/configure.mk Mon Jan 08 02:26:03 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: configure.mk,v 1.13 2007/01/07 08:50:38 rillig Exp $
+# $NetBSD: configure.mk,v 1.14 2007/01/08 02:26:03 rillig Exp $
#
# CONFIGURE_SCRIPT is the path to the script to run in order to
# configure the software for building. If the path is relative,
@@ -20,12 +20,19 @@
# Default value: defined when GNU_CONFIGURE is defined, undefined
# otherwise.
#
+# Command-line variables:
+#
+# CONFIG_SHELL_FLAGS
+# Set this to -x when you really need to see all commands that the
+# configure script executes.
+#
# Keywords: config.guess config.sub
#
CONFIGURE_SCRIPT?= ./configure
CONFIGURE_ENV+= ${ALL_ENV}
CONFIGURE_ARGS?= # empty
+CONFIG_SHELL_FLAGS?= # none
_BUILD_DEFS+= CONFIGURE_ENV CONFIGURE_ARGS
.if defined(GNU_CONFIGURE)
@@ -169,7 +176,8 @@
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
cd ${WRKSRC} && cd ${_dir_} && \
${SETENV} ${_CONFIGURE_SCRIPT_ENV} \
- ${CONFIG_SHELL} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
+ ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \
+ ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
.endfor
######################################################################
@@ -214,3 +222,13 @@
post-configure:
@${DO_NADA}
.endif
+
+# configure-help:
+# Runs ${CONFIGURE_SCRIPT} --help. It is mainly intended for
+# package developers so they can quickly see the options of the
+# configure script.
+#
+configure-help:
+.for d in ${CONFIGURE_DIRS}
+ ${RUN} cd ${WRKSRC} && cd ${d} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV} ${CONFIG_SHELL} ${CONFIGURE_SCRIPT} --help
+.endfor
Home |
Main Index |
Thread Index |
Old Index