Richard Dawe [Mon, 3 Mar 2003 20:13:50 +0000 (20:13 +0000)]
tests/atspecific.m4: Normalize the file name for the m4 program,
when it has an "exe" file extension. DJGPP's error messages include
the error code in brackets - remove the error code during normalization.
* doc/autoconf.texi (Limitations of Make): Remove the section
about `$<' in inference rules, it was a bogus interpretation of
an old Automake change. Discuss NetBSD, FreeBSD, OpenBSD, and
Tru64 make in the "target lookup" section.
(Automake): Automake 1.5+ no longer requires special tools to be
present on the developer's host.
Akim Demaille [Fri, 28 Feb 2003 10:11:07 +0000 (10:11 +0000)]
* bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
to a shell that can handle redirection or quoting correctly.
Override SHELL with the shell detected by configure.
Use of $^O suggested by Tim van Holder.
* bin/autom4te.in (BEGIN): Likewise.
* bin/autoreconf.in (BEGIN): Likewise.
* bin/autoscan.in (BEGIN): Likewise.
* bin/autoupdate.in (BEGIN): Likewise.
* bin/ifnames.in (BEGIN): Likewise.
* bin/ifnames.in: Add final newline to help and version messages.
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
to cope with DOS-style absolute paths, when constructing
${ac_make}.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
When constructing paths with IFS=:, quote the path. If we're
constructing a DOS-style absolute path, we don't want to split it
on the colon.
* tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
in description.
Paul Eggert [Tue, 25 Feb 2003 06:45:05 +0000 (06:45 +0000)]
(AS_SHELL_SANITIZE): Fix typo in
2002-09-01 patch by replacing "test -n" with "test -z".
This fixes a bug reported by Tom Epperly in
<http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
Akim Demaille [Thu, 20 Feb 2003 17:15:47 +0000 (17:15 +0000)]
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
compiler says yeah, but preproc says nope, compiler is right.
Conversely, prompt the reader to send a bug report to the
maintainers of the package, not of Autoconf.
Paul Eggert [Tue, 24 Dec 2002 00:16:41 +0000 (00:16 +0000)]
(AC_LANG_FUNC_LINK_TRY(C)): Deine $1 to an
innocuous variant befor including <limits.h> or <assert.h>.
This works around a bug reported by Albert Chin: HP-UX 11i
(and earlier versions) have a <limits.h> that declares
gettimeofday and many other functions.
Paul Eggert [Tue, 3 Dec 2002 08:30:12 +0000 (08:30 +0000)]
(at_flatten): rewritten to avoid M4 problem when
\(.*\) match is too long and there is something more to be checked.
<http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
Paul Eggert [Tue, 3 Dec 2002 07:00:37 +0000 (07:00 +0000)]
(AC_LANG_FUNC_LINK_TRY(C)): Use the function f
nontrivially in main's body, so that f's external declaration is
not optimized away in AIX. This should fix the bug reported by
Martin Frydl in
<http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
Paul Eggert [Tue, 3 Dec 2002 06:51:15 +0000 (06:51 +0000)]
(handle_traces): [^ *\(.*\) *$] ->
[^ *\(.*[^ ]\)? *]. The old regular expression was obviously wrong,
and it blunders into a GNU m4 bug as noted by Martin Frydl in
<http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>.
Akim Demaille [Thu, 14 Nov 2002 11:16:01 +0000 (11:16 +0000)]
* Makefile.maint: Sync with Bison, i.e.:
(po-check): Scan .l and .y files instead of the
.c and the .h files that they generate. This fixes the bug
reported by Tim Van Holder in:
<http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
Look for N_ as well as for _. Try to avoid matching #define for
N_ and _.
From Paul Eggert.
Akim Demaille [Tue, 12 Nov 2002 10:54:44 +0000 (10:54 +0000)]
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
option. Process --recheck after parsing all options. Pass -q
option to configure on --recheck.
(AC_OUTPUT): Pass -q from configure to config.status.
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
arguments to record.
* doc/autoconf.texi (config.status Invocation): Document
config.status -q option.
* bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
Makefile.in if Makefile.am exists.
(output): Strip `.am' from Makefiles. Don't
output AC_CONFIG_FILES if no Makefiles were found.
Akim Demaille [Tue, 5 Nov 2002 20:28:07 +0000 (20:28 +0000)]
* lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
Remove.
We _have_ to stop using the old compatibility scheme that tried to
avoid useless backslashes because Libtool 1.4.3 contains a
AC_DEFINE([error_t], [int],
[Define to a type to use for `error_t' if it is not
otherwise available.])
We _have_ to quote the single quote and backslashes with . The
old compatibility scheme saw that ` was backslashed, and therefore
did not quote the single quote. Hence before this patch, Autoconf
was not compatible with Libtool.
Akim Demaille [Thu, 31 Oct 2002 17:33:26 +0000 (17:33 +0000)]
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
Change name of cache variable to ac_cv_func_malloc_0_nonnull.
(AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
(_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
to ac_cv_func_realloc_0_nonnull.
(AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
Akim Demaille [Thu, 31 Oct 2002 13:57:37 +0000 (13:57 +0000)]
The test suite was no longer checking for trailing envvars and files.
* tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
(AT_CHECK_ENV): Make sure the `state-ls.before file exists.
Akim Demaille [Thu, 31 Oct 2002 13:15:03 +0000 (13:15 +0000)]
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
`$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
Make variable, not a shell variable.
Suggested by Bruno Haible.
Paul Eggert [Tue, 29 Oct 2002 20:23:09 +0000 (20:23 +0000)]
* doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
Problem reported by Bruno Haible.
Akim Demaille [Tue, 29 Oct 2002 13:07:18 +0000 (13:07 +0000)]
* doc/autoconf.texi (Header Templates): Put also in words what the
pictures says to assist free style readers.
(Customizing autom4te): s/--cache=/--cache /.
Akim Demaille [Tue, 29 Oct 2002 12:52:36 +0000 (12:52 +0000)]
* lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
sys/wait.h.
sparc_address_test returns void.
Use it with an argument, as prototyped.
From Bruno Haible.
Akim Demaille [Tue, 29 Oct 2002 08:09:05 +0000 (08:09 +0000)]
* bin/autoreconf.in (&parse_args, $help): Support --warnings.
* doc/autoconf.texi (Invoking autom4te): Rename as...
(autom4te Invocation): this, for consistency with the other nodes.
Akim Demaille [Mon, 28 Oct 2002 07:15:05 +0000 (07:15 +0000)]
* tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
m4 executable names, and different GNU M4 version.
Reported by Ezra Peisach and Paul Jarc.
Akim Demaille [Sun, 27 Oct 2002 18:24:51 +0000 (18:24 +0000)]
* doc/autoconf.texi: More AC_MSG_FAILURE promotion.
* lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
Die when a simple Fortran program cannot be compiled.
* lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
Issue a warning if no function is given.
Akim Demaille [Sun, 27 Oct 2002 18:23:14 +0000 (18:23 +0000)]
* doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
Move the documentation of AC_TRY_RUN to...
(Obsolete Macros): here.
Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
(autoconf Invocation): Remove the duplicates with `invoking
autom4te'.
* lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
Akim Demaille [Sun, 27 Oct 2002 18:17:28 +0000 (18:17 +0000)]
Move sections around.
* doc/autoconf.texi (Customizing autom4te): Remove a lost
sentence.
Reported by Burno Haible.
(Language Choice): Now the first section of...
(Writing Tests): this section.
Make the introduction less C-centric.
(Guidelines, Test Functions): Move to...
(Writing Test Programs): this new section.
(Test Programs): Merge into...
(Run Time): this.
Akim Demaille [Fri, 25 Oct 2002 12:17:22 +0000 (12:17 +0000)]
Version 2.54a.
* Makefile.maint: Update from the Coreutils.
(AMTAR): Remove, obsolete.
(-automake_repo): Update to redhat.com.
(cvs_file): New.
Adjust to the fact that ansi2knr is now hosted by Automake.
* Maekfile.am (cvs_files): Add install-sh and mkinstalldirs.
* config/config.guess, config/mkinstalldirs, config/texinfo.tex:
Update from masters.