diff options
author | rillig <rillig@pkgsrc.org> | 2019-04-28 13:18:18 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2019-04-28 13:18:18 +0000 |
commit | ad1ec59e617e0429287f6974e22e6c56c5c4f9d8 (patch) | |
tree | fed41fc34c95cf6755041e79ce1935549571836e | |
parent | c545c7a290b3144bea49696cd89baff248395a70 (diff) | |
download | pkgsrc-ad1ec59e617e0429287f6974e22e6c56c5c4f9d8.tar.gz |
mk/configure: when there are multiple CONFIGURE_DIRS, print current dir
This helps to find out which of the several configure scripts has
problems, for example when checking for unknown command line options
using GNU_CONFIGURE_STRICT.
-rw-r--r-- | mk/configure/configure.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/configure/configure.mk b/mk/configure/configure.mk index 50f208732b1..01366f9fc6e 100644 --- a/mk/configure/configure.mk +++ b/mk/configure/configure.mk @@ -1,4 +1,4 @@ -# $NetBSD: configure.mk,v 1.27 2019/04/28 11:25:32 rillig Exp $ +# $NetBSD: configure.mk,v 1.28 2019/04/28 13:18:18 rillig Exp $ # # = Package-settable variables = # @@ -206,6 +206,9 @@ _CONFIGURE_SCRIPT_ENV+= ${CONFIGURE_ENV} .PHONY: do-configure-script do-configure-script: .for _dir_ in ${CONFIGURE_DIRS} +. if ${CONFIGURE_DIRS:[#]} != 1 + ${RUN} ${STEP_MSG} "Running "${CONFIGURE_SCRIPT:Q}" in "${_dir_:Q} +. endif ${RUN}${_ULIMIT_CMD} \ cd ${WRKSRC} && cd ${_dir_} && \ ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} \ |