+2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Let AC_MSG_FAILURE report pwd.
+ * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
+ Output $ac_pwd along with fatal failure.
+ * tests/torture.at (Deep Package): Extend test.
+ Reported numerous times against GCC, and probably other packages.
+
2008-05-12 Eric Blake <ebb9@byu.net>
Enforce --help and --version compliance.
fi
done
if $ac_cache_corrupted; then
+ AS_MESSAGE([error: in `$ac_pwd':], 2)
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])dnl
m4_copy([AS_MESSAGE], [AC_MSG_NOTICE])
m4_copy([AS_ERROR], [AC_MSG_ERROR])
m4_define([AC_MSG_FAILURE],
-[AC_MSG_ERROR([$1
-See `config.log' for more details.], [$2])])
+[{ AS_MESSAGE([error: in `$ac_pwd':], 2)
+AC_MSG_ERROR([$1
+See `config.log' for more details.], [$2]); }])
# _AC_MSG_LOG_CONFTEST
AC_ARG_VAR([INNERMOST], [an innermost variable])
AC_CONFIG_HEADERS(config.h:config.hin)
AC_DEFINE_UNQUOTED([INNERMOST], [$INNERMOST], [an innermost variable])
+if test -n "$innermost_error"; then
+ AC_MSG_FAILURE([Error in $PACKAGE_NAME])
+fi
AC_OUTPUT
]])
[[#define INNERMOST tsomrenni
]])
+# Ensure we point to the right config.log file for errors.
+AT_CHECK_CONFIGURE([innermost_error=:], [1], [], [stderr])
+AT_CHECK([grep 'inner/innermost' stderr], [], [ignore])
+cd inner
+AT_CHECK_CONFIGURE([innermost_error=:], [1], [], [stderr])
+AT_CHECK([grep 'innermost' stderr], [], [ignore])
+cd ..
+
# The same, but from a builddir.
AS_MKDIR_P([builddir])
chmod a-w builddir inner/innermost inner