]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/torture.at (AC_ARG_VAR): Have configure report the value
authorAkim Demaille <akim@epita.fr>
Fri, 11 Oct 2002 12:05:39 +0000 (12:05 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 11 Oct 2002 12:05:39 +0000 (12:05 +0000)
of `precious'.

ChangeLog
tests/torture.at

index 1c9ec50e054863c4e17c3731c620415c217badfc..136f29852ff4e8b424e208ed9fed141a08369251 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-11  Akim Demaille  <akim@epita.fr>
+
+       * tests/torture.at (AC_ARG_VAR): Have configure report the value
+       of `precious'.
+
 2002-10-11  Akim Demaille  <akim@epita.fr>
 
        * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
index ac6a37329226db4fb19bed4af1414f506927c663..1eae31166780f67804d0191848f283d43688aeac 100644 (file)
@@ -58,18 +58,21 @@ m4_define([AT_CHECK_AC_ARG_VAR],
 m4_ifval([$1],
          [precious='$1'; export precious],
          [unset precious])
-AT_CHECK_CONFIGURE([--config-cache])
+AT_CHECK_CONFIGURE([--config-cache -q])
 AT_CHECK([cat file], [], [`$1'
 ])
 
-# Testing --recheck.
+# Testing --recheck: 1. have the environment `forget' about PRECIOUS.
 unset precious
+# 2. Rerun config.status to recreate `file'.
 AT_CHECK([./config.status --recheck], [], [ignore])
 AT_CHECK([./config.status], [], [ignore])
+# 3. Check that file contains the old value of PRECIOUS.
 AT_CHECK([cat file], [], [`$1'
 ])
 
-# Second value.
+# Second value: we should issue an error here: the value
+# has changed!
 m4_ifval([$2],
          [precious='$2'; export precious],
          [unset precious])
@@ -93,6 +96,7 @@ fi
 AT_DATA([configure.ac],
 [[AC_INIT
 AC_ARG_VAR([precious], [this variable costs a lot])
+echo "precious:$precious"
 AC_OUTPUT(file)
 ]])