From: Mike Frysinger Date: Fri, 14 Jul 2023 15:50:51 +0000 (-0700) Subject: automake: set test delays to am_cv_filesystem_timestamp_resolution. X-Git-Tag: v1.16i~39 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=683400c39e8be392eff54515260706c08eb931d2;p=thirdparty%2Fautomake.git automake: set test delays to am_cv_filesystem_timestamp_resolution. This patch is from https://bugs.gnu.org/60808. * configure.ac: Set test delays to am_cv_filesystem_timestamp_resolution, instead of hardwiring 5sec on DJGPP and 2sec elsewhere. This speeds up test runs significantly, informally as much 30%. --- diff --git a/configure.ac b/configure.ac index f78ec5153..23a9f97f5 100644 --- a/configure.ac +++ b/configure.ac @@ -177,15 +177,7 @@ result=no test "x$am_cv_prog_ln" = xln && result=yes AC_MSG_RESULT([$result]) -# The amount we should wait after modifying files depends on the platform. -# On Windows '95, '98 and ME, files modifications have 2-seconds -# granularity and can be up to 3 seconds in the future w.r.t. the -# system clock. When it is important to ensure one file is older -# than another we wait at least 5 seconds between creations. -case $build in - *-pc-msdosdjgpp) MODIFICATION_DELAY=5;; - *) MODIFICATION_DELAY=2;; -esac +MODIFICATION_DELAY=$am_cv_filesystem_timestamp_resolution AC_SUBST([MODIFICATION_DELAY]) ## ------------------------------------------- ##