Use printf instead of echo -n in autogen.sh

"echo -n" is not portable and on some POSIX systems it literally prints "-n".
This commit is contained in:
Ryan Schmidt 2020-08-06 20:45:44 -05:00 committed by Ebrahim Byagowi
parent 1f519c2567
commit 3d164d5883
1 changed files with 5 additions and 5 deletions

View File

@ -7,24 +7,24 @@ test -n "$srcdir" || srcdir=.
olddir=`pwd` olddir=`pwd`
cd $srcdir cd $srcdir
#echo -n "checking for ragel... " #printf "checking for ragel... "
#which ragel || { #which ragel || {
# echo "You need to install ragel... See http://www.complang.org/ragel/" # echo "You need to install ragel... See http://www.complang.org/ragel/"
# exit 1 # exit 1
#} #}
echo -n "checking for pkg-config... " printf "checking for pkg-config... "
which pkg-config || { which pkg-config || {
echo "*** No pkg-config found, please install it ***" echo "*** No pkg-config found, please install it ***"
exit 1 exit 1
} }
echo -n "checking for libtoolize... " printf "checking for libtoolize... "
which glibtoolize || which libtoolize || { which glibtoolize || which libtoolize || {
echo "*** No libtoolize (libtool) found, please install it ***" echo "*** No libtoolize (libtool) found, please install it ***"
exit 1 exit 1
} }
echo -n "checking for gtkdocize... " printf "checking for gtkdocize... "
if which gtkdocize ; then if which gtkdocize ; then
gtkdocize --copy || exit 1 gtkdocize --copy || exit 1
else else
@ -32,7 +32,7 @@ else
echo "EXTRA_DIST = " > gtk-doc.make echo "EXTRA_DIST = " > gtk-doc.make
fi fi
echo -n "checking for autoreconf... " printf "checking for autoreconf... "
which autoreconf || { which autoreconf || {
echo "*** No autoreconf (autoconf) found, please install it ***" echo "*** No autoreconf (autoconf) found, please install it ***"
exit 1 exit 1