]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AT_CHECK_MACRO: Preserve config.log and config.status from run 1.
authorZack Weinberg <zackw@panix.com>
Wed, 5 Aug 2020 14:45:22 +0000 (10:45 -0400)
committerZack Weinberg <zackw@panix.com>
Wed, 5 Aug 2020 14:45:22 +0000 (10:45 -0400)
AT_CHECK_MACRO runs a test configure script twice and looks for
differences in the results.  If something goes wrong, it’ll be helpful
for debugging to preserve the config.log and config.status files from
both runs.

* tests/local.at (AT_CHECK_MACRO): Also copy config.log and
  config.status to config-log.$at_run and config-status.$at_run
  respectively.

tests/local.at

index 4b2966b0224ab103557cb2bdbd55e15e0ce4fd97..d667d630a4604a2afa410de9e030b5ba35420459 100644 (file)
@@ -518,6 +518,8 @@ do
     AT_CHECK_CONFIGURE([-C])
     cp -f state-env.after state-env.$at_run
     cp -f config.h config-h.$at_run
+    cp -f config.log config-log.$at_run
+    cp -f config.status config-status.$at_run
     AT_CHECK_ENV
 done