1 https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/53414
5 https://bugs.ruby-lang.org/issues/11941
7 It might be incorporated in the following release
10 ===================================================================
11 --- a/aclocal.m4 (revision 53413)
12 +++ b/aclocal.m4 (revision 53414)
16 -AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
17 - msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset=
18 - AS_IF([test "x${CONFIGURE_TTY}" = xyes -o -t 1], [
19 - msg_begin="`tput smso 2>/dev/null`"
20 - AS_CASE(["$msg_begin"], ['
\e@<:@'*m],
21 - [msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"
22 - msg_checking="${msg_begin}33m"
23 - AS_IF([test ${TEST_COLORS:+set}], [
24 - msg_result_yes=[`expr ":$TEST_COLORS:" : ".*:pass=\([^:]*\):"`]
25 - msg_result_no=[`expr ":$TEST_COLORS:" : ".*:fail=\([^:]*\):"`]
26 - msg_result_other=[`expr ":$TEST_COLORS:" : ".*:skip=\([^:]*\):"`]
28 - msg_result_yes="${msg_begin}${msg_result_yes:-32;1}m"
29 - msg_result_no="${msg_begin}${msg_result_no:-31;1}m"
30 - msg_result_other="${msg_begin}${msg_result_other:-33;1}m"
31 - msg_reset="${msg_begin}m"
35 - AS_REQUIRE_SHELL_FN([colorize_result],
36 - [AS_FUNCTION_DESCRIBE([colorize_result], [MSG], [Colorize result])],
38 - [yes], [AS_ECHO(["${msg_result_yes}$[]1${msg_reset}]")],
39 - [no], [AS_ECHO(["${msg_result_no}$[]1${msg_reset}]")],
40 - [AS_ECHO(["${msg_result_other}$[]1${msg_reset}]")])])
43 -AC_DEFUN([COLORIZE_RESULT], [AC_REQUIRE([_COLORIZE_RESULT_PREPARE])dnl
46 - [yes], [AS_ECHO(["${msg_result_yes}$1${msg_reset}"])],
47 - [no], [AS_ECHO(["${msg_result_no}$1${msg_reset}"])],
48 - [AS_ECHO(["${msg_result_other}$1${msg_reset}"])])],
49 - [colorize_result "$1"]) dnl
52 -AC_DEFUN([AC_CHECKING],[dnl
53 -AC_REQUIRE([_COLORIZE_RESULT_PREPARE])dnl
54 -AS_MESSAGE([checking ${msg_checking}$1${msg_reset}...])])
56 -AC_DEFUN([AC_MSG_RESULT], [dnl
57 -{ _AS_ECHO_LOG([result: $1])
58 -COLORIZE_RESULT([$1]); dnl
61 ===================================================================
62 --- a/acinclude.m4 (revision 0)
63 +++ b/acinclude.m4 (revision 53414)
67 +AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
68 + msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset=
69 + AS_IF([test "x${CONFIGURE_TTY}" = xyes -o -t 1], [
70 + msg_begin="`tput smso 2>/dev/null`"
71 + AS_CASE(["$msg_begin"], ['
\e@<:@'*m],
72 + [msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"
73 + msg_checking="${msg_begin}33m"
74 + AS_IF([test ${TEST_COLORS:+set}], [
75 + msg_result_yes=[`expr ":$TEST_COLORS:" : ".*:pass=\([^:]*\):"`]
76 + msg_result_no=[`expr ":$TEST_COLORS:" : ".*:fail=\([^:]*\):"`]
77 + msg_result_other=[`expr ":$TEST_COLORS:" : ".*:skip=\([^:]*\):"`]
79 + msg_result_yes="${msg_begin}${msg_result_yes:-32;1}m"
80 + msg_result_no="${msg_begin}${msg_result_no:-31;1}m"
81 + msg_result_other="${msg_begin}${msg_result_other:-33;1}m"
82 + msg_reset="${msg_begin}m"
86 + AS_REQUIRE_SHELL_FN([colorize_result],
87 + [AS_FUNCTION_DESCRIBE([colorize_result], [MSG], [Colorize result])],
89 + [yes], [AS_ECHO(["${msg_result_yes}$[]1${msg_reset}]")],
90 + [no], [AS_ECHO(["${msg_result_no}$[]1${msg_reset}]")],
91 + [AS_ECHO(["${msg_result_other}$[]1${msg_reset}]")])])
94 +AC_DEFUN([COLORIZE_RESULT], [AC_REQUIRE([_COLORIZE_RESULT_PREPARE])dnl
97 + [yes], [AS_ECHO(["${msg_result_yes}$1${msg_reset}"])],
98 + [no], [AS_ECHO(["${msg_result_no}$1${msg_reset}"])],
99 + [AS_ECHO(["${msg_result_other}$1${msg_reset}"])])],
100 + [colorize_result "$1"]) dnl
103 +AC_DEFUN([AC_CHECKING],[dnl
104 +AC_REQUIRE([_COLORIZE_RESULT_PREPARE])dnl
105 +AS_MESSAGE([checking ${msg_checking}$1${msg_reset}...])])
107 +AC_DEFUN([AC_MSG_RESULT], [dnl
108 +{ _AS_ECHO_LOG([result: $1])
109 +COLORIZE_RESULT([$1]); dnl
112 Property changes on: acinclude.m4
113 ___________________________________________________________________
117 \ No newline at end of property
119 ===================================================================
120 --- a/common.mk (revision 53413)
121 +++ b/common.mk (revision 53414)
123 $(Q)$(RM) id.c id.h probes.dmyh
124 $(Q)$(CHDIR) $(srcdir) && $(exec) $(RM) parse.c parse.h lex.c enc/trans/newline.c $(PRELUDES) revision.h
125 $(Q)$(CHDIR) $(srcdir) && $(exec) $(RM) id.c id.h probes.dmyh
126 - $(Q)$(CHDIR) $(srcdir) && $(exec) $(RM) configure tool/config.guess tool/config.sub gems/*.gem
127 + $(Q)$(CHDIR) $(srcdir) && $(exec) $(RM) configure aclocal.m4 tool/config.guess tool/config.sub gems/*.gem
128 realclean-ext:: PHONY
129 realclean-golf: distclean-golf
130 $(Q)$(RM) $(GOLFPRELUDES)
132 ===================================================================
133 --- a/Makefile.in (revision 53413)
134 +++ b/Makefile.in (revision 53414)
140 CONFIGURE = @CONFIGURE@
142 MKFILES = @MAKEFILES@
144 $(srcdir)/$(CONFIGURE): $(srcdir)/configure.in $(srcdir)/aclocal.m4
145 $(CHDIR) $(srcdir) && exec $(AUTOCONF) -o $(@F)
147 +$(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
148 + $(CHDIR) $(srcdir) && exec $(ACLOCAL)