[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: m4: cache build env sanity chec

From: Mike Frysinger
Subject: [automake-commit] branch master updated: m4: cache build env sanity checks
Date: Sun, 13 Feb 2022 01:39:37 -0500

This is an automated email from the git hooks/post-receive script.

vapier pushed a commit to branch master
in repository automake.

View the commit online:;a=commitdiff;h=be55eaaa0bae0d6def92d5720b0e81f1d21a9db2

The following commit(s) were added to refs/heads/master by this push:
     new be55eaaa0 m4: cache build env sanity checks
be55eaaa0 is described below

commit be55eaaa0bae0d6def92d5720b0e81f1d21a9db2
Author: Mike Frysinger <>
AuthorDate: Sat Feb 12 02:12:42 2022 -0500

    m4: cache build env sanity checks
    When rerunning configure in an existing build dir, cache the previous
    results about environment settings.  There should be no need to retest
    these in a dir that has already been configured.
    * m4/sanity.m4: Cache sanity results.
 m4/sanity.m4 | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/m4/sanity.m4 b/m4/sanity.m4
index 11b0bde5c..4e44dd9c4 100644
--- a/m4/sanity.m4
+++ b/m4/sanity.m4
@@ -9,7 +9,9 @@
 # ---------------
-[AC_MSG_CHECKING([whether build environment is sane])
+rm -f conftest.file
+AC_CACHE_CHECK([whether build environment is sane], am_cv_build_env_is_sane, 
 # Reject unsafe characters in $srcdir or the absolute working directory
 # name.  Accept space and tab only in the latter.
@@ -57,17 +59,16 @@ if (
    test "$[2]" = conftest.file
-   # Ok.
-   :
+  am_cv_build_env_is_sane=yes
    AC_MSG_ERROR([newly created file is older than distributed files!
 Check your system clock])
 # If we didn't sleep, we still need to ensure time stamps of config.status and
 # generated files are strictly newer.
-if grep 'slept: no' conftest.file >/dev/null 2>&1; then
+if ! test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1; 
   ( sleep 1 ) &

reply via email to

[Prev in Thread] Current Thread [Next in Thread]