Skip to content

Commit 5fe6919

Browse files
committed
Makefile.in: tty at reconfig
* aclocal.m4 (_COLORIZE_RESULT_PREPARE): force tty for reconfig. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 2149403 commit 5fe6919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ uncommon.mk: $(srcdir)/common.mk
299299
.PHONY: reconfig
300300
reconfig-args = $(srcdir)/$(CONFIGURE) $(configure_args)
301301
config.status-args = ./config.status --recheck
302-
reconfig-exec-0 = exec 3>&1; exit `exec 4>&1; { "$$@" 3>&- 4>&-; echo $$? 1>&4; } | fgrep -v '(cached)' 1>&3 3>&- 4>&-`
302+
reconfig-exec-0 = test -t 1 && tty=yes; exec 3>&1; exit `exec 4>&1; { CONFIGURE_TTY=$$tty "$$@" 3>&- 4>&-; echo $$? 1>&4; } | fgrep -v '(cached)' 1>&3 3>&- 4>&-`
303303
reconfig-exec-1 = set -x; "$$@"
304304

305305
reconfig config.status: $(srcdir)/$(CONFIGURE) $(srcdir)/enc/Makefile.in \

aclocal.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
44
msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset=
5-
AS_IF([test -t 1], [
5+
AS_IF([test "x${CONFIGURE_TTY}" = xyes -o -t 1], [
66
msg_begin="`tput smso 2>/dev/null`"
77
AS_CASE(["$msg_begin"], ['@<:@'*m],
88
[msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"

0 commit comments

Comments
 (0)