[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[automake-commit] branch master updated: automake: display whether sleep
From: |
Karl Berry |
Subject: |
[automake-commit] branch master updated: automake: display whether sleep supports fractional seconds as yes/no. |
Date: |
Wed, 03 Jul 2024 11:27:18 -0400 |
This is an automated email from the git hooks/post-receive script.
karl pushed a commit to branch master
in repository automake.
View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=715ce1e686209f0f753f6a4b2ceddf7b686cc2f0
The following commit(s) were added to refs/heads/master by this push:
new 715ce1e68 automake: display whether sleep supports fractional seconds
as yes/no.
715ce1e68 is described below
commit 715ce1e686209f0f753f6a4b2ceddf7b686cc2f0
Author: Bruno Haible <bruno@clisp.org>
AuthorDate: Wed Jul 3 08:27:02 2024 -0700
automake: display whether sleep supports fractional seconds as yes/no.
https://lists.gnu.org/archive/html/automake/2024-07/msg00003.html
* m4/sanity.m4 (_AM_SLEEP_FRACTIONAL_SECONDS): Set
am_cv_sleep_fractional_seconds to yes/no, not true/false,
for consistency with other results.
Also "quote" this and other $am_cv values.
(_AM_FILESYSTEM_TIMESTAMP_RESOLUTION): Test for yes/no.
* t/ax/test-defs.in: Set am_cv_sleep_fractional_seconds to 'no',
not 'false'.
---
m4/sanity.m4 | 12 ++++++------
t/ax/test-defs.in | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/m4/sanity.m4 b/m4/sanity.m4
index 9e556b33a..c7f32daf8 100644
--- a/m4/sanity.m4
+++ b/m4/sanity.m4
@@ -11,8 +11,8 @@
AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl
AC_CACHE_CHECK([whether sleep supports fractional seconds],
am_cv_sleep_fractional_seconds, [dnl
-AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=true],
- [am_cv_sleep_fractional_seconds=false])
+AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes],
+ [am_cv_sleep_fractional_seconds=no])
])])
# _AM_FILESYSTEM_TIMESTAMP_RESOLUTION
@@ -43,7 +43,7 @@ am_cv_filesystem_timestamp_resolution=2
# packages.
#
am_try_resolutions=
-if $am_cv_sleep_fractional_seconds; then
+if test "$am_cv_sleep_fractional_seconds" = yes; then
# Even a millisecond often causes a bunch of false positives,
# so just try a hundredth of a second. The time saved between .001 and
# .01 is not terribly consequential.
@@ -198,12 +198,12 @@ for am_try in 1 2; do
break
fi
# Just in case.
- sleep $am_cv_filesystem_timestamp_resolution
+ sleep "$am_cv_filesystem_timestamp_resolution"
am_has_slept=yes
done
AC_MSG_RESULT([$am_build_env_is_sane])
-if test $am_build_env_is_sane = no; then
+if test "$am_build_env_is_sane" = no; then
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
@@ -212,7 +212,7 @@ fi
# generated files are strictly newer.
am_sleep_pid=
AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null
2>&1],, [dnl
- ( sleep $am_cv_filesystem_timestamp_resolution ) &
+ ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
am_sleep_pid=$!
])
AC_CONFIG_COMMANDS_PRE(
diff --git a/t/ax/test-defs.in b/t/ax/test-defs.in
index aac5d60e3..542305788 100644
--- a/t/ax/test-defs.in
+++ b/t/ax/test-defs.in
@@ -211,7 +211,7 @@ case $MTIME_RESOLUTION in
MTIME_RESOLUTION=1
# we must not sleep for fractional seconds when autom4te does not
# support subsecond-mtimes, even when sleep supports it. See bug#67670.
- am_cv_sleep_fractional_seconds=false
+ am_cv_sleep_fractional_seconds=no
export am_cv_sleep_fractional_seconds
fi
;;
@@ -232,7 +232,7 @@ esac
# scripts in other packages, too.
#
# At any rate, with this set to "sleep 1", there were still random
-# parallelization failures; setting am_cv_sleep_fractional_seconds=false
+# parallelization failures; setting am_cv_sleep_fractional_seconds=no
# as above was still needed.
#
sleep="sleep $MTIME_RESOLUTION"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [automake-commit] branch master updated: automake: display whether sleep supports fractional seconds as yes/no.,
Karl Berry <=