mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 02:25:07 -05:00
configure: replace echo -n with printf
POSIX doesn't require echo to support -n.
This commit is contained in:
8
configure
vendored
8
configure
vendored
@@ -41,7 +41,7 @@ test_code () {
|
|||||||
ldflags=$4
|
ldflags=$4
|
||||||
code=$5
|
code=$5
|
||||||
|
|
||||||
echo -n "Checking for $name : "
|
printf "%s" "Checking for $name : "
|
||||||
|
|
||||||
(
|
(
|
||||||
for h in $headers; do
|
for h in $headers; do
|
||||||
@@ -174,12 +174,12 @@ get_features () {
|
|||||||
ff=1
|
ff=1
|
||||||
for f; do
|
for f; do
|
||||||
if [ "$ff" = "0" ]; then
|
if [ "$ff" = "0" ]; then
|
||||||
echo -n " "
|
printf " "
|
||||||
fi
|
fi
|
||||||
if grep "define FEAT_$f" config.h > /dev/null; then
|
if grep "define FEAT_$f" config.h > /dev/null; then
|
||||||
echo -n "+$f"
|
printf "%s" "+$f"
|
||||||
else
|
else
|
||||||
echo -n "-$f"
|
printf "%s" "-$f"
|
||||||
fi
|
fi
|
||||||
ff=0
|
ff=0
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user