58 |
m4_ifval([$1], |
m4_ifval([$1], |
59 |
[precious='$1'; export precious], |
[precious='$1'; export precious], |
60 |
[unset precious]) |
[unset precious]) |
61 |
AT_CHECK_CONFIGURE([--config-cache]) |
AT_CHECK_CONFIGURE([--config-cache -q]) |
62 |
AT_CHECK([cat file], [], [`$1' |
AT_CHECK([cat file], [], [`$1' |
63 |
]) |
]) |
64 |
|
|
65 |
# Testing --recheck. |
# Testing --recheck: 1. have the environment `forget' about PRECIOUS. |
66 |
unset precious |
unset precious |
67 |
|
# 2. Rerun config.status to recreate `file'. |
68 |
AT_CHECK([./config.status --recheck], [], [ignore]) |
AT_CHECK([./config.status --recheck], [], [ignore]) |
69 |
AT_CHECK([./config.status], [], [ignore]) |
AT_CHECK([./config.status], [], [ignore]) |
70 |
|
# 3. Check that file contains the old value of PRECIOUS. |
71 |
AT_CHECK([cat file], [], [`$1' |
AT_CHECK([cat file], [], [`$1' |
72 |
]) |
]) |
73 |
|
|
74 |
# Second value. |
# Second value: we should issue an error here: the value |
75 |
|
# has changed! |
76 |
m4_ifval([$2], |
m4_ifval([$2], |
77 |
[precious='$2'; export precious], |
[precious='$2'; export precious], |
78 |
[unset precious]) |
[unset precious]) |
96 |
AT_DATA([configure.ac], |
AT_DATA([configure.ac], |
97 |
[[AC_INIT |
[[AC_INIT |
98 |
AC_ARG_VAR([precious], [this variable costs a lot]) |
AC_ARG_VAR([precious], [this variable costs a lot]) |
99 |
|
echo "precious:$precious" |
100 |
AC_OUTPUT(file) |
AC_OUTPUT(file) |
101 |
]]) |
]]) |
102 |
|
|