]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
doc: references for non-fractional timestamps.
authorKarl Berry <karl@freefriends.org>
Thu, 2 Nov 2023 01:03:36 +0000 (18:03 -0700)
committerKarl Berry <karl@freefriends.org>
Thu, 2 Nov 2023 01:03:36 +0000 (18:03 -0700)
The non-fractional fix from Bogdan fixes
https://bugs.gnu.org/64756, discussed earlier in a long thread on
automake in 2023-03 and 2023-04; references in the bug.
Jacob Bachmeyer contributed to the analysis and fixes.

* m4/sanity.m4:

m4/sanity.m4

index 445d1fb80d98c5a102796bb1e704154a9796d06c..dbc8d9fdb9d900451ed6a04fd7c4636af640a332 100644 (file)
@@ -15,9 +15,9 @@ AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=true], [am_cv_s
 
 # _AM_FILESYSTEM_TIMESTAMP_RESOLUTION
 # -----------------------------------
-# Determine the filesystem timestamp resolution.  Modern systems are nanosecond
-# capable, but historical systems could have millisecond, second, or even
-# 2-second resolution.
+# Determine the filesystem timestamp resolution.  Modern systems are
+# nanosecond capable, but historical systems could have millisecond,
+# second, or even 2-second resolution.
 AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl
 AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS])
 #
@@ -27,8 +27,11 @@ AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS])
 # More info: long thread around
 #     https://lists.gnu.org/archive/html/automake/2023-04/msg00002.html
 # and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64756.  
+# By the way, we cannot use Perl to see if %INC{q[Time/HiRes.pm]} is
+#   defined, because Time::HiRes might get pulled in from other system
+#   modules even when not used directly. (An idea suggested in that thread.)
 AC_PATH_PROG([AUTOM4TE], [autom4te])
-if test x"$autom4te_perllibdir" = x; then
+if test x"$autom4te_perllibdir = x; then
   autom4te_perllibdir=`sed -n \
    '/autom4te_perllibdir/{s/^.*|| //;s/;$//;s/^.//;s/.$//;p;q}' <$AUTOM4TE`
 fi