summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-18 18:16:38 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-18 18:18:23 +0200
commit6c1b61b0292359304863cd6e593b8f5d7a2cb94a (patch)
tree3768a863cbf68838a3b10dbc323e8db7d49c0403 /configure.in
parent970b56c40c0c66125d4dfe6d7708c3535551cd4a (diff)
configure: test if tput(1) exists before calling it
Change-Id: I63576b42187fb0cbf3fc867487e9530fd11319d5
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index eafb07b217df..7f9ec0119261 100644
--- a/configure.in
+++ b/configure.in
@@ -56,7 +56,7 @@ add_warning()
if test "$have_WARNINGS" = "no" ; then
echo "*************************************" >> warn
have_WARNINGS="yes"
- if test $(tput colors) -ge 8 ; then
+ if which tput >/dev/null 2>/dev/null && test `tput colors` -ge 8; then
dnl <esc> as actual byte (U+1b), [ escaped using quadrigraph @<:@
COLORWARN='*@<:@1;33;40m WARNING @<:@0m:'
else