stderr.
* doc/autoconf.texi (AC_ARG_VAR): Update.
+2001-06-23 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
+ stderr.
+ * doc/autoconf.texi (AC_ARG_VAR): Update.
+
2001-06-21 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
eval ac_new_val="\$ac_env_${ac_var}_value"
case $ac_old_set,$ac_new_set in
set,)
- AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run])
+ AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run], 2)
ac_cache_corrupted=: ;;
,set)
- AS_MESSAGE([error: `$ac_var' was not set in the previous run])
+ AS_MESSAGE([error: `$ac_var' was not set in the previous run], 2)
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
- AS_MESSAGE([error: `$ac_var' has changed since the previous run:])
- AS_MESSAGE([ former value: $ac_old_val])
- AS_MESSAGE([ current value: $ac_new_val])
+ AS_MESSAGE([error: `$ac_var' has changed since the previous run:], 2)
+ AS_MESSAGE([ former value: $ac_old_val], 2)
+ AS_MESSAGE([ current value: $ac_new_val], 2)
ac_cache_corrupted=:
fi;;
esac
fi
done
if $ac_cache_corrupted; then
- AS_MESSAGE([error: changes in the environment can compromise the build])
+ AS_MESSAGE([error: changes in the environment can compromise the build], 2)
AS_ERROR([run `make distclean' and/or `rm $cache_file' and start over])
fi
])# _AC_ARG_VAR_VALIDATE
@example
$ ./configure --silent --config-cache
$ CC=cc ./configure --silent --config-cache
-configure: WARNING: `CC' was not set in the previous run
-configure: WARNING: changes in the environment can compromise
-configure: WARNING: the build. consider removing config.cache
-configure: WARNING: and starting over
-$ CC=gcc ./configure --config-cache --silent
-configure: WARNING: `CC' has changed since the previous run:
-configure: WARNING: former value: cc
-configure: WARNING: current value: gcc
-configure: WARNING: changes in the environment can compromise
-configure: WARNING: the build. consider removing config.cache
-configure: WARNING: and starting over
-$ ./configure --silent --config-cache
-configure: WARNING: `CC' was set to `gcc' in the previous run
-configure: WARNING: changes in the environment can compromise
-configure: WARNING: the build. consider removing config.cache
-configure: WARNING: and starting over
+configure: error: `CC' was not set in the previous run
+configure: error: changes in the environment can compromise \
+the build
+configure: error: run `make distclean' and/or \
+`rm config.cache' and start over
@end example
+@noindent
+and similarly if the variable is unset, or if its content is changed.
+
+
@item
@var{variable} is kept during automatic reconfiguration
(@pxref{config.status Invocation}) as if it had been passed as a command
eval ac_new_val="\$ac_env_${ac_var}_value"
case $ac_old_set,$ac_new_set in
set,)
- AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run])
+ AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run], 2)
ac_cache_corrupted=: ;;
,set)
- AS_MESSAGE([error: `$ac_var' was not set in the previous run])
+ AS_MESSAGE([error: `$ac_var' was not set in the previous run], 2)
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
- AS_MESSAGE([error: `$ac_var' has changed since the previous run:])
- AS_MESSAGE([ former value: $ac_old_val])
- AS_MESSAGE([ current value: $ac_new_val])
+ AS_MESSAGE([error: `$ac_var' has changed since the previous run:], 2)
+ AS_MESSAGE([ former value: $ac_old_val], 2)
+ AS_MESSAGE([ current value: $ac_new_val], 2)
ac_cache_corrupted=:
fi;;
esac
fi
done
if $ac_cache_corrupted; then
- AS_MESSAGE([error: changes in the environment can compromise the build])
+ AS_MESSAGE([error: changes in the environment can compromise the build], 2)
AS_ERROR([run `make distclean' and/or `rm $cache_file' and start over])
fi
])# _AC_ARG_VAR_VALIDATE