summaryrefslogtreecommitdiff
path: root/tool/m4/_colorize_result_prepare.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tool/m4/_colorize_result_prepare.m4')
-rw-r--r--tool/m4/_colorize_result_prepare.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/m4/_colorize_result_prepare.m4 b/tool/m4/_colorize_result_prepare.m4
index c8478bd0b6..8439acf3ed 100644
--- a/tool/m4/_colorize_result_prepare.m4
+++ b/tool/m4/_colorize_result_prepare.m4
@@ -9,6 +9,7 @@ AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
[configure_tty=0])])
AS_IF([test $configure_tty -eq 1], [
msg_begin="`tput smso 2>/dev/null`"
+ AS_IF([test -z "$msg_begin"], [msg_begin="`tput so 2>/dev/null`"])
AS_CASE(["$msg_begin"], ['@<:@'*m],
[msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"
msg_checking="${msg_begin}33m"