forked from enlightenment/efl
pkg-config: Brought latest "echo compatibility" changes from EFL to m4/efl.m4.
This commit is contained in:
parent
b1679131cf
commit
a9d94e4738
|
@ -57,18 +57,20 @@ case "$TERM" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
### echo compatibility
|
||||||
|
|
||||||
|
## the BSD echo does not have the -e option (it is the default behaviour)
|
||||||
|
echo_e=
|
||||||
|
if test "`echo -e x`" = "x"; then
|
||||||
|
echo_e=-e
|
||||||
|
fi
|
||||||
|
AC_SUBST([ECHO_E], [${echo_e}])
|
||||||
|
|
||||||
if test "${want_color}" = "yes"; then
|
if test "${want_color}" = "yes"; then
|
||||||
if test `echo -e x` = x; then
|
COLOR_YES=`echo $echo_e "\033@<:@1;32m"`
|
||||||
echoopt=-e
|
COLOR_NO=`echo $echo_e "\033@<:@1;31m"`
|
||||||
else
|
COLOR_OTHER=`echo $echo_e "\033@<:@1;36m"`
|
||||||
echoopt=
|
COLOR_RESET=`echo $echo_e "\033@<:@0m"`
|
||||||
fi
|
|
||||||
|
|
||||||
COLOR_YES=`echo $echoopt "\033@<:@1;32m"`
|
|
||||||
COLOR_NO=`echo $echoopt "\033@<:@1;31m"`
|
|
||||||
COLOR_OTHER=`echo $echoopt "\033@<:@1;36m"`
|
|
||||||
COLOR_RESET=`echo $echoopt "\033@<:@0m"`
|
|
||||||
|
|
||||||
else
|
else
|
||||||
COLOR_YES=""
|
COLOR_YES=""
|
||||||
COLOR_NO=""
|
COLOR_NO=""
|
||||||
|
|
Loading…
Reference in New Issue