From: Miroslav Lichvar Date: Thu, 23 Jul 2015 09:23:36 +0000 (+0200) Subject: configure: replace echo -n with printf X-Git-Tag: 2.2-pre1~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a9a53e69d8340b588babf991875adfd6ead5d7;p=thirdparty%2Fchrony.git configure: replace echo -n with printf POSIX doesn't require echo to support -n. --- diff --git a/configure b/configure index d069c658..4942722c 100755 --- a/configure +++ b/configure @@ -41,7 +41,7 @@ test_code () { ldflags=$4 code=$5 - echo -n "Checking for $name : " + printf "%s" "Checking for $name : " ( for h in $headers; do @@ -174,12 +174,12 @@ get_features () { ff=1 for f; do if [ "$ff" = "0" ]; then - echo -n " " + printf " " fi if grep "define FEAT_$f" config.h > /dev/null; then - echo -n "+$f" + printf "%s" "+$f" else - echo -n "-$f" + printf "%s" "-$f" fi ff=0 done