Paul Eggert [Tue, 28 May 2002 04:16:17 +0000 (04:16 +0000)]
* lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
* NEWS, doc/autoconf.texi (Particular Types): Document it.
* lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
instead of AC_MBSTATE_T, which never existed.
Paul Eggert [Wed, 22 May 2002 23:39:06 +0000 (23:39 +0000)]
* lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
from the default list of compilers to try. Suggested by
Kate Hedstrom.
* NEWS: Document the above.
* autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
Paul Eggert [Sat, 18 May 2002 00:58:09 +0000 (00:58 +0000)]
* lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
the member is itself an aggregate. Bug reported by Sergey Poznyakoff.
This improves on an earlier suggestion by H. Peter Anvin.
Paul Eggert [Sat, 18 May 2002 00:56:47 +0000 (00:56 +0000)]
(AC_CHECK_MEMBER): Work correctly even if the member is itself an
aggregate. Bug reported by Sergey Poznyakoff. This improves on an
earlier suggestion by H. Peter Anvin.
Paul Eggert [Fri, 17 May 2002 07:14:37 +0000 (07:14 +0000)]
AC_FUNC_FNMATCH now tests only for POSIX compatibility.
AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
Both macros now accept an optional source-dir arg.
New macro AC_GNU_SOURCE to define _GNU_SOURCE.
* lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
(AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
not for GNU extensions; this undoes part of the 2000-11-03 change,
reverting to 2.13-compatible behavior.
Add new optional argument DIR.
(AC_FUNC_FNMATCH_GNU): New macro.
* lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
Paul Eggert [Fri, 17 May 2002 07:08:41 +0000 (07:08 +0000)]
(_AC_FUNC_FNMATCH): New macro.
(AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
not for GNU extensions; this undoes part of the 2000-11-03 change,
reverting to 2.13-compatible behavior.
Add new optional argument DIR.
(AC_FUNC_FNMATCH_GNU): New macro.
Paul Eggert [Wed, 8 May 2002 22:31:14 +0000 (22:31 +0000)]
* lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
argument specifying location of getloadavg.c. This removes a
FIXME. This idea was taken from Jim Meyering's implementation in
textutils.
* doc/autoconf.texi (Particular Functions): Document this.
Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
that's what the code does; this fixes a bug reported by
Paul D. Smith.
Paul Eggert [Wed, 8 May 2002 22:30:49 +0000 (22:30 +0000)]
(AC_FUNC_GETLOADAVG): Add optional argument specifying location of
getloadavg.c. This removes a FIXME. This idea was taken from Jim
Meyering's implementation in textutils.
Paul Eggert [Wed, 8 May 2002 20:26:31 +0000 (20:26 +0000)]
* lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
and it causes a 'test' syntax error if it fails.
Bug reported by Stephen Gildea.
Paul Eggert [Wed, 8 May 2002 20:26:07 +0000 (20:26 +0000)]
(AC_HEADER_TIOCGWINSZ):
Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
and it causes a 'test' syntax error if it fails.
Bug reported by Stephen Gildea.
Paul Eggert [Wed, 8 May 2002 19:57:14 +0000 (19:57 +0000)]
* lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
If prototypes are supported, use them to check this at compile-time,
instead of trying to check it at run-time. If we must do a run-time
check, assume that setvbuf is standard when cross-compiling, as
nonstandard setvbuf occurs only on ancient and unlikely hosts.
Paul Eggert [Wed, 8 May 2002 19:56:55 +0000 (19:56 +0000)]
(AC_FUNC_SETVBUF_REVERSED):
If prototypes are supported, use them to check this at compile-time,
instead of trying to check it at run-time. If we must do a run-time
check, assume that setvbuf is standard when cross-compiling, as
nonstandard setvbuf occurs only on ancient and unlikely hosts.
Akim Demaille [Fri, 3 May 2002 16:09:11 +0000 (16:09 +0000)]
* bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
autopoint instead of gettextize.
($uses_alocal): Rename as...
($uses_aclocal): this.
* doc/autoconf.texi (autoreconf Invocation): Adjust.
Suggested by Bruno Haible.
Paul Eggert [Tue, 30 Apr 2002 06:33:41 +0000 (06:33 +0000)]
* bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
files to be 1 second older; just set them to be the same time.
Also, sleep 1 second after the first aclocal, to work around
problems with sub-second time stamps on the input files.
Paul Eggert [Tue, 30 Apr 2002 06:33:12 +0000 (06:33 +0000)]
(autoreconf): Don't age aclocal.m4's input
files to be 1 second older; just set them to be the same time.
Also, sleep 1 second after the first aclocal, to work around
problems with sub-second time stamps on the input files.
* tests/m4sh.at (LINENO): If testsuite itself is rewritten because
of lack of $LINENO support, then the test will compare the $LINENO
in testsuite vs. the lineno in the test file. This is wrong, of
course.
Be sure to protect it.
Reported by Patrick Welche.
* bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
than some of the input files, hence, on the second run of aclocal,
if some of its input are younger, make them older.
Suggested by Paul Eggert.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
and ac_subst_vars be sh variables containing the list of
AC_SUBST_FILES'ed and AC_SUBST'ed identifiers. Output them in the
DEFAULT diversion.
(_AC_INIT_PREPARE): Use them to log them.
(_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
(AC_SUBST, AC_SUBST_FILE): Instead of buliding the
_AC_SUBST_SED_PROGRAM, store the list of output files/variables in
_AC_SUBST_FILES and _AC_SUBST_VARS.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
* bin/autoreconf.in (autoreconf): Run automake after autoconf and
autoheader, so that automake does not complain about a missing
config.h.in that was to be created.
Paul Eggert [Fri, 19 Apr 2002 21:23:16 +0000 (21:23 +0000)]
* doc/autoconf.texi: Follow the outline suggested in the GNU
Sample Texts sections of the Texinfo 4.2 manual. Most
importantly, this makes sure that the copyright notices appear in
all output formats. You probably need Texinfo 4.2 to generate
the manual now.
Paul Eggert [Fri, 19 Apr 2002 21:22:50 +0000 (21:22 +0000)]
Follow the outline suggested in the GNU Sample Texts sections of the
Texinfo 4.2 manual. Most importantly, this makes sure that the
copyright notices appear in all output formats. You probably need
Texinfo 4.2 to generate the manual now.
Paul Eggert [Fri, 19 Apr 2002 19:08:24 +0000 (19:08 +0000)]
Fix some bugs when using "$@" when there might be zero positional
arguments in cases where this matters.
* bin/autoconf.as: Rewrite so that the problem does not come up.
* lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
* lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* bin/autoheader.in: Use 'case' statement to work around problem.
* bin/auto4mte.in: Likewise.
* bin/autoreconf.in: Likewise.
* bin/autoscan.in: Likewise.
* bin/autoupdate.in: Likewise.
* bin/ifnames.in: Likewise.
* doc/autoconf.texi (Shell Substitutions): Document the problem.
* lib/autotest/general.m4 (AT_INIT):
Use Zsh alias to work around problem.
* tests/atgeneral.m4 (AT_INIT): Likewise.
* tests/c.at: We can't have zero arguments, so remove workaround
that is not portable to Zsh.
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
workaround for ${1+"$@"}.
* doc/autoconf.texi (Shell Substitutions): Explain it.
From Oliver Kiddle and Peter Stephenson.
Have M4sh perform minimal shell sanitizing.
* lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
part into...
(_AS_PREPARE): this new macro.
(AS_PREPARE): New.
(AS_INIT): Invoke AS_SHELL_SANITIZE.
* tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
Adjust Autoconf and Autotest.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
Invoke _AS_PREPARE (not AS_PREPARE) in addition to
AS_SHELL_SANITIZE.
Use this M4sh to generate Autoconf's shell scripts.
* tests/wrapsh.as: New, precursor of wrapsh.in.
* tests/Makefile.am: Include lib/freeze.mk to get the dependencies
on Autotest and M4sh.
($(TESTSUITE)): Use $(autotest_m4f_dependencies).
(wrapsh.in): New target.
* bin/autoconf.as: New, precursor of autoconf.in.
(autoconf.in): New target.