[dnl]
]])
-dnl This test needs autom4te's cache, in spite of any ~/.autom4te.cfg.
+# This test needs autom4te's cache, in spite of any ~/.autom4te.cfg.
AT_DATA([.autom4te.cfg], [[
begin-language: "Autoconf"
args: --cache=autom4te.cache
end-language: "Autoconf-without-aclocal-m4"
]])
+# Delay to make sure the cache files generated by the next command are
+# considered newer than configure.ac.
+sleep 2
+
AT_CHECK_AUTOCONF([], 1, [],
[[trailer.m4: warning: AC_INIT was never used
trailer.m4: warning: AC_OUTPUT was never used
configure.ac:5: error: possibly undefined macro: _AS@&t@_BAR
configure.ac:6: error: possibly undefined macro: d@&t@nl
]])
+
+# Delay to make sure the cache files generated by the previous command
+# are considered to have been created in the past.
+sleep 2
+
# A second run (without --force) should succeed and yield only the
# warnings about AC_INIT and AC_OUTPUT.
AT_CHECK_M4([autoconf], 0, [],