]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Prevent problems with the testsuite running too fast.
authorStepan Kasal <kasal@ucw.cz>
Tue, 27 Sep 2005 16:08:10 +0000 (16:08 +0000)
committerStepan Kasal <kasal@ucw.cz>
Tue, 27 Sep 2005 16:08:10 +0000 (16:08 +0000)
ChangeLog
tests/local.at
tests/semantics.at

index 51ae5845f83e32c36020eaa2b388f3de1273352f..c16e3a864dd1785979e450ba4510172b4d9698ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-09-27  Stepan Kasal  <kasal@ucw.cz>
+
+       * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
+         in case the computer is too quick.  Double quote the configure.ac
+         snippets.
+
+       * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
+         problems if the testsuite were running too fast.
+
 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
index 93c6cf3c395c38a8ea6e6d7c6fd18001f5a54b6e..122e6d2824e2471f93aef10eeccdcf444d7d1560 100644 (file)
@@ -200,8 +200,10 @@ AC_STATE_SAVE(after)
 
 # AT_CHECK_AUTOCONF(ARGS, [EXIT-STATUS = 0], STDOUT, STDERR)
 # ----------------------------------------------------------
+# We always use "--force", to prevent problems with timestamps if the testsuite
+# were running too fast.
 m4_define([AT_CHECK_AUTOCONF],
-[AT_CHECK([autoconf $1], [$2], [$3], [$4])
+[AT_CHECK([autoconf --force $1], [$2], [$3], [$4])
 if test -s configure; then
   AT_CHECK_SHELL_SYNTAX(configure)
 fi
index 3d69b7f9ba22512bc98c06dfb2c4a225fea37c61..20ecef82d1f37389b61a93b6d6c8f01be74b8694 100644 (file)
@@ -468,13 +468,13 @@ AT_KEYWORDS([cross])
 # cross-compiling or not.
 
 _AT_CHECK_AC_MACRO(
-  [AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
+  [[AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
    echo $ac_endian > at-endian
-])
+]])
 
 rm -f config.hin  # So that next run of autoheader is quiet.
 _AT_CHECK_AC_MACRO(
-  [cross_compiling=yes
+  [[cross_compiling=yes
    AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
    ac_prevendian=`cat at-endian`
    # Check that we have found the same result as in the previous run
@@ -484,11 +484,12 @@ _AT_CHECK_AC_MACRO(
    if test $ac_endian != $ac_prevendian && test $ac_endian != unknown; then
      AC_MSG_ERROR([unexpected endianness: first run found '$ac_prevendian' but second run found '$ac_endian'])
    fi
-])
+]])
 
 # Make sure AC_C_BIGENDIAN with no argument will define WORDS_BIGENDIAN
-AT_CONFIGURE_AC([AC_C_BIGENDIAN])
-AT_CHECK_AUTOHEADER
+AT_CONFIGURE_AC([[AC_C_BIGENDIAN]])
+# --force is necessary, the computer might be too fast.
+AT_CHECK_AUTOHEADER([--force])
 AT_CHECK([grep WORDS_BIGENDIAN config.hin], [], [ignore])
 
 AT_CLEANUP(at-endian)