Kaydet (Commit) 6c1b61b0 authored tarafından Michael Stahl's avatar Michael Stahl

configure: test if tput(1) exists before calling it

Change-Id: I63576b42187fb0cbf3fc867487e9530fd11319d5
üst 970b56c4
...@@ -56,7 +56,7 @@ add_warning() ...@@ -56,7 +56,7 @@ add_warning()
if test "$have_WARNINGS" = "no" ; then if test "$have_WARNINGS" = "no" ; then
echo "*************************************" >> warn echo "*************************************" >> warn
have_WARNINGS="yes" 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 @<:@ dnl <esc> as actual byte (U+1b), [ escaped using quadrigraph @<:@
COLORWARN='*@<:@1;33;40m WARNING @<:@0m:' COLORWARN='*@<:@1;33;40m WARNING @<:@0m:'
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment