Paul Eggert [Sat, 5 Feb 2005 07:34:54 +0000 (07:34 +0000)]
* tests/autotest.at (Empty test suite): New test.
* tests/torture.at (Substitute and define special characters)
(Substitute a 2000-byte string, Define to a 2000-byte string)
(Substitute a newline, Define a newline): New tests.
Paul Eggert [Sat, 5 Feb 2005 05:45:14 +0000 (05:45 +0000)]
* tests/local.at (AT_CMP): New macro.
(AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
(AC_SAVE_STATE): Move environment grep...
(AT_CHECK_ENV): to here. Filter out `'$''. Use AT_CMP.
(AT_CONFIG_CMP): New macro.
(AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
* tests/c.at (Extensions): Do not exit early.
* tests/atlocal.in: Inherit $GREP.
Paul Eggert [Wed, 2 Feb 2005 23:31:16 +0000 (23:31 +0000)]
* bin/autoconf.as: Don't exit with status 0 after write failure
with --help or --version.
* lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
Paul Eggert [Mon, 31 Jan 2005 23:52:49 +0000 (23:52 +0000)]
Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
Update the long comment explaining it.
m4_require no longer writes an ``is required by'' line to the
execution stack. It contains only one bit of non-redundant
information: that the macro was required, not called. And even
this bit is useless in most situations: have you ever met a macro
which both calls and requires the same macro?
* lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
(_m4_defun_pro_outer): ... only via this macro, for the outermost
macro.
(_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
(m4_expansion_stack_pop): Remove the misplaced comment.
(m4_require): Don't put the ``is required by'' line to the
execution stack; slightly improve the out-of-a-defun error message.
(_m4_divert_grow): New macro, counter for the temporary diversions.
(_m4_require_call): Use it.
* tests/m4sugar.at (m4_require): Expect output without the
``is required by'' messages.
Paul Eggert [Mon, 31 Jan 2005 23:25:08 +0000 (23:25 +0000)]
(.x.1): Make sure the required generated files
are up to date. Problem and original solution proposed by Stepan Kasal.
$(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
implicit-man-prerequisites): New rules, used by the above.
Akim Demaille [Thu, 27 Jan 2005 10:53:41 +0000 (10:53 +0000)]
Have autoheader honor --force.
* doc/make-stds.texi, doc/standards.texi: Update from masters.
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
* lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
from masters, so that FileUtils.pm's update_file provide --force
support.
* bin/autoheader.in: Pass $force to update_file so that
config.h.in is always recreated when --force.
Paul Eggert [Fri, 21 Jan 2005 00:03:40 +0000 (00:03 +0000)]
(Shell Substitutions): Fix typo in case statement.
Warn about newline stripping in `` and $(). Update Solaris
version to 9.
(Limitations of Builtins): Use expr "X...", not expr "x...", as
X insulates us from future changes to Posix.
(Limitations of Usual Tools): For AS_DIRNAME, warn about newline
stripping.
Paul Eggert [Wed, 5 Jan 2005 14:03:06 +0000 (14:03 +0000)]
(AC_LANG_INT_SAVE(C)): Declare longval and
ulongval to be static, to avoid unwanted GCC warning. Problem
reported by Michael Jennings via Daniel Reed; see
<https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
Paul Eggert [Tue, 4 Jan 2005 23:50:00 +0000 (23:50 +0000)]
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
not seem to work, assume it does set $(MAKE).
* doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
Paul Eggert [Mon, 3 Jan 2005 07:35:21 +0000 (07:35 +0000)]
Patch from Roger Leigh (with some minor changes) as follows:
* NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
Resurrect AC_PROG_CC_STDC.
* doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
AC_PROG_CC_C89, AC_PROG_CC_C99.
(Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
* lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
AC_PROG_CC_C99): New macros.
(AC_PROG_CC_STDC): Use them.
(_AC_PROG_CC_STDC): Remove.
(AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
* THANKS: Add Roger Leigh.
Paul Eggert [Sun, 2 Jan 2005 17:15:40 +0000 (17:15 +0000)]
* bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
signals that the package uses Automake; a `Makefile.am' is typical but
not essential. Reported by Magnus Therning.
* tests/torture.at (autoreconf.): New banner.
(autoreconf and non-AC configure): Rename to `Non-Autoconf
AC_CONFIG_SUBDIRS'.
(autoreconf an empty directory): Rename to `Empty directory'.
(Unusual Automake input files): New test.
Paul Eggert [Wed, 29 Dec 2004 06:54:44 +0000 (06:54 +0000)]
* BUGS (Minor Problems): Warn about makefile limitations.
* Makefile.am: Find and update `INSTALL' in $(srcdir).
* man/Makefile.am: Find and update manual pages in $(srcdir).
Paul Eggert [Wed, 22 Dec 2004 21:50:08 +0000 (21:50 +0000)]
(Limitations of Builtins) <case>: Mention
problems with SunOS ksh and backslash escaping, Bourne shells and
closing brackets (both within character classes). Bug reported
against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
<read>: New entry. Mention non-availability of -r.
Akim Demaille [Wed, 22 Dec 2004 13:29:09 +0000 (13:29 +0000)]
* lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
avoid cluttering displayed messages. Rather, prepend srcdir where
AT_LINE is used for log files.
Stepan Kasal [Tue, 21 Dec 2004 14:24:01 +0000 (14:24 +0000)]
* lib/autoconf/status.m4: Quote ``$tmp'' in many places.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
no longer part of the macro, quote the occurrence of ``$tmp''.
* doc/autoconf.texi (Forbidden Patterns): Typo.
Akim Demaille [Tue, 21 Dec 2004 12:25:08 +0000 (12:25 +0000)]
Enable Emacs navigation within testsuite.log files.
* lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
use the compilation mode.
(AT_LINE): Point to the srcdir.
Stepan Kasal [Fri, 17 Dec 2004 14:32:51 +0000 (14:32 +0000)]
Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
Reini Urban and Paul Eggert for reporting the dependencies.
* lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
* doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
(AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.