newline from the `trap' code to finish `config.log'; the NetBSD
/bin/sh resets the exit status after an empty command, as
documented in doc/autoconf.texi.
+2006-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
+ newline from the `trap' code to finish `config.log'; the NetBSD
+ /bin/sh resets the exit status after an empty command, as
+ documented in doc/autoconf.texi.
+ Reported by Dalibor Topic <robilad@kaffe.org>.
+
2006-04-19 Paul Eggert <eggert@cs.ucla.edu>
* doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
-trap '
- exit_status=$?
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo