diff options
author | rillig <rillig@pkgsrc.org> | 2007-01-08 02:26:03 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-01-08 02:26:03 +0000 |
commit | ec83695b2a1471a474c4fe9635f1db92f479b586 (patch) | |
tree | f6a1b7631c69db386d5efcbf7974bfdd3a080572 /mk/configure | |
parent | 84805e67c426c478309ff734c34839cc253a058b (diff) | |
download | pkgsrc-ec83695b2a1471a474c4fe9635f1db92f479b586.tar.gz |
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 (limited to 'mk/configure')
-rw-r--r-- | mk/configure/configure.mk | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/mk/configure/configure.mk b/mk/configure/configure.mk index 8f02027b813..2a91885a128 100644 --- a/mk/configure/configure.mk +++ b/mk/configure/configure.mk @@ -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 @@ do-configure-script: ${_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 @@ pre-configure: 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 |