* doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
[autoconf.git] / ChangeLog
blobaab2a782b931dfbcfb01558eb0914ea97f3ecde1
1 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
4         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
5         Warn about obsolete install-sh files.  Remove stray sentence
6         fragment and fix cross reference.
7         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
8         install -d; this undoes the 2006-05-10 change.
9         (MKDIR_P): Mark with AN_MAKEVAR.
10         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
11         that we don't require $INSTALL to be thread-safe.  Move comments
12         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
13         of AC_PROG_INSTALL.  Output a message saying that we're checking
14         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
15         MKDIR_P instead of AC_SUBST.
16         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
17         Special magic for MKDIR_P, too.
18         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
19         a dnl.
20         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
22 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24         Sync from Automake, as follows:
26         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27         * config/install-sh: Initialize IFS, so field splitting isn't
28         turned off later.
29         * config/mkinstalldirs: Likewise.
30         * config/missing: Remove superfluous quotes.  Replace all uses of
31         `[' by `test', for consistency, and for..
32         * config/missing (sed_minuso, sed_output): New variables.
33         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
34         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
35         Fixes `missing' to detect `--output' for help2man.  Fixes
36         PR automake/483.  Report by Dennis J. Linse.
37         (autom4te): Document in `missing --help'.
39 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
41         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
42         * config/install-sh: Don't use 'path' to talk about file names,
43         as per GNU coding standards.  Close a race condition reported by Ralf
44         Wildenhues and Stepan Kasal.  There is still a race condition
45         on hosts that predate Posix 1003.1-1992, but we can't help this.
46         Don't mishandle weird characters like space on pre-Posix hosts.
47         Invoke mkdir at most once per dir arg on pre-Posix hosts.
48         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
49         AC_PROG_MKDIR_P from AS_MKDIR_P.
50         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
51         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
52         earlier editions are not (including Automake 1.8.3).
53         Do not suggest mkinstalldirs for thread-safety.
54         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
55         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
56         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
57         presence of special characters and race conditions.
58         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
59         in Autoconf's name space.
61 2006-05-10  Bruno Haible  <bruno@clisp.org>
62         and Paul Eggert  <eggert@cs.ucla.edu>
64         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
65         from Automake with minor changes.
66         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
68 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70         * config/install-sh: Update to Automake CVS version, as follows:
71         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
72         * lib/install-sh: Simplify the expr implementation of dirname.
73         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74         * lib/install-sh: Handle --, and diagnose unknown options.
76 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
79         `./autom4te' to create `./testsuite', since the `all' target
80         will ensure its presence, but `installcheck' should not create
81         the uninstalled wrappers.
83         * tests/torture.at (Unusual Automake input files): Skip if we
84         detect automake < 1.8.
86 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
89         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
90         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
91         * NEWS: Update.
93 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
96         munge (multiple) white space and other oddities.
97         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
98         single quotes in variable assignment.
99         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
100         and similar failures by adding multiple spaces, tabs, and other
101         special characters.
102         Report and different test suggested by Francesco Romani
103         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
105         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
106         single quotes, we only need to search for single quotes; this
107         both simplifies the search pattern, and makes us less
108         susceptible to `echo' variations for arguments not containing
109         single quotes.
110         (_AC_ARG_VAR_VALIDATE): Likewise.
112 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
115         `$*' and IFS concatenation issue with traditional shells and
116         bash-2.04.  Report by Seanster@Seanster.com.
118 2006-05-03  Bruno Haible  <bruno@clisp.org>
120         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
121         precisely which Mac OS X versions have the od problem.
123 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
125         * doc/autoconf.texi: Use @option systematically.
126         (Integer Overflow):
128 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
129         and Bruno Haible  <bruno@clisp.org>
131         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
132         about 'od'.
133         (Integer Overflow): Mention the special case of integer division
134         overflow.
136 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
138         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
139         traditional shells like the Solaris one that do not use the
140         first IFS character for assembling `$*'.
141         Prompted by a related report from autoconf_bug@nro.ca.
143 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
144         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
146         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
147         Mention more problems with the -e option.
149 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
151         * NEWS: Typo.
152         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
154         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
155         in URLs to improve DVI formatted output (requires texinfo 4.6).
156         (System Services, Systemology, Shellology): Likewise.
157         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
158         output.
160         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
161         continuous text.
162         (Runtime): Fix macro argument names to match description:
163         `action-if-found' -> `action-if-true' and similarly.
164         (Obsolete Macros): Likewise.
165         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
166         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
167         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
169 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
171         * doc/autoconf.texi (Limitations of Make): Clean up markup.
173         * ChangeLog: Typo.
174         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
175         DVI output.
177 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
179         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
180         /bin/sh set unsorted output.
181         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
182         * tests/local.at: Likewise.
184 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
186         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
187         (Integer Overflow, Null Pointers, Buffer Overruns):
188         (Floating Point Portability, Exiting Portably): New sections.
189         (Writing Test Programs): Fix some langauge.  Recommend exiting
190         with status 1, not merely nonzero.  Clarify exit declaration.
191         (Run Time): Move C exit status stuff to new Exiting Portably section.
192         (Systemology): Mention Posix and levenez.  Update v7 reference.
193         (Portable Shell): Mention the Posix shell.
195 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
197         * bin/autoconf.as (me): Replace by as_me.
199 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
201         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
202         since as_me isn't set yet.
204 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
206         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
207         a few minor bugs in this area.
209         * doc/autoconf.texi (Programming in M4sh): Comment out the
210         documentation of AS_BASENAME, for now.
211         (Shell Substitutions): Do not use AS_DIRNAME in an example.
212         (Limitations of Builtins) <basename>: Do not refer to
213         AS_BASENAME.
214         * bin/autoconf.as (me): Don't use AS_BASENAME.
215         (dir): Remove the unused variable.
216         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
217         AS_DETECT_REQUIRED.  All uses changed.
218         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
219         All uses changed.
220         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
221         (AS_BASENAME): Use "basename --" to protect against leading "-".
222         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
223         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
224         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
225         (_AS_DIRNAME_PREPARE): Likewise.
226         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
227         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
228         (AS_DIRNAME): Use "dirname --".
230 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
232         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
233         of "run time" and "run-time" changed to "runtime", for consistency.
234         * lib/autoconf/fortran.m4: Likewise (in comment).
235         * lib/autoconf/functions.m4: Likewise.
236         * lib/autoconf/general.m4: Likewise.
237         * lib/autoconf/headers.m4: Likewise.
239         * doc/autoconf.texi (Run Time): Document the exit status situation
240         with more accuracy and detail.
242 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
244         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
245         Archive is not officially `GNU' any more.  Update URL.
246         (Defining Directories): Likewise
247         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
249 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
251         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
252         newline from the `trap' code to finish `config.log'; the NetBSD
253         /bin/sh resets the exit status after an empty command, as
254         documented in doc/autoconf.texi.
255         Reported by Dalibor Topic <robilad@kaffe.org>.
257 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
259         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
260         Suggested by Bruno Haible.
262 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
264         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
265         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
266         Instead, just list the shells that we know work.
267         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
268         changed.  Be more cautious about the _cv_ variable.
269         * tests/tools.at (Syntax of the shell scripts): Check the
270         _cv_ variable once, at first, to avoid an internal autoconf error
271         when sh -n does not work.
273 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
275         * lib/Autom4te/FileUtils.pm: Sync from Automake.
277 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
279         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
280         use ">&-" since we're only 99.999% sure that this is portable,
281         and since the MinGW bug is fixed in a different way.
282         * lib/autotest/general.m4 (AT_INIT): Likewise.
284 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
286         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
287         before opening config.log, to avoid hitting a bug on MinGW.
289 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
291         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
292         AS_MESSAGE_LOG_FD before reopening it onto the log file.
293         This works around a MinGW bug reported by Eric Paire.
294         Make sure that all writes to the log file append to it,
295         rather than possibly losing data.
296         * lib/autotest/general.m4 (AT_INIT): Likewise.
298 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
300         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
301         description.
303 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
305         * NEWS: Update.
307         * configure.ac (AC_INIT): Bump to 2.59d.
309 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
311         Version 2.59c.
313         * Makefile.maint (news-date-check): Do not require a leading `*'
314         before the release date in NEWS.
316 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
317         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
319         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
320         the instantiated file do not contain the string 'datarootdir'
321         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
322         @mandir@, replace the reference '${datarootdir}' by the value.
323         * tests/torture.at (datarootdir workaround): New test.
324         * NEWS: Advertise this temporary fixup.
325         Based on a patch by Bruno Haible, reported and analyzed by
326         Paul Eggert and Noah Misch.
328 2006-04-12  Eric Blake  <ebb9@byu.net>
330         * tests/autotest.at (Debugging a failed test): Fix comment.
332 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
334         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
335         all the changes since 2006-04-07.
337 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
339         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
340         succeeded, but `ln -s file dir' failed, take care to remove the
341         leftover target before the next test, to prevent its spurious
342         failure; also make sure `ln file dir' works before selecting it.
343         Thanks to Keith Marshall for pointing this out.
344         * THANKS: Update.
346         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
347         assignments in `at_debug_args', so that we put them correctly
348         in the `run' script.
349         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
350         Reported by Eric Blake.
352 2006-04-11  Eric Blake  <ebb9@byu.net>
354         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
355         top-level tests after micro-suite has been run.   Used in...
356         (Debugging a successful test, Debugging script and environment),
357         (Debugging a failed test): ...these new tests.  The first of these
358         is fixed by...
359         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
360         macro, split out from...
361         (AT_INIT): ...here, so that using -d also generates a run script.
362         Document that -d inhibits top-level logging.
363         * doc/autoconf.texi (testsuite Invocation): Document that -d only
364         inhibits top-level logging; debug scripts are created.
366         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
367         check.
368         * tests/autotest.at (Empty test, Empty check): New test to check it.
370         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
371         from gcc.
373 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
375         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
376         the files if a problem appears.  Make the empty *.at files
377         read-only, too.  Proposed by Ralf Wildenhues.
379 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
381         * config/Makefile.am: Add comment to force updated Makefile.in.
383         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
384         space only patch to this file, this patch causes the Makefile.in
385         files that include freeze.mk to be updated, and thus have a
386         newer time stamp again, which in turn makes a pristine CVS
387         checkout have correct time stamps.
389         * Makefile.maint (cvs-sv): New macro, to be used..
390         (config.guess-url_prefix, config.sub-url_prefix)
391         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
392         point to CVS text checkout of Gnulib files.
393         (copyright-check): Bump current year.
394         (announcement): Do not hard-wire `./announce-gen'.
395         (cvs-update): Propagate failures of `cvs' and `move-if-change'
396         correctly.
397         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
398         `chmod +x'.
399         (wget_files): Update config.guess, config.sub, texinfo.tex by
400         `wget-update', now that their URLs work again.
402 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
404         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
405         Problem noted by Paul D. Smith.
407 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
409         * doc/autoconf.texi: Remove unused words from word list.
410         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
411         .x-sc_trailing_space: New files.
413         * doc/standards.texi: Sync from gnulib.
415         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
416         `LIBOBJDIR' as experimental.
418         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
419         with a target directory; it's internally implemented as `cp'
420         anyway, but since Autoconf advertises the possibility to use
421         a target directory when LN_S is `ln -s', we need to find out.
422         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
423         analyzed by Keith Marshall <keith.marshall@total.com>.
425         * THANKS: Update.
427 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
429         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
430         confdefs.h as-is.  In general, if it has backslash-newline or the
431         like, then it doesn't work either to sort or to remove empty
432         lines.
434 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
436         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
438 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
440         * lib/autom4te.in (Automake-preselections): Preselect
441         _AM_SUBST_NOTMAKE.
443 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
445         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
446         apostrophe within a single-quoted string, as this is the usual
447         tradition and is easier to read than '"'"'.  Don't rely on the
448         shell treating "$/" like '$/'.  Use a more-consistent indenting
449         style for the trap.
451 2006-04-09  Eric Blake  <ebb9@byu.net>
453         * tests/autotest.at (Backquote command substitution),
454         (Multiline backquote command substitution): Remove mistaken
455         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
456         applied...
457         (Parenthetical command substitution, Multiline parenthetical
458         command substitution): here.
460 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
462         Import macros from gnulib (often changing their name).
464         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
465         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
466         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
467         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
468         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
469         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
470         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
471         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
472         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
473         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
474         The manual mentions Gnulib more prominently.
475         * doc/autoconf.texi (Gnulib): New node.
476         (Pointers): Add Gnulib URL.
477         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
478         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
479         Gnulib section.
480         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
481         suggest a #define rather than a typedef for _Bool, and mention
482         Gnulib rather than trying to substitute stdbool code.
483         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
484         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
485         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
486         AC_STRUCT_DIRENT_D_TYPE.
487         (Particular Types): Mention stdint.h and inttypes.h as standard
488         headers too.
489         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
490         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
491         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
492         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
493         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
494         (C Compiler): Move AC_C_LONG_DOUBLE to ...
495         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
496         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
497         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
498         (Coding Style).  Don't mention m4_expand_once.
499         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
500         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
501         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
502         (AC_CHECK_FUNCS): Use it.
503         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
504         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
505         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
506         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
507         (AC_HEADER_ASSERT): New macro.
508         (AC_HEADER_STDBOOL): Don't assume "#error" works.
509         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
510         Catch a bug in an HP-UX C compiler.
511         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
512         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
513         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
514         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
515         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
516         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
517         New macros.
519         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
520         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
522 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
524         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
525         of the warning introduced by the 2001-08-28 change.
527 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
528             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
530         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
531         variables shall be overriden by the cache.
532         * tests/torture.at (AC_ARG_VAR): Test also with a first value
533         that contains braces.
535 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
537         Revert the patch from 2006-04-01 and only improve
538         _AS_DETECT_BETTER_SHELL:
540         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
541         skip nonexistent directories.
542         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
543         only shell candidates which exist.
544         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
545         * lib/autotest/general.m4 (AT_INIT): No need to give three
546         parameters to _AS_PATH_WALK.
548 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
549             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
551         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
552         distinguish m4sugar macros.
553         * tests/tools.at (autoupdating with aclocal and m4_include):
554         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
555         test case by Noah Misch <noah@cs.caltech.edu>.
557 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
559         Revert my change from 2006-03-17, in other words:
560         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
561           and DUALCASE=1.
562         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
563         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
564           it is set.
566 2006-04-07  Eric Blake  <ebb9@byu.net>
568         * doc/autoconf.texi (Programming in M4sh): Document that
569         AS_MKDIR_P exits the script on failure.
570         * lib/autotest/general.m4: Remove redundant AS_ERROR.
572 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
574         * config/elisp-comp, config/install-sh, config/mdate-sh,
575         config/missing, config/mkinstalldirs: Sync from Automake.
577         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
578         from Automake.
580         * doc/make-stds.texi: Sync from gnulib.
582 2006-04-06  Eric Blake  <ebb9@byu.net>
584         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
585         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
586         2006-04-01.
588 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
589             Eric Blake  <ebb9@byu.net>,
590             Paul Eggert  <eggert@cs.ucla.edu>,
591             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
593         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
594         whether `set' quotes correctly: redirect stderr of the tested
595         `set', and use a subshell, for Ultrix; use `sed' instead of
596         `grep' for zsh `set' which may write binary output; match only
597         at the beginning of a line, to avoid false positives.
598         In order to avoid false positives by unrelated variables with
599         multiline content, put the dump algorithm in a subshell and
600         unset all variables containing newlines (except some which are
601         special to the shell).  Warn about cache variables that are
602         unset.
604 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
606         * config/config.guess, config/config.sub, config/texinfo.tex:
607         Sync from upstream.
609         * tests/mktests.sh: Reword comments.
611         * tests/mktests.sh: Only skip internal macros starting with
612         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
613         Update exclusion lists for the test suite to this end:
614         (AC_ARG_VAR): Do test this now.
615         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
616         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
617         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
618         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
620         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
621         shell issue with double-quoted command substitutions of native
622         commands.
623         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
624         Marshall.
626         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
627         no file matches the glob, discard the warning, set `nullglob'.
628         (syntax-check): Likewise.
629         (sc_cast_of_x_alloc_return_value): Likewise.
630         (sc_cast_of_alloca_return_value, sc_error_exit_success)
631         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
632         (m4-check): Likewise.
633         (sc_system_h_headers): Do not print rule on execution.
634         (sc_tight_scope): Do not fail for non-existing `src' directory.
635         (sc_changelog): Skip the Copyright footer.
636         * lib/autoconf/lang.m4: Remove trailing space.
638         * lib/autoconf/status.m4: More replacements to
639         <tab><space> where this makes sense.
641 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
643         * tests/Makefile.am (maintainer-check-posix):
644           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
646         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
647           ac_config_<foo>s again, sometimes normalized, sometimes not.
648         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
649         (AC_CONFIG_COMMANDS): Do not do so here.
650         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
651           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
652           2005-07-25 rewrite.  Noticed by Noah Misch.
654         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
655           _AC_PRESERVE_HELP_ORDER, ...
656         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
658         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
659           inside m4_expand_once; it is redundant.
661         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
662           for --help from Cygnus `configure.'
664 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
666         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
667         on a patch proposed by Ralf Wildenhues.
669 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
671         * lib/autoconf/status.m4: Replace <space>''<tab> with
672         <tab><space> where this makes sense.
674 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
675             Noah Misch  <noah@cs.caltech.edu>
677         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
678         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
679         * doc/autoconf.texi (Help Formatting): New node.
680         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
682 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
684         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
685         lib/autoconf/specific.m4, lib/autoconf/status.m4,
686         lib/autoconf/types.m4, lib/autotest/general.m4,
687         tests/mktests.sh, tests/torture.at: White space cleanup:
688         remove some SPACE before TAB, or add quoting ('' or @&t@).
690         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
692         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
694 2006-04-05  Eric Blake  <ebb9@byu.net>
696         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
697         empty test suite works.
698         * tests/autotest.at (Empty test suite): Remove xfail.
700 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
702         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
703         TAGS to ac_config_<foo>s.
704         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
705         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
706         normalizing it, consistent it with previous releases.
707         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
709 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
711         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
712         Use simplified args that Eric Blake originally suggested.
714 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
716         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
717         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
718         Use 'comm' rather than N instances of grep; this also fixes a bug
719         whereby substrings were incorrectly matched, causing us to not
720         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
721         (exclude_list): Exclude empty macros.
722         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
724         Use awk rather than grep -E or egrep, to avoid
725         portability problems with regular expressions containing newlines.
726         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
727         Switch from grep to awk syntax.
728         (ac_exclude_script): Renamed from ac_exclude_egrep.
729         (au_exclude_script): Renamed from au_exclude_egrep.
731 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
733         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
734         a subdirectory subject to Cygnus `configure'.
735         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
737         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
738         report request when we have no AC_PACKAGE_BUGREPORT.
740 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
742         * THANKS: Update.
744         * tests/mktests.sh: Update copyright year in the header of the
745         generated files.
747         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
748         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
749         typedef'ed restricted pointer, to catch a compiler bug on
750         HP-UX 11.x, and fix warnings so it passes with -Werror.
751         (_AC_PROG_CC_C99): Likewise.
752         Reported by Albert Chin <china@thewrittenword.com>.
753         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
755 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
757         * bin/autoscan.in (subdirs): New global.
758         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
759         (output): Emit AC_CONFIG_SUBDIRS as needed.
760         * tests/autoscan.at (autoscan): Remove XFAIL.
762 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
764         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
766 2006-04-03  Eric Blake  <ebb9@byu.net>
768         * THANKS: Add myself.
770 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
772         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
773         to log, point to testsuite output tree.
775 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
777         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
778         * doc/autoconf.texi (Function Portability): Mention that C++
779         has trouble with 'exit'.
780         (Guidelines): Test programs shouldn't use 'exit'.
781         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
782         Remove; all uses removed.
783         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
784         Return from 'main' instead of calling 'exit'.
785         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
786         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
787         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
788         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
789         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
790         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
791         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
792         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
793         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
794         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
795         * tests/compile.at: Likewise.
797 2006-04-02  Pavel Roskin  <proski@gnu.org>
799         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
801 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
803         Clean up _AC_COMPILER_EXEEXT* macros.
805         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
806           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
807           ac_file to the name of the default output filei and call
808           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
809           initial `rm' of the candidate files...
810         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
811           the same list in subsequent `rm' calls, and for the temporary
812           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
813           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
814         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
815         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
816           no longer needed) by libtool.  Make it a cache check.
817         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
818           copied here by mistake.
819         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
820           _AC_COMPILER_EXEEXT.
821         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
822           _AC_COMPILER_OBJEXT directly.
823         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
825 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
827         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
828         (AS_DIRNAME): Use it.
829         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
831         * tests/*.at: Remove the generated ones.
833 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
835         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
837 2006-04-01  Eric Blake  <ebb9@byu.net>
839         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
840         directories, unless optional third argument supplied.
841         (AS_UNAME): Don't optimize PATH walk.
843         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
845 2006-04-01  Eric Blake  <ebb9@byu.net>
846         and Stepan Kasal  <kasal@ucw.cz>
848         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
849         and fix some typos.
851 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
853         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
854         Autoconf version number despite a zero- or one-argument AC_INIT.
856         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
857         subordinate tools.
858         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
859         * doc/autoconf.texi (autoreconf Invocation): Document it.
861         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
862         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
864 2006-04-01  Eric Blake  <ebb9@byu.net>
866         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
867         * lib/autotest/general.m4: Be tolerant of existing directory when
868           rm failed to remove it.
870 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
872         * bin/autoupdate.in: Redefine m4_location so that warnings print
873         the correct lines of the input file by subtracting..
874         (_au__first_line): ..this new definition.
876         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
877         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
878         Remove stray newline in output.
879         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
880         AC_DEFUN this for autoconf, including the obsoletion diagnose.
881         Fixes autoupdating of code where the replacement output contains
882         m4sugar macros.
883         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
884         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
885          (au_exclude_list): Add AC_LANG_SAVE.
886         * tests/tools.at: Several new tests for all of this.
887         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
888         hairy details.
889         The AC_LANG_SAVE issue was reported against Libtool by
890         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
891         Kristian Kvilekval <kris@cs.ucsb.edu>.
893 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
895         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
896           switch all of them on and of when necessary.  Fixes the bug when
897           m4sugar macros (e.g., m4_define) were expanded after the first
898           automatic update (e.g., after AC_PREREQ or AC_INIT).
900 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
902         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
903         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
905         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
906         correctly.  Problem reported by Eric Blake.
907         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
908         Ralf Wildenhues.
910 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
912         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
913         Tighten up the basename/dirname wording.
915 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
917         * Makefile.maint (sc_texi_notab): New check: do not use TABs
918         in texinfo files outside of verbatim environments.
919         (syntax-check-rules): Update.
920         * doc/autoconf.texi (Configuration Headers): Conform to it.
922 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
924         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
925           aclocal cannot be given on the command line.
927 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
929         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
930         Give an example for AS_DIRNAME instead of referring to Posix..
931         (File System Conventions): Put discussion of // versus / here, and
932         modernize it a bit.
933         (Limitations of Usual Tools): Add basename.  Remove verbiage
934         after dirname, since it got moved to the above sections.
935         All this was inspired by a patch proposed earlier by Eric Blake.
937 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
939         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
940         `$0' to protect against spaces.
941         * lib/autotest/general.m4 (AT_INIT): Likewise.
942         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
943         `$0', $as_me.
945 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
947         * bin/autoscan.in: The value of find_configure_ac should be
948         checked for existence, so we don't barf over a nonexisting
949         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
951 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
953         * bin/autoupdate.in: Fix some typos.
955 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
957         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
959         * lib/autoscan/autoscan.list: Refreshed.
961 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
963         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
964         and Erlang related variables.
966         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
967         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
968         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
969         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
970         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
971         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
972         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
973         (_AC_PROG_OBJC_G): New macros.
974         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
975         * doc/autoconf.texi (Objective C Compiler): New node.
976         (Preset Output Variables): Document OBJCFLAGS.
977         (Language Choice): Document `Objective C' language.
978         (Fortran Compiler): Fix typo.
979         * NEWS: Updated.
980         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
982 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
984         * doc/autoconf.texi (Default Includes): Fix typo
985           s/AC_HEADERS_STDC/AC_HEADER_STDC/
986         (Limitations of Usual Tools): s/unwriteable/unwritable/
987         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
988           Fix typos in the comments.
990 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
992         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
993           Factor out the warning to...
994         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
995         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
996         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
998         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
999           case `ac_delim' when writing the sed script.
1001         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
1002           moved DUALCASE=1 ...
1003         (AS_SHELL_SANITIZE): ... here.
1004         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
1005           that it is set.
1007         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
1008           AC_SUBST.
1009         (_AC_PATH_PROG): Store the result to VARIABLE.
1010         (AC_PATH_PROG): No need to set VARIABLE again.
1012         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
1013           the first one is usual AT_CHECK_MACRO test, the second one checks
1014           that the same works when cross-compiling.
1015         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
1016         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
1018 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1020         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
1021         the directory `/usr/bin/posix' in the shell search, to prefer
1022         the Posix shell not only in subsequent spawns as with `$BIN_SH'
1023         on Tru64.
1025         * doc/autoconf.texi (contents): To fix texi2html output, hide
1026         `@setcontentsaftertitlepage' for HTML.
1027         (Writing Autoconf Macros): Likewise, insert space after `@c'.
1028         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
1029         `@,{c}'.
1031 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
1033         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
1034           sanitizing...
1035         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
1036         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
1037           why IFS is restored so late; thank you, Ralf, for reminding us.
1039 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
1041         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
1042           variables in the examples.
1044 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
1046         * doc/autoconf.texi (several sections): Cleaned up documentation for
1047         macros in erlang.m4.
1049 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1051         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
1052         failure condition for `$(cmd)' style command substitutions.
1053         (Parenthetical command substition, Multiline parenthetical
1054         command substition): Use it.
1056         * doc/autoconf.texi (Special Shell Variables): Missing word.
1057         Reported by Keith Marshall <keith.marshall@total.com>.
1059         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
1060         IFS even in case of empty `$PATH'.
1062 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1064         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
1065         `expr' away if there is nothing to do.
1066         < --keywords >: Simplify and robustify argument handling.
1067         Revert erroneous comment from 2005-08-23.  Extend to allow
1068         keyword negation with `!'.
1069         Update help message.  Remove broken code to prevent running
1070         tests multiple times.
1071         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
1072         Update and fix the documentation accordingly.
1073         * tests/autotest.at (Keywords): Renamed to..
1074         (Keywords and ranges): .. this.  Extended to make sure negated
1075         keywords, keywords taken from AT_SETUP arguments, and numeric
1076         test ranges work, and that matching is case-insensitive.
1078 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1080         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
1081         allow to pass unnamed structs even in C++.
1082         (AC_CHECK_SIZEOF):  Likewise.
1083         Also fix quoting error in `AC_MSG_FAILURE' arguments.
1084         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
1085         struct): New tests for unnamed structs, each both native and
1086         cross-compiling.
1088         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
1089         a structure inside a cast, for C++ conformance.
1090         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
1091         Also fix quoting error in `AC_MSG_FAILURE' arguments.
1093         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
1094         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
1095         trying to execute the command `no'.
1097         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
1098         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
1099         expanded outside.
1101         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
1102         example.  Do not emphasize `$%', it is hardly new and special.
1103         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
1105         * doc/autoconf.texi (Limitations of Usual Tools): Document
1106         OpenBSD and traditional `grep' failure to handle multiple
1107         patterns separated by newlines.
1109 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
1111         * doc/autoconf.texi (several sections): Add documentation for macros
1112         in erlang.m4.
1114 2006-03-10  Eric Blake  <ebb9@byu.net>
1116         * doc/autoconf.texi (Obsolete Macros): Fix wording of
1117         AC_TRY_LINK_FUNC.
1119 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1121         * doc/autoconf.texi: Use @acronym more consistently for acronyms
1122         like BSD, GPL, LGPL.  Fix minor English typos.
1123         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
1124         Mention that these macros are becoming obsolete.
1125         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
1126         Use more modern terminology for which standard is what.
1127         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
1128         and to ansi2knr.
1129         (AC_PROG_CXX): Likewise.
1130         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
1131         Remove obsolete discussion about how to port to K&R.
1132         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
1133         the obsolescent AC_HEADER_STDC.
1134         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
1135         can't rely on it.
1137 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1139         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
1140         Remove stdin redirection from /dev/null to allow pipe to work.
1142 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1144         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
1145         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
1146         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
1147         Ralf Wildenhues.
1149 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1151         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
1152         HP-UX sed is 99 commands, not 100.
1153         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
1154         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
1155         newline for portability.
1156         * tests/torture.at (Torturing config.status): Also test 100
1157         AC_SUBST_FILE invocations.  Fix test to actually verify the
1158         AC_CONFIG_FILES output.
1159         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
1160         command, label, and read-file `r' limits.  Unify HP-UX spelling.
1162         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
1163         non-suffix rule.
1164         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
1165         non-GNU make.
1166         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
1167         * tests/mktests.sh: Small shell portability fixes.
1169 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1171         * doc/autoconf.texi (Caching Results): Fix the examples to use a
1172         recommended quoting style and discard unwanted output.
1174 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
1176         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
1177         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
1178         cases, and to work around Tru64 expr bug.
1180 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1182         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
1183         expr bug that turns the result of a regex match into a number if
1184         possible.
1186 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1188         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
1189         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
1190         in section `Specific Compiler Characteristics'.
1192 2006-03-04  Eric Blake  <ebb9@byu.net>
1194         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
1195         variable warning.
1197 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1199         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
1200         order of variable initialization, so even the Solaris 2.6 shell
1201         can create a config header correctly.  Fixes lots of test suite
1202         failures.
1204 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1206         * doc/autoconf.texi (Text processing Macros): New node to
1207         document the m4sugar macros m4_re_escape, m4_tolower,
1208         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
1210 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
1212         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
1213         XrmInitialize (0) -> XrmInitialize ().
1214         Reported by Toshio Kuratomi.
1216 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1218         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
1219         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
1220         * doc/autoconf.texi (Programming in M4sh): Adjusted.
1221         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
1222         both macros are defun'ed so that required macros are evaluated
1223         outside.
1225         * doc/autoconf.texi (Prerequisite Macros): State more precisely
1226         where a required macro will be expanded.
1227         (Coding Style): Another reason not to use `m4_define'.
1229 2006-02-21  Eric Blake  <ebb9@byu.net>
1231         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
1233 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1235         * doc/autoconf.texi (Looping constructs): New node, to
1236         document m4_for, m4_foreach, m4_foreach_w, and mention
1237         obsolete AC_FOREACH.
1238         (Obsolete Macros): Document AC_FOREACH.
1239         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
1240         (m4_for): Fix to never loop (almost) endlessly, work correctly
1241         with arithmetic expressions in arguments, a step of zero or
1242         non-integer multiple of the interval, and avoid integer
1243         overflow.
1244         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
1245         m4_foreach_w.
1247 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
1249         Add basic support for Erlang, both for configuring Erlang/OTP
1250         tools, and Erlang as a conf test language.
1251         * lib/autoconf/erlang.m4: New file.
1252         * lib/autoconf/autoconf.m4: Add erlang.m4.
1253         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
1254         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
1255         * NEWS: Add short description of new macros.
1256         * THANKS: Add Romain Lenglet.
1258 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1260         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
1261         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
1263 2006-02-15  Eric Blake  <ebb9@byu.net>
1265         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
1266         warning.
1268 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1270         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
1271         (_AS_CASE): Private helper macro.
1272         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
1273         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
1274         Fix syntax of AS_IF description
1275         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
1276         for the AC_REQUIRE mess.
1277         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
1278         AS_SHELL_SANITIZE.
1280 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1282         * doc/autoconf.texi: Minor style cleanup.
1283         Be consistent about spaces after commas.
1284         Insert [] where empty args look a bit funny.
1285         Fix some "i.e." and "e.g." usages.
1286         Try to avoid "X/Y" usages.
1287         Don't be pedantic about "ISO C99"; just say C99.
1288         Prefer GNU style for spaces in front of parens.
1289         (Function Portability): Comment about C89 versus C99
1290         signed integer division.
1291         (Particular Headers): Use current gnulib style for dirent
1292         includes.
1294 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
1295         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1297         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
1298         macros without parameters.
1299         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
1300         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
1301         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
1302         `$#' bug.
1303         (autoupdate): Updated to match AU_ALIAS fix.
1305 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1306         and Paul Eggert  <eggert@cs.ucla.edu>
1308         * doc/autoconf.texi (Programming in M4sh): Document
1309         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
1311 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1313         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
1314         (AS_BOURNE_COMPATIBLE): ..this.
1315         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
1317 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1319         * doc/install.texi (Defining Variables): Tighten up the
1320         CONFIG_SHELL wording.
1322 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
1323         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1325         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
1326         of (set -o) rather than testing whether (set -o posix) succeeds,
1327         to work around a bug in the AIX 5.3 shell.  Problem originally
1328         reportd by Howard Chu for libtool.
1330 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
1332         * doc/autoconf.texi (Running the Compiler, Running the Linker):
1333         Changes the macro arguments in summaries to match the
1334         descriptions.
1336 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
1338         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
1339         hint as ``a workaround for a bug.''
1341 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1343         * bin/autoreconf.in: New option `--no-recursive'.
1344         Improve wording for subpackages a bit.
1345         * doc/autoconf.texi (autoreconf Invocation): Updated.
1346         * NEWS: Updated.
1348         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
1349         in environment of `configure', not the command line.
1350         Reported by Howard Chu <hyc@highlandsun.com>.
1352 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1354         * doc/autoconf.texi (Limitations of Builtins): Document the
1355         problem with "trap -".
1357 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
1359         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
1360         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
1361         messages to differentiate Fortran and Fortran 77 tests.
1362         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
1363         AC_LANG_ASSERT, to allow use in mixed-language projects.
1365 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1367         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
1368         FOO" to "defined (FOO)".
1369         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
1370         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
1371         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
1372         * tests/tools.at (ifnames): Likewise.
1374 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1376         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
1377         * lib/Autom4te/General.pm (mktmpdir): Likewise.
1378         (END): Improve error message a bit.
1379         Reported by Bruce Korb <bkorb@gnu.org>.
1381 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1383         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
1384         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
1386 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
1388         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
1389         requires sys/stream.h.  Reported by Oliver Kiddle.
1391 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1392             Stepan Kasal  <kasal@ucw.cz>
1394         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
1395         before the removals of test dirs, use `find' to avoid modification
1396         of symlinked directories.
1398 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
1400         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
1401         Don't ignore the macro arguments.
1403 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
1405         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
1406         declaration that works for MSVC.
1408 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1410         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
1411         Add `*.map' and `.inf' for Green Hills compiler.
1412         Reported by Stefan Seefeld <stefan@codesourcery.com>.
1414         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
1415         correctly: pad with spaces after FIRST_PREFIX if necessary,
1416         and compute string lenghts with `m4_qlen' instead of `m4_len'.
1417         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
1418         * tests/m4sh.at (AS_HELP_STRING): Test extended.
1419         * NEWS: Updated.
1420         Reported by numerous people, numerous times.
1422 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1424         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
1425         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
1426         * lib/autoconf/general.m4, lib/autoconf/status.m4:
1427         * lib/autotest/general.m4, tests/local.at:
1428         Update copyright year to 2006.
1430         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
1431         sed substitutions.
1432         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
1433         for file names, again.  Reported by Noah Misch.
1434         (Coding Style): Explain that s|a|b| is preferred for file names.
1435         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
1436         (AC_OUTPUT_MAKE_DEFS): Likewise.
1437         * lib/autotest/general.m4 (AT_INIT): Likewise.
1438         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
1439         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
1441         Fix Posix-conformance bugs re use of { command in sed scripts,
1442         and improve the sed-related documentation a bit.
1443         * doc/autoconf.texi (Installation Directory Variables): Use
1444         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
1445         rather than "sed" when talking about Sed in general.
1446         (Particular Programs): Likewise.
1447         (Coding Style): y is like s with respect to / and ,.
1448         (Limitations of Usual Tools): Document the weird restrictions
1449         that Posix has about { }.  Use better quoting.
1450         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
1451         Rewrite to conform to Posix rules about { } in sed scripts.
1452         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
1453         * tests/foreign.at (Libtool): Likewise.
1454         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
1455         Use our own style advice re 's,a,b,' versus 's|a|b|'.
1457 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1459         * lib/autoconf/status.m4: Fix typo.
1461         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
1462         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
1463         `-def', for the benefit of Portland `pgf90 -Mipa'.
1464         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
1466 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1468         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
1469         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
1470         shell from zsh to bash.
1472 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
1474         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
1475           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
1477 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1479         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
1480         parentheses in $(...).  Problem reported by Eric Blake.
1482 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1484         * doc/autoconf.texi (Limitations of Usual Tools):
1485         Mention which characters can be escaped with \ in portable regular
1486         expressions used in grep, sed, expr.  Mention the leading ^ problem
1487         with expr.  Clean up some confusing wording.  Mention which
1488         grep options are portable.
1490 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
1492         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
1494 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1496         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
1497         patch, noted by Ralf Wildenhues.
1499 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1501         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
1502         posix' unconditionally, for pdksh in `native sh' emulation.
1504 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1506         * doc/autoconf.texi (Shellology): Document eval $? problem
1507         with ash.
1508         (Limitations of Builtins): Likewise.
1510 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1512         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
1513         CONFIG_SHELL in the environment of the configure rerun.
1514         * doc/autoconf.texi (Here-Documents, config.status Invocation):
1515         Suggest passing CONFIG_SHELL absolute, and in the environment
1516         rather than as option.
1518 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1520         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
1521         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
1522         Fix macro quoting.  Fix output for n * 98 substituted variables.
1524 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1526         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
1527         `tmp' to avoid file removal race.
1529 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1531         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
1532         ac_clean_files and LIBOBJS.
1534 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1536         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
1537         Factor functionality to..
1538         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
1539         `AC_SUBST($1)' in the public version.
1540         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
1541         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
1542         ac_pt_* variables.
1544 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
1546         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
1547         filesystems.
1549 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1551         * NEWS: Move AH_HEADER mention to right place.
1553 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
1555         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
1556         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1558 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
1560         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
1561         conftst2.$ac_objext.
1562         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1564 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
1566         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
1567         conftest.o, to see whether the compiler really obeys; rm the object
1568         file before and after the test and register it with ac_clean_files.
1569         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1571 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
1573         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
1574         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
1575         code so that the most common case requires less forks.
1577 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
1579         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
1580         not portable; thanks to Paul Eggert and Alexandre.
1582         * NEWS: Fix an old typo.
1584 2005-10-20  Jim Meyering  <jim@meyering.net>
1586         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
1587         the latter'', in two places.
1589 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1591         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
1592         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
1593         the inner workings of AC_LANG_FUNC_LINK_TRY.
1594         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
1595         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
1596         by the function rather than ignoring it.
1597         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
1598         comparing its address.  Intel's interprocedural optimization was
1599         outsmarting the old heuristic.  Problem reported by
1600         Mikulas Patocka.
1602 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
1604         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
1606 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1608         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
1609         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
1611 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
1613         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
1614         before removing it (chmod -R u+rwx); there are three instances of this.
1616 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1617             Stepan Kasal  <kasal@ucw.cz>
1619         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
1620         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
1621         make its content writable before removing it.  Remove an errorneous
1622         comment from the end, where the logs of the failed tests are copied
1623         to the main log file.
1625 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
1627         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
1628           in case the computer is too quick.  Double quote the configure.ac
1629           snippets.
1631         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
1632           problems if the testsuite were running too fast.
1634 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1636         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
1637         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
1638         (which belong to Xt, not X itself).  See Debian bug 327655.
1639         * NEWS: Mention this.
1641 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
1643         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
1645 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
1647         * config/move-if-change: Don't output "$2 is unchanged";
1648         suggested by Ben Elliston.  Handle weird characters correctly.
1650 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
1652         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
1653           calls, so that the final expansion of this macro is shorter.
1654           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
1655           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
1656           the cleanup there.  Use AS_VAR_* macros, to be more general.
1657         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
1659         * lib/autoconf/general.m4: Use AS_IF where appropriate.
1661         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
1663 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
1665         * doc/autoconf.texi (Configuration Headers): Add an index entry
1666           for AH_HEADER.
1668 2005-08-26  Pavel Roskin  <proski@gnu.org>
1670         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
1671         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
1672         running xmkmf.
1674 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
1676         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
1677         The previous patch didn't work, so try a better one.
1679 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
1681         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
1682         in the example.  Reported by Bruno Haible.
1683         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
1684         "if $undefined_var;" succeeds with my shell.
1686         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
1687         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
1688         but change the m4_divert_text to m4_divert_once.
1690 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1692         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
1693         Work around bug in Solaris /usr/xpg4/bin/awk.
1694         The bug is present in at least Solaris 8 through 10.
1696 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
1698         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
1699         some evil values and relying on the fact that $* concatenates the
1700         parameters by the first character from IFS.
1702 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
1703             Stepan Kasal  <kasal@ucw.cz>
1705         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
1706         first header appears, define AH_HEADER.
1707         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
1708         Update limitations about when to call AC_CONFIG_HEADERS.
1709         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
1710         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
1711         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
1712         ``Configuration Actions''; fix their index entries.
1714         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
1715         options correctly.  Process N-M as M-N if M is smaller than N.
1716         Process ranges correctly so that N-N will run only N.
1717         Sort and uniquify the tests that will be run.  If there is more
1718         than one test, reinsert the banners for the tests.
1719         * tests/autotest.at (Keywords): Unmark XFAIL.
1721 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
1723         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
1724           before passing the macro name to AH_TEMPLATE.
1726         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
1727           now opens log after option processing; in particular, --version
1728           and --help do not touch config.log.
1730         * Makefile.maint: Revert the change from 2005-08-12.
1732 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
1734         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
1735           common code to...
1736         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
1738 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1740         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
1741         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
1742         Language cleanup.
1744         * doc/autoconf.texi (Defining Symbols, Changed Results):
1745         Prepend to LIBS, not append, in examples.
1747 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
1749         When building in place, set srcdir="."; suggested by Tim Van Holder.
1751         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
1752           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
1753         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
1754         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
1755           does not mean "no --srcdir option".
1757 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1759         * tests/autoscan.at (autoscan): New file.
1760         * tests/suite.at: Use it.
1761         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
1762         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
1764         * tests/autotest.at (Keywords): Test keywords combinations.
1766 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
1768         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
1769           add "2>&1"; gzip 1.2.4 prints help on stderr.
1771 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
1773         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
1774         was pushdef'ed twice while popped only once.  Push it only once.
1775         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
1777 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
1779         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
1780         prefixed by mere "===", not "configure: === ".
1782 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1784         * Makefile.maint: Update from Bison.
1786         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
1787         "<tab>" in comment, so that the point is understandable.
1789 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
1791         Rewrite substantial part of lib/autoconf/status.m4.
1792         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
1793         and CONFIG_COMMANDS are not processed in four separate loops.
1794         Instead, there is one main loop.  This alows that the common code
1795         is expanded only once, thus config.status (and configure) is smaller.
1797         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
1798         the AC_LIST_FILES and cousins macros are no longer used.
1800         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
1801         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
1802         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
1803         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
1804         contain the initialization, nor the for loop, nor the associated
1805         commands; all these go to ...
1806         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
1807         _AC_OUTPUT_CONFIG_STATUS.
1808         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
1809         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
1810         (_AC_OUTPUT_FILE): The creation of the sed script ...
1811         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
1812         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
1813         _AC_OUTPUT_MAIN_LOOP.
1814         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
1815         _AC_CONFIG_COMMANDS): Use ...
1816         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
1817         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
1818         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
1819         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
1820         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
1821         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
1822         ... new macros.
1823         (_AC_CONFIG_UNIQUE): Update.
1824         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
1825         Replaced by this ...
1826         (_AC_LIST_TAGS): ... new common macro.
1827         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
1828         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
1829         (_AC_LIST_TAG_COMMANDS): ... new common macro.
1830         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
1831         this didn't belong to the `config commands' section.
1832         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
1833         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
1834         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
1835         to the `config commands' section either.
1836         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
1837         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
1839         ... and many changes to the comments nearby.
1841         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
1842         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
1843         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1844         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
1845         (#define header templates): The comment at the top of the generated
1846         header now includes the name(s) of the source file(s).
1848         Several unrelated small changes:
1850         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
1851         parameter to AC_DIAGNOSE.
1852         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
1853         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
1854         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
1855         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
1856         with AU::AC_OUTPUT.
1857         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
1858         in AC_OUTPUT doesn't double-quote it either.
1859         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
1860         parameters.
1862 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
1864         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
1865         versions of Portland Group compiler produce single- and double-quoted
1866         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
1867         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
1869 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1871         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
1872         This is a corrected version of yesterday's patch.
1874 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
1876         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
1877         path, too; insert a "===" to emphasize the line.
1879         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
1880           ac_cv_build_alias to ac_build_alias.
1881         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
1883         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
1884         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
1885         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
1886         (AC_ARG_VAR): ... here.
1887         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
1888           target_alias.
1890         Keep a list of all precious variables and process them with one simple
1891         for loop, instead of expanding all commands, or, OTOH, complicated
1892         processing of output of "set".
1893         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
1894         variable names in new macro...
1895         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
1896         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
1897           a loop to assign all ac_env_* and ac_cv_env_* variables.
1898         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
1899           to INIT_PREPARE.
1900         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
1901           its value to shell variable ac_precious_vars and call
1902           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
1903         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
1904           _AC_ARG_VAR_VALIDATE.
1906         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
1907           and the AC_SUBSTs ...
1908         (AC_INIT): ... here.
1910         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
1911           the ac_subst_files section in config.log.
1913         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
1915 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1917         * NEWS: New macro AC_C_TYPEOF.
1918         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
1919         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
1920         * tests/c.at (C keywords): Test AC_C_TYPEOF.
1922         Fix problems reported by Nicolas Joly.
1923         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
1924         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
1925         They are generated by the Tru64 v5.1B shell.
1927 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
1929         Fix my changes from 2005-07-01; reported by Noah Misch.
1930         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
1931         description, the macro now accepts only a single tag.
1932         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
1934         Fix cases when the varsions of Autoconf and Autotest don't match.
1935         Reported by Noah Misch.
1936         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
1937         at_top_builddir, for compatibility with older autotest.
1938         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
1939         is not set, use at_top_builddir, for compatibility with older
1940         versions of autoconf.
1942 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1944         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
1945         Problem reported by Patrick Welche.
1947 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1949         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
1950         sed substitution command, so that we allow | in program prefixes
1951         and program suffixes.  (& is a problem anyway; we're not fixing
1952         that here.)
1953         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
1954         configure_input, top_builddir, srcdir, etc.
1955         * lib/autotest/general.m4 (AT_INIT): Likewise, for
1956         PATH_SEPARATOR in AUTOTEST_PATH.
1958 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
1960         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
1961         for loop over config.site files using `set', to allow
1962         directory names containing IFS characters.
1964 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1966         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
1967         directories with weird names.  Apparently some people like living
1968         on the edge.  However, improve the test that "pwd" actually does
1969         report a name for the working directory.
1970         * NEWS: Remove the claim that we test for funny chars in dir names.
1972 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
1974         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
1975         replaced ...
1976         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
1977         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
1978         Now accept a single tag, not whitespace separated list.
1979         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
1981 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
1983         * doc/autoconf.texi (Configuration Headers): Change the explanation
1984         about #include <config.h>.
1985         (Generic Functions): Mention the Gnulib project.
1986         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
1988         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
1989         document to output the default config_* lists to config.status.
1990         Don't recognize option --file, if the functionality is not there.
1991         Likewise for --header; moreover, recognize --he and --h as shortcuts
1992         for --help in that case.
1994         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
1995         matches the order of execution.  No code changed.
1997 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1999         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
2000         single-quoted -cmdline argument in Portland Group compiler.
2001         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
2003 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
2005         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
2007 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2009         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
2010         descriptors to child processes; reported by Norman Gray.
2012 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2014         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
2016         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
2017         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
2018         (AC_SUBST): Call it.
2019         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
2020         the directory specific variables; but don't call it for configure_input.
2022 2005-06-28  Derek Price  <derek@ximbiot.com>
2024         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
2025         addition.
2027 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2029         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
2030         directory have inherent problems with special characters like spaces,
2031         due to limitations in Make syntax.  Problem reported by Alexandre
2032         Duret-Lutz.
2033         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
2034         Also, fix Tru64 porting problem with shell patterns,
2035         reported by Ralf Wildenhues.
2037 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2039         * doc/autoconf.texi (Subdirectories): Fix markup typos.
2041 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2043         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
2045         Fix some more shell quoting problems.  Prompted by a bug report
2046         from Justace Clutter.
2047         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
2048         variable into diagnostic.  Make the diagnostic an error, not a warning,
2049         because we really don't support spaces and suchlike in dir names.
2050         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
2051         Don't worry about backslashes in srcdir; it can't happen now.
2052         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
2053         Simplify ac_optarg handling.
2054         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
2056 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
2058         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
2059         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
2060         * tests/atlocal.in: Propagate $EGREP and $SED.
2061         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
2062         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
2064         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
2065         that '\|' is not allowed in BREs; recommend using newline separated
2066         list of patterns instead of multiple -e options.
2068         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
2070         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
2072 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2074         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
2076 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
2078         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
2079         b, t, r, w commands require single space, while : cannot have any.
2080         (Special Shell Variables): Fix sed code this in the example.
2081         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
2082         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
2084         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
2085         expand to the empty list.  Don't use two pairs of m4_changequote,
2086         it's not necessary.
2088 2005-06-20  Derek Price  <derek@ximbiot.com>
2090         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
2092 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2094         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
2095         * doc/autoconf.texi:
2096         Don't mention Solaris versions so much, if a
2097         problem is common to all extant versions of Solaris.  Say "SunOS
2098         4" instead of "SunOS" for SunOS 4.
2099         (awk): Mention more of the limitations of traditional Awk.
2100         (cat): Don't talk about cat -v.
2102 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2104         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
2105         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
2106         but the implementation is entirely different and is designed
2107         to be compatible with glibc strverscmp.
2108         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
2110         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
2111         on Mac OS X 10.4 reported by Peter O'Gorman in:
2112         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
2113         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
2114         Use shell builtins rather than 'expr', to work around expr bug.
2116 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
2118         * doc/autoconf.texi: "filesystem" -> "file system".
2119         "behaviour" -> "behavior".
2120         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
2121         * lib/autoconf/general.m4: Omit blank after ":" sed command,
2122         as per POSIX.
2123         * lib/m4sugar/m4sh.m4: Likewise.
2124         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
2125         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
2127         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
2128         (.x.1): Ignore the time stamp in the .TH line when deciding whether
2129         to update the man page.  That way, we don't have to check in new
2130         man pages every month.
2132         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
2133         quotes and backslashes.  Patch from Derek Price.
2135 2005-06-10  Derek Price  <derek@ximbiot.com>
2137         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
2138         AS_TR_SH.
2140 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
2142         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
2143         -u, since it outputs chatter if the input files are the same.
2144         Problem reported by Ralf Menzel.
2146 2005-06-08  Derek Price  <derek@ximbiot.com>
2148         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
2149         renaming them since they are about to be redefined anyhow.
2151 2005-06-08  Derek Price  <derek@ximbiot.com>
2153         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
2154         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
2155         Move m4_undefine to alphabetical order.
2157 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2159         * README: Recommend GNU M4 1.4.3 or later.
2160         * doc/autoconf.texi (Introduction): Likewise.
2161         Reword to avoid some formatting glitches.
2162         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
2163         Clarify explanation of HP compiler bug.
2164         Redo example output tp match current CVS snapshot.
2165         Use @example.org in email addresses when the examples
2166         might get inadvertently cut-and-pasted into user code.
2167         Remove example of autom4te usage that doesn't seem to work now.
2168         Use modern AC_INIT (except when the example is meant to be
2169         shown with Autoconf 2.13).
2170         Update ksh info for Solaris 9 and later.
2171         KB -> kB.
2172         Modernize description of Automake versions a bit.
2173         Don't claim a future version of Autoconf is near.
2174         * doc/install.texi: Reword to avoid some formatting glitches.
2176 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2178         * doc/autoconf.texi: Add [] to examples, so that the manual
2179         follows its own advice about quoting better.
2180         Reword to avoid some formatting glitches.
2181         * doc/installt.exi: Reword to avoid some formatting glitches.
2183         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
2184         Tru64 ksh pattern matching bug.  Reported against Libtool by
2185         Albert Chin <libtool@mlists.thewrittenword.com> and
2186         Nicolas Joly <njoly@pasteur.fr>.
2188 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
2190         m4_cdr of one-member list was [[]] (one-member list containing an
2191         empty string) instead of [] (an empty list.  Callers were skewed to
2192         match this misbehaviour.  As a consequence of this:
2193          - m4_foreach([x], [], [foo]) expanded to `foo', while
2194          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
2195         This bug has been fixed:
2197         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
2198           expand to an empty string; print error msg if called without
2199           an argument list.
2200         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
2201           misbehaviour; handle [] and [[]] correctly.
2203 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
2205         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
2206         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
2207           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
2209 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
2211         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
2212           swallow records with more than 99 fields.
2213         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
2214           parse the long line.
2216 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
2218         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
2219           swallow literals longer than 399.  Reported by Ralf Wildenhues.
2220         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
2221           to workaround this limitation.
2223 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
2225         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
2226         to gfortran, and make these the first two compiler names
2227         checked (following the general autoconf preference for gcc).
2229 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
2231         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
2232         (DISTCLEANFILES): Remove $(check_SCRIPTS).
2233         (testsuite): Make sure autotest.m4f is up-to-date before using it.
2235 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2237         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
2238         expression of unbounded size when processing the --list
2239         option.  This runs afoul of a limit of 399 bytes per regular
2240         expression on AIX.  Problem reported by Ralf Wildenhues.
2242 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2244         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
2245         * doc/autoconf.texi (Particular Headers): Reword example
2246         for multiline stdbool replacement.
2247         (Setting Output Variables): Reword text a bit.  Don't
2248         give all the details about |#_!!_#|.
2249         Reword description of line replacement.
2251 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
2253         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
2254         now contain newlines, and substituted files must be referenced on
2255         a line alone; the sed scripts to substitute them are now very
2256         different.
2257         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
2258         commands can be put in a sed script portably.
2259         * doc/autoconf.texi (Setting Output Variables): Document above
2260         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
2261         use of multiline substitution.
2262         * tests/torture.at: No longer expect substitution of newline to fail.
2264 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2266         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
2267         From Ralf Menzel (trivial change).
2269 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2271         * tests/local.at: Don't attempt to check for negated character
2272         classes in shell scripts.  The test was too brittle.
2274 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
2276         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
2277         * doc/autoconf.texi (Limitations of Builtins): Document this
2278           limitation.
2280 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
2282         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
2283           common code; used in many places in the tree.
2284         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
2285         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
2287         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
2289         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
2290           messages when ac_unique_file is not found.
2291         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
2292         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
2293           commands, for consistency with AC_MSG_ERROR and such.
2295         * bin/autoconf.as: Make more use of "shift 2" in option processing.
2297         * bin/Makefile.am: Merge the two rules for creating scripts.
2299 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
2301         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
2302         obsolete; it was never documented.
2303         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
2305 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
2307         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
2308         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
2309         (ac_top_builddir): ... this ...
2310         (ac_top_build_prefix): ... to this; the old name is also kept, for
2311           backward compatibility.
2312         (ac_top_builddir_sub): New variable, without the trailing slash,
2313           always nonempty.
2314         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
2315         * doc/autoconf.texi (Configuration Actions): Rename
2316           ac_top_builddir to ac_top_build_prefix.
2317         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
2318           at_top_builddir to at_top_build_prefix.
2319         * lib/autotest/general.m4 (AT_INIT): Likewise.
2321 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
2323         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
2324           of confdefs.h .
2326 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
2328         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
2329           argument to m4_foreach.  I guess it was necessary in the past,
2330           but I think it's a no-op now.
2332 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
2334         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
2335           ``cat <<_ACEOF'' commands to one.
2336         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
2337         * lib/autoconf/status.m4: On various places, use expr instead of
2338           ``echo|sed.''
2339         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
2340         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
2341         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
2342           a range.
2343         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
2344           the wrong patterns between ``case'' and ``esac.''  The previous
2345           code had false positives.
2347 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
2349         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
2350         as on 2005-05-02.
2351         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
2352         Mention LIBOBJDIR.
2354 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2356         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
2357         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
2358         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
2359         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
2360         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
2361         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
2362         config/config.guess, config/config.sub, config/elisp-comp,
2363         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
2364         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
2365         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
2366         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
2367         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
2368         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
2369         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
2370         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
2371         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
2372         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
2373         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
2374         lib/autoconf/general.m4, lib/autoconf/headers.m4,
2375         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
2376         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
2377         lib/autoconf/specific.m4, lib/autoconf/status.m4,
2378         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
2379         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
2380         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
2381         lib/autotest/general.m4, lib/emacs/Makefile.am,
2382         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
2383         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
2384         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
2385         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
2386         tests/compile.at, tests/foreign.at, tests/fortran.at,
2387         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
2388         tests/semantics.at, tests/suite.at, tests/tools.at,
2389         tests/torture.at, tests/wrapper.as:
2390         Update FSF postal mail address.
2392 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
2394         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
2395           check.
2396         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
2397           enough arguments, similarly as in m4_bpatsubsts.
2399 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
2401         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
2402           of absolute paths.
2404 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
2406         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
2407           for absolute directory names in one loop.
2408         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
2409           abbreviations of --version and --debug.
2411 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2413         * doc/autoconf.texi (Autoconf Language): Be more precise about
2414         quoting rules.  Problems noted by Stepan Kasal.
2415         Also, throughout this document, be more careful about white space.
2416         "blank", "white space", and "space" all have different meanings
2417         and we should be careful to say what we mean.
2419 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2421         Fix C++ related problems reported by Werner Lemberg.
2422         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
2423         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
2424         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
2425         avoid problems with C++ and throw.
2426         * tests/compile.at: .cpp, not .cc.
2428         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
2430 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2432         * doc/autoconf.texi (Generic Functions): Typos.
2434 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
2436         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
2437         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
2438         set by latest automake.
2440 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
2442         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
2443         outputs 0 on GNU/Linux these days.
2445 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2447         * doc/autoconf.texi (Autoconf Language): Add more description
2448         about quoting heuristics.
2449         (Limitations of Builtins): Describe "set -" problems.
2451 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2453         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
2454         not newline.
2456         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
2457         by AC_DEFINE; it was a mistake.
2458         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
2460 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
2462         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
2464 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
2466         * doc/autoconf.texi (External Software): Quadrigraphs are not
2467           processed correctly in AS_HELP_STRING; avoid this in the examples.
2468         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
2469         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
2470           comment and reduce m4_default([foo], []) to [foo].
2471         (m4_strip): Update the explanation.
2473 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
2475         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
2476         Remove core.conftest.* too; it's generated by Tru64 5.1.
2477         Problem reported by Jennis Pruett.
2478         * lib/autoconf/functions.m4
2479         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
2480         Don't bother to remove core files; AC_RUN_IFELSE should do that
2481         for you.
2483 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
2485         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
2487 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
2489         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
2490         Report from Horst Wente.
2492 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
2494         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
2495           the comment.
2497 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
2499         * doc/autoconf.texi (External Software, Package Options): Add
2500           examples showing how to implement --with-* and --enable-* options.
2502 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
2504         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
2505         as well as configure.in.  Problem reported by Gregorio Guidi.
2507 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
2509         * doc/autoconf.texi (Particular Functions): Use gnulib's current
2510         pattern for alloca snippet.
2512 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
2514         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
2516 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
2518         * doc/autoconf.texi (Generic Programs): Fix a typo.
2520 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
2522         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
2523         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
2525 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2527         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
2528         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
2529         whole-archive (-zallextract, -zdefaultextract) options in the hope of
2530         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
2531         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
2533 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
2535         * NEWS: The configure command now warns you if you attempt to use
2536         a directory whose name contains a special character like space,
2537         newline, or "\".
2538         * doc/autoconf.texi (Installation Directory Variables): Allow
2539         "," in file names.  Do not use \@; it's not a portable regexp.
2540         * bin/Makefile.am (edit): Likewise.
2541         * lib/Makefile.am (edit): Likewise.
2542         * tests/Makefile.am (edit): Likewise.
2543         * tests/semantics.at: Likewise.
2544         * tests/torture.at: Likewise.
2545         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
2546         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
2547         * doc/autoconf.texi (File System Conventions): Warn about
2548         unportable file names.
2549         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
2550         (AC_INIT): Use it.
2551         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
2552         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
2553         ac_pwd, and quote srcdir.
2554         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
2556         * doc/autoconf.texi: Fix some systematic formatting problems.
2557         ".)"  needs a following @: if not at the end of a sentence, and
2558         similarly for "!)".  "etc." should be preceded by a comma.
2559         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
2561 2005-03-22  Bruno Haible  <bruno@clisp.org>
2563         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
2564         argument is often called 'build-aux'.
2566 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
2568         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
2569           macro AC_TRY_LINK is obsolete.
2570         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
2571           `AC_CONFIG_FILES'.
2573 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
2575         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
2576           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
2577           from a Common Lisp's `cl'.
2578         (AC_PROG_CXX): Behave according to the documentation: don't
2579           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
2580           make the variable CCC precious; use `cl.exe', not `cl'.
2582 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2583             Alexandre Duret-Lutz  <adl@gnu.org>
2585         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
2586         /dev/null, as "configure" shouldn't read stdin, and this insulates
2587         us from problems (e.g., when testing for "cl").  Also, do this
2588         redirection before invoking "hostname" or "uname", and keep the
2589         original input stream available via...
2590         (AS_ORIGINAL_STDIN_FD): ... this new macro.
2591         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
2592         bother with "</dev/null" since it's now done at the top of
2593         'configure'.
2594         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
2595         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2596         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
2597         * doc/autoconf.texi (File Descriptor Macros): New section.
2598         (Printing Messages): Mention it.
2599         * tests/base.at (Input/Output): New test.
2601 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2603         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
2604         newline if neither \c nor -n work, as that would output two
2605         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
2607 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
2609         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
2610         This causes that any required macros inside will get before the if.
2611         * doc/autoconf.texi (autom4te.cache): A typo.
2613 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2615         Undo previous change, except keep the change to
2616         lib/autoconf/programs.m4 that replaced grep with shell
2617         pattern-matching.  This is because net-snmp configure reads stdin.
2618         Reported by Noah Misch.
2620 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
2622         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
2623         from /dev/null, as "configure" shouldn't read stdin, and this
2624         insulates us from problems (e.g., when testing for "cl").
2625         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
2626         before invoking "hostname" or "uname".
2627         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2628         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
2629         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
2630         "</dev/null" since it's now done at the top of 'configure'.
2631         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2632         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
2633         Also, replace grep with shell pattern-matching, to save a process.
2635 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
2637         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2638         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
2639         avoid thinking that Allegro Common Lisp's "cl" command is a C++
2640         compiler.
2642 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2644         * doc/autoconf.texi (Limitations of Usual Tools): Document that
2645         grep -q isn't portable.  Improve grep -s explanation.
2646         Problem reported by Dan Manthey.
2648 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2650         * doc/autoconf.texi (Special Shell Variables): Clarify
2651         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
2653 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2655         * doc/autoconf.texi: Use @acronym for DJGPP.
2656         Fix some @code's that should have been @env's, and vice versa.
2657         Sort environment variable names.
2658         Mention that shells no longer inherit IFS.
2659         Don't recommend PATH_SEPARATOR=';' so strongly.
2660         Mention that $RANDOM might expand to the empty string.
2661         "symlink" and "soft link" -> "symbolic link".
2662         Improve mktemp description (reported by Bruno Haible).
2664 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
2666         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
2667         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
2668         Likewise.
2669         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
2670         Likewise.
2672 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2674         * NEWS: Mention AT_COPYRIGHT.
2676         * tests/local.at (AT_CMP): Use diff directly on input files rather
2677         than copying them.
2679         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
2680         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
2682 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
2683         and Paul Eggert  <eggert@cs.ucla.edu>
2685         * tests/autotest.at (Empty test suite): New test.
2686         * tests/torture.at (Substitute and define special characters)
2687         (Substitute a 2000-byte string, Define to a 2000-byte string)
2688         (Substitute a newline, Define a newline): New tests.
2690 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
2692         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
2693         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
2694         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
2695         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
2696         (Standard regular expressions): New test.
2697         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
2698         excess test name quoting.
2699         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
2700         CPPFLAGS to `configure' instead of setting it in `configure'.
2702         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
2703         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
2704         on some platforms.
2706         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
2707         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
2709         * tests/local.at (AT_CMP): New macro.
2710         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
2711         (AC_SAVE_STATE): Move environment grep...
2712         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
2713         (AT_CONFIG_CMP): New macro.
2714         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
2715         * tests/c.at (Extensions): Do not exit early.
2716         * tests/atlocal.in: Inherit $GREP.
2718         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
2719         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
2721         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
2722         (AC_COPYRIGHT): Factor header comment portion out and move into...
2723         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
2724         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
2725         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
2726         --version output.
2727         * tests/local.at: Add Autoconf test suite copyright notice.
2728         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
2730 2005-02-04  Bruno Haible  <bruno@clisp.org>
2731         and Paul Eggert  <eggert@cs.ucla.edu>
2733         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
2735 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2737         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
2738         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
2740         Try not to generated lines of unlimited length, as POSIX places a
2741         2047-byte limit on line length of portable text files.
2742         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
2743         Use newline as a separator, not space.
2744         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
2745         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
2746         space.
2748 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2750         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
2751         as_func_*.  Add test to check whether positional parameters
2752         are restored after function return.
2754 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
2756         * doc/autoconf.texi (Special Shell Variables): Mention _,
2757         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
2758         if they contain a lower-case letter.  The DUALCASE problem was
2759         reported by Ralf Wildenhues.
2761         * bin/autoconf.as: Don't exit with status 0 after write failure
2762         with --help or --version.
2763         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
2764         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
2766 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2768         * doc/autoconf.texi (Limitations of Usual Tools):
2769         Unicos 9 sed limitations.
2770         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
2771         to get the option-enhanced interface on older Crays.  Try ftn for
2772         Fortran 95 (newer Crays).
2774 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
2776         * man/Makefile.am (.x.1): Go back to the simple solution, but take
2777         care to echo the commands, so the user knows what's going on.
2778         Modified from a suggestion by Stepan Kasal.
2780         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
2781         with a cross reference.  Derived from a suggestion by Bruce Korb.
2783 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
2785         * doc/autoconf.texi (config.status Invocation): Warn about
2786         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
2787         * doc/install.texi (Defining Variables): Likewise.
2788         Based on a proposed patch by Ralf Wildenhues.
2790         * man/Makefile.am (.x.1): Make sure the required generated files
2791         are up to date.  Problem and original solution proposed by Stepan Kasal.
2792         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
2793         implicit-man-prerequisites): New rules, used by the above.
2795         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
2796         * config/config.guess, config/config.sub, config/install-sh: Likewise.
2797         * config/missing, config/texinfo.tex: Likewise.
2799 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
2801         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
2802         Update the long comment explaining it.
2804         m4_require no longer writes an ``is required by'' line to the
2805         execution stack.  It contains only one bit of non-redundant
2806         information: that the macro was required, not called.  And even
2807         this bit is useless in most situations: have you ever met a macro
2808         which both calls and requires the same macro?
2810         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
2811         (_m4_defun_pro_outer): ... only via this macro, for the outermost
2812           macro.
2813         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
2814         (m4_expansion_stack_pop): Remove the misplaced comment.
2815         (m4_require): Don't put the ``is required by'' line to the
2816           execution stack; slightly improve the out-of-a-defun error message.
2817         (_m4_divert_grow): New macro, counter for the temporary diversions.
2818         (_m4_require_call): Use it.
2819         * tests/m4sugar.at (m4_require): Expect output without the
2820           ``is required by'' messages.
2822 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2824         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
2825         rather than x for expr.
2827         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
2828         this is safe.
2829         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
2830         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
2831         * lib/autotest/general.m4 (AT_INIT): Likewise.
2832         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
2833         * tests/mktests.sh: Likewise.
2835 2005-01-27  Akim Demaille  <akim@epita.fr>
2837         Have autoheader honor --force.
2839         * doc/make-stds.texi, doc/standards.texi: Update from masters.
2840         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
2841         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
2842         from masters, so that FileUtils.pm's update_file provide --force
2843         support.
2844         * bin/autoheader.in: Pass $force to update_file so that
2845         config.h.in is always recreated when --force.
2847 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
2849         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
2851 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2853         * doc/autoconf.texi (Limitations of Builtins): Clarify that
2854         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
2856 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
2858         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
2859         Warn about newline stripping in `` and $().  Update Solaris
2860         version to 9.
2861         (Limitations of Builtins): Use expr "X...", not expr "x...", as
2862         X insulates us from future changes to Posix.
2863         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
2864         stripping.
2866 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
2868         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
2869           you cannot use AC_DEFINE to define macros containing `[' or `]'.
2871 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2873         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
2874         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
2875         bug-tar mailing list.
2877 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
2879         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
2881 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2883         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
2884         ulongval to be static, to avoid unwanted GCC warning.  Problem
2885         reported by Michael Jennings via Daniel Reed; see
2886         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
2888 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
2890         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
2891         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
2892         datadir, infodir, and mandir.  Adjust argument parsing code.
2893         (_AC_INIT_HELP): Update help text.
2894         * doc/autoconf.texi (Installation Directory Variables): Document
2895         new variables.
2897 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
2899         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
2900         not seem to work, assume it does set $(MAKE).
2901         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
2903 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
2905         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
2907 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
2909         A cleanup of the diversion support in m4sugar.
2911         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
2912         (_m4_divert_n_stack): New macro; the expansion is
2913           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
2914           otherwise.
2915         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
2916         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
2917           stored in _m4_divert_diversion or _m4_divert_dump.
2918         (m4_divert_pop): When the parameter is given, compare the symbolic
2919           name with the last diversion pushed on the stack.  Previously, the
2920           current diversion was compared with the numeric value of the
2921           diversion given as the parameter.
2922         (m4_require): If the macro hasn't been expanded yet, call ...
2923         (_m4_require_call): this new macro.
2925 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2927         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
2928         Workarounds for documented `case' limitations.
2930 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2932         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
2933         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
2935 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2937         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
2938         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
2939         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
2941         Patch from Roger Leigh (with some minor changes) as follows:
2942         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
2943         Resurrect AC_PROG_CC_STDC.
2944         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
2945         AC_PROG_CC_C89, AC_PROG_CC_C99.
2946         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
2947         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
2948         AC_PROG_CC_C99): New macros.
2949         (AC_PROG_CC_STDC): Use them.
2950         (_AC_PROG_CC_STDC): Remove.
2951         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
2952         * THANKS: Add Roger Leigh.
2954 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
2956         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
2957         signals that the package uses Automake; a `Makefile.am' is typical but
2958         not essential.  Reported by Magnus Therning.
2959         * tests/torture.at (autoreconf.): New banner.
2960         (autoreconf and non-AC configure): Rename to `Non-Autoconf
2961         AC_CONFIG_SUBDIRS'.
2962         (autoreconf an empty directory): Rename to `Empty directory'.
2963         (Unusual Automake input files): New test.
2965 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
2967         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
2968         (AT_SETUP): Clear AT_capture_files.
2969         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
2970         (AT_KEYWORDS): Fix comment typo.
2971         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
2972         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
2973         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
2975 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
2977         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
2978         If the variable to set is already set, set ac_cv_path_$1
2979         to the preset value so caller can assume ac_cv_path_$1
2980         is available.  (trivial change)
2982 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
2984         * BUGS (Minor Problems): Warn about makefile limitations.
2985         * Makefile.am: Find and update `INSTALL' in $(srcdir).
2986         * man/Makefile.am: Find and update manual pages in $(srcdir).
2988 2004-12-24  Eric Blake  <ebb9@byu.net>
2990         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
2991         shells in subshell, to avoid noise from ash.  (trivial change)
2993 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2995         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
2996         problems with SunOS ksh and backslash escaping, Bourne shells and
2997         closing brackets (both within character classes).  Bug reported
2998         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
2999         <read>: New entry.  Mention non-availability of -r.
3001 2004-12-21  Akim Demaille  <akim@epita.fr>
3003         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
3004         avoid cluttering displayed messages.  Rather, prepend srcdir where
3005         AT_LINE is used for log files.
3007 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
3009         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
3010         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
3011           no longer part of the macro, quote the occurrence of ``$tmp''.
3012         * doc/autoconf.texi (Forbidden Patterns): Typo.
3014 2004-12-21  Akim Demaille  <akim@epita.fr>
3016         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
3017         separated from the test title by forcing a white space.
3019 2004-12-21  Akim Demaille  <akim@epita.fr>
3021         Enable Emacs navigation within testsuite.log files.
3023         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
3024         use the compilation mode.
3025         (AT_LINE): Point to the srcdir.
3027 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
3029         * tests/Makefile.am (installcheck-local): Use $(bindir).
3030         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
3031         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
3032         Makefile.am scheme Autoconf now uses.
3034 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
3036         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
3037         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
3039 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
3041         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
3042         (_AT_CHECK): Use it.
3043         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
3044         (AS_ESCAPE): Fix comment.
3045         * tests/autotest.at: Adjust section banner comments.
3046         (AT_CHECK_AT): Accept STATUS and STDERR.
3047         (AT_CHECK_AT_TEST): Likewise.
3048         (Invalid brace-enclosed parameter expansion)
3049         (Multiline command from M4 expansion)
3050         (Double-M4-quoted command): New tests.
3052 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
3054         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
3056 2004-12-17  Akim Demaille  <akim@epita.fr>
3058         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
3059         m4_pattern_allow.
3060         Suggested by Alexandre Duret-Lutz.
3061         * doc/autoconf.texi (Setting Output Variables): Catch up.
3063 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3065         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
3067 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3069         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
3070           remove the comment which said we cannot.
3072 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3074         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
3075         Reini Urban and Paul Eggert for reporting the dependencies.
3077         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
3078         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
3079         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
3081 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3083         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
3084           so that eg. ``autoscan --help'' doesn't truncate it.
3086 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
3088         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
3089         generated conftest files.
3091 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
3093         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
3094         tracing on commands with possibly-escaped newlines.
3095         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
3096         discontinued behavior and its implications.
3097         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
3098         (BSx641-newline in command, BS-BS-newline in command)
3099         (BSx640-newline in command, Newline-CODE-BS-newline in command)
3100         (Single-quote-BS-newline in command)
3101         (Single-quote-newline-BS-newline in command): New tests.
3103 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
3105         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
3106           on platforms where it works.
3107         (_AS_TEST_PREPARE): Test for ``test -x''.
3108         (_AS_BROKEN_TEST_PREPARE): Nuke.
3110 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
3112         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
3113         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
3114           give only 4-letter prefix to AS_TMPDIR, comment fixed.
3115         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
3116           create the temporary directory.
3117         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
3119 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
3121         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
3122         (trivial change)
3124 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
3126         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
3128 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
3130         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
3131         to avoid using a negated character class.  Reported by Nicolas Joly.
3132         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
3134 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
3136         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
3137         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
3138         Don't depend on .x file explicitly, since "make" does that for us.
3139         Suggested by Stepan Kasal.
3141         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
3142         Add *.tmp.
3143         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
3144         ifnames): Factor common code.  And they said it couldn't be done!
3146 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
3148         * bin/.cvsignore: Add autoconf.in.
3149         * tests/.cvsignore: Add wrapper.in.
3150         * lib/autotest/general.m4: Escape '$' in case pattern.
3152 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
3154         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
3156         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
3158         * tests/autotest.at: New file.
3159         * tests/suite.at: Include it.
3160         * tests/Makefile.am: Distribute it.
3162         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
3163           shell tracing on a command that could contain multiple lines.
3164         * doc/autoconf.text: Document that fact and its implications.
3165         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
3166         * tests/autotest.at (Multiline backquote command substitution,
3167           Multiline parameter expansion, Literal multiline command,
3168           Multiline parenthetical command substitution): Remove XFAIL.
3170 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
3172         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
3173         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
3175 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
3177         * configure.ac (test suite): Cease to generate wrapper scripts.
3178         * configure: Regenerate.
3179         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
3180         (m4f_dependencies): Adjust accordingly.
3181         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
3182         (wrapper.in): Generate it in the build directory.
3183         (MAINTAINERCLEANFILES): Delete wrapper.in.
3184         (CLEANFILES): Add wrapper.in.
3185         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
3186         the output.  Replace each $as_me with a @wrap_program@.
3187         * tests/wrapper.in: Delete it; we always build it.
3189         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
3190         (EXTRA_DIST): Remove autoconf.in.
3191         (CLEANFILES): Add autoconf.in.
3192         (autoconf): Find autoconf.in in the build directory.
3193         * bin/autoconf.in: Delete it; we always build it.
3195 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
3197         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
3198         PATH members so as to not prepend an empty element.  Move a comment.
3199         * Makefile.am (SUBDIRS): Build in `tests' last.
3200         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
3202 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
3204         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
3205         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
3206         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
3207         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
3209 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
3211         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
3212         patch: extra "-l"s.
3214 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
3216         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
3217         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
3218         * doc/autoconf.texi (Particular Functions): Mention new behavior.
3220 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
3222         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
3223           out the common code to ...
3224         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
3225           value of the #define--default to 1, iff the macro was called
3226           with exactly one parameter.
3228 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
3230         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
3231         "char c = '\200';" rather than "char c = 0x80;" as the
3232         latter doesn't conform to the strict C standard due to
3233         overflow on signed char hosts.
3235         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
3236         to -qlanglvl=ansi.  We don't want to disable extensions.
3238 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
3240         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
3241         (Using Autotest, testsuite Scripts, Writing testsuite.at):
3242         Reword slightly to avoid some English-language problems noted
3243         by Ralf Wildenhues in:
3244         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
3246 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
3248         * NEWS: Add ^L above each release.
3250 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
3252         Fix documentation problems reported by Russ Boylan in
3253         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
3254         along with some nearby cruft.
3255         * doc/autoconf.texi (Libtool): Libtool can be used without
3256         Automake (not without Autoconf).
3257         (Introduction): Mention lists.gnu.org.
3258         * BUGS: Don't mention bugs.gnu.org.
3259         Remove mention of ancient libtool compatibility problem.
3260         * NEWS: Mention that bugs.gnu.org is kaput.
3261         * README: Likewise.  Mention where mailing list archives can be found.
3263 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
3265         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
3266         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
3268 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
3270         * doc/autoconf.texi (Pretty Help Strings): Go back to
3271         single-quoting assignments to cache variables.
3273 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
3275         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
3276         with the examples; fix the bug in MY_ARG_WITH example reported
3277         by Alexandre Duret-Lutz.
3278         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
3279         expansion of $1 in the comment emitted to configure.
3281 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
3283         * doc/autoconf.texi (Pretty Help Strings): Fix typo
3284         in my editing of the previous patch.  Problem reported
3285         by Alexandre Duret-Lutz.
3287 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
3289         * doc/autoconf.texi (Autoconf Language): Explain that
3290         ``descriptions'' may not be double quotes.
3291         (Quotation Rule Of Thumb): Likewise.
3292         (Pretty Help Strings): Likewise; remove the wrong comment;
3293         simplify the examples and improve their quoting.
3295 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
3297         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
3298         the $1_found variable, don't test whether the file is executable;
3299         Both things are checked ...
3300         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
3301         the former ``test -f''.
3302         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
3304 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
3306         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
3307         use cp -R instead.
3309 2004-11-10  Derek R. Price  <derek@ximbiot.com>
3311         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
3312         limitations.  Reorder paragraphs for clarity.
3314 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3316         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
3317         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
3318         variants", "Unix", and some related minor wording fixups.
3320         (Shellology, Special Shell Variables): Document that the Zsh
3321         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
3322         to Alexandre Duret-Lutz for this info.
3324 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
3326         * doc/autoconf.texi (One-Shot Macros): New node.
3328 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3330         * doc/autoconf.texi (Function Portability): Fix misdescription
3331         of putenv.  Problem reported by Michael Wardle.
3333 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3335         * doc/autoconf.texi (auindex): New macro.
3336         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
3337         Problem reported by Stepan Kasal.
3339 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3341         Fix problems reported by Andreas Buening in:
3342         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
3343         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
3344         in test makefile.
3345         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
3346         readable; it's not true in OS/2-emx.
3348 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
3350         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
3351         "/usr/include", clear ac_x_includes instead of leaving it as "no"
3352         (trivial change).  Problem and patch reported by Andrew Church in:
3353         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
3355 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3357         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
3358         three args in examples.  Problem reported by Frederik Fouvry in:
3359         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
3360         Also, fix some minor spacing and punctuation bugs.
3362 2004-09-02  Akim Demaille  <akim@epita.fr>
3364         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
3365         "case" to restore ordering.
3366         Reported by Stepan Kasal.
3368 2004-08-26  Akim Demaille  <akim@epita.fr>
3370         * doc/autoconf.texi: Minor typos and stylos.
3372 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3374         * configure.ac (AC_INIT): Bump to 2.59c.
3376 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3378         Version 2.59b.
3380         * README: Add advice about m4 1.4.2.
3382         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
3383         texinfo.tex for now (done by hand now).
3384         * Makefile.maint (wget_files, cvs_files):
3385         Remove ansi2knr.c; nobody uses it.
3386         (ansi2knr.c-url_prefix): Remove.
3387         (cvs-update): Fix test for failure.  I don't know why it ever
3388         worked...
3390         * doc/autoconf.texi: Update URLs, some of which went stale.
3391         Use @uref rather than @href.
3393         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
3394         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
3396         * config/config.guess, config/config.sub, config/elisp-comp,
3397         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
3398         doc/fdl.texi, doc/standards.texi: Sync with master copy.
3400         * NEWS, TODO, configure.ac, bin/autoscan.in,
3401         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
3402         doc/install.texi, lib/Autom4te/Configure_ac.pm,
3403         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
3404         lib/autoconf/programs.m4, lib/autoconf/status.m4,
3405         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
3406         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
3407         tests/tools.at, tests/torture.at:
3408         Use "file name" rather than "filename" or "path",
3409         to be consistent with the terminology of the GNU coding standards.
3411 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3413         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
3414         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
3415         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
3416         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
3418         More fixes to support spaces in the name of the build directory.
3419         This isn't a complete fix but it's an improvement.
3421         * bin/autoconf.as (autom4te_options): New var.
3422         Use it instead of appending to AUTOM4TE, so that we can allow
3423         spaces in the build directory's absolute name.
3424         * bin/autoheader.in ($autoconf): Allow spaces in file names.
3425         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
3426         AT_CHECK_NOESCAPE): Likewise.
3427         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
3428         main program): Likewise.
3430 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3432         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
3433         From Ralf Corsepius in:
3434         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
3436 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3438         * doc/autoconf.texi (Function Portability): Document isinf and
3439         and isnan.  From a suggestion by Kevin Ryde.
3441         * lib/Autom4te/General.pm (END): Return correct exit status even
3442         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
3444 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3446         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
3447         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
3448         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
3450 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
3452         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
3453         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
3454         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
3455         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
3456         * lib/autom4te.in (Automake-preselections): Preselect
3457         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
3459 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
3461         * lib/autom4te.in (Automake-preselections): Preselect
3462         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
3463         trace them.
3465 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
3467         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
3468         Tru64.
3469         * doc/autoconf.texi (Shellology): Mention BIN_SH.
3470         Document problem with "`""`" in pdksh POSIX mode.
3472 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3474         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
3475         with pdksh, too.  Problem reported by Patrick Welche via
3476         Gary V. Vaughan.
3477         * doc/autoconf.texi (Shellology): Note that set -o posix is
3478         useful for pkdsh, too.
3480 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3482         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
3483         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
3484         Don't fail if ENV or BASH_ENV is readonly.
3485         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
3486         etc. are read only.  Problem reported by Ludovic Courtes.
3488 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
3490         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
3491         zsh, disable GLOB_SUBST to avoid backslash handling problems.
3492         (trivial change)
3494 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3496         * doc/autoconf.texi (File System Conventions): Warn about
3497         names like "aux".  Problem reported by Eric Blake.
3499         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
3500         by zero instead of array size, so that we can use any arithmetic
3501         constant expression (instead of requiring an integer constant
3502         expression).  This allows us to test expressions like DBL_MAX <
3503         LDBL_MAX, which didn't conform to the C standard using the old
3504         method.
3505         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
3506         now that we can do floating-point tests at compile time.
3508 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3510         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
3511         and LDBL_EPSILON, as the resulting expression isn't an
3512         integer constant expression and violates the C standard.
3513         Problem reported by Nelson H. F. Beebe.  Also, check
3514         for "L" suffix, and check that long double doesn't have
3515         worse range or precision than double, that mixed-mode
3516         arithmetic doesn't generate a diagnostic, that double
3517         constants fit in long double.
3519 2004-06-03  Kevin Ryde  <user42@zip.com.au>
3521         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
3522         malloc(0) and realloc(NULL,size).
3524         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
3525         Bob Proulx.
3527 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3529         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
3530         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
3531         by Jim Meyering.
3533 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3535         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
3536         can be rewritten using if-then-else.  Suggested by Bruno Haible.
3538 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3540         * doc/autoconf.texi (testsuite Scripts): Fix typo.
3541         Problem reported by Stepan Kasal.
3543 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3545         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
3546         change).  Patch reported by Ralf Wildenhues in
3547         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
3549         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
3550         function F exists if the compiler and linker let you compile an
3551         expression like (F != 0).  Recent versions of GCC optimize away
3552         the reference to F in that case, since every function address must
3553         be nonzero, so the link succeeds even if F does not exist.
3554         Problem reported by Manu in
3555         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
3557         * doc/autoconf.texi (Systemology): Standardize on the spelling of
3558         "Unix".  Many uses changed.
3559         (Limitations of Builtins): Explain better why the ! command isn't
3560         portable.
3562 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
3564         * lib/autom4te.in (Automake-preselections): Preselect
3565         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
3567 2004-05-19  Kevin Ryde  <user42@zip.com.au>
3569         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
3570         referencing AC_FUNC_STRERROR_R.
3572         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
3573         note pessimistic assumption when cross compiling.
3575 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3577         * doc/autoconf.texi (Limitations of Make): Note that BSD make
3578         (until 2004) invoked subcommands with sh -e, contra POSIX.
3579         Reported by Kevin Ryde.
3581 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
3583         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
3584         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
3585         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
3586         `test -f "        /usr/bin/grep"', which _always_ failed.
3587         (AC_PROG_SED): Ditto bogus PATH fix.
3588         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
3589         requires that grep correctly supports _multiple_ `-e' options, rather
3590         than stating only that grep should accept `-e'.
3592 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3594         Port to C99, which requires that 'exit' be declared.
3596         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
3597         to ensure that stdlib.h is included.
3598         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
3599         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
3600         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
3601         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
3602         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
3603         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
3604         when using 'exit' in a test; C99 requires that 'exit' be declared.
3606 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3608         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
3609         now prefers 'grep' implementations that accept -e.
3610         (Limitations of Usual Tools): Describe problems of traditional
3611         egrep and fgrep with long input lines, and of traditional grep
3612         with -e.
3613         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
3614         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
3615         All callers changed.  Append /usr/xpg4/bin to the PATH, for
3616         Solaris.
3617         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
3618         the user with complaints about multiple -e options.
3619         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
3620         Define it with AC_PROG_GREP.
3621         * configure.ac (AC_PROG_GREP): Add.
3622         * lib/freeze.mk (GREP): New macro.
3624 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
3626         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
3627         a possible candidate only after all others fail, rather than
3628         consulting it first.  This improves backward compatibility by
3629         better reflecting the way shell selection occurred in previous
3630         versions of Autoconf, and should help to avoid triggering latent
3631         problems in other packages, such as the one in Automake where zsh
3632         is not handled robustly:
3633         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
3634         Although it is not Autoconf's responsibility to work around
3635         problems in Automake, it nevertheless makes sense to avoid
3636         introducing unnecessary incompatibilites.
3638 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
3639             Gary V. Vaughan  <gary@gnu.org>
3641         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
3642         how deeply nested we are when a suitable tool is found, set the
3643         ac_path_TOOL_found flag.
3644         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
3645         nested we are in this macro.  Break out of all 3 nested loops if
3646         ac_path_TOOL_found is set.
3648 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
3650         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
3651         of the _AS_PATH_WALK loop too if GNU flavor is found.
3653 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
3655         * doc/autoconf.texi (Limitations of Make): Update documentation
3656         for `$<'.  New entry `Long lines', based on a report from Simon
3657         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
3658         paragraph about DJGPP, based on a mail from Richard Dawe.
3660 2004-04-20  Paul Eggert  <eggert@twinsun.com>
3662         * tests/c.at (C keywords): Don't assume that GCC supports
3663         "restrict" and "inline", as sufficiently-old GCC versions do not
3664         (also, GCC configured to be in pedantic C89 mode does not).
3665         Problem reported by Sumit Pandya in:
3666         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
3668         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
3669         consider -g to work if it generates warnings when plain compiles
3670         don't.  Problem reported by Braden McDaniel in:
3671         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
3673         * doc/autoconf.texi (Slashes): New section, to document a problem
3674         reported by Jim Meyering in:
3675         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
3677         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
3678         linker output files before linking, to work around IRIX 6 linker bug.
3679         Problem reported by Rainer Orth in:
3680         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
3682 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
3684         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
3685         best tool so far counter rely on the tool path variable name to
3686         avoid checks for one tool being affected by the results of running
3687         the length check on a previous tool.
3689         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
3690         match expression argument, as different greps have different
3691         regular expression flavours.
3692         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
3693         literals.
3694         (AC_PROG_EGREP): Pass 'EGREP$'.
3695         (AC_PROG_GREP): Pass 'GREP$'.
3697 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
3699         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
3700         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
3702 2004-03-29  Paul Eggert  <eggert@twinsun.com>
3704         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
3705         Types, Specific Compiler Characteristics, System Services,
3706         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
3707         etc. consistently instead of 'long', 'short', 'unsigned' etc.
3708         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
3709         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
3710         Likewise.
3711         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
3712         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
3713         AC_TYPE_OFF_T): Likewise.
3714         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
3715         Likewise.
3717         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
3718         pacify libtool 1.5.2.  Fix quoting problems in sed command.
3720 2004-03-28  Paul Eggert  <eggert@twinsun.com>
3722         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
3723         now defines HAVE_DECL_TZNAME if it is declared, when
3724         HAVE_STRUCT_TM_TM_ZONE is not defined.
3725         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
3726         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
3727         for HAVE_TZNAME.
3729 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
3731         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
3732         superfluous backslashing of quotes (") in sed expressions;
3733         thanks to Paul Eggert.
3735 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
3737         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
3738         Fortran compiler is ifort, also added pghpf; thanks to Nelson
3739         H. F. Beebe for the bug report.
3741 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
3743         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
3744         quoted -cmdline argument in Portland Group compiler (bug
3745         reported by Jeffrey J. Barteet).
3747 2004-03-25  Kevin Ryde  <user42@zip.com.au>
3749         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
3750         (Run Time): ... here, where it's now mentioned.
3752 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
3754         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
3755         inherits from language Autoconf-without-aclocal-m4.
3756         (Customizing autom4te): Adjust example; the cache must now be
3757         disabled for language Autoconf-without-aclocal-m4.
3759 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
3760             Nathanael Nerode  <neroden@twcny.rr.com>
3762         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
3763         AC_CHECK_TOOLS): Warn if a cross-tool is found without
3764         a prefix.
3765         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
3766         AC_CHECK_TARGET_TOOLS): New macros.
3767         * doc/autoconf.texi (Generic Programs): Document
3768         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
3769         AC_CHECK_TARGET_TOOLS, and warn for future changes
3770         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
3771         AC_CHECK_TOOLS.
3772         (Specifying Names): Document the reason for these future
3773         behavioral changes.
3774         * tests/mktests.sh: Do not generate tests for the
3775         new macros.
3776         * NEWS: Document these changes.
3778         * doc/autoconf.texi: Avoid macros with unbraced arguments,
3779         they make TeX hang up.
3781 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
3783         * NEWS: New macro AC_CHECK_ALIGNOF.
3784         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
3785         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
3786         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
3787         vowel.
3788         (AC_CHECK_ALIGNOF): New macro.
3789         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
3790         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
3791         those for sizeof.
3793 2004-03-03  Paul Eggert  <eggert@twinsun.com>
3795         * bin/Makefile.am (edit): Don't use $< in a context where
3796         POSIX doesn't require support for it.  Use $@.in instead.
3797         Problem reported by Anthony N. Frasso in
3798         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
3799         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
3801 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
3803         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
3804         from the next generation of Libtool.
3805         * lib/autom4te.in (Autoreconf-preselections): Ditto.
3807 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
3809         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
3810         is not always thread-safe.  Report from Nathanael Nerode.
3812 2004-02-18  Paul Eggert  <eggert@twinsun.com>
3814         Fix a dependencies problem, stemming from a Autoconf 2.59 build
3815         problem on QNX reported by Stephen Rasku in
3816         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
3818         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
3819         $(m4sh_m4f_dependencies); this removes a FIXME.
3820         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
3821         (MAINTAINERCLEANFILES): Split into pieces,
3822         one per related section.  Add $(srcdir)/wrapper.in.
3824 2004-02-09  Paul Eggert  <eggert@twinsun.com>
3826         * doc/autoconf.texi (Setting Output Variables): Emphasize that
3827         AC_SUBST provides no portable way to escape literal newlines.
3829         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
3830         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
3831         Darwin uses -lcrt2.o and there's little point to cataloging all
3832         the system variants.  Partial fix reported by Andreas Waechter in:
3833         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
3834         for bug reported by Nelson H. F. Beebe in:
3835         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
3837 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
3839         * doc/autoconf.texi (AU_DEFUN): Fix English,
3840         suggested by Paul Eggert.
3841         * lib/autoconf/autoupdate.m4: Correct reference to
3842         acobsolete.m4, suggested by Alexandre Duret-Lutz.
3844 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
3846         * bin/autoupdate.in: Define __file__ so that warnings
3847         refer to the correct file.
3848         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
3849         the behavior of the third argument.
3850         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
3851         correctly the behavior of the third argument.  Document
3852         what the three macros that AU_DEFUN defines do.  Fix
3853         warning message when the third argument includes $0
3854         (reported by Alexandre Duret-Lutz).
3856 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
3857             Eric Sunshine  <sunshine@sunshineco.com>
3858             Paul Eggert  <eggert@twinsun.com>
3860         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
3861         (AS_INIT): Output shell initialization there. Removed optional
3862         parameter. Expand _AS_SHELL_FN_SPY.
3863         (AS_INIT_WITH_SHELL_FN): Removed.
3864         (_AS_SHELL_FN_SPY): New macro.
3865         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
3866         macros.
3867         (AS_SHELL_SANITIZE): Remove loop to find better shell
3868         and documentation for the parameter.
3869         (_AS_DETECT_BETTER_SHELL): Move it here.
3870         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
3871         (_AS_RUN): Move it here, support testing with eval.
3872         (AS_REQUIRE_SHELL_FN): Require shell functions when
3873         it is used.
3874         (_AS_LINENO_WORKS): Put around braces, we do not
3875         trigger the bash bug anymore.
3876         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
3877         use AS_INIT_WITH_SHELL_FN.
3878         * bin/autoconf.in, tests/wrapper.in: Regenerated.
3880 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
3882         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
3883         * doc/autoconf.texi: Don't say that the third parameter
3884         is broken.
3885         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
3886         (AU_DEFUN): Honor the third parameter, create autoupdate
3887         macros with AU_DEFINE.
3888         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
3889         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
3890         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
3891         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
3892         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
3893         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
3894         AC_XENIX_DIR): Likewise.
3895         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
3896         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
3897         * lib/autoconf/status.m4: Remove FIXME.
3898         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
3899         that the macro is not present anymore in the updated
3900         configure.ac.
3901         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
3902         of autoupdate.
3904 2004-01-28  Paul Eggert  <eggert@twinsun.com>
3906         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
3907         copyright years.
3908         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
3909         2003 (except 1997) to the list of copyright years.  This undoes
3910         the 2003-05-22 change, which removed the older years from the list.
3911         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
3913 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
3914             Albert Chin-A-Young  <china@thewrittenword.com>
3916         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
3917         grep or ggrep program in PATH that accepts as long lines as
3918         possible.
3919         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
3920         AC_PROG_GREP.
3921         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
3922         egrep and fgrep respectively if $GREP -E/-F don't work.
3923         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
3924         _AC_PROG_GREP, and AC_PROG_SED.
3925         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
3926         longest input length accepted by a command.
3927         (AC_PROG_SED): Use it.
3928         * doc/autoconf.texi (Particular Programs): Document the changes.
3929         * NEWS: Updated.
3931 2004-01-27  Paul Eggert  <eggert@twinsun.com>
3933         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
3934         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
3935         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
3936         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
3938         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
3939         bin/autoconf.in, config/Makefile.in, config/config.guess,
3940         config/config.sub, config/install-sh, config/mdate-sh,
3941         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
3942         lib/Makefile.in, lib/Autom4te/Makefile.in,
3943         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
3944         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
3945         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
3946         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
3947         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
3948         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
3949         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
3950         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
3951         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
3952         tests/actypes.at: Regenerate and/or sync with original
3953         sources.
3955 2004-01-26  Paul Eggert  <eggert@twinsun.com>
3957         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
3958         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
3959         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
3960         not <inttypes.h>.  Problem reported by Tim Mooney in
3961         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
3962         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
3963         Likewise.
3965         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
3966         otherwise "make check" fails because it forbids cmp (I guess
3967         because cmp treats files as binary on DOS-like systems).
3969         * tests/mktests.sh: Update copyright date to 2004, since some tests
3970         have changed in 2004.
3972 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
3974         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
3975         non-truncating sed or gsed program in PATH.
3976         * tests/acprograms.at: Add it.
3977         * doc/autoconf.texi (Particular Programs): Document it.
3978         * NEWS: Updated.
3980 2004-01-15  Paul Eggert  <eggert@twinsun.com>
3982         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
3983         -std1 disables some useful extensions on Tru64.  Problem reported
3984         by N. Lichtmaier in
3985         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
3987 2004-01-14  Paul Eggert  <eggert@twinsun.com>
3989         * doc/autoconf.texi (Programming in M4sh): Document that
3990         AS_MKDIR_P succeeds if the destination is a symbolic link
3991         to an existing directory.
3992         (Limitations of Usual Tools): Note that mkdir -p might not
3993         succeed on symlinks to directories.
3995 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
3997         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
3998         * bin/autoheader.in: Grammar fix in message.
3999         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
4000         Test for dir before calling mkdir -p.  (trivial changes)
4002 2004-01-13  Eric Blake  <ebb9@byu.net>
4004         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
4005         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
4007 2004-01-10  Jim Meyering  <jim@meyering.net>
4009         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
4011 2004-01-09  Paul Eggert  <eggert@twinsun.com>
4013         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
4014         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
4015         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
4016         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
4017         AC_COMPILE_IFELSE, since we now assume our caller invokes
4018         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
4019         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
4020         of AC_RUN_IFELSE; this avoids the warning mentioned above.
4021         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
4023 2004-01-07  Paul Eggert  <eggert@twinsun.com>
4025         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
4026         `"'...'"`, as it's confusing (and I suspect it may not work on
4027         some platforms).  The code was incorrect anyway, as it assumed
4028         that \$ evaluated to itself in that context.  Reported by
4029         Alexandre Duret-Lutz.
4031 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
4033         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
4034         and _LT_AC_TAGCONFIG.
4036 2004-01-06  Paul Eggert  <eggert@twinsun.com>
4038         * doc/autoconf.texi (One Macro Call): Fix an incorrect
4039         example, and add more examples.  Reported by Eric Sunshine.
4041 2004-01-05  Paul Eggert  <eggert@twinsun.com>
4043         * doc/autoconf.texi (Limitations of Usual Tools):
4044         Remove warning against "rm -fr" introduced yesterday; it
4045         was a false alarm.
4047         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
4048         autoscan, autoupdate, ifnames): Don't use chmod -w.
4049         * lib/Makefile.am (autom4te.cfg): Likewise.
4050         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
4051         "chmod -w".
4053 2004-01-04  Paul Eggert  <eggert@twinsun.com>
4054             Paolo Bonzini  <bonzini@gnu.org>
4056         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
4057         by doing lineno substitution only on lines containing "$LINENO".
4059 2004-01-04  Paul Eggert  <eggert@twinsun.com>
4061         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
4062         Use "rm -f" to remove conftest.sed, not plain "rm".
4063         Bug reported by David Relson in
4064         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
4066         * Makefile.am (autom4te-update):
4067         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
4068         * Makefile.maint (my-distcheck, do-po-update): Likewise.
4069         * doc/autoconf.texi (Guidelines): Likewise.
4070         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
4071         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
4072         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
4073         * lib/autotest/general.m4 (AT_INIT): Likewise.
4074         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
4075         * tests/Makefile.am (clean-local): Likewise.
4076         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
4077         srcdir): Likewise.
4078         * doc/autoconf.texi (Limitations of Usual Tools):
4079         Warn against "rm -fr".
4081 2004-01-03  Paul Eggert  <eggert@twinsun.com>
4083         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
4084         -c -o might not work.  From a suggestion by Kevin Ryde.
4085         (C Compiler, Generating Sources, Limitations
4086         of Usual Tools, Limitations of Make, Making testsuite Scripts):
4087         Don't put '-o' after non-options, as POSIX doesn't allow this.
4088         Mention that cc's name might be gcc or c89 or whatever.
4090 2004-01-04  Kevin Ryde  <user42@zip.com.au>
4092         * doc/autoconf.texi: Add various further index entries.
4094 2003-12-29  Paul Eggert  <eggert@twinsun.com>
4096         * bin/autoreconf.in (autoreconf_current_directory):
4097         Fix typo: mkdir without umask arg.
4099 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
4101         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
4102         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
4103         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
4104         explanation clearer.
4106 2003-12-24  Andreas Schwab  <schwab@suse.de>
4108         * doc/autoconf.texi (Default Includes): Fix misspelling of
4109         AC_INCLUDES_DEFAULT.
4111 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
4113         * configure.ac: Test if sh -n works.
4114         * configure: Regenerate.
4115         * tests/atlocal.in: Store the result here.
4116         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
4117         tools.at, looking in atlocal's ac_cv_sh_n_works instead
4118         of explicitly testing.
4119         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
4120         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
4121         * tests/tools.at (Syntax of the shell scripts): Simplify
4122         using AT_CHECK_SHELL_SYNTAX.
4123         (Syntax of the Perl scripts): Remove definition of
4124         AT_CHECK_PERL_SYNTAX.
4126 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
4128         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
4129         stderr to /dev/null.
4130         * bin/autoconf.in: Regenerate.
4131         * bin/wrapper.in: Regenerate.
4133 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
4135         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
4136         Extracted from AS_SHELL_SANITIZE.
4137         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
4138         macros.
4139         (AS_SHELL_SANITIZE): Move reinvocation code from
4140         _AS_LINENO_WORKS, use it to find out if shell
4141         functions work.
4142         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
4143         does not work.
4144         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
4145         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
4146         was called.
4147         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
4148         * bin/autoconf.in: Regenerate.
4149         * tests/wrapper.in: Regenerate.
4150         * tests/tools.at: Test the syntax of tests/autoconf
4151         and tests/testsuite.
4153 2003-11-24  Akim Demaille  <akim@epita.fr>
4155         * config/announce-gen (&print_locations, &print_signatures)
4156         (&sizes): New.
4157         Use them.
4158         No longer rely on Gnus to inline the list of signatures: compute
4159         them on the fly.
4161 2003-11-24  Akim Demaille  <akim@epita.fr>
4163         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
4164         override some files.
4165         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
4166         From Debian Autoconf 2.58.
4168 2003-11-24  Akim Demaille  <akim@epita.fr>
4170         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
4171         uses.
4172         From Debian Autoconf 2.58.
4174 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
4176         * TODO: Remove already done things.  Update the part about finding
4177         tools for the target.
4179 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
4181         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
4182         Make wording more consistent.
4183         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
4184         Explain the transition better.
4185         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
4186         the transition better.
4188 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
4190         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
4191         parameter of AU_DEFUN.
4192         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
4193         (AU_DEFUN): Remove the third parameter, it was not used.
4194         Use AC_DEFUN directly, not AU_DEFINE.
4195         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
4196         the expanded body, consistently with other macros such as AC_USG.
4198 2003-11-17  Paul Eggert  <eggert@twinsun.com>
4200         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
4201         into the initial confdefs.h, to work around a bug in NextStep 3.3
4202         patch 3 reported by Eric Sunshine.
4204 2003-11-15  Kevin Ryde  <user42@zip.com.au>
4206         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
4207         than $target since the latter is not usual, add guidelines on when to
4208         use or not use the system type.
4210 2003-11-12  Derek Price  <derek@ximbiot.com>
4212         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
4213         typo misrepaired by an auto-spellcheck.
4215 2003-11-12  Akim Demaille  <akim@epita.fr>
4217         * bin/autoreconf.in (&parse_args): Don't call automake with
4218         --force-missing unless it actually supports it.
4219         From Debian #219336.
4221 2003-11-12  Akim Demaille  <akim@epita.fr>
4223         * configure.ac: Bump to 2.59a.
4224         Require 2.59.
4226 2003-11-06  Akim Demaille  <akim@epita.fr>
4228         Version 2.59.
4230 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
4232         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
4233         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
4234         and ac_abs_top_srcdir are absolute paths.
4235         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
4237 2003-11-05  Akim Demaille  <akim@epita.fr>
4239         * configure.ac: Bump to 2.58a.
4241 2003-11-05  Kevin Ryde  <user42@zip.com.au>
4243         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
4244         it provokes a warning from makeinfo about looking like a cross
4245         reference in info output.
4247         * doc/autoconf.texi (Function Portability): Add notes on signal
4248         handler return type, as per AC_TYPE_SIGNAL.
4250 2003-11-04  Akim Demaille  <akim@epita.fr>
4252         Version 2.58.
4253         * doc/standards.texi: Update from master.
4255         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
4257 2003-11-04  Akim Demaille  <akim@epita.fr>
4259         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
4260         computing the absolute path to d1 in the source hierarchy: it may
4261         not exist at all.  So don't cd into it.
4262         From Alexandre Duret-Lutz.
4263         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
4265         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
4266         From Paul Eggert, but named after Perl's IO::Spec->catfile.
4267         * doc/autoconf.texi (Programming in M4sh): Document.
4268         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
4270 2003-11-03  Pavel Roskin  <proski@gnu.org>
4272         * doc/autoconf.texi (Generic Structure Checks): Describe
4273         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
4275 2003-10-31  Akim Demaille  <akim@epita.fr>
4277         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
4278         (GNU Fortran): New.
4279         * doc/autoconf.texi (Language Choice): Document.
4280         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
4281         the current language is Fortran.
4283 2003-10-31  Akim Demaille  <akim@epita.fr>
4285         * bin/autom4te.in (&freeze): Use a less likely warning separator
4286         than `\n\n', so that `\n\n\n' is valid in warnings.
4287         Reported by Steve Huston.
4289 2003-10-28  Akim Demaille  <akim@epita.fr>
4291         * Makefile.cfg (local_updates, executable-update): Tweak to be
4292         robust to parallel makes.
4293         Suggested by Alexandre Duret-Lutz.
4295 2003-10-27  Akim Demaille  <akim@epita.fr>
4297         * Makefile.cfg (executable-update): New.
4298         (local_updates): Call it.
4300 2003-10-27  Akim Demaille  <akim@epita.fr>
4302         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
4303         Don't remove core.* as it may remove valid user files.
4304         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
4305         (AC_FUNC_UTIME_NULL): Likewise.
4307 2003-10-23  Akim Demaille  <akim@epita.fr>
4309         Version 2.57g.
4310         * config/config.guess, config/config.sub: Upgrade from masters.
4312 2003-10-23  Akim Demaille  <akim@epita.fr>
4314         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
4315         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
4316         hand...
4318 2003-10-23  Akim Demaille  <akim@epita.fr>
4320         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
4321         Don't forget to remove conftest.err.
4323 2003-10-23  Akim Demaille  <akim@epita.fr>
4325         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
4326         same object file in $LIBOBJS.
4327         Reported by Alexandre Duret-Lutz & Derek Robert Price.
4328         * doc/autoconf.texi (Generic Functions): Adjust.
4330 2003-10-20  Paul Eggert  <eggert@twinsun.com>
4332         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
4333         Use 'eval', so that the resulting configure scripts work even if
4334         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
4336 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
4338         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
4339         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
4340         (_AC_LINK_IFELSE): Check the werror flag.
4341         * doc/autoconf.texi (Generic Compiler Characteristics): Document
4342         AC_LANG_WERROR.
4343         * NEWS: Mention it.
4345 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
4347         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
4348         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
4349         override AC_LINK_IFELSE.
4351 2003-10-15  Paul Eggert  <eggert@twinsun.com>
4353         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
4354         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
4355         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
4356         Mention /usr/dt/bin/dtksh on Solaris.
4357         (Shell Substitutions): Warn about $((...)).
4358         (Parentheses): New section.
4360 2003-10-15  Kevin Ryde  <user42@zip.com.au>
4362         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
4363         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
4365 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4367         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
4368         cross test.
4370 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
4372         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
4373         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
4375 2003-10-10  Andreas Schwab  <schwab@suse.de>
4377         * bin/autoheader.in: Avoid empty first line in --version and
4378         --help output.
4379         * bin/ifnames.in: Likewise.
4381 2003-10-09  Paul Eggert  <eggert@twinsun.com>
4383         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
4384         Issue a more-informative diagnostic.
4385         Problems reported by Eric Sunshine.
4387 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
4389         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
4390         -mGLOB_options_string stuff for Intel ifc, which can cause
4391         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
4392         pattern-matching instead of grep.
4394 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
4396         * doc/autoconf.texi: Document new FC Fortran macros.
4398 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
4400         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
4401         that future autopoint/aclocal/automake/autoreconf will be able
4402         to trace to find where to install local m4 macros.
4403         * doc/autoconf.texi (Input): Document it.
4404         * NEWS: Updated.
4406 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
4408         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
4409         -lcrtbegin.o to list of ignored flags and fix underquoting of
4410         -lcrt[01].o.
4412 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
4414         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
4415         cache variable instead of $G77 to decide whether to include -O2,
4416         since $G77 is specific to Fortran 77.
4418 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
4420         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
4421         free" flag.  Re-order flags tested into rough order of popularity.
4423 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
4425         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
4426         arguments so that it can be used with syntax identical to
4427         AC_PROG_F77, and so that we can more easily decide to
4428         remove/deprecate the DIALECT optional argument in the future if it
4429         proves troublesome.
4430         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
4431         non-freeform-supporting compilers.  Document freeform flags.
4433 2003-10-03  Akim Demaille  <akim@epita.fr>
4435         * configure.ac: Look for emacs, not macs.
4436         Reported by Eric Sunshine.
4438 2003-10-03  Akim Demaille  <akim@epita.fr>
4440         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
4441         * bin/autoreconf.in (autoreconf_current_directory): Create the
4442         AUX_DIR if needed, for sake of automake --add-missing etc.
4443         Suggested by Alexandre Duret-Lutz.
4445 2003-10-03  Akim Demaille  <akim@epita.fr>
4447         * configure.ac: Quotation and formatting changes.
4448         (EMACS): Don't set it if it is not recent enough to support
4449         autoconf-mode.el.
4450         From Eric Sunshine.
4452 2003-10-02  Akim Demaille  <akim@epita.fr>
4454         * bin/ifnames.in (&scan_file): Skip C++ comments.
4455         From Jeremy Yallop.
4457 2003-10-01  Pavel Roskin  <proski@gnu.org>
4459         * doc/autoconf.texi (Particular Structure Checks):
4460         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
4462 2003-10-01  Akim Demaille  <akim@epita.fr>
4464         Version 2.57f.
4466 2003-09-30  Paul Eggert  <eggert@twinsun.com>
4468         * lib/Autom4te/XFile.pm: Use Errno.
4469         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
4470         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
4472 2003-09-30  Akim Demaille  <akim@epita.fr>
4474         * config/announce-gen (&print_news_deltas): Extracted from...
4475         (&print_changelog_deltas): here.
4476         (&news_file): Rename as...
4477         (@news_file): this.
4479 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
4481         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
4482         have been created when invoking the compiler.
4483         * tests/fortran.at (GNU Fortran 77): Quote $G77.
4485 2003-09-29  Akim Demaille  <akim@epita.fr>
4487         Version 2.57e.
4489         * config/mkinstalldirs: Upgrade.
4491 2003-09-28  Paul Eggert  <eggert@twinsun.com>
4493         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
4494         Problem reported by Lars J. Aas in
4495         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
4496         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
4497         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
4498         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
4500 2003-09-26  Akim Demaille  <akim@epita.fr>
4502         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
4503         directory for AC_CONFIG_COMMANDS' first argument exists.
4504         This makes valid the invocation of _AC_SRCPATH that follows.
4505         Reported by Eric Sunshine.
4506         * doc/autoconf.texi (Configuration Commands): Adjust.
4508 2003-09-26  Akim Demaille  <akim@epita.fr>
4510         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
4511         Reported by Ralf Corsepius.
4513 2003-09-26  Akim Demaille  <akim@epita.fr>
4515         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
4516         arguments.
4517         Actually, use AU_ALIAS.
4518         From Bruno Haible.
4520 2003-09-26  Paul Eggert  <eggert@twinsun.com>
4522         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
4523         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
4524         Problem reported by Eric Sunshine in:
4525         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
4527 2003-09-26  Akim Demaille  <akim@epita.fr>
4529         The test suite are sometimes assigning timings incorrectly.
4530         Reported by Henk Krus.
4531         Diagnosed by Nicolas Joly.
4533         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
4534         AT_help_all.
4535         Instead of making AT_help a sequence of assignments to grow
4536         $at_help_all, just make AT_help_all be the growing contents of
4537         $at_help_all, and make a single assignment in...
4538         (AT_INIT): here.
4539         (at_times_skip): Flip the meaning and rename as...
4540         (at_times_p): this.
4541         (AT_INIT): When summarizing the test that ran, remove
4542         $at_times_file after use, and check it is present before trying to
4543         use it.
4545 2003-09-25  Akim Demaille  <akim@epita.fr>
4547         Version 2.57d.
4549         * bin/Makefile.am (edit): Handle '@configure_input@'.
4550         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
4551         (ifnames): chmod -w.
4552         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
4553         executables, not bin/ executables!  Otherwise all the magic needed
4554         to find non installed files is turned off.  This caused a failure
4555         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
4556         as found in its environment (sent by tests/autoreconf): pointing
4557         to bin/autom4te that could not find its files.
4558         * tests/mktests.sh: Force the replacement of generated files, for
4559         the sake of "mv" program that are interactive when overwriting a
4560         -w file.
4561         * config/install-sh: Upgrade from CVS Automake.
4563 2003-09-23  Paul Eggert  <eggert@twinsun.com>
4565         * doc/autoconf.texi (Limitations of Builtins): Document test -h
4566         versus test -L issues.
4568 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
4569             Paul Eggert  <eggert@twinsun.com>
4571         Trivial change to support GCC's configuration procedure.
4572         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
4573         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
4574         about inconsistency if the preprocessor is set to give errors for
4575         any warning.
4576         * doc/autoconf.texi (C Compiler Characteristics): Document this.
4578 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
4580         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
4581         and XFile.pm from Automake.
4582         * lib/Autom4te/XFile.pm: Update from Automake.
4584 2003-09-12  Akim Demaille  <akim@epita.fr>
4586         Version 2.57c.
4588 2003-09-12  Akim Demaille  <akim@epita.fr>
4590         * config/config.guess, config/config.sub, config/missing,
4591         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
4592         from masters.
4594 2003-09-12  Akim Demaille  <akim@epita.fr>
4596         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
4597         not asm/types.h.
4599 2003-09-11  Akim Demaille  <akim@epita.fr>
4601         * doc/autoconf.texi (Header Portability): linux/random.h.
4602         From Peter Hendrickson.
4604 2003-09-10  Akim Demaille  <akim@epita.fr>
4606         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
4607         willing to edit the output files.
4609 2003-09-10  Akim Demaille  <akim@epita.fr>
4611         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
4612         and AC_FC_FREEFORM.
4613         * tests/mktests.sh: Skip AC_FC_SRCEXT.
4614         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
4616 2003-09-09  Akim Demaille  <akim@epita.fr>
4618         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
4619         Reported by Gary Vaughan.
4620         * bin/autom4te.in (handle_m4): Likewise.
4622 2003-09-09  Akim Demaille  <akim@epita.fr>
4624         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
4625         trailing files.
4627 2003-09-07  Paul Eggert  <eggert@twinsun.com>
4629         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
4630         Improve the accuracy of the wording about obsolescence.
4631         From a suggestion by Ian Lance Taylor in
4632         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
4634 2003-09-05  Paul Eggert  <eggert@twinsun.com>
4636         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
4637         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
4639 2003-09-04  Akim Demaille  <akim@epita.fr>
4641         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
4642         AC_FUNC_WAIT3.
4644 2003-09-04  Akim Demaille  <akim@epita.fr>
4646         * bin/autom4te.in: Use &fatal where more appropriate than &error.
4647         (freeze): When exiting, use $exit_code.
4648         * lib/autoconf/fortran.m4: Comment changes.
4650 2003-09-04  Akim Demaille  <akim@epita.fr>
4652         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
4654 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
4656         Add support for newer Fortran dialects.  The F77 interface is
4657         unchanged, and continues to support Fortran 77.  New FC macros
4658         correspond to all the old F77 macros, with output variables FC,
4659         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
4660         available dialect, but older dialects can be specified.  There are
4661         new macros AC_FC_SRCEXT to set the source extension, and
4662         AC_FC_FREEFORM to accept free-form source files.
4664         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
4665         New macros.
4666         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
4667         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
4668         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
4669         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
4670         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
4671         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
4672         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
4673         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
4674         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
4675         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
4676         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
4677         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
4678         AC_FC_SRCEXT, AC_FC_FREEFORM):
4679         New macros.
4680         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
4681         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
4682         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
4683         Rewrite in terms of the above.
4684         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
4685         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
4686         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
4687         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
4689 2003-09-02  Paul Eggert  <eggert@twinsun.com>
4691         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
4692         Document problems with timestamp resolution that 'make', 'cp -p', and
4693         'touch -r' have.
4695 2003-08-27  Akim Demaille  <akim@epita.fr>
4697         * tests/m4sugar.at (cross_warning): Make sure to enable the
4698         output, so that we can track spurious m4sugar output.
4699         * tests/local.at: Require 2.57.
4700         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
4701         are defaulted by AT_CHECK anyway.
4702         Use AT_CHECK_AUTOM4TE.
4703         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
4704         missing dnl.
4706 2003-08-27  Akim Demaille  <akim@epita.fr>
4708         * bin/autoheader.in: Issue the "Using auxiliary..." message only
4709         when -Wobsolete is set.
4710         Set it on by default.
4711         Suggested by Klee Dienes.
4713 2003-08-27  Akim Demaille  <akim@epita.fr>
4715         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
4716         documentation.
4717         From Guido Draheim.
4719 2003-08-26  Akim Demaille  <akim@epita.fr>
4721         * doc/autoconf.texi (Output): Make clear that one can run code
4722         after AC_OUTPUT.
4724 2003-08-25  Akim Demaille  <akim@epita.fr>
4726         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
4727         CVS Bison.
4729 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
4731         * bin/autoreconf.in (parse_args): Do not pass --no-force to
4732         Automake versions prior to 1.8.
4734 2003-08-25  Akim Demaille  <akim@epita.fr>
4736         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
4737         From Ville Karaila.
4739 2003-08-24  Akim Demaille  <akim@epita.fr>
4741         * configure.ac: Bump to 2.57c.
4743 2003-08-22  Akim Demaille  <akim@epita.fr>
4745         Version 2.57b.
4747         * Makefile.cfg (local-checks-to-skip): New.
4748         * Makefile.maint (local-check): Rename as...
4749         (local-checks-available): this.
4750         (local-check): New.
4752         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
4753         * configure.ac: Require Automake 1.7.6.
4755 2003-08-22  Akim Demaille  <akim@epita.fr>
4757         Output stack traces in warnings.
4759         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
4760         Replace the former...
4761         (m4_warn): Pass the call stack to _m4_warn.
4762         * bin/autom4te.in: Adjust to output the call stack.
4763         * tests/m4sugar.at (m4@&t@_warn): Adjust.
4765 2003-08-22  Akim Demaille  <akim@epita.fr>
4767         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
4768         * bin/autom4te.in: Adjust.
4770 2003-08-21  Akim Demaille  <akim@epita.fr>
4772         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
4773         (&verbose): Remove.
4774         (&getopt): Adjust the note and verb channels, depending upon
4775         --verbose.
4776         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
4777         * bin/autoupdate.in: Adjust.
4778         Use &verb, not &verbose.
4780 2003-08-21  Akim Demaille  <akim@epita.fr>
4782         * bin/autoheader.in (&parse_args): Use &parse_warnings and
4783         &parse_WARNINGS.
4784         ($help): Use Autom4te::ChannelDefs::usage.
4785         * bin/autoscan.in: Use Autom4te::ChannelDefs.
4786         * lib/Autom4te/General.pm: Don't export error: you don't own it.
4788 2003-08-21  Akim Demaille  <akim@epita.fr>
4790         First stab at preserving warnings between calls to autom4te,
4791         including when the cache is used.
4793         There are still several issues: (i) there are too many runs of m4
4794         (one for include, one for warnings, and some more), (ii) warnings
4795         spreading on several lines are not handled gracefully, (iii) the
4796         code meant to have the call stack display for errors does not work
4797         (its handling should move from m4 to autom4te).
4799         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
4800         Use them.
4801         (@preselect): Add m4_warn.
4802         ($exit_status): Remove, use $exit_code.
4803         ($help): Use Autom4te::ChannelDefs::usage.
4804         (&handle_m4): No longer define the m4_warnings.
4805         At each run, extract and report the warnings.
4806         Always cache the result, including if the exit status is on
4807         failure, since if nothing changes, we should result in the same
4808         failure, hence we can use the cache.
4809         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
4810         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
4811         Remove.
4812         (m4_warn): Redefine as a do-nothing: it is its invocation that
4813         matters, as warnings are now reported via traces.
4814         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
4815         the contents of m4_warn: make it _call_ m4_warn, so that tracing
4816         the latter reveals calls to the former.
4818         Adjust the tests.
4820         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
4822 2003-08-21  Akim Demaille  <akim@epita.fr>
4824         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
4825         Use them.
4827 2003-08-21  Akim Demaille  <akim@epita.fr>
4829         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
4830         forward order.
4831         * lib/Autom4te/ChannelDefs.pm: Doc typos.
4832         (&parse_warnings): Accept a list of warning requests.
4833         (&usage): Return a string, not a side effect.
4834         (cross): New warning category.
4836 2003-08-21  Akim Demaille  <akim@epita.fr>
4838         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
4839         (&require_configure_ac): Accept an optional directory argument.
4840         ($configure_ac): Remove.
4841         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
4842         (&catfile): Remove.
4843         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
4844         * bin/autoscan.in: Adjust.
4846 2003-08-20  Akim Demaille  <akim@epita.fr>
4848         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
4849         Reported by Alexandre Duret-Lutz.
4851 2003-08-20  Akim Demaille  <akim@epita.fr>
4853         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
4854         * bin/autom4te: Adjust.
4855         In particular, be Autoconf tools are really silent when properly
4856         working, bind the verbosity of the 'note' channel to $verbose.
4857         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
4858         (&xsystem, &contents): Remove, since they are exported by...
4859         * lib/Autom4te/FileUtils.pm: this.
4860         More perldoc.
4861         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
4862         * lib/Autom4te/FileUtils.pm: here.
4864 2003-08-20  Akim Demaille  <akim@epita.fr>
4866         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
4867         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
4868         from CVS Automake.
4870 2003-08-20  Akim Demaille  <akim@epita.fr>
4872         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
4873         (autom4te-update): New.
4874         * Makefile.cfg (update): Bind autom4te-update.
4876 2003-08-19  Derek Price  <derek@ximbiot.com>
4878         * lib/autotest/general.m4: Comment various HELP_* diversions.
4879         (PARSE_ARGS_BEGIN): New section for option parsing related
4880         initialization.
4881         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
4882         package specific options and associated help.
4884 2003-08-19  Akim Demaille  <akim@epita.fr>
4886         * config/announce-gen, Makefile.cfg: New.
4887         * Makefile.am: Adjust.
4888         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
4890 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
4892         * lib/autom4te.in (Automake-preselections): Preselect
4893         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
4894         and m4_sinclude.
4896 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
4898         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
4899         (Autoconf-without-aclocal-m4): ... this new language.
4900         * doc/autoconf.texi (autom4te Invocation): Mention
4901         Autoconf-without-aclocal-m4.
4903 2003-08-18  Derek Price  <derek@ximbiot.com>
4905         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
4906         RUN-IF-PASS optional arguments.
4908 2003-08-18  Derek Price  <derek@ximbiot.com>
4910         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
4912 2003-08-16  Derek Price  <derek@ximbiot.com>
4914         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
4915         STDOUT & STDERR arguments.
4917 2003-08-14  Derek Price  <derek@ximbiot.com>
4919         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
4920         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
4921         shorter column three.  Add DESCRIPTION to log file content.
4923 2003-08-13  Derek Price  <derek@ximbiot.com>
4925         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
4926         output.
4928 2003-08-12  Derek Price  <derek@ximbiot.com>
4930         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
4931         (AT_CHECK_NOESCAPE): Move core functionality to...
4932         (_AT_CHECK): ...this new macro.
4934 2003-08-07  Derek Price  <derek@ximbiot.com>
4936         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
4937         (AT_CHECK_NOESCAPE): ...to this new macro.
4939 2003-07-31  Paul Eggert  <eggert@twinsun.com>
4941         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
4942         in Bash 2.01.  Problem reported by Brian Gough in
4943         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
4945 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
4947         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
4948         -lcrt1.o, for OS X.  (trivial change)
4950 2003-07-07  Paul Eggert  <eggert@twinsun.com>
4952         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
4953         inside '#ifndef __cplusplus'.  Problem reported by
4954         Bob Friesenhahn.
4956 2003-07-06  Bill Clarke  <llib@computer.org>
4958         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
4959         'long', not 'int', for benefit of Sun's recent C++ compilers
4960         (trivial change).  See:
4961         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
4962         (This really should be 'intptr_t', not 'long', but that would
4963         take more work.)
4965 2003-06-25  Akim Demaille  <akim@epita.fr>
4967         * lib/Makefile.am (autom4te.cfg): Make it read only.
4968         Depend on Makefile since it contains substitutions.
4969         From Paolo Bonzini.
4970         * lib/autom4te.in (args): Add local.at? for Autotest args.
4971         This change was made on autom4te.cfg which is generated.
4972         Reported by Raja R. Harinath.
4974 2003-06-25  Akim Demaille  <akim@epita.fr>
4976         * doc/autoconf.texi (Header Portability): sys/mount.h.
4977         From Gareth McCaughan.
4979 2003-06-23  Akim Demaille  <akim@epita.fr>
4981         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
4982         not all of them.  This fixes 1. the fact that when testing
4983         Autoconf there are many many config.log, 2. the incorrect use of
4984         top_srcdir to find config.log.
4985         Don't mix the detailed output of failed test with the summary of
4986         failures.  Rather, append detailed log afterwards.
4988 2003-06-23  Akim Demaille  <akim@epita.fr>
4990         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
4991         always run: output config.log on $at_group_log.
4993 2003-06-23  Akim Demaille  <akim@epita.fr>
4995         * tests/torture.at (#define header templates): Don't use quotes in
4996         C++ comments as it puzzles Emacs' sh font-lock-mode.
4998 2003-06-23  Akim Demaille  <akim@epita.fr>
5000         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
5001         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
5002         * tests/atspecific.m4: Rename as...
5003         * tests/local.at: This.
5004         * tests/suite.at: Move the globals into...
5005         * tests/local.at: here.
5006         * tests/Makefile.am: Adjust.
5007         * doc/autoconf.texi (testsuite Scripts): Adjust.
5009 2003-06-21  Kevin Ryde  <user42@zip.com.au>
5011         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
5012         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
5013         ensuring we add -std1 for full-ANSI.
5015         * doc/autoconf.texi (hdrindex): New macro.
5016         Add index entries for portability of various standard header files.
5018 2003-06-20  Akim Demaille  <akim@epita.fr>
5020         * configure.ac: Bump to 2.57b.
5022 2003-06-20  Akim Demaille  <akim@epita.fr>
5024         Version 2.57a.
5026 2003-06-20  Akim Demaille  <akim@epita.fr>
5028         * bin/autom4te.in: Don't rely on $HOME being defined.
5029         Reported by Marc Espie as PR/233.
5031 2003-06-20  Akim Demaille  <akim@epita.fr>
5033         * lib/autotest/general.m4: Use at_times_file only if used.
5034         From Nicolas Joly.
5036 2003-06-20  Akim Demaille  <akim@epita.fr>
5038         * config/config.guess, config/config.sub, config/elisp-comp,
5039         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
5040         Update from masters.
5042 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
5044         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
5045         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
5046         (TEST_SCRIPT): New diversion.
5047         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
5048         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
5049         (AT_INIT): Support for expected failures.
5051 2003-06-02  Akim Demaille  <akim@epita.fr>
5053         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
5054         changes.
5055         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
5056         Autoconf nor Automake.
5057         (&contents): New, from Automake.
5058         PODify.
5060 2003-05-28  Paul Eggert  <eggert@twinsun.com>
5062         * NEWS, doc/autoconf.texi (Particular Functions),
5063         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
5064         is the inverse of localtime.
5066 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
5068         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
5069         (handle_exec_errors): New function.  Work around $! being
5070         altered by WEXITSTATUS.
5071         (xqx, xsystem): Use handle_exec_errors.
5073 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
5075         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
5076         Do not call `_exit()', simply modify `$?'.
5077         (xsystem): Reset $! before running system, and check it afterward.
5078         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
5079         63 for version mismatches.
5081 2003-05-23  Akim Demaille  <akim@epita.fr>
5083         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
5084         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
5085         the middle of a line).
5086         * lib/m4sugar/m4sugar.m4: Likewise.
5087         Remove useless spaces in comments.
5089 2003-05-23  Akim Demaille  <akim@epita.fr>
5091         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
5092         exit 63, so that we (or Automake's "missing") can tell the
5093         difference with a plain failure.
5094         * doc/autoconf.texi (Notices): Adjust.
5096 2003-05-23  Akim Demaille  <akim@epita.fr>
5098         * Makefile.am, bin/Makefile.am, config/Makefile.am,
5099         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
5100         White spaces cleanup.
5102 2003-05-22  Jim Meyering  <jim@meyering.net>
5103             Paul Eggert  <eggert@twinsun.com>
5105         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
5106         Remove `#include <stdlib.h>' from the list; we should never
5107         make confdefs.h include <stdlib.h> or <cstdlib>, because the
5108         resulting namespace pollution would cause other tests to fail.
5109         Configure scripts run with some older versions of g++ and HP's
5110         aCC would fail due to such an #include.  Problems reported by
5111         Matthew Mueller in <http://bugs.debian.org/120704> and by
5112         Keith Bostic in
5113         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
5114         In the test, use the test declaration before including <stdlib.h>,
5115         as that's closer to how it'll be used.
5117 2003-05-23  Akim Demaille  <akim@epita.fr>
5119         * doc/autoconf.texi (Header Portability): ucred.h.
5120         From Ian Redfern.
5122 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
5124         Overhaul Autotest's logging: generate separate log files
5125         in testsuite.dir/NNN/testsuite.log, and append them to
5126         testsuite.log instead of re-running the test verbosely.
5128         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
5129         file descriptor, write 0 to at_status_file instead of setting
5130         at_status=0, initialize some new variables (at_status_file,
5131         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
5132         to rerun the tests, instead append the at_group_log to the
5133         at_suite_log when a test fails.
5134         (AT_SETUP): pipe the test case's output into at_tee_pipe,
5135         with the AS_MESSAGE_LOG_FD redirected to stdout.
5136         (AT_CLEANUP): save the output status in $at_status_file
5137         and restore it, redirect the AS_MESSAGE_LOG_FD back to
5138         its original place.
5139         (AT_CHECK): since tests are run with a redirected stdout,
5140         and used to be re-run in verbose mode, turn some $at_verbose
5141         into echo, and don't redirect the output of testing stdout
5142         and stderr.
5144         * lib/autotest/autoconf.texi (testsuite Scripts): Update
5145         the name of the debugging directory and information about
5146         its contents.
5148 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
5150         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
5151         parameter.
5153 2003-05-22  Akim Demaille  <akim@epita.fr>
5155         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
5156         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
5157         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
5158         * lib/autoconf/status.m4: Fix and adjust copyright notices.
5160 2003-05-22  Akim Demaille  <akim@epita.fr>
5162         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
5163         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
5164         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
5165         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
5166         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
5167         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
5168         * lib/autoconf/status.m4, lib/autoconf/types.m4,
5169         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
5170         * tests/atspecific.m4, tests/base.at, tests/compile.at,
5171         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
5172         * tests/tools.at, tests/torture.at:
5173         Whitespace clean up.
5174         Suggested by Jim Meyering.
5176 2003-05-22  Akim Demaille  <akim@epita.fr>
5178         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
5179         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
5180         Reported by Jim Meyering.
5182 2003-05-22  Akim Demaille  <akim@epita.fr>
5184         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
5185         Add AC_HELP_STRING  to the obsolete macros section.
5186         Typos.
5187         Use '@.' for sentences that ended in a capital letter.
5188         From Art Haas.
5190 2003-05-22  Akim Demaille  <akim@epita.fr>
5192         * config/config.guess, config/config.sub, config/elisp-comp,
5193         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
5194         * config/texinfo.tex, doc/standards.texi: Update from masters.
5196 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
5198         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
5199         it to eval.
5201 2003-05-21  Akim Demaille  <akim@epita.fr>
5203         * bin/autoupdate.in ($m4): Fix quotation.
5204         Reported by Martin Mokrejs.
5206 2003-05-19  Paul Eggert  <eggert@twinsun.com>
5208         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
5209         Remove non-ASCII characters.
5211 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
5213         * tests/semantics.at (AC_SEARCH_LIBS): New test.
5214         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
5215         AC_CHECK_HEADERS_NEW): New tests.
5217 2003-05-17  Akim Demaille  <akim@epita.fr>
5219         * lib/autoconf/functions.m4: Use the default includes so that
5220         memcmp be declared before being tested.
5221         Reported by Sander Niemeijer.
5222         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
5223         * doc/autoconf.texi (Default Includes): Document
5224         AC_INCLUDES_DEFAULT.
5226 2003-05-17  Akim Demaille  <akim@epita.fr>
5228         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
5229         * doc/autoconf.texi (Obsolete Macros): Adjust.
5230         Reported by Werner LEMBERG and Debian Bug 190886.
5232 2003-05-16  Akim Demaille  <akim@epita.fr>
5234         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
5235         user name space clashes.
5236         Reported by Bruno Haible.
5238 2003-05-16  Akim Demaille  <akim@epita.fr>
5240         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
5241         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
5242         them uniform, and more robust to Perl special characters.
5243         Reported by Martin Mokrejs.
5245 2003-05-14  Akim Demaille  <akim@epita.fr>
5247         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
5249 2003-05-14  Akim Demaille  <akim@epita.fr>
5251         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
5252         linux/irda.h.
5254 2003-05-12  Akim Demaille  <akim@epita.fr>
5256         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
5257         message.
5258         From Matthias Andree.
5260 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
5262         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
5263         and truncate.
5265 2003-05-06  Akim Demaille  <akim@epita.fr>
5267         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
5268         longer updates aclocal.m4 if useless, (ii) if a file m4_included
5269         by aclocal.m4 is changed it might require the importing of another
5270         m4 extension file, i.e., aclocal must be run.
5272         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
5273         (&parse_args): Use --force with aclocal if required and supported.
5274         (&autoreconf_current_directory): Use &run_aclocal.
5276 2003-05-06  Akim Demaille  <akim@epita.fr>
5278         Lock autom4te's cache.
5280         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
5281         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
5282         argument instead of a file name, so that the request file remains
5283         open during the whole autom4te run.
5284         ($icache_file): New.
5285         (&freeze): Lock the $icache_file.
5287 2003-04-29  Derek Price  <derek@ximbiot.com>
5289         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
5290         seperator with m4_append_uniq().  It doesn't work.
5291         (AT_CLEANUP): Add `;' to end of at_help_all.
5292         (AT_INIT): Allow --keywords to be specified more than once.  When
5293         grepping $at_help_all for keywords, use the field and keyword
5294         seperators to ensure a complete keyword match.  Alter at_prev handling
5295         to support the new --keywords behavior.
5297 2003-04-27  Karl Berry  <karl@freefriends.org>
5299         * doc/autoconf.texi: Make the dir entries in the autoconf manual
5300         align better with others.  I also made some of the individual
5301         entries on one line, for brevity and to make it easier for me to
5302         sort my dir-example file in the Texinfo distribution :).
5304 2003-04-12  Jim Meyering  <jim@meyering.net>
5306         * NEWS: Mention the new macro.
5307         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
5308         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
5309         * tests/c.at: Test AC_C_RESTRICT.
5310         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
5312 2003-04-08  Akim Demaille  <akim@epita.fr>
5314         * bin/ifnames.in: Skip C++ comments.
5315         From Jeremy Yallop.
5317 2003-04-08  Akim Demaille  <akim@epita.fr>
5319         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
5320         From Ilya Zakharevich.
5322 2003-04-08  Akim Demaille  <akim@epita.fr>
5324         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
5325         net/if.h, stdlib.h.
5327 2003-04-01  Derek Price  <derek@ximbiot.com>
5329         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
5330         from Akim's checkin of 2003-03-29.
5332 2003-04-01  Derek Price  <derek@ximbiot.com>
5334         * tests/torture.at (Configuring subdirectories): Add missing
5335         close-quote for Akim's change from 2003-03-28.
5337 2003-04-01  Akim Demaille  <akim@epita.fr>
5339         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
5340         (AC, AT, MS): these.
5341         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
5342         New.
5343         Use them.
5344         * doc/Makefile.am (CLEANFILES): Adjust.
5345         (TEXI2DVI): Make it --batch.
5347 2003-03-31  Derek Price  <derek@ximbiot.com>
5349         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
5350         which removed the main loop.
5351         Thanks to Akim Demaille.
5353 2003-03-29  Akim Demaille  <akim@epita.fr>
5355         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
5356         that starts a GUI.
5357         From Ilya Zakharevich.
5359 2003-03-29  Akim Demaille  <akim@epita.fr>
5361         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
5362         documentation to read is Autoconf's.
5363         Suggested by Paul Eggert.
5365 2003-03-28  Akim Demaille  <akim@epita.fr>
5367         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
5368         reading the section "Present But Cannot Be Compiled" when the
5369         header causes problems.
5371 2003-03-28  Akim Demaille  <akim@epita.fr>
5373         * tests/torture.at (Configuring subdirectories): Require aclocal
5374         1.4, otherwise the test fails, as it does support configure.ac.
5375         This fixes the "test 40 failed" bug reports.
5377 2003-03-28  Akim Demaille  <akim@epita.fr>
5379         * doc/autoconf.texi (C Compiler): `#line' portability.
5380         From Paul Eggert and Nelson H. F. Beebe.
5382 2003-03-27  Derek Price  <derek@ximbiot.com>
5384         * lib/autotest/general.m4: Eliminate main loop and reorganize test
5385         layout in order to allow scripting around test groups.
5387 2003-03-27  Derek Price  <derek@ximbiot.com>
5389         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
5390         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
5391         use new diversions in preparation for accepting new arguments and
5392         allowing scripting around tests.
5393         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
5395 2003-03-26  Derek Price  <derek@ximbiot.com>
5397         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
5398         obsolete AC_HELP_STRING.
5399         (AC_HELP_STRING): AU_DEFUN to...
5400         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
5401         * tests/m4sh.at (AS_HELP_STRING): New test.
5403         * tests/acgeneral.at: Regenerated.
5405 2003-03-26  Derek Price  <derek@ximbiot.com>
5407         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
5408         sense.  Verbosify the diversion definitions comment.
5410 2003-03-26  Derek Price  <derek@ximbiot.com>
5412         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
5413         AS_PREPARE.
5415 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
5417         * doc/autoconf.texi (Present But Cannot Be Compiled):
5418         Grammar fixes and minor rewording. (trivial change)
5420 2003-03-06  Paul Eggert  <eggert@twinsun.com>
5422         Work around a problem noted by Nelson H. F. Beebe with coreutils
5423         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
5424         2002/05/09) rejects '#line 32768 "configure"' because the line
5425         number overflows.
5426         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
5427         #line directives.
5428         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
5429         * doc/autoconf.texi (Generating Sources): Document this.
5431 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
5433         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
5434         file name for the m4 program, when it has an "exe" file extension.
5435         DJGPP's error messages include the error code in brackets -
5436         remove the error code during normalization.
5438 2003-02-28  Akim Demaille  <akim@epita.fr>
5440         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
5442 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
5444         * doc/autoconf.texi (Limitations of Make): Remove the section
5445         about `$<' in inference rules, it was a bogus interpretation of
5446         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
5447         Tru64 make in the "target lookup" section.
5448         (Automake): Automake 1.5+ no longer requires special tools to be
5449         present on the developer's host.
5451 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
5453         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
5454         to a shell that can handle redirection or quoting correctly.
5455         Override SHELL with the shell detected by configure.
5456         Use of $^O suggested by Tim van Holder.
5457         * bin/autom4te.in (BEGIN): Likewise.
5458         * bin/autoreconf.in (BEGIN): Likewise.
5459         * bin/autoscan.in (BEGIN): Likewise.
5460         * bin/autoupdate.in (BEGIN): Likewise.
5461         * bin/ifnames.in (BEGIN): Likewise.
5463         * bin/ifnames.in: Add final newline to help and version messages.
5465         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
5466         to cope with DOS-style absolute paths, when constructing
5467         ${ac_make}.
5469         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
5470         When constructing paths with IFS=:, quote the path. If we're
5471         constructing a DOS-style absolute path, we don't want to split it
5472         on the colon.
5474         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
5475         in description.
5477 2003-02-25  Pavel Roskin  <proski@gnu.org>
5479         * bin/autoheader.in: Add missing newline when printing
5480         suggestion how change AC_DEFINE call.
5482 2003-02-24  Paul Eggert  <eggert@twinsun.com>
5484         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
5485         2002-09-01 patch by replacing "test -n" with "test -z".
5486         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
5487         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
5489         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
5490         to fix a mismatch between example and discussion.
5492 2003-02-24  Kevin Ryde  <user42@zip.com.au>
5494         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
5495         format starting with "-".
5497 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
5499         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
5500         is not portable inside Makefile.
5502 2003-02-20  Akim Demaille  <akim@epita.fr>
5504         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
5505         compiler says yeah, but preproc says nope, compiler is right.
5506         Conversely, prompt the reader to send a bug report to the
5507         maintainers of the package, not of Autoconf.
5509 2003-02-20  Klee Dienes  <kdienes@apple.com>
5511         * bin/autoreconf.in (autoreconf_current_directory): Properly
5512         handle an empty aclocal.m4.
5514 2003-02-20  Akim Demaille  <akim@epita.fr>
5516         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
5517         $ac_prefix_program.
5518         From Larry Jones.
5520 2002-12-23  Paul Eggert  <eggert@twinsun.com>
5522         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
5523         innocuous variant befor including <limits.h> or <assert.h>.  This
5524         works around a bug reported by Albert Chin: HP-UX 11i
5525         (and earlier versions) have a <limits.h> that declares
5526         gettimeofday and many other functions.
5528 2002-12-03  Paul Eggert  <eggert@twinsun.com>
5530         Version 2.57.
5532         * NEWS, configure.ac: Update version.
5534         * doc/fdl.texi: Upgrade to FDL version 1.2.
5536         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
5537         nontrivially in main's body, so that f's external declaration is
5538         not optimized away in AIX.  This should fix the bug reported by
5539         Martin Frydl in
5540         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
5542         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
5543         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
5544         defined, to support freestanding compilers.  This should fix the
5545         bug reported by Momchil Velkov in
5546         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
5548         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
5549         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
5550         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
5551         by Simon Josefsson in
5552         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
5554         * Makefile.maint (www-gnu): New macro.
5555         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
5556         the location has moved.
5558 2002-12-02  Martin Frydl  <martin@systinet.com>
5560         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
5561         \(.*\) match is too long and there is something more to be checked.
5562         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
5564 2002-11-15  Akim Demaille  <akim@epita.fr>
5566         Version 2.56.
5568         * config/install-sh: chmod +x.
5569         From Paul Eggert.
5570         * config/move-if-change: Indenting changes.
5571         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
5572         * configure.ac (AM_INIT_AUTOMAKE): here.
5573         Require 1.7.1.
5575 2002-11-14  Akim Demaille  <akim@epita.fr>
5577         Version 2.55.
5579         * config/config.guess, config/config.sub, config/install-sh:
5580         Update from masters.
5582 2002-11-14  Akim Demaille  <akim@epita.fr>
5584         * Makefile.maint: Sync with Bison, i.e.:
5585         (po-check): Scan .l and .y files instead of the
5586         .c and the .h files that they generate.  This fixes the bug
5587         reported by Tim Van Holder in:
5588         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
5589         Look for N_ as well as for _.  Try to avoid matching #define for
5590         N_ and _.
5591         From Paul Eggert.
5593 2002-11-14  Akim Demaille  <akim@epita.fr>
5595         * doc/autoconf.texi (C Compiler): Compiling several files at once.
5596         From Paul Eggert and Albert Chin-A-Young.
5598 2002-11-14  Akim Demaille  <akim@epita.fr>
5600         * doc/autoconf.texi (C Compiler): Solitary backslashes.
5601         From Paul Eggert and Albert Chin-A-Young.
5603 2002-11-14  Kevin Ryde  <user42@zip.com.au>
5605         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
5606         than assigning in main, to avoid HP cc +O3 optimizing it away.
5608 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
5610         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
5611         option.  Process --recheck after parsing all options.  Pass -q
5612         option to configure on --recheck.
5613         (AC_OUTPUT): Pass -q from configure to config.status.
5614         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
5615         arguments to record.
5616         * doc/autoconf.texi (config.status Invocation): Document
5617         config.status -q option.
5619 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
5621         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
5622         Makefile.in if Makefile.am exists.
5623         (output): Strip `.am' from Makefiles.  Don't
5624         output AC_CONFIG_FILES if no Makefiles were found.
5626 2002-11-07  Akim Demaille  <akim@epita.fr>
5628         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
5629         (local_updates): New.
5630         * Makefile.maint: Update, from CVS Bison.
5631         (local_updates): New.
5633 2002-11-06  Akim Demaille  <akim@epita.fr>
5635         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
5636         declaration in extern "C" too.
5637         Reported by Roberto Bagnara.
5639 2002-11-06  Akim Demaille  <akim@epita.fr>
5641         * tests/torture.at (Configuring subdirectories): Don't use grep
5642         -w.
5643         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
5644         Reported by Ezra Peisach.
5646 2002-11-05  Akim Demaille  <akim@epita.fr>
5648         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
5649         Remove.
5650         We _have_ to stop using the old compatibility scheme that tried to
5651         avoid useless backslashes because Libtool 1.4.3 contains a
5652         AC_DEFINE([error_t], [int],
5653         [Define to a type to use for \`error_t' if it is not
5654         otherwise available.])
5655         We _have_ to quote the single quote and backslashes with \.  The
5656         old compatibility scheme saw that ` was backslashed, and therefore
5657         did not quote the single quote.  Hence before this patch, Autoconf
5658         was not compatible with Libtool.
5660 2002-11-04  Paul Eggert  <eggert@twinsun.com>
5662         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
5663         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
5664         LC_NAME, LC_PAPER, LC_TELEPHONE.
5665         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
5667 2002-11-04  Akim Demaille  <akim@epita.fr>
5669         Version 2.54c.
5671         * Makefile.maint (update, cvs-update, po-update, do-po-update):
5672         New.
5673         * config/texinfo.tex: Update.
5675 2002-11-03  Akim Demaille  <akim@epita.fr>
5677         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
5678         from...
5679         (&autoreconf): here.
5680         ($help, $make, &parse_args, &autoreconf_current_directory):
5681         Support -m/--make.
5682         * doc/autoconf.texi (autoreconf Invocation): Adjust.
5684 2002-10-31  Bruno Haible  <bruno@clisp.org>
5686         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
5687         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
5688         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
5689         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
5690         to ac_cv_func_realloc_0_nonnull.
5691         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
5693 2002-10-31  Akim Demaille  <akim@epita.fr>
5695         The test suite was no longer checking for trailing envvars and files.
5697         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
5698         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
5700 2002-10-31  Akim Demaille  <akim@epita.fr>
5702         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
5703         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
5704         Make variable, not a shell variable.
5705         Suggested by Bruno Haible.
5707 2002-10-31  Akim Demaille  <akim@epita.fr>
5709         * bin/autom4te.in (load_configuration): Reject #args out of any
5710         language.
5712 2002-10-31  Akim Demaille  <akim@epita.fr>
5714         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
5715         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
5716         (_AC_RUN_IFELSE): Use it.
5717         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
5718         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
5719         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
5720         inline it.
5722 2002-10-30  Akim Demaille  <akim@epita.fr>
5724         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
5725         * doc/autoconf.texi (autom4te Invocation): Adjust.
5726         Suggested by Tim van Holder.
5728 2002-10-29  Paul Eggert  <eggert@twinsun.com>
5730         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
5731         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
5732         Problem reported by Bruno Haible.
5734 2002-10-29  Akim Demaille  <akim@epita.fr>
5736         * doc/autoconf.texi (Header Templates): Put also in words what the
5737         pictures says to assist free style readers.
5738         (Customizing autom4te): s/--cache=/--cache /.
5740 2002-10-29  Akim Demaille  <akim@epita.fr>
5742         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
5743         sys/wait.h.
5744         sparc_address_test returns void.
5745         Use it with an argument, as prototyped.
5746         From Bruno Haible.
5748 2002-10-29  Akim Demaille  <akim@epita.fr>
5750         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
5751         configure.in, not configure.ac.
5752         Reported by Bruno Haible.
5754 2002-10-29  Akim Demaille  <akim@epita.fr>
5756         * tests/torture.at (Deep Package): New test.
5757         (Configuring subdirectories): Don't use a testSubDir as Autotest
5758         now does it itself.
5760 2002-10-29  Akim Demaille  <akim@epita.fr>
5762         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
5763         * doc/autoconf.texi (Invoking autom4te): Rename as...
5764         (autom4te Invocation): this, for consistency with the other nodes.
5766 2002-10-29  Akim Demaille  <akim@epita.fr>
5768         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
5769         Reported by Ralf Corsepius.
5771 2002-10-29  Akim Demaille  <akim@epita.fr>
5773         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
5774         characters is a back as an `obsolete' warning now.
5775         Reported by Ralf Corsepius.
5777 2002-10-28  Akim Demaille  <akim@epita.fr>
5779         * configure.ac: Bump to 2.54c.
5781 2002-10-28  Akim Demaille  <akim@epita.fr>
5783         Version 2.54b.
5785         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
5787 2002-10-28  Akim Demaille  <akim@epita.fr>
5789         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
5790         m4 executable names, and different GNU M4 version.
5791         Reported by Ezra Peisach and Paul Jarc.
5793 2002-10-27  Akim Demaille  <akim@epita.fr>
5795         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
5796         AC_RUN_IFELSE.
5798 2002-10-27  Akim Demaille  <akim@epita.fr>
5800         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
5801         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
5802         Die when a simple Fortran program cannot be compiled.
5803         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
5804         Issue a warning if no function is given.
5806 2002-10-27  Akim Demaille  <akim@epita.fr>
5808         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
5809         Move the documentation of AC_TRY_RUN to...
5810         (Obsolete Macros): here.
5811         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
5812         (autoconf Invocation): Remove the duplicates with `invoking
5813         autom4te'.
5814         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
5815         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
5817 2002-10-27  Akim Demaille  <akim@epita.fr>
5819         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
5820         and AC_LANG_FUNC_LINK_TRY.
5821         (Examining Libraries): Rename as...
5822         (Running the Linker): this.
5823         Document AC_LINK_IFELSE.
5824         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
5825         (Obsolete Macros): here.
5826         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
5827         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
5828         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
5829         * lib/autoconf/headers.m4 (AC_USG): Likewise.
5831 2002-10-27  Akim Demaille  <akim@epita.fr>
5833         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
5835         More `check config.log' messages.
5837         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
5838         * doc/autoconf.texi (Printing Messages): Document it.
5839         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
5840         appropriate.
5841         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
5842         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
5843         (_AC_COMPILER_OBJEXT): Likewise.
5844         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
5845         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
5846         Likewise.
5847         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
5848         Likewise.
5850         Deprecate macros with unusual interfaces.
5852         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
5853         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
5855         Document the new ones, and proper style.
5857         * doc/autoconf.texi (Generating Sources): New.
5858         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
5859         (Examining Declarations): Rename as...
5860         (Running the Preprocessor): this.
5861         Document AC_PREPROC_IFELSE.
5862         (Examining Syntax): Rename as...
5863         (Running the Compiler): this.
5864         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
5865         (Obsolete Macros): Move the definition of AC_TRY_CPP and
5866         AC_TRY_COMPILE here.
5868 2002-10-27  Akim Demaille  <akim@epita.fr>
5870         Move sections around.
5872         * doc/autoconf.texi (Customizing autom4te): Remove a lost
5873         sentence.
5874         Reported by Burno Haible.
5875         (Language Choice): Now the first section of...
5876         (Writing Tests): this section.
5877         Make the introduction less C-centric.
5878         (Guidelines, Test Functions): Move to...
5879         (Writing Test Programs): this new section.
5880         (Test Programs): Merge into...
5881         (Run Time): this.
5883 2002-10-27  Akim Demaille  <akim@epita.fr>
5885         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
5886         autom4te.in that resulted in the need for two `make' runs.
5888 2002-10-27  Akim Demaille  <akim@epita.fr>
5890         * configure.ac: Bump to 2.54b.
5892 2002-10-25  Akim Demaille  <akim@epita.fr>
5894         Version 2.54a.
5896         * Makefile.maint: Update from the Coreutils.
5897         (AMTAR): Remove, obsolete.
5898         (automake_repo): Update to redhat.com.
5899         (cvs_file): New.
5900         Adjust to the fact that ansi2knr is now hosted by Automake.
5901         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
5902         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
5903         Update from masters.
5904         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
5905         autoscan.pre is not to be installed, and autoscan.list is not to
5906         be shipped.
5907         (CLEANFILES): Add autoscan.list.
5908         (autoscan.list): Disable the cache.
5909         * bin/Makefile.am: Include freeze.mk.
5911 2002-10-25  Akim Demaille  <akim@epita.fr>
5913         * bin/autom4te.in (&load_configuration): Take the file as
5914         argument.
5915         (&parse_args): Handle -C, --cache.
5916         ($help): Adjust.
5917         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
5918         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
5919         * doc/autoconf.texi (Invoking autom4te): Document --cache.
5920         Now a subsection of...
5921         (Using autom4te): This new section.
5922         (Customizing autom4te): New.
5923         (autom4te.cache): Adjust.
5925 2002-10-25  Akim Demaille  <akim@epita.fr>
5927         * doc/autoconf.texi (Generic Headers): More information on how to
5928         use AC_CHECK_HEADERS.
5930 2002-10-25  Akim Demaille  <akim@epita.fr>
5932         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
5933         Space changes.
5935 2002-10-25  Akim Demaille  <akim@epita.fr>
5937         * bin/autoscan.in (output): Output AC_PREREQ.
5938         (%needed_macros): Add AC_PREREQ so that configure.ac without one
5939         be reported.
5941 2002-10-23  Akim Demaille  <akim@epita.fr>
5943         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
5944         document _Bool.
5946 2002-10-23  Akim Demaille  <akim@epita.fr>
5948         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
5949         Reported by Peter Eisentraut.
5951 2002-10-23  Akim Demaille  <akim@epita.fr>
5953         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
5954         type _Bool.
5955         Fix a typo.
5956         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
5957         Eggert's recommandations.
5959 2002-10-22  Akim Demaille  <akim@epita.fr>
5961         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
5962         Bison, by Paul Eggert.
5963         * doc/autoconf.texi (Particular Headers): Document it.
5965 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
5967         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
5968         `$ac_configure_args'.
5970 2002-10-22  Akim Demaille  <akim@epita.fr>
5972         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
5973         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
5974         From Art Haas.
5976 2002-10-22  Akim Demaille  <akim@epita.fr>
5978         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
5980         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
5981         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
5982         (_AC_CHECK_HEADER_NEW): Rename as...
5983         (AC_CHECK_HEADER): this.
5985 2002-10-22  Akim Demaille  <akim@epita.fr>
5987         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
5988         words about HP-UX cmp: it was actually a user-written cmp.
5990 2002-10-22  Akim Demaille  <akim@epita.fr>
5992         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
5993         are a few warnings.
5994         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
5995         Quote for Perl '' strings, not "".
5996         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
5997         strings.
5999 2002-10-22  Akim Demaille  <akim@epita.fr>
6001         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
6002         characters is a syntax warning now.
6003         (_AS_QUOTE): Accept $2 as list of characters to quote.
6004         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
6005         Quote for Perl, not sh.
6006         * bin/autoheader.in: When $debug, report the file which is
6007         `do'ne.
6008         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
6009         `@', to tickle Perl's lists.
6010         Reported by Carlos Velasco.
6012 2002-10-18  Akim Demaille  <akim@epita.fr>
6014         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
6015         missing included files _are_ errors.
6016         Thanks to Alexandre Duret-Lutz.
6017         * tests/tools.at (autom4te cache): Adjust.
6018         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
6019         (AT_CHECK_M4SUGAR): Use it.
6020         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6021         Adjust.
6022         * tests/tools.at (autom4te): Now it does exit 1.
6024 2002-10-17  Akim Demaille  <akim@epita.fr>
6026         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
6027         Fixes the `AC_ARG_VAR' test failures.
6028         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
6029         * lib/freeze.mk (check-forbidden-patterns): New.
6030         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
6031         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
6032         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
6033         /dev/null.
6034         Reported months ago by H. Merijn Brand.
6036 2002-10-17  Akim Demaille  <akim@epita.fr>
6038         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
6040 2002-10-16  Paul Eggert  <eggert@twinsun.com>
6042         * Makefile.maint (wget_files): Remove ansi2knr.c.
6043         (ansi2knr.c-url_prefix): Remove.
6045 2002-10-16  Akim Demaille  <akim@epita.fr>
6047         Because of caching, some files that no longer exist and are no
6048         longer required can still cause errors.
6049         Reported by Alexandre Duret-Lutz.
6051         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
6052         to frozen files in @ARGV, as @ARGV must remain being a list of
6053         files.  Rather, at M4 call sites, use this...
6054         (&files_to_options): New function.
6055         (&freeze): Use &error.
6056         (&up_to_date): If a file that was included according to the cache
6057         is no longer there, then the output is out dated.
6058         (&main): Don't even check whether a file is up to date is anyway
6059         --force is given.
6060         * tests/tools.at (autom4te cache): New.
6062 2002-10-16  Akim Demaille  <akim@epita.fr>
6064         * bin/autoconf.as: Kill dead options.
6065         * bin/autoupdate.in (&parse_args): Kill old options.
6066         * bin/autoreconf.in (&parse_args): Remove dead options.
6067         Factor some code.
6068         (&autoreconf): Report the directories we enter *and leave*, so
6069         that error messages can be easily located, and use GNU Make
6070         format, so that Emacs' compile mode understands us.
6071         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
6072         if some file was changed instead of `print'.
6073         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
6074         (&parse_args): Remove the dead options.
6075         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
6076         autoheader's quiet mode.
6077         (AT_CHECK_AUTOUPDATE): Likewise.
6078         * tests/tools.at (autoupdate): Adjust.
6079         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
6081 2002-10-11  Akim Demaille  <akim@epita.fr>
6083         No longer use CPP to check for the existing of headers: use CC to
6084         check for compilability.
6086         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
6087         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
6088         (_AC_CHECK_HEADER_NEW): Rename as...
6089         (AC_CHECK_HEADER): this.
6091         * lib/autotest/general.m4 (AT_INIT): Include the failed test
6092         numbers in the Subject suggestion.
6094 2002-10-11  Akim Demaille  <akim@epita.fr>
6096         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
6097         Suggest using AC_CHECK_DECLS instead.
6099 2002-10-11  Akim Demaille  <akim@epita.fr>
6101         * tests/torture.at (AC_ARG_VAR): Have configure report the value
6102         of `precious'.
6104 2002-10-11  Akim Demaille  <akim@epita.fr>
6106         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
6107         file name to enable parallel executions.
6108         From Sam Varshavchik.
6110 2002-10-08  Akim Demaille  <akim@epita.fr>
6112         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
6113         aclocal invocation, as Gettext macros might not be visible to
6114         aclocal.
6115         Instead of blindly running autopoint, scan configure.ac (not the
6116         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
6117         Reported by Paul D. Smith.
6119 2002-10-08  Paul Eggert  <eggert@twinsun.com>
6121         Work around problems found when POSIXLY_CORRECT=1 is set.
6122         None of this seems to have anything to do with POSIX, really,
6123         but it's how Perl getopt works.
6124         * bin/autom4te.in (parse_args): Configure GetOpt with
6125         "permute", too.
6126         * doc/autoconf.texi (Invoking autom4te):
6127         --warning -> --warnings.
6128         * lib/autom4te.in: --warning -> --warnings.
6130 2002-09-28  Akim Demaille  <akim@epita.fr>
6132         * doc/autoconf.texi (autom4te.cache): New section.
6134 2002-09-28  Akim Demaille  <akim@epita.fr>
6136         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
6137         (Automake-preselections): Update.
6138         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
6140 2002-09-28  Akim Demaille  <akim@epita.fr>
6142         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
6143         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
6144         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
6145         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
6147 2002-09-28  Akim Demaille  <akim@epita.fr>
6149         * tests/torture.at (Configuring subdirectories): Be robust to
6150         users who use config.site to require for a cache: in this case,
6151         the two last configure runs, using two different sets of
6152         arguments, trigger a legitimate error.
6154 2002-09-28  Akim Demaille  <akim@epita.fr>
6156         * tests/m4sh.at (Functions Support, Functions and return Support):
6157         New.
6159 2002-09-28  Akim Demaille  <akim@epita.fr>
6161         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
6162         autoheader are Perl programs.
6163         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
6164         (autom4te): Specify that the sources are in the $srcdir.
6165         * doc/autoconf.texi (Installation Directory Variables): Adjust.
6167 2002-09-28  Akim Demaille  <akim@epita.fr>
6169         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
6170         (tm_zone): Move their rules to...
6171         * lib/autoconf/types.m4: here, using AN_ macros.
6172         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
6173         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
6174         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
6175         * lib/autoconf/programs.m4: here.
6176         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
6177         (ETAGS_FOR_AUTOCONF): New.
6178         Use it.
6180 2002-09-28  Akim Demaille  <akim@epita.fr>
6182         * lib/autoconf/autoscan.m4: New file.
6183         * lib/autoconf/autoconf.m4: Include it.
6184         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
6185         that were listed in the original autoscan.list.
6186         * lib/autoconf/headers.m4: Similarly with headers.
6187         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
6188         (.m4.m4f): Don't pass --prepend-include, since that's done by
6189         tests/autom4te itself.
6190         * lib/autoscan/Makefile.am: Include freeze.mk.
6191         (autoscan.list): New target --this file is no longer a source.
6192         (autoscan.pre): New file.
6194 2002-09-28  Akim Demaille  <akim@epita.fr>
6196         * bin/autoscan.in (@kinds): Make them singular.
6197         Adjust all uses.
6198         (&init_tables): When --debug, report the list of rules to ease
6199         tracking changes in autoscan.list.
6200         * lib/autoscan/autoscan.list (function): Strip comments, sort.
6202 2002-09-28  Akim Demaille  <akim@epita.fr>
6204         * lib/autoscan/functions, lib/autoscan/headers,
6205         * lib/autoscan/identifiers, lib/autoscan/makevars,
6206         * lib/autoscan/programs: Merge into...
6207         * lib/autoscan/autoscan.list: this.
6208         * bin/autoscan.in (&init_tables): Adjust.
6210 2002-09-28  Akim Demaille  <akim@epita.fr>
6212         * lib/autoscan/functions, lib/autoscan/headers,
6213         * lib/autoscan/identifiers, lib/autoscan/makevars,
6214         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
6215         `functions' line is now prefixed with `function:'.
6216         * bin/autoscan.in (&init_tables): Adjust.
6218 2002-09-28  Akim Demaille  <akim@epita.fr>
6220         From now on, autoscan files must always map a macro name to a
6221         word: there is no `default' macro for autoscan.
6223         * bin/autoscan.in (&init_tables): Reject entries with no macro at
6224         all.
6225         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
6226         explicit.
6228 2002-09-28  Akim Demaille  <akim@epita.fr>
6230         * bin/autoscan.in (%c_keywords): Remove.
6231         (&used): Keep only track of the words we might be interested in.
6232         (&output_kind): It is no longer needed to look for non active
6233         checks.
6235 2002-09-27  Akim Demaille  <akim@epita.fr>
6237         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
6238         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
6239         * lib/autoscan/functions: Adjust.
6240         * doc/autoconf.texi (Particular Functions): Adjust.
6242 2002-09-27  Akim Demaille  <akim@epita.fr>
6244         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
6245         from /tmp.
6246         Thanks to Bill Moseley and Paul Eggert.
6247         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
6248         the tmpdir must be created.
6249         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
6250         dir be in the build tree, instead of $TMPDIR.
6252 2002-09-27  Akim Demaille  <akim@epita.fr>
6254         * bin/autoscan.in: Improve the comments.
6255         (&parse_args): Drop obsolete undocumented options.
6256         (&output_kind): Output warnings.
6257         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
6258         (getwd): Trigger a warning.
6260 2002-09-26  Akim Demaille  <akim@epita.fr>
6262         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
6263         Reported by Ralf Corsepius.
6264         * doc/autoconf.texi (autoreconf Invocation): Likewise.
6266 2002-09-26  Akim Demaille  <akim@epita.fr>
6268         Single suffix rules and seperated dependencies are not portable.
6270         * doc/autoconf.texi (Installation Directory Variables): Update.
6271         (Limitations of Make): Some about `Single Suffix Rules and
6272         Separated Dependencies'.
6273         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
6274         (ifnames, autoscan, autom4te): Un-factor into several rules.
6276 2002-09-25  Paul Eggert  <eggert@twinsun.com>
6278         * BUGS (Interoperability bugs): New section.  Mention libtool
6279         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
6281 2002-09-24  Paul Eggert  <eggert@twinsun.com>
6283         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
6284         make handles suffix-rules differently from GNU make.
6286         * bin/Makefile.am (SUFFIXES, .in): Remove.
6287         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
6288         Move the body of the old .in rule here.
6290 2002-09-16  Akim Demaille  <akim@epita.fr>
6292         i960 compilers create `b.out' files by default.
6293         Reported by Ralf Corsepius.
6295         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
6296         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
6298 2002-09-13  Paul Eggert  <eggert@twinsun.com>
6300         * doc/autoconf.texi (Particular Headers): Remove obsolete
6301         reference to `struct timezone' in the description of
6302         AC_HEADER_TIME.
6304 2002-09-13  Akim Demaille  <akim@epita.fr>
6306         Version 2.54.
6308         * config/config.sub, config/config.guess: Update.
6309         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
6310         * Makefile.am: Adjust.
6312 2002-09-13  Akim Demaille  <akim@epita.fr>
6314         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
6315         reading config.log when the compiler is rejected.
6316         Suggested by Guido Draheim.
6318 2002-09-13  Akim Demaille  <akim@epita.fr>
6320         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
6321         (chdir_init) might hang when stat'ing mounted directories.
6322         Reported by Vance Shipley.
6324 2002-09-12  Akim Demaille  <akim@epita.fr>
6326         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
6327         the lists.
6329 2002-09-12  Akim Demaille  <akim@epita.fr>
6331         * doc/autoconf.texi (Defining Symbols): Present two different
6332         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
6333         difference between 1 argument calls, and 2-3 argument calls.
6335 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
6337         * doc/autoconf.texi: Review grammar and punctuation.
6339 2002-09-11  Paul Eggert  <eggert@twinsun.com>
6341         * doc/autoconf.texi: Fix minor formatting, spelling, and
6342         grammatical typos.
6343         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
6344         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
6345         is obsolescent.
6347 2002-09-11  Akim Demaille  <akim@epita.fr>
6349         * doc/autoconf.texi (Questions): Rename as...
6350         (FAQ): this.
6351         (Defining Directories): New.
6353 2002-09-09  Akim Demaille  <akim@epita.fr>
6355         * doc/autoconf.texi (Making testsuite Scripts): Update.
6356         Suggested by Nishio Futoshi.
6358 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
6360         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
6361         plain `@' is wanted.
6363 2002-09-09  Akim Demaille  <akim@epita.fr>
6365         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
6366         `duplicates', since the algorithm was too naive and could keep
6367         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
6368         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
6369         Reported by Ralf Corsepius.
6370         * tests/torture.at (Configuring subdirectories): Exercise these
6371         cases.
6373 2002-09-09  Akim Demaille  <akim@epita.fr>
6375         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
6376         looking for a replacement file.
6377         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
6378         directory is relative.
6379         * doc/autoconf.texi (Generic Functions): Clarify the replacement
6380         directory definition.
6381         Reported by Andreas Schwab and Jim Meyering.
6383 2002-09-06  Akim Demaille  <akim@epita.fr>
6385         * doc/autoconf.texi (Setting Output Variables): Clarify what
6386         precious variables are.
6387         Suggested by Pontus Skoeld.
6389 2002-09-05  Akim Demaille  <akim@epita.fr>
6391         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
6392         (ifnames, autoscan, autom4te): Since we don't only depend on
6393         configure.ac variables (such as VERSION etc.), but also on prefix
6394         and so forth, depend on Makefile, not configure.ac.
6395         Reported by Alexandre Duret-Lutz.
6396         * doc/autoconf.texi (Installation Directory Variables): Adjust.
6398 2002-09-05  Kevin Ryde  <user42@zip.com.au>
6400         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
6401         doesn't seem to be confined to ia64, just say "some versions".
6403 2002-09-04  Akim Demaille  <akim@epita.fr>
6405         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
6406         Automake 1.6c.
6407         * Makefile.am (maintainer-clean-local): Remove.
6408         (MAINTAINERCLEANFILES): Remove COPYING.
6410 2002-09-03  Paul Eggert  <eggert@twinsun.com>
6412         * doc/autoconf.texi (Configuration Commands): Remove obsolete
6413         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
6414         Brinkmann.
6416 2002-09-03  Akim Demaille  <akim@epita.fr>
6418         * configure.ac: Bump to 2.53d.
6419         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
6420         as of today, on Automake's team suggestion.
6422 2002-09-03  Akim Demaille  <akim@epita.fr>
6424         Version 2.53c.
6426 2002-09-02  Akim Demaille  <akim@epita.fr>
6428         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
6429         SITE_MACRO_DIR.
6430         * configure.ac: Disable SITE_MACRO_DIR.
6432 2002-09-02  Jim Meyering  <meyering@lucent.com>
6434         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
6435         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
6436         Also, tweak grammar: s/make sure to/be sure to/.
6438 2002-09-02  Paul Eggert  <eggert@twinsun.com>
6440         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
6441         directory names are generally preferable to physical names.
6443 2002-09-02  Akim Demaille  <akim@epita.fr>
6445         * lib/Autom4te/General.pm (&update_file): s/die/error/.
6446         Reported by Raja R. Harinath.
6447         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
6448         * bin/autoupdate.in: Use error instead of die.
6450 2002-09-01  Paul Eggert  <eggert@twinsun.com>
6452         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
6453         ordinary shell concatenation rather than echo+tr+sed command that
6454         runs afoul of a long-line-related sed bug in Solaris 8.
6456         * bin/autoheader.in (parse_args): --warning -> --warnings.
6458         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
6459         stdout, as traditional "ls" does.
6460         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
6461         _AC_COMPILER_EXEEXT_O): Likewise.
6462         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
6464         * bin/autoconf.as: Add --prepend-include option.  This patch was
6465         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
6466         but bin/autoconf.in is generated automatically from bin/autoconf.as.
6468         * bin/autoconf.in, configure: Regenerate.
6470         * doc/autoconf.texi (Special Shell Variables): Mention
6471         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
6473         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
6474         MAILPATH and set PS1, PS2, PS4 to default values, to work
6475         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
6476         For LC_ALL etc, first try to set to "C" as POSIX requires and as
6477         the Autoconf documentation specifies; fall back to "unset" only if
6478         this fails.  Use a shell for-loop for this rather than an m4 loop,
6479         to shorten the output script.
6481 2002-08-30  Paul Eggert  <eggert@twinsun.com>
6483         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
6484         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
6485         for the CDPATH problem.  Document PWD.
6486         (Limitations of Builtins): Document the problem that "cd $foo" and
6487         "ls $foo" may refer to different directories in shells conforming
6488         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
6489         example, since the old example is now out of date.
6491         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
6492         FOO" and "ls FOO" talk about different directories; this catches
6493         problems when POSIX 1003.1-2001 "cd" fails due to symlink
6494         spaghetti.
6496         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
6497         of rolling our own unset.
6498         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
6499         in practice we needn't worry about CDPATH if unset doesn't work.
6501         * Makefile.in, aclocal.m4, bin/Makefile.in,
6502         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
6503         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
6504         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
6505         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
6506         tests/Makefile.in: Regenerate with Automake 1.6.3.
6508         * config/config.guess, config/config.sub, config/mkinstalldirs:
6509         Update.
6511         * configure: Regenerate with self.
6513 2002-08-30  Kevin Ryde  <user42@zip.com.au>
6515         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
6516         default output.
6518 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6520         * bin/autom4te.in (Request::load): Correctly test for "do" read
6521         failure.
6523 2002-08-29  Akim Demaille  <akim@epita.fr>
6525         * lib/Autom4te/General.pm (&xqx): New.
6526         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
6527         hand, which is not portable.
6528         (&error): New.
6529         * bin/autom4te.in: Use them.
6530         Use &error instead of die.
6531         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6532         Adjust.
6534 2002-08-17  Paul Eggert  <eggert@twinsun.com>
6536         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
6537         default list of compilers to try, since it was long ago superseded
6538         by the ksh fc builtin.  Suggested by Steven G. Johnson.
6540 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
6542         * doc/autoconf.texi (Invoking autom4te): End the option table,
6543         fixing a bug introduced by the previous patch.
6544         (Limitations of Make): Add a 'target lookup' subentry in the
6545         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
6547 2002-07-29  Mark D. Roth  <roth@feep.net>
6549         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
6550         options and use $AUTOM4TE_PATH.
6551         * doc/autoconf.texi: Remove documentation of autom4te
6552         --include-envvar and --site-macro-subdir options and document
6553         use of $AUTOM4TE_PATH.
6554         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
6555         arguments from each language section.
6557 2002-07-29  Paul Eggert  <eggert@twinsun.com>
6559         * doc/install.texi: Include copyright symbol in copyright notice.
6561         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
6562         Replace with:
6563         (AM_MAKEINFOFLAGS): New macro.
6564         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
6565         * Makefile.am (INSTALL): Use the new macros.
6566         Use -o rather than --output, since "missing" does not grok --output.
6568 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
6570         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
6571         comments do not always work. Never trust the exit status of
6572         `make -k'.
6574 2002-07-24  Kevin Ryde  <user42@zip.com.au>
6576         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
6577         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
6579 2002-07-23  Paul Eggert  <eggert@twinsun.com>
6581         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
6582         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
6583         apparently treats PATH="nonexistent" as if it contained ".".
6584         Bug reported by Stefan `Sec' Zehl.
6586 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
6588         * doc/autoconf.texi (Limitations of Make): Mention the special
6589         handling of the obj/ directory by BSD make.
6591 2002-07-20  Kevin Ryde  <user42@zip.com.au>
6593         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
6594         backslashes.
6596 2002-07-19  Akim Demaille  <akim@epita.fr>
6598         * doc/autoconf.texi (Function Portability): `exit'.
6599         (Programming in M4sh): Ethymology of M4sh.
6601 2002-07-19  Akim Demaille  <akim@epita.fr>
6603         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
6605 2002-07-18  Akim Demaille  <akim@epita.fr>
6607         Version 2.53b.
6609 2002-07-18  Akim Demaille  <akim@epita.fr>
6611         * config/config.guess, config/config.sub: Update.
6613 2002-07-18  Akim Demaille  <akim@epita.fr>
6615         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
6616         Automake's parts.
6618         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
6619         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
6620         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
6622 2002-07-18  Akim Demaille  <akim@epita.fr>,
6623             Alexandre Duret-Lutz  <duret_g@epita.fr>
6625         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
6626         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
6628 2002-07-17  Russ Allbery  <rra@stanford.edu>
6630         * doc/autoconf.texi (Initializing configure): Clarify the
6631         description of the tarname default.
6633 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
6635         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
6636         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
6637         latter was not run.
6639 2002-07-17  Akim Demaille  <akim@epita.fr>
6641         * lib/Autom4te/General.pm (find_file): Browse the directories in
6642         the order they are given.
6644 2002-07-17  Akim Demaille  <akim@epita.fr>
6646         * tests/wrapsh.as, tests/wrappl.as: Merge into...
6647         * tests/wrapper.as: this.
6648         * tests/Makefile.am, configure.ac: Adjust.
6650 2002-07-17  Mark D. Roth  <roth@feep.net>
6652         * configure.ac: Add --enable-site-macro-dir option.
6653         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
6654         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
6655         --site-macro-subdir options.
6656         * bin/autoconf.in: Add --prepend-include option.
6657         * bin/autoheader.in: Add --prepend-include option.
6658         * bin/autoreconf.in: Add --prepend-include option.
6659         * bin/autoscan.in: Add --prepend-include option.
6660         * bin/autoupdate.in: Add --prepend-include option.
6661         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
6662         macro directory, remove note that include path directories are
6663         used in reverse order, and document --prepend-include option.
6664         * lib/autom4te.in: Use --prepend-include instead of --include.
6665         * tests/wrapsh.in: Use --prepend-include instead of --include.
6667 2002-07-17  Akim Demaille  <akim@epita.fr>
6669         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
6670         tarnames.
6671         * doc/autoconf.texi (Initializing configure): Adjust.
6673 2002-07-17  Akim Demaille  <akim@epita.fr>
6675         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
6676         (_AC_FUNC_MALLOC): New.
6677         (AC_FUNC_MALLOC): Use the latter.
6678         Define HAVE_MALLOC to 0 if broken.
6679         * doc/autoconf.texi (Particular Functions): Adjust.
6681 2002-07-16  Akim Demaille  <akim@epita.fr>
6683         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
6684         * doc/autoconf.texi (C Compiler): Adjust.
6686 2002-07-09  Akim Demaille  <akim@epita.fr>
6688         * doc/autoconf.texi: Properly set the ``header'' part.
6690 2002-07-09  Akim Demaille  <akim@epita.fr>
6692         * doc/autoconf.texi (Systemology): Some about Darwin.
6694 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
6696         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
6697         Don't use AC_REQUIRE in AU_DEFUN.
6699 2002-07-09  Art Haas  <ahaas@neosoft.com>
6701         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
6703 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
6705         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
6706         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
6707         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
6708         so that Emacs setups GNU style for perl-mode and cperl-mode.
6710 2002-06-27  Paul Eggert  <eggert@twinsun.com>
6712         * config/install-sh: Quote $src.  Prefer || to test's -o option,
6713         as per "Limitations of Builtins".
6714         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
6715         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
6717         * tests/mktests.sh: Use grep instead of fgrep, as per
6718         "Limitations of Builtins".
6720 2002-06-15  Paul Eggert  <eggert@twinsun.com>
6722         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
6723         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
6724         so that we consistently test the just-built programs.
6725         * tests/wrappl.as: Likewise.
6727 2002-06-12  Paul Eggert  <eggert@twinsun.com>
6729         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
6730         name, so that symlinks to 'autoconf' work properly.  Bug reported
6731         by Bruno Haible.
6732         * bin/autoheader.in (AUTOM4TE): Likewise.
6733         * bin/autoreconf.in (autoconf, autoheader): Likewise.
6734         * bin/autoscan.in (autom4te): Likewise.
6735         * bin/autoupdate.in (autom4te): Likewise.
6737         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
6738         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
6739         on Solaris 2.5.1.
6741 2002-06-11  Andreas Schwab  <schwab@suse.de>
6743         * doc/autoconf.texi: Add more dir entries.
6745 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
6747         * bin/autom4te.in ($cache): Don't define using `$me', the name
6748         of the cache should not depend on the name under which autom4te
6749         was installed.
6751 2002-06-07  Akim Demaille  <akim@epita.fr>
6753         * tests/tools.at (autoconf: forbidden tokens, basic)
6754         (autoconf: forbidden tokens, exceptions): Adjust to the change of
6755         words in autom4te.in.
6757 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
6759         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
6760         _AC_LANG_PROGRAM_C_F77_HOOKS.
6762 2002-06-07  Akim Demaille  <akim@epita.fr>
6764         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
6765         rename as...
6766         (AC_REPLACE_FNMATCH): this.
6767         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
6768         AC_FUNC_FNMATCH_GNU.
6770 2002-06-07  Akim Demaille  <akim@epita.fr>
6772         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
6773         Rosetta Stone for Unix.
6775 2002-06-07  Akim Demaille  <akim@epita.fr>
6777         * bin/autom4te.in (warn_forbidden): When rejecting a token,
6778         suggest m4_pattern_allow.
6779         Suggested by Adam J. Richter.
6781 2002-06-07  Akim Demaille  <akim@epita.fr>
6783         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
6784         ac_config_libobj_dir.
6785         (AC_CONFIG_LIBOBJ_DIR): New.
6786         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
6787         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
6788         Use ac_config_libobj_dir to find the replacement files.
6789         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
6790         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
6791         (AC_REPLACE_FNMATCH_GNU): these.
6792         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
6793         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
6794         * tests/mktests.sh (ac_exclude_list): Don't check
6795         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
6797 2002-06-06  Paul Eggert  <eggert@twinsun.com>
6799         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
6800         if ln doesn't work.
6801         * NEWS: Likewise.
6802         * doc/autoconf.texi (Configuration Links): Likewise.
6803         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
6805 2002-06-05  Paul Eggert  <eggert@twinsun.com>
6807         * config/config.guess, config/config.sub, config/texinfo.tex:
6808         Update from masters.
6810 2002-05-29  Paul Eggert  <eggert@twinsun.com>
6812         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
6813         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
6814         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
6815         Likewise.
6816         * lib/autoconf/Makefile.am (check-local): Likewise.
6817         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
6818         * lib/autoconf/types.m4 (commentary only): Likewise.
6819         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
6820         * lib/autotest/Makefile.am (check-local): Likewise.
6821         * lib/m4sugar/Makefile.am (check-local): Likewise.
6822         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
6823         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
6825         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
6826         * doc/autoconf.texi (Particular Programs): Document them.
6827         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
6828         * NEWS: Likewise.
6830 2002-05-27  Paul Eggert  <eggert@twinsun.com>
6832         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
6833         * NEWS, doc/autoconf.texi (Particular Types): Document it.
6834         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
6835         instead of AC_MBSTATE_T, which never existed.
6837 2002-05-23  Akim Demaille  <akim@epita.fr>
6839         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
6840         version of Autoconf that is discussed.
6842 2002-05-22  Paul Eggert  <eggert@twinsun.com>
6844         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
6845         from the default list of compilers to try.  Suggested by
6846         Kate Hedstrom.
6847         * NEWS: Document the above.
6848         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
6850 2002-05-17  Paul Eggert  <eggert@twinsun.com>
6852         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
6853         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
6854         This improves on an earlier suggestion by H. Peter Anvin.
6856 2002-05-16  Paul Eggert  <eggert@twinsun.com>
6858         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
6859         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
6860         Both macros now accept an optional source-dir arg.
6861         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
6863         * NEWS: Document this.
6864         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
6866         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
6867         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
6868         not for GNU extensions; this undoes part of the 2000-11-03 change,
6869         reverting to 2.13-compatible behavior.
6870         Add new optional argument DIR.
6871         (AC_FUNC_FNMATCH_GNU): New macro.
6873         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
6875 2002-05-08  Paul Eggert  <eggert@twinsun.com>
6877         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
6878         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
6879         and it causes a 'test' syntax error if it fails.
6880         Bug reported by Stephen Gildea.
6882         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
6883         If prototypes are supported, use them to check this at compile-time,
6884         instead of trying to check it at run-time.  If we must do a run-time
6885         check, assume that setvbuf is standard when cross-compiling, as
6886         nonstandard setvbuf occurs only on ancient and unlikely hosts.
6887         Bug reported by Paul D. Smith.
6889         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
6890         argument specifying location of getloadavg.c.  This removes a
6891         FIXME.  This idea was taken from Jim Meyering's implementation in
6892         textutils.
6893         * doc/autoconf.texi (Particular Functions): Document this.
6894         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
6895         that's what the code does; this fixes a bug reported by
6896         Paul D. Smith.
6898 2002-05-03  Akim Demaille  <akim@epita.fr>
6900         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
6901         autopoint instead of gettextize.
6902         ($uses_alocal): Rename as...
6903         ($uses_aclocal): this.
6904         * doc/autoconf.texi (autoreconf Invocation): Adjust.
6905         Suggested by Bruno Haible.
6907 2002-05-03  Akim Demaille  <akim@epita.fr>
6909         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
6911 2002-04-29  Paul Eggert  <eggert@twinsun.com>
6913         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
6914         files to be 1 second older; just set them to be the same time.
6915         Also, sleep 1 second after the first aclocal, to work around
6916         problems with sub-second time stamps on the input files.
6918 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
6920         * doc/autoconf.texi: Mention "set -e -x" lossage
6921         under node "Limitations of Builtins".
6923 2002-04-29  Akim Demaille  <akim@epita.fr>
6925         * doc/install.texi: Better wording for setting variables when
6926         running configure.
6927         From Christian Cornelssen.
6929 2002-04-29  Akim Demaille  <akim@epita.fr>
6931         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
6932         of lack of $LINENO support, then the test will compare the $LINENO
6933         in testsuite vs. the lineno in the test file.  This is wrong, of
6934         course.
6935         Be sure to protect it.
6936         Reported by Patrick Welche.
6938 2002-04-25  Akim Demaille  <akim@epita.fr>
6940         * doc/autoconf.texi (Obsolete Macros): Typo.
6941         Reported by Vladimir Volovich.
6943 2002-04-25  Akim Demaille  <akim@epita.fr>
6945         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
6946         than some of the input files, hence, on the second run of aclocal,
6947         if some of its input are younger, make them older.
6948         Suggested by Paul Eggert.
6950 2002-04-25  Akim Demaille  <akim@epita.fr>
6952         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
6953         Thanks to Paul Eggert.
6955 2002-04-25  Akim Demaille  <akim@epita.fr>
6957         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
6958         and ac_subst_vars be sh variables containing the list of
6959         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
6960         DEFAULT diversion.
6961         (_AC_INIT_PREPARE): Use them to log them.
6962         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
6963         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
6964         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
6965         _AC_SUBST_FILES and _AC_SUBST_VARS.
6966         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
6968 2002-04-24  Akim Demaille  <akim@epita.fr>
6970         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
6971         autoheader, so that automake does not complain about a missing
6972         config.h.in that was to be created.
6974 2002-04-23  Akim Demaille  <akim@epita.fr>
6976         * bin/autoheader.in (parse_args): --warning takes an argument.
6977         Fixes PR/220.
6979 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
6981         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
6982         and bb.out when cleaning up.
6984 2002-04-22  Akim Demaille  <akim@epita.fr>
6986         Version 2.53a.
6988 2002-04-22  Akim Demaille  <akim@epita.fr>
6990         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
6992 2002-04-22  Akim Demaille  <akim@epita.fr>
6994         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
6995         comma.
6996         Reported by Gregory Giannoni.
6998 2002-04-22  Akim Demaille  <akim@epita.fr>
7000         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
7001         Fixes false failures on Darwin.
7003 2002-04-21  Paul Eggert  <eggert@twinsun.com>
7005         * TODO, bin/autoupdate.in, doc/autoconf.texi,
7006         lib/autoconf/general.m4, lib/autoconf/libs.m4,
7007         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
7008         tests/tools.at: Minor spelling and grammar fixes.
7010 2002-04-20  Paul Eggert  <eggert@twinsun.com>
7012         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
7013         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
7014         * lib/autotest/general.m4 (AT_INIT): Likewise.
7015         * tests/atgeneral.m4 (AT_INIT): Likewise.
7017 2002-04-19  Paul Eggert  <eggert@twinsun.com>
7019         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
7020         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
7021         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
7022         lib/autoconf/functions.m4, lib/autoconf/general.m4,
7023         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
7024         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
7025         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
7026         Minor spelling and grammar fixes.
7028         * doc/autoconf.texi: Follow the outline suggested in the GNU
7029         Sample Texts sections of the Texinfo 4.2 manual.  Most
7030         importantly, this makes sure that the copyright notices appear in
7031         all output formats.  You probably need Texinfo 4.2 to generate
7032         the manual now.
7034         Fix some bugs when using "$@" when there might be zero positional
7035         arguments in cases where this matters.
7037         * bin/autoconf.as: Rewrite so that the problem does not come up.
7038         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
7039         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
7040         * lib/autotest/general.m4 (AT_INIT): Likewise.
7042         * bin/autoheader.in: Use 'case' statement to work around problem.
7043         * bin/auto4mte.in: Likewise.
7044         * bin/autoreconf.in: Likewise.
7045         * bin/autoscan.in: Likewise.
7046         * bin/autoupdate.in: Likewise.
7047         * bin/ifnames.in: Likewise.
7049         * doc/autoconf.texi (Shell Substitutions): Document the problem.
7051         * lib/autotest/general.m4 (AT_INIT):
7052         Use Zsh alias to work around problem.
7053         * tests/atgeneral.m4 (AT_INIT): Likewise.
7055         * tests/c.at: We can't have zero arguments, so remove workaround
7056         that is not portable to Zsh.
7058 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
7060         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
7061         from aclocal.m4 too.
7063 2002-04-12  Akim Demaille  <akim@epita.fr>
7065         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
7067 2002-04-10  Akim Demaille  <akim@epita.fr>
7069         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
7070         workaround for ${1+"$@"}.
7071         * doc/autoconf.texi (Shell Substitutions): Explain it.
7072         From Oliver Kiddle and Peter Stephenson.
7074         Have M4sh perform minimal shell sanitizing.
7076         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
7077         part into...
7078         (_AS_PREPARE): this new macro.
7079         (AS_PREPARE): New.
7080         (AS_INIT): Invoke AS_SHELL_SANITIZE.
7081         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
7083         Adjust Autoconf and Autotest.
7085         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
7086         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
7087         * lib/autotest/general.m4 (AT_INIT): Likewise.
7088         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
7089         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
7090         AS_SHELL_SANITIZE.
7092         Use this M4sh to generate Autoconf's shell scripts.
7094         * tests/wrapsh.as: New, precursor of wrapsh.in.
7095         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
7096         on Autotest and M4sh.
7097         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
7098         (wrapsh.in): New target.
7099         * bin/autoconf.as: New, precursor of autoconf.in.
7100         (autoconf.in): New target.
7102 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
7104         * doc/autoconf.texi (Limitations of Make): Mention the issue
7105         with indented comments in rules.
7107 2002-04-09  Andreas Schwab  <schwab@suse.de>
7109         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
7110         ac_top_builddir when setting ac_abs_top_builddir.
7112 2002-04-06  Kevin Ryde  <user42@zip.com.au>
7114         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
7115         (Portable Shell): Cross reference to Systemology.
7117 2002-04-05  Akim Demaille  <akim@epita.fr>
7119         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
7120         directories when descending in a SUBDIRS.
7121         Reported by Ezra Peisach.
7123 2002-04-04  Andreas Schwab  <schwab@suse.de>
7125         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
7126         contains no literal separators.
7128 2002-04-03  Akim Demaille  <akim@epita.fr>
7130         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
7131         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
7132         Use dnl, not the KILL diversion.
7133         Extracted from...
7134         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
7135         (AC_CONFIG_LINKS): here.
7136         Adjust.
7137         Don't use the KILL diversion, as it kills spurious output, which
7138         results in failures being hidden.
7139         Use m4_defn where appropriate.
7140         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
7141         after the second argument.
7142         Use m4_defn.
7143         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
7144         syntax, as it is provided by M4sugar.
7145         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
7147 2002-04-03  Andreas Schwab  <schwab@suse.de>
7149         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
7150         expanded if $# <= 2.
7152         * bin/autoreconf.in (autoreconf): Run automake after rerunning
7153         aclocal.
7155 2002-04-03  Akim Demaille  <akim@epita.fr>
7157         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
7158         (_AC_COMPILER_EXEEXT_REJECT): New.
7159         Also recognize *.bb and *.bbg as compilation byproducts.
7160         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
7161         (_AC_COMPILER_OBJEXT): Use them.
7162         Fixes Debian #138666.
7164 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
7166         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
7168         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
7169         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
7170         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
7171         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
7172         (AC_C_CONST): Same.
7173         (AC_C_INLINE): Same.
7174         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
7175         * doc/autoconf.texi, NEWS: Document.
7176         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
7177         AC_C_CROSS.
7179 2002-04-02  Akim Demaille  <akim@epita.fr>
7181         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
7182         _AS_MKDIR_P_PREPARE.
7184 2002-03-28  Kevin Ryde  <user42@zip.com.au>
7186         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
7187         to avoid versions of HP C which don't allow that.
7189 2002-03-27  Paul Eggert  <eggert@twinsun.com>
7191         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
7192         (AS_SHELL_SANITIZE): Invoke it.
7193         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
7195 2002-03-26  Akim Demaille  <akim@epita.fr>
7197         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
7199 2002-03-26  Akim Demaille  <akim@epita.fr>
7201         * doc/autoconf.texi (Introduction): The GNATS base moved.
7203 2002-03-25  Paul Eggert  <eggert@twinsun.com>
7205         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
7206         as POSIX requires, as it doesn't work with Zsh.
7207         * doc/autoconf.texi (Assignments): Document the problem.
7209 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
7211         * doc/autoconf.texi (Limitations of Make): Mention more issue
7212         about VPATH, overriding of macros in sub-makes, and handling of
7213         SHELL.
7215 2002-03-21  Paul Eggert  <eggert@twinsun.com>
7217         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
7218         problem with here-document buffer boundaries.
7220         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
7221         when reinvoking the shell, to work around problems with installers
7222         who put strange things like "cd" commands in their environments.
7224 2002-03-19  Akim Demaille  <akim@epita.fr>
7226         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
7227         From Aaron Ucko.
7229 2002-03-19  Akim Demaille  <akim@epita.fr>
7231         * bin/autoscan.in (scan_file): Specify the location in `&used'
7232         invocations.
7233         From Nicolas Joly.
7235 2002-03-19  Akim Demaille  <akim@epita.fr>
7237         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
7238         From Nishio Futoshi.
7240 2002-03-19  Akim Demaille  <akim@epita.fr>
7242         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
7244 2002-03-18  Paul Eggert  <eggert@twinsun.com>
7246         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
7247         (Limitations of Usual Tools): Add mkdir section.
7249         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
7250         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
7251         back on AS_DIRNAME to compute prefixes otherwise; this is
7252         roughly what mkinstalldirs does.  That way, we need not have
7253         our own filename disassembler.  The old disassembler did not
7254         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
7256         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
7257         Create at_test_all by a series of assignments,
7258         not by a single assignment of a long string.  The latter causes ksh
7259         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
7260         presumably because of a buffer overrun.
7262 2002-03-14  Paul Eggert  <eggert@twinsun.com>
7264         * lib/autotest/general.m4 (at_times_skip):
7265         Renamed from at_times.  Now a boolean.
7266         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
7267         says 'times: not found'.
7269 2002-03-14  Akim Demaille  <akim@epita.fr>
7271         * bin/autoreconf.in (&study_gettextize): New.
7272         (&autoreconf): Handle newest gettextize.
7273         Rerun aclocal if needed.
7274         Suggested by Andreas Schwab.
7276 2002-03-13  Akim Demaille  <akim@epita.fr>
7278         * doc/autoconf.texi (Special Shell Variables): More about IFS.
7280 2002-03-13  Akim Demaille  <akim@epita.fr>
7282         * doc/autoconf.texi (Header Portability): New.
7283         Add information about stdint.h and inttypes.h from Paul Eggert.
7285 2002-03-13  Akim Demaille  <akim@epita.fr>
7287         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
7288         -p'.
7289         From Bob Proulx.
7291 2002-03-12  Akim Demaille  <akim@epita.fr>
7293         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
7294         m4_require.
7296 2002-03-11  Andreas Schwab  <schwab@suse.de>
7298         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
7299         does not do it if --with-lispdir is given.
7301 2002-03-08  Akim Demaille  <akim@epita.fr>
7303         Version 2.53.
7305 2002-03-08  Akim Demaille  <akim@epita.fr>
7307         * doc/autoconf.texi (Subdirectories): Clarify that the
7308         subdirectory should exist.
7310 2002-03-08  Akim Demaille  <akim@epita.fr>
7312         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
7314 2002-03-08  Akim Demaille  <akim@epita.fr>
7316         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
7317         aliases the actual variables, and modifications of the former
7318         affect the latter.
7320 2002-03-08  Akim Demaille  <akim@epita.fr>
7322         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
7323         because of C-c: have m4 output in tmp files, then mv them.
7325 2002-03-08  Akim Demaille  <akim@epita.fr>
7327         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
7328         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
7329         * bin/ifnames.in: Copyright update.
7331 2002-03-08  Akim Demaille  <akim@epita.fr>
7333         * doc/autoconf.texi (Invoking autom4te): New.
7335 2002-03-05  Akim Demaille  <akim@epita.fr>
7337         * doc/autoconf.texi (Specifying Names): Clarification suggested by
7338         Kevin Ryde.
7340 2002-03-05  Akim Demaille  <akim@epita.fr>
7342         Version 2.52i.
7344 2002-03-04  Akim Demaille  <akim@epita.fr>
7346         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
7347         * lib/autoconf/general.m4 (AC_INIT): More informative error
7348         message for LIBOBJ.
7350 2002-03-04  Akim Demaille  <akim@epita.fr>
7352         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
7353         parallel builds.
7355 2002-03-04  Akim Demaille  <akim@epita.fr>
7357         * doc/autoconf.texi (Transforming Names): Equality between target
7358         and host is irrelevant.
7359         (Specifying Names, Canonicalizing): Remove all references to the
7360         backward compatibility hooks.  Rather, collect them all into...
7361         (Hosts and Cross-Compilation): this new section.
7362         * doc/install.texi (System Type): Ditto.
7363         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
7364         that `--host' implies cross-compilation.
7366 2002-03-04  Akim Demaille  <akim@epita.fr>
7368         * doc/autoconf.texi (Evaluation Macros): New.
7369         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
7370         useless.
7371         (_m4_foreach): Define the variant with immediate evaluation so
7372         that it contains exactly the items, not an expression which
7373         evaluation is the current item.
7374         (m4_re_string, m4_re_word): Don't over quote them.
7376 2002-03-04  Akim Demaille  <akim@epita.fr>
7378         Instead of having stacking `shift's evaluated at the end, let
7379         `foreach' loops immediately evaluate them.
7381         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
7382         $*.  This is the n-th time I change my mind, but hopefully this is
7383         the last...
7384         (m4_lquote): New.
7385         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
7386         efficient.
7387         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
7388         it was only a hack for m4_text_wrap.
7389         (m4_car2): Remove, replaced by...
7390         (m4_cdr): New.
7391         (_m4_foreach): Adjust.
7392         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
7393         m4_bpatsubst for clarification.
7395 2002-03-04  Akim Demaille  <akim@epita.fr>
7397         * doc/autoconf.texi (Changequote is Evil): New.
7399 2002-03-03  Kevin Ryde  <user42@zip.com.au>
7401         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
7402         on old systems like SunOS.
7404 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
7406         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
7407         lib/autoconf/functions.m4, lib/autoconf/general.m4,
7408         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
7409         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
7410         of messages.
7412 2002-02-28  Akim Demaille  <akim@epita.fr>
7414         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
7415         message to be sent.
7417 2002-02-28  Kevin Ryde  <user42@zip.com.au>
7419         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
7421 2002-02-25  Akim Demaille  <akim@epita.fr>
7423         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
7424         From Akinori Musha.
7426 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
7428         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
7429         translate \r\n to \n.
7431 2002-02-07  Akim Demaille  <akim@epita.fr>
7433         Version 2.52h.
7435 2002-02-07  Akim Demaille  <akim@epita.fr>
7437         Fix Autoconf PR/209.
7438         Also reported by Frank Denis.
7440         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
7442 2002-02-07  Akim Demaille  <akim@epita.fr>
7444         Fix Autoconf PR/207:
7445         AC_PREFIX_PROGRAM fails with dashed program names
7447         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
7448         variable when looking for the prefix program.
7449         Now it also works for shell variables.
7451 2002-02-07  Akim Demaille  <akim@epita.fr>
7453         * doc/autoconf.texi (Limitations of Builtins): More about
7454         case/esac.
7456 2002-02-06  Akim Demaille  <akim@epita.fr>
7458         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
7459         case/esac, some shells don't support it.
7460         Reported by Zack Weinberg.
7461         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
7463 2002-02-06  Akim Demaille  <akim@epita.fr>
7465         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
7466         sure not to introduce newlines in at_groups.
7467         * lib/autotest/Makefile.am (autotest.m4f): Typo.
7469 2002-02-06  Akim Demaille  <akim@epita.fr>
7471         * tests/torture.at (Configuring subdirectories): Skip if aclocal
7472         is not available.
7474 2002-02-05  Paul Eggert  <eggert@twinsun.com>
7476         * doc/autoconf.texi (Specific Compiler Characteristics):
7477         Describe HP-UX cc bug workaround more accurately.
7478         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
7479         not unsigned long.
7480         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
7481         cross-compilers, too.  This undoes some of the most recent change
7482         to this file.
7484 2002-02-05  Akim Demaille  <akim@epita.fr>
7486         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
7487         to make sure they are up to date when `check' is run.
7489 2002-02-05  Akim Demaille  <akim@epita.fr>
7491         * doc/autoconf.texi (Making testsuite Scripts): Document
7492         package.m4.
7494 2002-02-05  Akim Demaille  <akim@epita.fr>
7496         * lib/freeze.mk: New.
7498 2002-02-05  Akim Demaille  <akim@epita.fr>
7500         Implement `autom4te --freeze'.
7502         * bin/autom4te.in (&freeze): New.
7503         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
7504         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
7506 2002-02-05  Akim Demaille  <akim@epita.fr>
7508         * bin/autom4te.in (&parse_args): Implement `frozen files are
7509         optional are the sum of the previous files on the command line'.
7510         Also, pass `--reload-state=' on them, so...
7511         (handle_m4): don't.
7512         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
7513         (M4sh): Rely on M4sugar.
7514         (Autotest, M4sh, M4sugar): Use frozen files.
7516 2002-01-31  Akim Demaille  <akim@epita.fr>
7518         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
7519         * doc/autoconf.texi (Initializing configure): Adjust.
7521 2002-01-30  Akim Demaille  <akim@epita.fr>
7523         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
7524         alphanumeric to `-' instead of `_'.
7526 2002-01-30  Akim Demaille  <akim@epita.fr>
7528         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
7529         for plain code, the other for cross-compilation code.  The latter
7530         is now run with GCC only.
7531         * doc/autoconf.texi (Compilers and Preprocessors): New.
7533 2002-01-30  Akim Demaille  <akim@epita.fr>
7535         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
7536         values.
7537         * doc/autoconf.texi (Initializing configure): Explain how to
7538         change AC_INIT default values.
7540 2002-01-29  Akim Demaille  <akim@epita.fr>
7542         * tests/torture.at (Configuring subdirectories): Use configure.in,
7543         so that aclocal 1.4 works.
7544         Reported by Alexandre Duret-Lutz and Larry Schmitt.
7546 2002-01-28  Akim Demaille  <akim@epita.fr>
7548         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
7549         needs an argument.
7551 2002-01-28  Akim Demaille  <akim@epita.fr>
7553         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
7554         AUTOTEST_PATH *after* it was set.
7555         Don't put `.' in the PATH: the user should be precise and `./' if
7556         needed.  In addition, given that the test suite does some `cd', if
7557         `.' is in the path, the `tested programs' sections will report
7558         programs found in the test suite's directory, while during the
7559         tests (performed in their own directory), these programs are no
7560         longer visible.  In other words, the results is confusing and
7561         useless.
7562         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
7564 2002-01-24  Akim Demaille  <akim@epita.fr>
7566         Version 2.52g.
7568 2002-01-24  Akim Demaille  <akim@epita.fr>
7570         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
7571         * doc/autoconf.texi: Finally add Akim as an author.
7573 2002-01-24  Akim Demaille  <akim@epita.fr>
7575         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
7576         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
7577         Bourne. Use /bin/sh.
7578         From Andreas Buening.
7580 2002-01-24  Akim Demaille  <akim@epita.fr>
7582         * config/config.guess, config/config.sub, config/texinfo.tex:
7583         Update from masters.
7585 2002-01-24  Akim Demaille  <akim@epita.fr>
7587         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
7588         * config/auxdir.m4, config/cond.m4, config/depend.m4,
7589         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
7590         * config/missing.m4, config/sanity.m4, config/select.m4,
7591         * config/strip.m4: Remove, to ease sync'ing with any version of
7592         Automake.
7594 2002-01-24  Akim Demaille  <akim@epita.fr>
7596         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
7597         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
7598         Reported by Geir Ove Myhr.
7600 2002-01-21  Akim Demaille  <akim@epita.fr>
7602         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
7604 2002-01-21  Akim Demaille  <akim@epita.fr>
7606         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
7607         message on invalid options.
7608         * bin/autom4te.in (parse_args): Don't use
7609         Autoconf::General::getopt with non valid options.
7611 2002-01-17  Jim Meyering  <meyering@lucent.com>
7613         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
7614         $ac_cv_exeext so we don't use an old, invalid, cached value.
7616 2002-01-11  Akim Demaille  <akim@epita.fr>
7618         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
7619         Meyering.
7620         * doc/autoconf.texi (Function Portability): Document the strnlen
7621         limitation.
7622         (Particular Functions): Document AC_FUNC_STRNLEN.
7623         * lib/autoscan/functions: Adjust.
7625 2002-01-06  Akim Demaille  <akim@epita.fr>
7627         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
7628         package.m4, since is really depends upon configure.ac, not
7629         configure.
7630         * doc/autoconf.texi (testsuite Scripts): Adjust.
7631         * tests/Makefile.am (package.m4): New.
7632         EXTRA_DIST it since its a source.
7634 2002-01-06  Akim Demaille  <akim@epita.fr>
7636         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
7637         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
7638         and PACKAGE_BUGREPORT from here...
7639         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
7640         arguments.
7641         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
7642         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
7643         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
7644         * tests/tools.at (autoheader): Adjust.
7645         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
7647 2002-01-06  Akim Demaille  <akim@epita.fr>
7649         * bin/autoscan.in (scan_file): Use `&used'.
7651 2002-01-03  Akim Demaille  <akim@epita.fr>
7653         * doc/autoconf.texi (Output): Improved wording regarding use of
7654         AC_OUTPUT.
7655         From Olly Betts.
7657 2001-12-18  Kevin Ryde  <user42@zip.com.au>
7659         * doc/autoconf.texi (Function Portability): Add notes on sscanf
7660         sometimes needing writable input.
7662 2001-12-17  Jim Meyering  <meyering@lucent.com>
7664         * doc/autoconf.texi (New Macros): Tweak wording.
7666 2001-12-14  Akim Demaille  <akim@epita.fr>
7668         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
7669         trailing files, don't apply `-rf' to files which might not be
7670         created by configure (core, core.*, and *.core), but just `rm -f'.
7671         Suggested by Jonathan Kamens.
7673 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
7675         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
7677 2001-12-14  Akim Demaille  <akim@epita.fr>
7679         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
7681 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
7683         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
7684         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
7685         abs_srcdir, top_srcpath to abs_top_srcdir.
7686         (_AC_OUTPUT_FILES): Adjust.
7687         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
7688         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
7689         * tests/wrappl.in, tests/wrapsh.in: Adjust.
7691 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
7693         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
7694         C/Fortran linking on HP/UX, by extracting the Fortran library
7695         search path from the LPATH line in the $F77 -v output.
7697 2001-12-12  Kevin Ryde  <user42@zip.com.au>
7699         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
7700         forbidden file descriptors table.
7702 2001-11-26  Akim Demaille  <akim@epita.fr>
7704         * bin/autoscan.in (%c_keywords): Build it at top level.
7705         Map to 1 in order to simplify its uses.
7707 2001-11-26  Akim Demaille  <akim@epita.fr>
7709         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
7710         Remove $filepath, useless.
7711         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
7712         variables, they are really part of the tokens.
7713         Split the input line on spaces and then look for tokens.
7714         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
7715         because of `lex$U.$(OBJEXT)'.
7716         (&scan_files): Use "@list" instead of join.
7717         * doc/Makefile.am (CLEANFILES): Add *.fns.
7719 2001-11-26  Akim Demaille  <akim@epita.fr>
7721         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
7722         Remove, replaced by...
7723         * tests/wrappl.in: Be common for all the Perl executables.
7724         In particular autoscan and autoheader want -I.
7725         * configure.ac: Adjust.
7726         * lib/autoscan/headers: errno.h is portable.
7728 2001-11-26  Akim Demaille  <akim@epita.fr>
7730         * bin/autoscan.in (used): New.
7731         Use it.
7733 2001-11-26  Akim Demaille  <akim@epita.fr>
7735         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
7736         directives.
7737         (&scan_sh_file): Remove a duplicate pattern.
7738         (&check_configure_ac): Use long options.
7739         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
7741 2001-11-26  Akim Demaille  <akim@epita.fr>
7743         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
7744         Before, having a line containing the opening of a multi line
7745         comment made the whole line be ignored.
7747 2001-11-26  Akim Demaille  <akim@epita.fr>
7749         * doc/autoconf.texi (Using an Autotest Test Suite): New.
7750         (testsuite Scripts): Be one of its subsection.
7751         (Autotest Logs): New.
7753 2001-11-26  Akim Demaille  <akim@epita.fr>
7755         Test groups are now run two directories deeper.
7757         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
7758         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
7759         at_top_builddir.
7760         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
7761         top_srcdir, builddir and top_builddir.
7762         Use `at_*dir' relatively to the directory containing the
7763         suite, use `*dir' when relatively to the current group dir.
7765 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
7767         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
7768         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
7769         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
7770         spelling errors.
7772 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
7774         * doc/autoconf.texi (Using System Type): Add an example of `case
7775         $host' usage so people quit using `case $target' everywhere.
7777 2001-11-22  Akim Demaille  <akim@epita.fr>
7779         * doc/autoconf.texi (Installation Directory Variables): Englishoes
7780         spotted by Jim Meyering.
7782 2001-11-16  Paul Eggert  <eggert@twinsun.com>
7784         This patch implements a `long double' suggestion by Oliver Kiddle.
7786         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
7787         static, to catch errors if the value isn't known at compile-time
7788         and the compiler supports dynamic arrays.  Change its name from
7789         `_array_' to `test_array' to avoid potential name clashes.
7790         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
7791         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
7792         better than double.  Catch a bug in GCC 2.95.2 x86.
7793         * doc/autoconf.texi (C Compiler): Document the above.
7794         * NEWS: Likewise.
7796 2001-11-13  Akim Demaille  <akim@epita.fr>
7798         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
7799         hand.
7800         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
7802 2001-11-13  Akim Demaille  <akim@epita.fr>
7804         * lib/autotest/general.m4 (AT_INIT): After having run the test
7805         group, go back to the initial directory, not to at_suite_dir.
7807 2001-11-13  Akim Demaille  <akim@epita.fr>
7809         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
7810         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
7811         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
7812         option.
7813         (AT_CHECK_CONFIGURE): Use absolute paths.
7814         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
7815         The problem is still the old one: there is no means in M4 (that I
7816         know about) to create a defining macro, because there is no means
7817         to create `$1' etc., therefore, the defining macro ``swallows''
7818         all the arguments meant to the defined macro.
7820 2001-11-13  Akim Demaille  <akim@epita.fr>
7822         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
7823         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
7824         configure.ac.
7825         * tests/aclocal.m4: Remove, as it is no longer used.
7827 2001-11-13  Akim Demaille  <akim@epita.fr>
7829         * lib/autotest/general.m4: Change `tests?' into `groups?' in
7830         variable names when referring to a single test group, or to
7831         `suite' when referring to the whole test suite.
7832         `at_last_test' is removed: m4 compute at_format itself.
7833         (at_stdout, at_stder1, at_stderr): New variables.
7834         (AT_CHECK): Use them.
7836 2001-11-13  Akim Demaille  <akim@epita.fr>
7838         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
7839         in PATH.
7840         Create `testsuite.dir/003/run' instead of `testsuite.003'.
7841         Do it as soon as a test fails, don't wait till the end of the test
7842         suite.
7843         Don't remove $as_me.[0-9]*, since these files no longer exist.
7845 2001-11-13  Akim Demaille  <akim@epita.fr>
7847         * tests/tools.at: Use absolute paths, since we are no longer run
7848         in place.
7850 2001-11-13  Akim Demaille  <akim@epita.fr>
7852         Now that tests are running in their own private dir, there is no
7853         need to list the files to remove at the end of tests groups.
7855         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
7856         (AT_data_files, at_data_files): Remove.
7857         (AT_CLEANUP, AT_DATA): Simplify.
7858         (AT_INIT): Adjust.
7859         Remove the group dir if !debug && !failed.
7860         * tests/atspecific.m4: Adjust.
7862 2001-11-13  Akim Demaille  <akim@epita.fr>
7864         Start a new layout for Autotest: `testsuite' creates
7865         `testsuite.dir' in which the at-check-line etc. files are to be
7866         found, and `testsuite.dir/003' where the test group 3 is run.
7868         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
7869         at_check_line_file, at_format, at_test_normalized, at_group_dir
7870         are new variables.
7871         Create the directories.
7872         Use absolute paths for at- files.
7873         (AT_CHECK): Adjust.
7875 2001-11-11  Michael Matz  <matz@kde.org>
7877         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
7878         (m4_car2): New.
7879         (m4_car): Properly quote arguments.
7881 2001-11-13  Akim Demaille  <akim@epita.fr>
7883         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
7884         with stricter rules on LIBOBJS.
7886 2001-11-12  Paul Eggert  <eggert@twinsun.com>
7888         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
7889         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
7890         __PROTOTYPES too.
7892 2001-11-12  Akim Demaille  <akim@epita.fr>
7894         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
7896 2001-11-12  Akim Demaille  <akim@epita.fr>
7898         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
7899         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
7900         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
7901         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
7902         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
7903         specify to what the macro should be defined (typically to 1).
7905 2001-11-12  Akim Demaille  <akim@epita.fr>
7907         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
7908         From Jim Meyering.
7910 2001-11-12  Akim Demaille  <akim@epita.fr>
7912         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
7913         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
7914         definition used by Automake where LEX is +/- "${missing} lex" and
7915         `missing' itself contains variables.
7917 2001-11-12  Akim Demaille  <akim@epita.fr>
7919         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
7920         Now that M4sh pushes BODY, the comments were output at the end of
7921         the test suites.
7923 2001-11-08  Akim Demaille  <akim@epita.fr>
7925         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
7926         that we can trace macros from aclocal.m4.
7927         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
7928         obsoleted, and redirect to the former anyway.
7929         Reported by Ralf Corsepius.
7931 2001-11-08  Akim Demaille  <akim@epita.fr>
7933         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
7934         processed only if present.
7935         * tests/torture.at (Configuring subdirectories): Use autoreconf
7936         instead of successive calls to autoconf.
7937         Add a nonexistent subdirectory to exercise the patch above.
7938         Reported by Ralf Corsepius.
7940 2001-11-08  Kevin Ryde  <user42@zip.com.au>
7942         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
7943         doesn't accept .S files.
7945 2001-11-07  Akim Demaille  <akim@epita.fr>
7947         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
7948         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
7949         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
7950         * bin/autom4te.in (warn_forbidden): New.
7951         (handle_output): Use it.
7952         Read m4_pattern_forbid with messages.
7954 2001-11-05  Akim Demaille  <akim@epita.fr>
7956         * bin/autom4te.in (--normalize): Remove.
7957         * lib/autom4te.in: Adjust.
7959 2001-11-05  Akim Demaille  <akim@epita.fr>
7961         * tests/Makefile.am (testsuite): Rename this target as...
7962         ($(TESTSUITE)): this.
7963         From Nicolas Joly.
7965 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
7967         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
7968         the --prefix option, also remove it's argument.
7970 2001-11-05  Akim Demaille  <akim@epita.fr>
7972         * doc/autoconf.texi (testsuite Invocation): Update.
7973         (Writing testsuite.at): Update.
7975 2001-11-03  Akim Demaille  <akim@epita.fr>
7977         * doc/autoconf.texi: s/@code/@command/ where appropriate.
7979 2001-11-03  Akim Demaille  <akim@epita.fr>
7981         * lib/Autom4te/General.pm: (&catfile, &canonfile)
7982         (&file_name_is_absolute): New, wrappers around routines from
7983         File::Spec.
7984         Use and export them.
7985         (&find_configure_ac): Optionally take a directory where to look at.
7986         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
7987         the arguments.
7988         Default @ARGV to `.', not find_configure_ac.
7989         (&autoreconf): Argument is a directory.
7990         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
7991         * doc/autoconf.texi (autoreconf Invocation): Update.
7993 2001-11-03  Akim Demaille  <akim@epita.fr>
7995         * lib/Autom4te/General.pm (@export_vars, @export_subs)
7996         (@export_forward_subs): New.
7997         Add basename, dirname, and fileparse.
7998         (@EXPORT): Adjust.
7999         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
8000         Don't look for aclocal flags if we already know aclocal is not
8001         used.
8002         Move aclocal.m4t only if it exists.
8003         Reported by Ezra Peisach.
8005 2001-11-03  Akim Demaille  <akim@epita.fr>
8007         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
8008         passed on command line, defaulting to ./configure.ac if present.
8009         (&maybe_autoreconf, File::Find): Remove, unused.
8010         (&autoreconf): If autoconf is not used, don't try to trace.
8012 2001-11-02  Akim Demaille  <akim@epita.fr>
8014         * configure.ac: Bump to 2.52g.
8016 2001-11-02  Akim Demaille  <akim@epita.fr>
8018         Version 2.52f.
8020 2001-11-02  Akim Demaille  <akim@epita.fr>
8022         * config/config.guess, config/config.sub, doc/standards.texi:
8023         * config/lispdir.m4: Update from masters.
8024         * configure.ac: Bump to 2.52f.
8026 2001-11-02  Akim Demaille  <akim@epita.fr>
8028         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
8029         Don't run aclocal when aclocal.m4 is not from aclocal.
8030         From Ezra Peisach.
8031         Don't run libtoolize and gettextize if --install is not given.
8033 2001-11-01  Paul Eggert  <eggert@twinsun.com>
8035         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
8036         be invoked before _AS_LINENO_PREPARE.
8037         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
8038         than character ranges.
8040         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
8041         invoking AS_BASENAME.  Set the locale variables to 'C' if
8042         possible, as POSIX requires this to get the traditional
8043         behavior.
8044         * doc/autoconf.texi (Special Shell Variables): Describe the above.
8046 2001-10-31  Paul Eggert  <eggert@twinsun.com>
8048         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
8049         with {}, as that triggers a bug in Bash 2.05.
8051         (_AS_LINENO_PREPARE): Use Sed rather than
8052         Awk.  Fix the sed prepass to work even if there are multiple
8053         instances of $LINENO on the same line.  Do not substitute for
8054         other variables like $LINENOT.  Do not check file dates; such a
8055         check is unreliable on sufficiently fast machines, and removing
8056         the check makes the code simpler and more reliable.  Check for
8057         output and chmod failures.
8059         * doc/autoconf.texi (Special Shell Variables): Document
8060         the above.
8062 2001-10-31  Akim Demaille  <akim@epita.fr>
8064         * tests/Makefile.am (atconfig): Remove this target, Automake
8065         handles it now.
8067 2001-10-31  Akim Demaille  <akim@epita.fr>
8069         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
8070         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
8071         provided, while it is optional.
8072         * configure.ac: Adjust.
8074 2001-10-26  Paul Eggert  <eggert@twinsun.com>
8076         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
8077           lib/Autom4te/Struct.pm:
8078         Require Perl 5.005_03 instead of just 5.005, as some tests fail
8079         with 5.005_02.
8081         * doc/autoconf.texi (Special Shell Variables): Document some
8082         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
8084         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
8085         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
8086         eval $LINENO is not portable in practice.
8088 2001-10-24  Akim Demaille  <akim@epita.fr>
8090         * lib/Autom4te/General.pm (backname): New.
8092 2001-10-24  Akim Demaille  <akim@epita.fr>
8094         * m4/: Remove, merged into...
8095         * config/: here.
8097 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
8099         * doc/autoconf.texi (Shellology): Mention the problems with bash
8100         2.05's use of ANSI quoting in its `set' builtin.
8102 2001-10-22  Paul Eggert  <eggert@twinsun.com>
8104         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
8105         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
8106         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
8107         POSIX decided to standardize on the int flavor of strerror_r.
8108         Always do char* test, as there's no reason not to.
8109         Assign to a char* var, to catch strerror_r that returns int*.
8111         * doc/autoconf.texi (Particular Functions):
8112         Document the above changes.  Also, document the fact that
8113         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
8115         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
8117 2001-10-20  Akim Demaille  <akim@epita.fr>
8119         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
8120         the executable was missing from the log.
8122 2001-10-20  Akim Demaille  <akim@epita.fr>
8124         * lib/Autom4te/General.pm (&update_file): If destination is
8125         unchanged, remove the source.
8126         (&up_to_date_p): Don't be verbose, be debug.
8127         * bin/autoreconf.in: No longer support --m4dir.
8128         (&autoreconf): Display the full path of the configure.ac we are
8129         studying.
8130         Trace it only once.
8131         Be sure to honor --force with gettextize.
8132         Always run aclocal.
8133         * doc/autoconf.texi: Adjust.
8135 2001-10-20  Akim Demaille  <akim@epita.fr>
8137         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
8138         Remove, dead.
8139         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
8140         `intl' is already present, as it refuses unless --force.
8141         (&parse_args): Use -I, --include instead of the old Autoconf
8142         options.
8143         ($localdir, $autoconf_dir): Remove.
8144         (@include): New.
8145         (&maybe_autoreconf): New, to preserve $_ for File::Find.
8147 2001-10-19  Jens Petersen  <petersen@redhat.com>
8149         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
8150         * doc/autoconf.texi (Particular Programs): Likewise.
8152 2001-10-19  Akim Demaille  <akim@epita.fr>
8154         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
8155         file in @configure_input@.
8156         Don't mention `automatically' in addition to `generated'.
8157         * tests/torture.at (#define header templates): Adjust.
8159 2001-10-19  Akim Demaille  <akim@epita.fr>
8161         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
8162         comment, explain how to install automatic mode selection.
8163         From Russ Allbery.
8165 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
8167         * bin/autoreconf.in (autoreconf): Display the path to the
8168         configure.ac being studied.
8170 2001-10-18  Paul Eggert  <eggert@twinsun.com>
8172         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
8173         long, to work around a bug in the HP C compiler version HP92453-01
8174         B.11.11.23709.GP.
8176         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
8177         (AS_BASENAME_EXPR): New macro.
8178         (AS_BASENAME_SED): Do not assume GNU sed semantics.
8179         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
8180         and fall back on 'sed' only if the other two fail.  This makes
8181         AS_BASENAME act more like AS_DIRNAME.
8182         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
8183         contains white space.
8184         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
8185         Use AS_DIRNAME, since I think it's now DOS-friendly.
8186         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
8187         Allow "dirname //FOO" to return either / or //, as POSIX allows
8188         either behavior.
8190 2001-10-10  Akim Demaille  <akim@epita.fr>
8192         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
8193         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
8194         From Eric Sharkey.
8196 2001-10-10  Akim Demaille  <akim@epita.fr>
8198         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
8199         m4_define, since...
8200         (_AS_ECHO_N): AS_REQUIREs it.
8202 2001-10-10  Akim Demaille  <akim@epita.fr>
8204         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
8205         (AC_INCLUDES_DEFAULT): Move to...
8206         * lib/autoconf/headers.m4: here.
8207         * lib/autoconf/types.m4: Comment changes.
8208         * doc/autoconf.texi: Specify where the default includes are used
8209         in the macro prototypes.
8211 2001-10-09  Akim Demaille  <akim@epita.fr>
8213         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
8214         transition code.
8216 2001-10-08  Akim Demaille  <akim@epita.fr>
8218         * bin/autoreconf.in (&autoreconf): Remove debugging code.
8219         (&parse_args): Pass verbosity/debugging options to subtools when
8220         --debug, not when --verbose.
8221         * lib/autom4te.in (Autoreconf-preselections): New.
8222         (Autoconf): Use it.
8224 2001-10-08  Akim Demaille  <akim@epita.fr>
8226         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
8228 2001-10-08  Akim Demaille  <akim@epita.fr>
8230         * doc/autoconf.texi (autoreconf Invocation): Adjust.
8231         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
8233 2001-10-08  Akim Demaille  <akim@epita.fr>
8235         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
8236         (Syntax of the shell scripts): Don't.
8237         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
8238         bother with $force since...
8239         * lib/Autom4te/General.pm: does.
8241 2001-10-08  Akim Demaille  <akim@epita.fr>
8243         * bin/autoreconf.in: Rewrite in Perl.
8244         * configure.ac: Adjust.
8245         * lib/Autom4te/General.pm (&up_to_date_p): New.
8246         * bin/autom4te.in (&up_to_date_p): Use it.
8247         Rename as...
8248         (&up_to_date): this.
8250 2001-10-08  Akim Demaille  <akim@epita.fr>
8252         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
8253         (m4_list_cmp): Use $0 to reinvoke yourself.
8254         (m4_patsubsts): New.
8255         (m4_strip, m4_version_unletter): Use it.
8256         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
8258 2001-10-08  Akim Demaille  <akim@epita.fr>
8260         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
8261         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
8262         * lib/autoconf/types.m4, lib/autotest/general.m4,
8263         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
8264         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
8265         m4_bregexp, m4_bpatsubst, and m4_bmatch.
8266         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
8268 2001-10-08  Akim Demaille  <akim@epita.fr>
8270         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
8272 2001-10-08  Akim Demaille  <akim@epita.fr>
8274         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
8275         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
8276         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
8277         * tests/tools.at, tests/m4sh.at: Use it.
8278         * tests/m4sh.at: Don't rely on Autoconf macros.
8279         (DIRNAME_TEST): Also exercise the expr variant.
8280         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
8281         preferred M4sugar extension is now `.4s'.
8282         * tests/README: Remove.
8284 2001-10-08  Akim Demaille  <akim@epita.fr>
8286         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
8287         (m4_provide_if): this.
8288         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
8289         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
8290         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
8291         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
8293 2001-10-08  Akim Demaille  <akim@epita.fr>
8295         Use `add-log-current-defun-function' for ChangeLog creation.
8296         Suggested by Tom Tromey.
8298         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
8299         (autotest-mode): Adjust.
8300         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
8301         'comment-region onto `C-c ;'.
8302         Comments are `#', not `dnl'.
8303         (autoconf-current-defun): New.
8304         (autoconf-font-lock-keywords): Recognize `m4_defun'.
8306 2001-10-08  Akim Demaille  <akim@epita.fr>
8308         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
8309         * lib/m4sugar/m4sh.m4: here.
8310         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
8311         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
8312         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
8313         include handle the m4_pattern_*, no longer push the
8314         BODY diversion nor set the /bin/sh line, AS_INIT does it.
8315         * lib/autotest/general.m4 (AT_INIT): Likewise.
8316         * tests/base.at: Adjust the tests to use AS_INIT.
8317         * tests/tools.at (AT_DATA_FORBIDDEN): New.
8318         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
8319         Autoconf.
8321 2001-10-07  Paul Eggert  <eggert@twinsun.com>
8323         * doc/autoconf.texi (config.status Invocation):
8324         CONFIG_SHELL defaults to a shell that supports LINENO if available.
8326         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
8327         shell does not support LINENO, and if CONFIG_SHELL is unset or
8328         empty, and if we can find a shell that does support LINENO,
8329         then set CONFIG_SHELL to that shell and then re-execute
8330         ourselves with CONFIG_SHELL.
8332 2001-10-05  Paul Eggert  <eggert@twinsun.com>
8334         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
8335         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
8336         build of $(TESTSUITE).
8338 2001-10-05  Akim Demaille  <akim@epita.fr>
8340         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
8341         iff we are a bareword.
8342         Reported by Raja R Harinath.
8344 2001-10-05  Akim Demaille  <akim@epita.fr>
8346         * tests/m4sh.at (LINENO): New.
8347         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
8348         PATH_SEPARATOR before using it.
8349         Fix the absolute path case/esac pattern.
8350         Provide $0 as fallback for as_myself.
8351         Reported by Raja R Harinath.
8353 2001-10-05  Akim Demaille  <akim@epita.fr>
8355         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
8356         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
8358 2001-10-05  Akim Demaille  <akim@epita.fr>
8360         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
8361         (AS_SHELL_SANITIZE): here.  Use it.
8362         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
8363         From Paul Eggert.
8365 2001-10-04  Akim Demaille  <akim@epita.fr>
8367         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
8368         combination of Awk and sed to replace $LINENO.
8370 2001-10-02  Paul Eggert  <eggert@twinsun.com>
8372         * doc/autoconf.texi (Limitations of Builtins): You can't use
8373         "source"; it's not portable.  Remove confusing and
8374         somewhat-incorrect example involving "." and "/".
8376         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
8377         compatibility with POSIX shells.
8379 2001-10-02  Akim Demaille  <akim@epita.fr>
8381         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
8382         instead of exec'ing to preserve $0 and $@.
8384 2001-10-01  Akim Demaille  <akim@epita.fr>
8386         * tests/testsuite (AT_INIT) <at_pass_list>: New.
8387         Don't run twice the same test.
8389 2001-10-01  Akim Demaille  <akim@epita.fr>
8391         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
8392         No longer output the list of tests.
8393         <--list>: New option.
8394         <--full-help>: Remove.
8395         Complete the short/long options duality.
8396         Various small adjustments.
8398 2001-10-01  Akim Demaille  <akim@epita.fr>
8400         * doc/autoconf.texi: Use @kbd for user input.
8401         Always use `$' as shell prompt.
8403 2001-09-30  Paul Eggert  <eggert@twinsun.com>
8405         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
8406         Don't use nested parenthesization.  This patch was originally
8407         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
8408         but somehow it didn't get incorporated then.
8409         * doc/autoconf.texi (Limitations of Usual Tools):
8410         Clarify remark about sed and nested parenthesization.
8412         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
8413         Report an error if the size cannot be determined even though
8414         the type exists.
8415         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
8416         Check for `expr' arithmetic overflow, and for compilation failure,
8417         and invoke a new argument $4 if either is discovered.
8418         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
8419         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
8421 2001-09-28  Akim Demaille  <akim@epita.fr>
8423         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
8424         * m4/lispdir.m4: New.
8425         * aclocal.m4, configure.ac: Adjust.
8427 2001-09-28  Akim Demaille  <akim@epita.fr>
8429         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
8430         (AT_TESTED): this.
8431         (AT_INIT): More the wrapped section to where it will be expanded.
8432         Output `AT_tested' only when existing.
8433         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
8435 2001-09-27  Akim Demaille  <akim@epita.fr>
8437         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
8438         generates too many bug reports.
8440         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
8441         status when executing the ACTION-IF-FALSE.
8442         * tests/base.at (AC_TRY_*): Rename as...
8443         (AC_TRY_COMMAND): this.
8444         (AC_RUN_IFELSE): New.
8445         * tests/compile.at (Extensions, C keywords)
8446         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
8447         (Broken/missing compilers, AC_PROG_CPP with warnings)
8448         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
8449         * tests/c.at (Extensions, C keywords)
8450         (Broken/missing compilers, AC_PROG_CPP with warnings)
8451         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
8452         (AC_PROG_CPP requires AC_PROG_CC): here and...
8453         * tests/fortran.at (GNU Fortran 77): there.
8454         * doc/autoconf.texi (autoconf Invocation): Fix the example:
8455         AC_TRY_RUN is about compilation, not shell commands.
8456         (Test Programs): AC_TRY_RUN works as used to be advertised.
8458 2001-09-27  Akim Demaille  <akim@epita.fr>
8460         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
8461         Raja R Harinath:
8462         Be sure to detect when $LINENO always returns the same value.
8463         Look for the original script, basename($0) is certainly not
8464         enough.
8465         Pass the CLI arguments to `$as_me.lineno'.
8467 2001-09-25  Akim Demaille  <akim@epita.fr>
8469         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
8470         Be sure the close and reopen the LOG fd before and after using tee
8471         to extend the log.
8472         <at_tests_pattern>: Adjust to the new format of at_help_all.
8474 2001-09-23  Akim Demaille  <akim@epita.fr>
8476         * bin/autom4te.in (parse_args): There can be several invocations
8477         of --language now.
8479 2001-09-23  Akim Demaille  <akim@epita.fr>
8481         * doc/autoconf.texi (Top): Wrap in @ifnottex.
8483 2001-09-23  Akim Demaille  <akim@epita.fr>
8485         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
8486         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
8487         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
8488         builddir, buildpath, top_builddir, and top_buildpath.
8489         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
8490         the current directory.
8491         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
8492         variables *before* changing the current directory.
8493         Skip nonexistent dirs.
8494         * doc/autoconf.texi (Preset Output Variables): Document these
8495         variables.
8497         * lib/autotest/general.m4: Do not reset AT_victims.
8498         Don't compute at_srcdir nor at_top_srcdir.
8500         * tests/tools.at: Hence use top_srcdir.
8502         * tests/Makefile.am, tests/autoconf, tests/autoheader,
8503         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
8504         Remove.
8505         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
8506         * tests/wrapsh.in, tests/autoupdate.in: New.
8507         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
8508         * configure.ac: Build the position independent wrappers.
8510         * man/Makefile.am: Now that test wrappers are position
8511         independent, use them and drop dark envvar magic.
8513 2001-09-23  Akim Demaille  <akim@epita.fr>
8515         * doc/autoconf.texi (Common Shell Constructs): Rename as...
8516         (Programming in M4sh): this.
8517         Promote to @section.
8519 2001-09-23  Akim Demaille  <akim@epita.fr>
8521         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
8522         Pass $at_debug_args to the rerun test suite.
8523         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
8524         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
8525         From Paul Eggert.
8527 2001-09-23  Akim Demaille  <akim@epita.fr>
8529         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
8531 2001-09-23  Akim Demaille  <akim@epita.fr>
8533         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
8534         over-escaping.
8536 2001-09-23  Akim Demaille  <akim@epita.fr>
8538         * lib/Autom4te/General.pm (&debug): New.
8539         * bin/autom4te.in ($language): Move to...
8540         (parse_args): here.
8541         Handle --language in languages.
8542         * lib/autom4te.in (Automake-selections, Autoheader-selections)
8543         (Autoscan-selections): New.
8544         (Autoconf): Adjust.
8546 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
8548         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
8549         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
8550         to match current versions from CVS Automake.
8552 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
8554         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
8555         for $LINENO.
8557 2001-09-22  Akim Demaille  <akim@epita.fr>
8559         * lib/autoconf/autotest.m4: Create `package.m4'.
8560         * tests/Makefile.am (package.m4): Remove.
8562 2001-09-22  Akim Demaille  <akim@epita.fr>
8564         Rely on `$LINENO' when possible instead of `__oline__'.
8566         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
8567         `$LINENO' support replacement when not supported.
8568         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
8569         them explicitly to be sure they are not output before this section
8570         (via m4_require).  Cosmetic only.
8571         * lib/autoconf/c.m4, lib/autoconf/general.m4,
8572         * lib/autoconf/programs.m4: Replace all the occurrences of
8573         `__oline__' with `$LINENO'.
8574         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
8576 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
8578         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
8579         character (u: -> ue) in a code comment.
8580         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
8581         it works.
8583 2001-09-21  Akim Demaille  <akim@epita.fr>
8585         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
8586         Suggested by Jim Meyering.
8588 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8590         * lib/autoconf/programs.m4: Use extensions listed in
8591         $ac_executable_extensions when looking for programs.
8593 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8595         * lib/autoconf/general.m4: Fix a small Englisho.
8596         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
8597         setting up ac_dir_suffix and ac_top_builddir.
8598         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
8600 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8602         * doc/autoconf.texi (File System Conventions): Clarify the use of
8603         PATH_SEPARATOR.
8604         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
8605         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
8606         be used instead of ':'.
8607         * lib/autotest/general.m4: Replace occurrences of ':' in
8608         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
8610 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8612         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
8613         arguments.  Fixed a typo.
8615 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8617         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
8618         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
8620 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8622         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
8623         * bin/autoupdate.in: Ditto.
8624         * bin/autoheader.in: Reworded a few comments.
8625         * bin/autoconf.in: Reworded help text for a few options.
8626         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
8627         * bin/autoscan.in, bin/autoupdate.in: Ditto.
8629 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8631         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
8632         already have $file).  Set output files to binary mode (helps avoid
8633         CR issues on DOSish systems).
8635 2001-09-19  Akim Demaille  <akim@epita.fr>
8637         * lib/autotest/general.m4: Englishoes.
8638         From Tim Van Holder and Alexey Mahotkin.
8640 2001-09-18  Paul Eggert  <eggert@twinsun.com>
8642         * doc/autoconf.texi (Common Shell Constructs): New node,
8643         documenting AS_DIRNAME.
8644         (Limitations of Usual Tools): Refer to it when discussing dirname.
8645         Also, update discussion of POSIX standard to reflect latest draft.
8647         * lib/autoconf/c.m4:
8648         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
8650         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
8651         Do not pass a first argument with leading '-'
8652         to expr, by parenthesizing initial integers that might be negative.
8654         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
8655         now merely checks whether it is an error to pass an argument
8656         to getpgrp.
8658         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
8659         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
8660         whether it is a (compile-time) error to pass an argument to
8661         getpgrp.  This simpler test supports the revised documentation,
8662         and is all that AC_FUNC_GETPGRP's users really need.
8664 2001-09-18  Akim Demaille  <akim@epita.fr>
8666         * doc/autoconf.texi (Limitations of Make) <$<>: New.
8668 2001-09-18  Akim Demaille  <akim@epita.fr>
8670         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
8671         `{}'.
8672         * lib/autotest/general.m4 (AT_INIT): Adjust.
8674 2001-09-18  Paul Wagland  <paul@wagland.net>
8676         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
8677         correctly.
8678         Add test for AS_BASENAME.
8679         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
8680         added test. It now correctly handles /1/2/3/, returning '3' not ''.
8681         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
8682         * tests/base.at: Fixed the expected responses. The old ones were
8683         one line out...
8684         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
8685         the documentation claims it should (and how it behaved in 2.13).
8687 2001-09-18  Akim Demaille  <akim@epita.fr>
8689         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
8690         the AC_CONFIG_COMMANDS invocation.
8691         This also solves the name clash problems.
8692         Don't set the package's ID.
8693         * lib/m4sugar/Makefile.am (version.m4): Revamp.
8694         No longer to be shipped.
8695         (version.in): Remove.
8696         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
8697         * lib/autoconf/status.m4: Adjust.
8698         Use `m4_PACKAGE_STRING'.
8699         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
8700         the only optional argument is the name of the test suite.
8701         Expect `package.m4' to define the package signature.
8702         * lib/autom4te.in (Autotest): Add `package.m4?'.
8703         * tests/Makefile.am (package.m4): New.
8704         * tests/suite.at: ifnames is a victim.
8706 2001-09-18  Akim Demaille  <akim@epita.fr>
8708         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
8709         AC_LIBSOURCE, AC_CONFIG_FILES.
8710         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
8711         program version string doesn't match the package's.
8712         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
8713         after `(cached)'.
8715 2001-09-17  Paul Eggert  <eggert@twinsun.com>
8717         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
8718         Allow expression to return any value that can fit into unsigned long
8719         (not int, as before).  Check for output errors.
8721 2001-09-17  Bruno Haible  <haible@ilog.fr>
8723         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
8724         Always include <stdio.h> and <stdlib.h>. Evaluate
8725         the expression in an extra function before these includes. Call
8726         fprintf "%d" only after ensuring the argument is of type 'int'.
8727         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
8729 2001-09-17  Paul Eggert  <eggert@twinsun.com>
8731         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
8732         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
8733         fatal errors, and AC_CHECK_LIB causes it to include libraries even
8734         when they don't exist.
8736         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
8737         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
8738         need it.
8740         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
8741         version with the version used by fileutils 4.1, except use
8742         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
8743         we don't need it.
8745         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
8747 2001-09-13  Akim Demaille  <akim@epita.fr>
8749         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
8750         _first_.
8751         Reported by Gerrit P. Haase.
8753 2001-09-13  Akim Demaille  <akim@epita.fr>
8755         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
8756         m4_defn'ing is valid.
8758 2001-09-13  Akim Demaille  <akim@epita.fr>
8760         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
8761         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
8762         Use it.
8764 2001-09-13  Akim Demaille  <akim@epita.fr>
8766         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
8767         m4_match.
8768         (m4_re_escape): New.
8769         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
8770         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
8771         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
8772         Likewise.
8773         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
8774         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
8775         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
8776         AT_tests_all for consistency.
8777         Set at_victims.
8778         (AT_VICTIMS): Similar to AT_KEYWORDS.
8779         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
8781 2001-09-13  Akim Demaille  <akim@epita.fr>
8783         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
8785 2001-09-13  Akim Demaille  <akim@epita.fr>
8787         * lib/autotest/general.m4 (AT_INIT): Create and remove
8788         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
8789         test suites can cohabit.
8791 2001-09-13  Akim Demaille  <akim@epita.fr>
8793         * tests/mktests.sh: Don't output banners for empty test files.
8795 2001-09-13  Akim Demaille  <akim@epita.fr>
8797         Test suites can be run independently of configure.
8799         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
8800         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
8801         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
8802         ECHO_N etc.
8803         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
8804         and at_c.
8805         * lib/autotest/general.m4: Use ECHO_*.
8807 2001-09-13  Akim Demaille  <akim@epita.fr>
8809         * bin/ifnames.in: Rewrite in Perl.
8810         * configure.ac: Don't look for AWK.
8811         * tests/tools.at (AWK portability): Remove.
8812         (Syntax of the shell scripts): Don't check ifnames.
8813         (AT_CHECK_PERL_SYNTAX): New.
8814         (Syntax of the Perl scripts): Check ifnames.
8815         * tests/ifnames: New.
8817 2001-09-13  Akim Demaille  <akim@epita.fr>
8819         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
8820         test group titles.
8821         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
8822         Remove all the other keywords.
8824 2001-09-10  Akim Demaille  <akim@epita.fr>
8826         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
8827         SETUP: no longer used.
8828         Support -k, --keywords.
8829         <at_help>: Be `no', `short', or `long'.
8830         <at_help_all>: New variable.
8831         (AT_KEYWORDS): New.
8832         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
8833         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
8834         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
8835         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
8836         No longer fill the HELP diversion.
8837         (AT_CLEANUP): Use them.
8838         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
8839         (m4_list_append): Remove.
8841         Spread a few keywords in the Autoconf test suite.
8843 2001-09-10  Akim Demaille  <akim@epita.fr>
8845         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
8846         PATH_SEPARATOR, let M4sh compute it.
8847         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
8848         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
8849         Move to...
8850         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
8851         Simplify when the path is not a literal.
8852         (AS_UNAME): Use it to report PATH.
8853         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
8854         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
8855         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
8856         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
8857         normalize the path, and to look for victims.
8858         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
8859         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
8861 2001-09-07  Akim Demaille  <akim@epita.fr>
8863         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
8864         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
8865         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
8866         related variables into `at_package_*'.
8867         * lib/autotest/general.m4 (AT_VICTIMS): New.
8868         (AT_INIT): Adjust for stand-alone/embedded test suites.
8869         (AS_MESSAGE_LOG_FD): Define and use it.
8870         * tests/suite.at (AT_VICTIMS): Use it.
8871         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
8872         at_version.
8874 2001-09-07  Akim Demaille  <akim@epita.fr>
8876         Move toward possibly stand-alone test suites.
8878         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
8879         in addition, it introduces useless differences in logs.
8880         (AT_INIT): Let atconfig and atlocal be both optional.
8881         Adjust PATH computation.
8882         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
8884 2001-09-07  Akim Demaille  <akim@epita.fr>
8886         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
8887         m4sugar/version.m4.
8889 2001-09-05  Akim Demaille  <akim@epita.fr>
8891         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
8892         to avoid GCC warnings.
8893         From Uwe Seimet.
8895 2001-09-05  Akim Demaille  <akim@epita.fr>
8897         * bin/autom4te.in: --language is -l, not -s.
8899 2001-09-05  Akim Demaille  <akim@epita.fr>
8901         Be ready to handle filenames as stupid as `dnl.at', for if even
8902         the maintainer is dumb enough to do that...
8904         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
8905         excellence in M4 quotation: consider `__file__' is active.
8907         And BTW, when invoking m4, pass the --include in the right order:
8908         the wrong one.
8910         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
8911         4m.
8913 2001-09-05  Akim Demaille  <akim@epita.fr>
8915         * lib/Autom4te/XFile.pm: New lib file.
8916         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
8917         * bin/autoheader.in: Use it.
8919 2001-09-05  Akim Demaille  <akim@epita.fr>
8921         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
8922         defined.
8924 2001-09-05  Akim Demaille  <akim@epita.fr>
8926         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
8927         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
8929         * bin/autoscan.in: Use `getopt' and `find_files' etc.
8930         Add -I, --include support.
8931         * doc/autoconf.texi (autoscan Invocation): Adjust.
8933 2001-09-05  Akim Demaille  <akim@epita.fr>
8935         CVS GNU M4 doesn't like `undefine(undefined)'.
8937         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
8938         New, extracted from main.
8939         Use IO::File wherever possible.
8940         (input.m4): Be constant, use -I instead of hard coding $tmp.
8941         Therefore be a quoted heredoc.
8942         Don't invoke `_au_disable', since ac was not loaded, but just
8943         `unm4.m4'.
8945 2001-08-31  Akim Demaille  <akim@epita.fr>
8947         Version 2.52d.
8949 2001-08-31  Akim Demaille  <akim@epita.fr>
8951         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
8952         previous patch.
8953         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
8955 2001-08-31  Akim Demaille  <akim@epita.fr>
8957         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
8958         serious problems handling heredocs in heredocs.
8959         Reported by Nicolas Joly.
8961 2001-08-31  Akim Demaille  <akim@epita.fr>
8963         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
8964         (Making testsuite Scripts): Update.
8966 2001-08-31  Akim Demaille  <akim@epita.fr>
8968         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
8970 2001-08-31  Akim Demaille  <akim@epita.fr>
8972         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
8973         (testsuite Scripts): There is no such thing as `atconfig.in'.
8974         And actually one diagram is missing: test suite runtime.
8976 2001-08-31  Akim Demaille  <akim@epita.fr>
8978         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
8979         inverse order.
8981 2001-08-31  Akim Demaille  <akim@epita.fr>
8983         * bin/autoupdate.in (@include): `installcheck' revealed the path
8984         to m4sugar was lacking!
8986 2001-08-31  Akim Demaille  <akim@epita.fr>
8988         * man/Makefile.am (.x.1): We really have to pass
8989         autom4te_perllibdir.
8991 2001-08-31  Akim Demaille  <akim@epita.fr>
8993         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
8994         debug scripts, in particular passing explicitly listed tests to
8995         run is stupid.
8997 2001-08-31  Akim Demaille  <akim@epita.fr>
8999         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
9000         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
9001         Use directly autom4te, not autoconf.
9002         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
9004 2001-08-31  Akim Demaille  <akim@epita.fr>
9006         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
9007         * bin/autoheader.in (%symbol): Strip arguments of macros.
9009 2001-08-31  Akim Demaille  <akim@epita.fr>
9011         * doc/autoconf.texi: Catch up -I, --include changes.
9013 2001-08-31  Akim Demaille  <akim@epita.fr>
9015         * bin/autom4te.in (&parse_args): Die on unknown languages.
9016         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
9017         need for autoconf.
9018         Promote --include over --macrodir and other obsolete options.
9020 2001-08-31  Akim Demaille  <akim@epita.fr>
9022         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
9023         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
9024         * bin/autom4te.in ($autoconf): Pass --force.
9025         `print $out' doesn't print `$_' but `$out'.
9026         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
9027         (autoheader): Pass --force since the test suite goes too fast for
9028         the time stamps.
9029         Adjust to the new autoheader messages.
9031 2001-08-31  Akim Demaille  <akim@epita.fr>
9033         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
9034         Check the completeness of the #template.
9035         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
9036         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
9037         invocation.
9039 2001-08-31  Akim Demaille  <akim@epita.fr>
9041         * lib/Autom4te/General.pm (&find_file, &update_file): New.
9042         * bin/autoupdate.in, bin/autoheader.in: Adjust.
9043         Drop AC_MACRODIR dead for real.
9044         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
9045         `autoheader: `config.hin' is created'.
9046         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
9048 2001-08-31  Akim Demaille  <akim@epita.fr>
9050         * bin/autoheader.in: Rewrite in Perl.
9051         * tests/autoheader: Adjust.
9053 2001-08-31  Akim Demaille  <akim@epita.fr>
9055         * bin/autoconf.in (--include, -I): New option.
9056         Map --localdir, --autoconf-dir onto it.
9057         Forward autom4te's options instead of interpreting them.
9058         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
9059         There is no such envvar since the inception of autom4te.cfg.
9060         * bin/autom4te.in (&parse_args): Uniquify `@include'.
9061         * bin/autoupdate.in: Adjust, and perform more control.
9062         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
9063         * tests/autoconf: Dittowise.
9065 2001-08-31  Akim Demaille  <akim@epita.fr>
9067         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
9068         * bin/autom4te.in (&find_file): Support `FILE?' standing for
9069         optionally `FILE'.
9070         Use -e, not -f, since /dev/null for instance is OK.
9071         (&parse_args): Adjust.
9072         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
9074 2001-08-31  Akim Demaille  <akim@epita.fr>
9076         * configure.ac: Also find tested executables in bin.
9077         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
9078         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
9079         installed peer executables, only PATH is allowed to resolve it.
9080         Pass `autoconf_dir' via options, not via invisible envvars.
9081         * lib/Autom4te/General.pm (&find_peer): Remove.
9082         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
9083         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
9084         * man/Makefile.am: Let help2man rely on PATH instead of trying to
9085         find the executables for it.
9086         * tests/Makefile.am: Major cleanup.  Too lazy to document...
9087         * tests/atlocal.in: Remove all the obscure envvar manipulations.
9088         We only need PERL.
9089         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
9090         indeed related to running the test suite, while passing
9091         --autoconf-dir and others is related to running non installed
9092         Autoconf executables.  So don't do that, leave it to...
9093         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
9094         * tests/autoscan: New.
9095         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
9096         refer to library files: rely on --language.
9098 2001-08-29  Akim Demaille  <akim@epita.fr>
9100         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
9101         s/--set/--language/.
9103 2001-08-29  Akim Demaille  <akim@epita.fr>
9105         * doc/autoconf.texi: Strip the @nodes.
9106         Suggested by Paul Eggert.
9107         (Initializing configure): Typo.
9109 2001-08-29  Akim Demaille  <akim@epita.fr>
9111         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
9112         Suggested by Paul Eggert.
9114 2001-08-29  Akim Demaille  <akim@epita.fr>
9116         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
9117         download in a tmp dir.
9119 2001-08-29  Akim Demaille  <akim@epita.fr>
9121         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
9122         case insensitive OSes out there :(
9123         From Tim Van Holder.
9125 2001-08-29  Akim Demaille  <akim@epita.fr>
9127         * lib/autom4te.in: New.
9128         * lib/Makefile.am (edit, autom4te.cfg): New.
9129         * bin/autom4te.in (BEGIN): Simplify.
9130         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
9131         (&load_configuration): New.  Use it.
9132         (&parse_args): Support --mode, --set, and --melt.
9133         * bin/autoconf.in: Simplify and adjust.
9134         * tests/Makefile.am (AUTOMAKE): Use --set.
9135         * tests/atlocal.in: Adjust.
9136         * BUGS: distcheck and check are weak.
9138 2001-08-29  Akim Demaille  <akim@epita.fr>
9140         * lib/autotest/general.m4: Use
9141                 foo=`(command) 2>/dev/null`
9142         not
9143                 foo=`command` 2>/dev/null
9144         (at-devnull): Rename as...
9145         (AT-devnull): this.
9146         (--clean): Remove AT-* files too.
9147         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
9148         Reported by Nicolas Joly.
9150 2001-08-28  Akim Demaille  <akim@epita.fr>
9152         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
9153         quotes inside single quotes.
9154         Reported by Nicolas Joly.
9156 2001-08-28  Kevin Ryde  <user42@zip.com.au>
9158         * doc/autoconf.texi (Function Portability): Mention C right shifts.
9160 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
9162         * lib/autotest/general.m4: Reword some messages.
9163         (AT_INIT): Check for the `times' builtin before using it.
9164         Support test ranges as arguments to the testsuite.
9165         Have -e imply -d as the help text suggested.
9167 2001-08-27  Akim Demaille  <akim@epita.fr>
9169         * Makefile.maint: Formatting changes.
9170         (do-po-update, po-update, cvs-update, update): New targets.
9171         (AMTAR): Remove.
9173 2001-08-27  Akim Demaille  <akim@epita.fr>
9175         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
9176         <at_cmd_line>: New.
9177         Pass it to debug-*.sh scripts.
9178         <AUTOTEST_PATH>: May contain absolute dir names.
9180 2001-08-27  Akim Demaille  <akim@epita.fr>
9182         * lib/autotest/general.m4 (AT_INIT): Log the command line.
9183         Support `VAR=VAL' as arguments.
9184         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
9185         may be set via the command line.
9187 2001-08-27  Akim Demaille  <akim@epita.fr>
9189         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
9190         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
9191         first the build dirs, then the src dirs.
9192         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
9194 2001-08-27  Akim Demaille  <akim@epita.fr>
9196         * lib/autotest/general.m4 (AT_INIT): Output the definition of
9197         at_data_files earlier.
9198         (--clean, -c): New option.
9199         * tests/Makefile.am: Use this option.
9201 2001-08-27  Akim Demaille  <akim@epita.fr>
9203         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
9204         `ac_top_builddir' to mimic Automake's vocabulary, which much more
9205         readable.
9206         Adjust callers.
9207         * doc/autoconf.texi (Configuration Actions): Document the vars
9208         available in commands.
9209         Emphasize the risks of collisions in init-cmds.
9211 2001-08-27  Akim Demaille  <akim@epita.fr>
9213         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
9214         (Initializing configure): this new node.
9216 2001-08-27  Akim Demaille  <akim@epita.fr>
9218         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
9220 2001-08-27  Akim Demaille  <akim@epita.fr>
9222         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
9223         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
9224         New file.
9225         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
9227 2001-08-27  Akim Demaille  <akim@epita.fr>
9229         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
9230         to...
9231         * lib/autoconf/autoheader.m4: this new file.
9232         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
9233         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
9234         Move to...
9235         * lib/autoconf/autoupdate.m4: this new file.
9237 2001-08-27  Akim Demaille  <akim@epita.fr>
9239         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
9240         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
9241         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
9242         -> ac_dir).
9243         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
9244         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
9246 2001-08-27  Akim Demaille  <akim@epita.fr>
9248         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
9249         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
9250         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
9251         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
9252         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
9253         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
9254         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
9255         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
9256         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
9257         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
9258         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
9259         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
9260         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
9261         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
9262         (_AC_OUTPUT_SUBDIRS): Move to...
9263         * lib/autoconf/status.m4: this new file.
9264         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
9265         * tests/Makefile.am, tests/suite.at: Adjust.
9267 2001-08-27  Akim Demaille  <akim@epita.fr>
9269         Automake 1.5.
9271         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
9272         (AMTAR): Help automake define it.
9273         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
9274         needed, 1.5 can have a macro and a target with the same name.
9275         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
9276         * m4/strip.m4: New.
9277         * m4/init.m4, m4/sanity.m4: Update.
9278         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
9279         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
9280         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
9281         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
9283 2001-08-27  Akim Demaille  <akim@epita.fr>
9285         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
9287         * lib/autoconf/version.in: Remove.
9288         * lib/m4sugar/version.in: New.
9289         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
9290         Adjust callers.
9291         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
9292         the name of the directory they're in, instead of the filename,
9293         since version.m4 is now in m4sugar, but m4_acversion must not be
9294         classified as an Autoconf macro.
9295         ($input_m4): Don't qualify the path to m4sugar.
9296         Rather, pass autoconf_dir to m4.
9297         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
9298         * tests/suite.at: Require 2.52c.
9300 2001-08-27  Akim Demaille  <akim@epita.fr>
9302         testsuite.log should include config.log.
9304         * lib/autotest/autotest.m4: New.
9305         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
9306         * tests/suite.at : Adjust.
9307         (AT_INIT): Log config.log.
9308         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
9309         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
9310         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
9311         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
9312         of config.log on traps.
9313         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
9314         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
9315         for config.status'.
9316         Open the log as soon as possible.
9317         Use the same log introduction as configure's.
9319 2001-08-22  Paul Eggert  <eggert@twinsun.com>
9321         * doc/autoconf.texi (Indices): New node.
9322         Move indices out of the top level menu and into this submenu.
9324 2001-08-22  Akim Demaille  <akim@epita.fr>
9326         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
9327         AC_TRY_COMMAND.
9328         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
9330 2001-08-22  Akim Demaille  <akim@epita.fr>
9332         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
9333         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
9334         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
9335         * lib/autoconf/programs.m4: here.
9336         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
9337         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
9338         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
9339         * lib/autoconf/programs.m4: here.
9340         (_AC_DECL_YYTEXT): Rename as...
9341         (_AC_PROG_LEX_YYTEXT_DECL): this.
9342         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
9343         * tests/Makefile.am, tests/suite.am: Adjust.
9345 2001-08-22  Akim Demaille  <akim@epita.fr>
9347         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
9348         Move to...
9349         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
9350         here.
9351         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
9352         * lib/autoconf/functions.m4: here.
9353         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
9354         (AH_CHECK_LIB): Move to...
9355         * lib/autoconf/libs: this new file.
9356         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
9357         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
9358         * lib/autoconf/libs.m4: here.
9359         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
9361 2001-08-22  Akim Demaille  <akim@epita.fr>
9363         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
9364         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
9365         (AC_SITE_LOAD): Better logging of config.site.
9367 2001-08-20  Akim Demaille  <akim@epita.fr>
9369         * configure.ac (AT_CONFIG): Fix the path.
9370         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
9371         can be used.
9373 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
9375         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
9376         program with AC_LANG_PROGRAM before feeding it to
9377         AC_COMPILE_IFELSE.  Cleanup grep usage.
9379 2001-08-20  Akim Demaille  <akim@epita.fr>
9381         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
9382         * NEWS, README, README-alpha, TODO, tests/README: This package is
9383         `Autoconf', not `autoconf' (the executable).
9385 2001-08-20  Akim Demaille  <akim@epita.fr>
9387         Info readers seem to need `Index' in the index node title :(
9389         * doc/autoconf.texi: Reverse the 2001-08-15 change which
9390         simplified index node names.
9392 2001-08-20  Akim Demaille  <akim@epita.fr>
9394         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
9395         arguments are not literals.
9396         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
9397         Specify the output variables, and macros defined.
9399 2001-08-20  Akim Demaille  <akim@epita.fr>
9401         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
9402         (Examining Syntax) <AC_TRY_COMPILE>
9403         (Examining Libraries) <AC_TRY_LINK>
9404         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
9405         their arguments.
9406         Reported by Werner Lemberg.
9408 2001-08-20  Akim Demaille  <akim@epita.fr>
9410         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
9411         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
9412         Load atlocal late enough to dump it in the log.
9413         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
9415 2001-08-20  Akim Demaille  <akim@epita.fr>
9417         * tests/torture.at (Configuring subdirectories): New test.
9418         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
9419         looking for.
9420         * m4/atconfig.m4: Be sure the let $[0] be expandable.
9421         (top_srcdir): Fix its computation.
9423 2001-08-20  Akim Demaille  <akim@epita.fr>
9425         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
9426         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
9427         test suite lives.
9428         Create `atconfig' automagically.
9429         Configure atlocal.in if present.
9430         * tests/atconfig.in: Remove.
9431         * tests/atlocal.in: New.
9432         * tests/Makefile.am: Adjust.
9434 2001-08-20  Akim Demaille  <akim@epita.fr>
9436         Huh!?!?!  There are still some user EOF tags used, which prevents
9437         their use in AC_CONFIG_COMMANDS for instance...
9439         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
9440         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
9441         `_CSEOF', or `_ATEOF', as appropriate.
9442         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
9443         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
9445 2001-08-20  Akim Demaille  <akim@epita.fr>
9447         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
9448         * tests/semantics.at, tests/tools.at, tests/torture.at:
9449         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
9451 2001-08-20  Akim Demaille  <akim@epita.fr>
9453         Autotest invokes M4sh's initialization.
9455         * lib/autotest/general.m4: Adjust the diversion names.
9456         (AT_INIT): Run AS_INIT.
9457         Use the BINSH diversion to invoke /bin/sh.
9458         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
9459         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
9461 2001-08-20  Akim Demaille  <akim@epita.fr>
9463         Let M4sh have its own diversions.
9465         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
9466         (_m4_divert(NOTICE)): Rename as...
9467         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
9468         (_m4_divert(HEADER-COMMENT)): these.
9469         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
9470         (_m4_divert(NOTICE)): New, for Libtool.
9471         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
9472         long ago with `_m4_divert(GROW)'.
9473         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
9475 2001-08-20  Akim Demaille  <akim@epita.fr>
9477         * tests/base.at, tests/compile.at, tests/foreign.at,
9478         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
9479         * tests/semantics.at, tests/suite.at, tests/tools.at,
9480         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
9482 2001-08-20  Akim Demaille  <akim@epita.fr>
9484         * bin/autom4te.in (handle_output): Handle @__@.
9486 2001-08-20  Akim Demaille  <akim@epita.fr>
9488         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
9489         * lib/autotest/general.m4: Adjust the license.
9491 2001-08-17  Paul Eggert  <eggert@twinsun.com>
9493         * doc/autoconf.texi (Function Portability): Mention snprintf,
9494         following up on a suggestion by Kevin Ryde.
9496 2001-08-17  Akim Demaille  <akim@epita.fr>
9498         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
9499         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
9501 2001-08-17  Akim Demaille  <akim@epita.fr>
9503         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
9504         `$0.log' as for projects where testsuite is in src, we'd have
9505         testsuite.log created in src.
9507 2001-08-17  Akim Demaille  <akim@epita.fr>
9509         * bin/autom4te.in (&parse_args): Recognize --normalize.
9511 2001-08-17  Akim Demaille  <akim@epita.fr>
9513         Start implementing the AC_CHECK_HEADER transition scheme.
9515         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
9516         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
9517         (AC_CHECK_HEADER): Use them.
9519 2001-08-17  Akim Demaille  <akim@epita.fr>
9521         * doc/autoconf.texi: Work around Texinfo buglets.
9522         (Transformation Rules): One example is enough, users are expected
9523         to have their brains on. And BTW, use DESTDIR.
9524         (dvar): New macro.  Use it.
9526 2001-08-17  Akim Demaille  <akim@epita.fr>
9528         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
9529         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
9530         looking for ChangeLogs.
9532 2001-08-17  Akim Demaille  <akim@epita.fr>
9534         * bin/autom4te.in: --normalize is a new option.
9535         * bin/autoconf.in: Use it.
9537 2001-08-17  Akim Demaille  <akim@epita.fr>
9539         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
9540         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
9542 2001-08-16  Paul Eggert  <eggert@twinsun.com>
9544         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
9545         start, not at end.
9547 2001-08-15  Akim Demaille  <akim@epita.fr>
9549         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
9550         Use it.
9552 2001-08-15  Akim Demaille  <akim@epita.fr>
9554         * doc/autoconf.texi (pr): New index.
9555         (prindex, findex): Use, merge, and output them.
9556         (Environment Variable Index, Output Variable Index)
9557         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
9558         (Autotest Macro Index): Rename as...
9559         (Environment Variables, Output Variables,Preprocessor Symbols)
9560         (Autoconf Macros, M4 Macros, Autotest Macros): these.
9561         * doc/install.texi: Use @command.
9562         (Environment Variables): Rename as...
9563         (Defining Variables): this.
9565 2001-08-15  Akim Demaille  <akim@epita.fr>
9567         * doc/autoconf.texi (Function Portability): sprintf's return
9568         value.
9569         From Kevin Ryde.
9571 2001-08-15  Akim Demaille  <akim@epita.fr>
9573         * Makefile.maint (CVS): New.
9574         (local-check): Run changelog-check. last.
9575         (alpha): Don't depend upon local-check, since...
9576         (cvs-dist): depends upon it.
9578 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
9580         * tests/Makefile.am: Use a clean-local rule to remove
9581         autom4te.cache (it's a directory, not a file.
9582         * Makefile.am: Ditto (but maintainer-clean-local).
9584 2001-08-15  Akim Demaille  <akim@epita.fr>
9586         * bin/autom4te.in (@m4_warning): New.
9587         (&handle_m4): Use it.
9588         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
9589         warnings are issued at each run.
9590         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
9591         is in the src tree.
9593 2001-08-15  Akim Demaille  <akim@epita.fr>
9595         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
9596         don't waste time running `autoupdate --version' works.
9597         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
9599 2001-08-13  Akim Demaille  <akim@epita.fr>
9601         * doc/autoconf.texi (ma): Rename this index as...
9602         (ac): this.
9604 2001-08-13  Akim Demaille  <akim@epita.fr>
9606         * Makefile.am: Remove dead code and dead comments.
9607         (pdf, html): New targets.
9608         * doc/autoconf.texi (Using Autotest): New chapter.
9609         * doc/Makefile.am (pdf): New targets.
9610         (CLEANFILES): Adjust.
9612 2001-08-13  Akim Demaille  <akim@epita.fr>
9614         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
9615         duration of the test suite.
9617 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
9619         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
9620         endianness for comparison instead of relying on AT_CHECK_ENV.
9622 2001-08-11  Paul Eggert  <eggert@twinsun.com>
9624         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
9625         to the INSTALL file.
9627 2001-08-11  Paul Eggert  <eggert@twinsun.com>
9629         * NEWS: The autoconf manual now is distributed under the terms
9630         of the GNU Free Documentation License.
9632         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
9633         Add an appendix "Copying This Manual" for the FDL.
9635         * doc/fdl.texi: New file, from
9636         <http://www.gnu.org/licenses/fdl.texi>.
9638         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
9640 2001-08-10  Paul Eggert  <eggert@twinsun.com>
9642         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
9643         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
9644         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
9645         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
9646         m4/sanity.m4, tests/README, tests/aclocal.m4,
9647         tests/atspecific.m4, tests/base.at, tests/compile.at,
9648         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
9649         tests/semantics.at, tests/suite.at, tests/tools.at,
9650         tests/torture.at: Add copyright notice.
9652         * tests/mktests.sh: Update year in copyright notice.
9654 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
9656         * tests/semantics.at (AC_C_BIGENDIAN): New test.
9658 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
9660         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
9661         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
9662         * doc/autoconf.texi (C Compiler Characteristics): Update
9663         documentation for AC_C_BIGENDIAN.
9665 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
9667         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
9668         magic values from an object file when cross-compiling.
9669         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
9671 2001-08-10  Akim Demaille  <akim@epita.fr>
9673         * bin/autom4te.in (&handle_output): Don't use `grep' with side
9674         effects.
9675         Suggested by Russ Allbery.
9677 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
9679         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
9680         current $prefix to the sub-configures.
9682 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
9684         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
9685         extension (needed on BeOS).  Reported by Guido van Rossum.
9687 2001-08-09  Akim Demaille  <akim@epita.fr>
9689         * bin/autom4te.in ($icache): Load it only if older than autom4te.
9691 2001-08-07  Akim Demaille  <akim@epita.fr>
9693         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
9694         removed.
9695         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
9696         No need to remove the files before and after the each test, before
9697         each test and at the end of the suite is enough.
9698         Display only the children `times', not the shell's.
9699         If the test failed or was skipped, at-times is not available.
9701 2001-08-07  Akim Demaille  <akim@epita.fr>
9703         Always produce testsuite.log, including when there are no
9704         failures.  This helps getting information on skipped tests, and
9705         duration of the tests.  Err, implement the latter btw.
9707         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
9708         Dump information on the first run of each test.
9709         (AT_CLEANUP): Create `at-times' containing the duration of the
9710         test group.
9712 2001-08-07  Akim Demaille  <akim@epita.fr>
9714         The use of `dumpstat' revealed that `len' was used although it
9715         should not.  m4_text_wrap was using it, but in the Autoconf world
9716         where it is legal.  Hence (i) test M4sh in its own world, not
9717         Autoconf's, and (ii), ahem, fix the bug :)
9719         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
9720         does not like `' instead of [].
9721         (AT_INIT): Forbid `^_?AT_'.
9722         And don't output such tokens.
9723         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
9724         `script.as', and `autom4te.cache'.
9725         Remove `empty' and `macro' which are no longer used.
9726         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
9727         * tests/m4sugar.at: Use it.
9728         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
9730 2001-08-07  Akim Demaille  <akim@epita.fr>
9732         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
9734 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
9736         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
9738 2001-08-04  Akim Demaille  <akim@epita.fr>
9740         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
9741         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
9742         AC_TRY_LINK.
9743         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
9744         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
9745         (AC_F77_MAIN): Likewise.
9747 2001-08-04  Akim Demaille  <akim@epita.fr>
9749         Don't rely on M4sugar outputting the patterns in files, since we
9750         might process the output _without_ running m4, hence without these
9751         files.
9753         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
9754         * bin/autom4te.in (@Request::includes): Remove, unused.
9755         (@Request::source): Rename as...
9756         (@Request::input): this.
9757         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
9758         (&handle_output): Fetch the patterns from the traces.
9759         `$forbidden' and `$allowed' are constant: use m//o.
9760         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
9761         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
9763 2001-08-04  Akim Demaille  <akim@epita.fr>
9765         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
9766         autoconf', i.e., in addition to caching traces, cache the output.
9768         * bin/autom4te.in (Request::cache): Rename as...
9769         (Request::id): this.
9770         ($cache, $icache, $tcache, $ocache): New.
9771         (&handle_m4): Save M4 output in the cache instead of $tmp.
9772         (&handle_output): Adjust.
9773         (&up_to_date_p): Check that the output cache is up to date too.
9774         (top level): Run `&handle_m4' iff force or the cache is invalid.
9775         Run `&handle_output' if the output cache is more recent.
9777 2001-08-04  Akim Demaille  <akim@epita.fr>
9779         * bin/autom4te.in ($force): New.
9780         (&parse_args, &print_usage): -f, --force is a new option.
9781         (&handle_output): CPP directives might have spaces after `#'.
9782         (&parse_args): The first file only can be frozen.
9784 2001-08-04  Akim Demaille  <akim@epita.fr>
9786         Don't let autom4te compute the `include' traces several times:
9787         first check that the trace cache file is up to date, and then
9788         compare its timestamp with that of the output.
9790         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
9791         the preamble.  Don't require 5.005 as Autom4te::General does it,
9792         and better yet (use `use', not `require'!).
9793         * lib/Autom4te/Struct.pm: Rename the last occurrences of
9794         Class::Struct as Autom4te::Struct.
9795         * lib/Autom4te/General.pm (File::stat): Use it.
9796         (&mtime): New, export it.
9797         * bin/autom4te.in: Use it.
9798         Declare `$req' is invalid if it is outdated.
9799         Don't declare it valid before saving it if something went wrong.
9801 2001-08-04  Akim Demaille  <akim@epita.fr>
9803         Autom4te shall not encode Autoconf data, and preselecting traces
9804         must be proposed to the users.
9806         * bin/autom4te.in (@required_trace): Remove.
9807         (@preselect): New.
9808         (&parse_args, &print_usage): -p, --preselect is a new option.
9809         (&up_to_date_p): Adjust.
9810         * bin/autoconf.in: Preselect some Autoconf macros.
9812 2001-08-04  Akim Demaille  <akim@epita.fr>
9814         * tests/tools.at (autoconf --trace: user macros): Check traces on
9815         macros invoked without arguments, and macros invoked with multiple
9816         lines arguments.
9818 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
9820         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
9821         arguments.
9823 2001-08-03  Akim Demaille  <akim@epita.fr>
9825         * bin/autoconf.in ($@): Work around the usual sh bug.
9826         From Nicolas Joly.
9828 2001-08-03  Akim Demaille  <akim@epita.fr>
9830         Clean up the handling of the M4 builtins tracing exception.
9832         * bin/autom4te.in (Request::request): Don't complete M4 builtins
9833         trace requests.
9834         (@m4_builtins): Rename as...
9835         (@m4_builtin): this.
9836         (%m4_builtin_alternate_name): New.
9837         (&parse_args): Complete the trace requests with alternate names.
9838         (&handle_traces): Hence no longer do it here.
9839         (&trace_requests): Remove, unused.
9841 2001-08-03  Akim Demaille  <akim@epita.fr>
9843         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
9844         m4_if, and m4_wrap.
9846 2001-08-03  Akim Demaille  <akim@epita.fr>
9848         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
9849         (m4_divert_pop): Dump the whole diversion stack when a diversion
9850         mismatch happens.
9851         * bin/autom4te.in (&handle_output): Remember of the first
9852         occurrence of a possibly undefined macro, not the last.
9853         Complain about the possibly undefined macros in the same order as
9854         the appear in the output.
9855         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
9856         * tests/tools.at (autoconf: forbidden tokens, basic)
9857         (autoconf: forbidden tokens, exceptions): No longer sort
9858         autoconf's stderr, as it is now deterministic.
9859         Check that `dnl' is caught.
9861 2001-08-01  Akim Demaille  <akim@epita.fr>
9863         * configure.ac: Bump to 2.52c.
9865 2001-08-01  Akim Demaille  <akim@epita.fr>
9867         Version 2.52b.
9869         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
9871 2001-08-01  Akim Demaille  <akim@epita.fr>
9873         Version 2.52a.
9875 2001-08-01  Akim Demaille  <akim@epita.fr>
9877         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
9878         `die'.
9879         (&END): New.
9880         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
9881         `END', as `Autom4te::General::END' will be triggered.
9882         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
9883         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
9884         system to run `mv', `rm', and `cmp'.
9886 2001-08-01  Akim Demaille  <akim@epita.fr>
9888         * lib/Autom4te/General.pm (&unique): New.
9889         * bin/autoscan.in (&output): Use it to issue trace requests once.
9891 2001-08-01  Akim Demaille  <akim@epita.fr>
9893         * lib/Autom4te/General.pm: New.
9894         * bin/autom4te.in (Autom4te::General): Use it.
9895         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
9896         (&find_configure_ac, &find_slave): Remove.
9897         * bin/autoscan.in: Likewise.
9898         * bin/autoupdate.in: Likewise.
9900 2001-08-01  Akim Demaille  <akim@epita.fr>
9902         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
9903         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
9904         * bin: here, new directory.
9905         * lib/Autoconf: Rename as...
9906         * lib/Autom4te: this, to please case insensitive junkie OSes.
9908 2001-08-01  Akim Demaille  <akim@epita.fr>
9910         * autom4te.in ($m4): Handle the --nesting-limit.
9911         * autoconf.in (M4): Remove.
9913 2001-08-01  Akim Demaille  <akim@epita.fr>
9915         * autoconf.in ($AWK): Remove, no longer used.
9916         * test/tools.at: Use AT_CHECK_AUTOCONF.
9917         (AWK portability): Remove, for autoconf no longer uses AWK.
9918         (Syntax of the Perl scripts): New.
9919         * configure.ac: autoconf no longer needs an AWK with a good
9920         regexp engine.
9921         Use a static test on AC_PACKAGE_VERSION.
9922         * autom4te.in (&up_to_date_p): Output depends on the arguments.
9923         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
9924         * tests/atconfig.in (PERL): New.
9926 2001-08-01  Akim Demaille  <akim@epita.fr>
9928         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
9929         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
9930         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
9931         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
9932         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
9933         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
9934         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
9935         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
9936         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
9937         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
9938         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
9939         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
9940         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
9941         * lib/autoconf/c.m4: here, new file.
9943         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
9944         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
9945         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
9946         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
9947         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
9948         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
9949         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
9950         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
9951         (AC_F77_FUNC): Move to...
9952         * lib/autoconf/fortran.m4: here, new file.
9954 2001-08-01  Akim Demaille  <akim@epita.fr>
9956         * acfunctions.m4: Rename as...
9957         * lib/autoconf/functions.m4: this.
9958         * acgeneral.m4: Rename as...
9959         * lib/autoconf/general.m4: this.
9960         * acheaders.m4: Rename as...
9961         * lib/autoconf/headers.m4: this.
9962         * aclang.m4: Rename as...
9963         * lib/autoconf/lang.m4: this.
9964         * acoldnames.m4: Rename as...
9965         * lib/autoconf/oldnames.m4: this.
9966         * acspecific.m4: Rename as...
9967         * lib/autoconf/specific.m4: this.
9968         * actypes.m4: Rename as...
9969         * lib/autoconf/types.m4: this.
9970         * autoconf.m4: Rename as...
9971         * lib/autoconf/autoconf.m4: this.
9973         * m4sugar.m4: Rename as...
9974         * lib/m4sugar/m4sugar.m4: this.
9975         * m4sh.m4: Rename as...
9976         * lib/m4sugar/m4sh.m4: this.
9978         * tests/atgeneral.m4: Rename as...
9979         * lib/autotest/general.m4: this.
9981         * acfunctions: Rename as...
9982         * lib/autoscan/functions: this.
9983         * acheaders: Rename as...
9984         * lib/autoscan/headers: this.
9985         * acidentifiers: Rename as...
9986         * lib/autoscan/identifiers: this.
9987         * aclibraries: Rename as...
9988         * lib/autoscan/libraries: this.
9989         * acmakevars: Rename as...
9990         * lib/autoscan/makevars: this.
9991         * acprograms: Rename as...
9992         * lib/autoscan/programs: this.
9994 2001-08-01  Akim Demaille  <akim@epita.fr>
9996         * doc/autoconf.texi: Moving/deleting open files is not portable.
9997         Portability issues for `.' (source), and more information about sed.
9999 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
10001         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
10002         which has a special meaning and is not a reference to libibmil.a.
10003         Reported by Matteo Frigo.
10005 2001-07-25  Pavel Roskin  <proski@gnu.org>
10007         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
10008         output.
10010 2001-07-25  Akim Demaille  <akim@epita.fr>
10012         * autoconf.in: Try to define the variables before using them.
10013         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
10014         instead of `$perllibdir'.
10015         * tests/atconfig.in ($autom4te_perllibdir): Export it.
10017 2001-07-25  Akim Demaille  <akim@epita.fr>
10019         * autoconf.in (ac_LF_and_DOT): Remove, unused.
10021 2001-07-24  Akim Demaille  <akim@epita.fr>
10023         Let autoconf use autom4te for traces.
10025         * autoconf.in ($task, task trace): Remove, merely pass --trace to
10026         autom4te.
10027         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
10028         (Because I found no way for autom4te to accept `-').
10029         * autom4te.in (&Request::request): Beware of M4 builtins.
10030         (END): Don't try to remove the content of an empty dir.
10031         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
10032         (&handle_output): Set a default value to `$forbidden'.
10033         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
10034         ($autoconf): Pass --debug and --verbose.
10035         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
10036         cache.
10038 2001-07-24  Akim Demaille  <akim@epita.fr>
10040         Let autoconf use autom4te to create configure.
10042         * autoconf.in ($automate): New var.
10043         (task script): Use autom4te.
10044         * autom4te.in (File::Spec): Use it.
10045         (&find_file): New.
10046         (&parse_args): --warning is -W, not -w.
10047         Find the top level files.
10048         (&handle_m4): Pass the warnings flags.
10049         Don't report verbosely m4's failures, unless requested.
10050         (&handle_output): Don't complain for forbidden tokens in comments.
10051         Be sure to report all the forbidden tokens within a single line.
10052         (&trace_format_to_m4): Preserve `$_'.
10053         (&handle_traces): Sort the output macros.
10054         (&up_to_date_p): Find the files before trying to get its time stamp.
10056 2001-07-24  Akim Demaille  <akim@epita.fr>
10058         * Makefile.am: Ship, build and install Autom4te.
10059         (SUBDIRS): Add lib.
10060         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
10061         * configure.in: Require Perl.
10062         * man/autom4te.in: New.
10064 2001-07-19  Paul Eggert  <eggert@twinsun.com>
10066         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
10067         example, rather than (exit 1); exit (which isn't portable).
10069 2001-07-18  Akim Demaille  <akim@epita.fr>
10071         Version 2.52.
10073 2001-07-18  Akim Demaille  <akim@epita.fr>
10075         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
10076         was run, while they are needed also when it is expanded.
10077         Reported by Nicolas Joly.
10079         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
10080         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
10081         AC_F77_DUMMY_MAIN being expanded.
10083 2001-07-18  Akim Demaille  <akim@epita.fr>
10085         * configure.in: Bump to 2.51a.
10087 2001-07-17  Akim Demaille  <akim@epita.fr>
10089         Version 2.51.
10091 2001-07-17  Akim Demaille  <akim@epita.fr>
10093         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
10094         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
10096 2001-07-17  Akim Demaille  <akim@epita.fr>
10098         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
10099         used.  Well, then use the prototypes when you can, and runtime as
10100         a last resort.
10101         Reported by Artur Frysiak
10103         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
10104         (AC_FUNC_GETPGRP): Use it.
10105         First try to compile with 0-ary or 1-ary calls.
10107 2001-07-17  Akim Demaille  <akim@epita.fr>
10109         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
10110         replacement type.
10111         From Paul Eggert.
10113 2001-07-17  Akim Demaille  <akim@epita.fr>
10115         * Makefile.maint: Sync. with cppi 1.10.
10117 2001-07-17  Akim Demaille  <akim@epita.fr>
10119         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
10120         AC_F77_DUMMY_MAIN has been run.
10121         From Pavel Roskin and Steven G. Johnson.
10123 2001-07-17  Akim Demaille  <akim@epita.fr>
10125         * configure.in: Rename as...
10126         * configure.ac: this.
10128 2001-07-17  Akim Demaille  <akim@epita.fr>
10130         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
10131         rules.
10132         From Marc Espie.
10133         * Makefile.maint (release-archive-dir): Rename as...
10134         (release_archive_dir): this, so that it can be specialized in
10135         Makefile.
10137 2001-07-14  Akim Demaille  <akim@epita.fr>
10139         * configure.in: Bump to 2.50d.
10141 2001-07-14  Akim Demaille  <akim@epita.fr>
10143         Version 2.50c.
10144         * Makefile.maint (alpha): Typo.
10146 2001-07-14  Akim Demaille  <akim@epita.fr>
10148         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
10150 2001-07-14  Akim Demaille  <akim@epita.fr>
10152         * config/config.guess, config/config.sub, config/texinfo.tex
10153         * doc/standards.texi, doc/make-stds.texi: Update.
10155 2001-07-14  Akim Demaille  <akim@epita.fr>
10157         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
10159 2001-07-14  Akim Demaille  <akim@epita.fr>
10161         * Makefile.maint (maintainer-check): Rename as...
10162         (maintainer-distcheck): this.
10163         (changelog-check, static-check): New.
10164         Use them.
10166 2001-07-14  Kevin Ryde  <user42@zip.com.au>
10168         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
10169         for CXX is g++, not gcc.
10171 2001-07-14  Akim Demaille  <akim@epita.fr>
10173         * doc/autoconf.texi (Files): New subsection.
10175 2001-07-14  Akim Demaille  <akim@epita.fr>
10177         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
10178         of...
10179         (Generic Compiler Characteristics): this.
10180         (C++ Compiler): New subsection.
10182 2001-07-14  Akim Demaille  <akim@epita.fr>
10184         * autoscan.in: Use IO::File.
10185         Adjust all the routines to use it.
10186         ($log): New file (autoscan.log).
10187         (output): Dump detailed logs into $log, and a shortened version to
10188         stderr.
10189         (&scan_makefile): Refine the regexp catching tokens in the code.
10190         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
10191         and the `configure.ac' checking feature.
10193 2001-07-12  Akim Demaille  <akim@epita.fr>
10195         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
10196         Reported by Michael Elizabeth Chastain.
10198         * autoconf.in: Refuse such AWK.
10199         * configure.in: Likewise.
10200         * Makefile.am (acversion.m4): Do not use move-if-change this file
10201         has dependencies.
10202         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
10204 2001-07-10  Jens Petersen  <petersen@redhat.com>
10206         * autoscan.in (&scan_makefile): Improve programs regexp to parse
10207         things like "g++", "file.c" and "some-conf" as tokens.
10208         (&scan_file): Match C++ files extensions.
10209         If the filename extension is C++ then ask for c++.
10211 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
10213         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
10214         AC_TRY_LINK_FUNC, to check whether defining a dummy
10215         main-like routine is needed for linking with F77 libs.
10217 2001-07-05  Pavel Roskin  <proski@gnu.org>
10219         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
10220         after using break.
10221         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
10222         linking.
10224 2001-07-05  Akim Demaille  <akim@epita.fr>
10226         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
10227         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
10228         Makes' lives.
10229         Reported by Nicolas Joly.
10231 2001-07-04  Akim Demaille  <akim@epita.fr>
10233         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
10234         up.
10235         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
10236         warnings from compilers.
10237         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
10238         for all the compilers, not only GNU.  Hence move from here...
10239         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
10241 2001-07-04  Akim Demaille  <akim@epita.fr>
10243         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
10244         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
10245         AC_COMPILE_IFELSE.
10247 2001-07-04  Akim Demaille  <akim@epita.fr>
10249         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
10250         the ``strings.h'' change claimed below.
10252 2001-07-04  Akim Demaille  <akim@epita.fr>
10254         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
10256 2001-07-04  Akim Demaille  <akim@epita.fr>
10258         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
10259         strings.h if usable with string.h.
10260         Suggested by Paul Eggert.
10262 2001-07-04  Akim Demaille  <akim@epita.fr>
10264         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
10265         From Jens Petersen.
10267 2001-07-03  Akim Demaille  <akim@epita.fr>
10269         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
10270         etc. in the log.
10272 2001-07-03  Akim Demaille  <akim@epita.fr>
10274         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
10275         compiler, not the preprocessor.
10276         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
10277         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
10278         the right thing.
10279         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
10280         earlier if there are.
10282 2001-07-03  Akim Demaille  <akim@epita.fr>
10284         * autoscan.in ($initfile): Remove.
10285         (&find_file): Rename as...
10286         (&scan_file): this.
10287         Immediately scan the current file, instead of gathering them, and
10288         later having them handled by &scan_files.
10289         (&scan_files): Merely invoke Find::File.
10290         Adjust.
10292 2001-07-02  Akim Demaille  <akim@epita.fr>
10294         * autoscan.in: Formatting changes, matching the invocation order.
10295         (File::Find): Use it instead of Perl 4's `find.pl'.
10296         (&wanted): Rename as...
10297         (&find_file): this.
10299 2001-07-01  Pavel Roskin  <proski@gnu.org>
10301         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
10302         break in the argument to AC_TRY_LINK_FUNC.
10303         (AC_F77_MAIN): Remove conftest* after using break in the
10304         argument to AC_TRY_LINK.
10306 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
10308         Add alternate 'main' routine detection for linking C/C++ with Fortran,
10309         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
10311         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
10312         dummy alternate main is required even if the user provides her own
10313         'main'.
10314         (AC_F77_MAIN): New macro to detect whether it is possible to
10315         provide an alternate 'main' function name, using the 'main' from
10316         the Fortran libraries.
10317         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
10318         cross-language link tests can be performed successfully.
10319         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
10320         after $LIBS, for consistency; this should be the general rule since
10321         the user may want to link to Fortran libraries that require $FLIBS.
10322         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
10324 2001-06-29  Pavel Roskin  <proski@gnu.org>
10326         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
10327         at-stdout and at-stderr instead of removing the newline
10328         from the echo output, which is not guaranteed to work.
10330 2001-06-28  Jens Petersen  <petersen@redhat.com>
10332         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
10333         confdefs.h when non-zero.
10335 2001-06-28  Akim Demaille  <akim@epita.fr>
10337         * configure.in: Bump to 2.50c.
10339 2001-06-26  Akim Demaille  <akim@epita.fr>
10341         Version 2.50b.
10343 2001-06-26  Akim Demaille  <akim@epita.fr>
10345         Version 2.50a.
10347 2001-06-25  Pavel Roskin  <proski@gnu.org>
10349         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
10350         argument, AUTOCONF-FLAGS.
10351         * tests/mktests.sh (update_exclude_list): Add
10352         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
10353         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
10354         AC_FUNC_WAIT3 with "-W no-obsolete".
10356 2001-06-25  Akim Demaille  <akim@epita.fr>
10358         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
10360 2001-06-25  Akim Demaille  <akim@epita.fr>
10362         * autoscan.in (%macro): Now maps from word to list of macros.
10363         (&init_tables): Die when a word which is already handled by
10364         explicit macros is mapped to the default macro.
10365         (&print_unique): Remove, inlined in...
10366         (&output_kind): here.
10367         (File::Basename): Use it.
10368         (&output): Sort the CONFIG_FILES.
10369         * acheaders: Normalize.
10370         * acfunctions: Likewise.
10372 2001-06-25  Akim Demaille  <akim@epita.fr>
10374         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
10375         characteristics in the logs.
10376         Suggested by Mo DeJong.
10378 2001-06-24  Akim Demaille  <akim@epita.fr>
10380         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
10381         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
10382         * doc/autoconf.texi (Autoconf 2.13): New section.
10384 2001-06-24  Akim Demaille  <akim@epita.fr>
10386         * autoconf.in (Task traces): Separate the error messages from the
10387         traces to improve robustness.
10389 2001-06-23  Akim Demaille  <akim@epita.fr>
10391         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
10392         three as failures are unlikely, and speed matters.
10394 2001-06-23  Akim Demaille  <akim@epita.fr>
10396         * doc/autoconf.texi (Redefined M4 Macros): New.
10398 2001-06-23  Akim Demaille  <akim@epita.fr>
10400         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
10401         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
10402         5.3.
10404 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
10406         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
10407         config.status targets to after the evaluation of the INIT-CMDS.
10408         Double quote config.status targets (used to be single quoted).
10410 2001-06-23  Akim Demaille  <akim@epita.fr>
10412         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
10413         Check the content of the created file.
10414         Check the ./config.status command line invocation.
10416 2001-06-23  Akim Demaille  <akim@epita.fr>
10418         * tests/foreign.at (Libtool): Reject prehistoric versions.
10420 2001-06-23  Akim Demaille  <akim@epita.fr>
10422         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
10423         preexisting files matching a.*.
10425 2001-06-23  Akim Demaille  <akim@epita.fr>
10427         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
10428         stderr.
10429         * doc/autoconf.texi (AC_ARG_VAR): Update.
10431 2001-06-21  Akim Demaille  <akim@epita.fr>
10433         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
10434         precious variables have changed.
10435         * tests/torture.at (AC_ARG_VAR): Adjust.
10437 2001-06-21  Akim Demaille  <akim@epita.fr>
10439         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
10440         but some sed choke on multiple `;', and other tools (e.g.,
10441         Automake), include the separator themselves.
10443         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
10445 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
10447         * doc/autoconf.texi (Functions Portability): Rename as...
10448         (Function Portability): this.
10449         (Function Portability): Document potential problems with unlink().
10451 2001-06-19  Paul Eggert  <eggert@twinsun.com>
10453         * NEWS, doc/autoconf.texi: Document quadrigraphs.
10455 2001-06-18  Akim Demaille  <akim@epita.fr>
10457         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
10459 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
10461         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
10462         (_AC_FUNC_VFORK): this.
10463         Remove AC_DEFINEs and don't guess cross-compilation values.
10464         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
10465         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
10466         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
10467         vfork doesn't work.
10468         Guess values if cross-compiling, but warn.
10469         * acfunctions: Add AC_FUNC_FORK.
10470         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
10471         and vfork appropriately.
10473 2001-06-18  Akim Demaille  <akim@epita.fr>
10475         * doc/autoconf.texi (Functions Portability): New section.
10477 2001-06-18  Akim Demaille  <akim@epita.fr>
10479         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
10480         in $M4.
10481         Suggested by Andreas Schwab.
10483 2001-06-18  Akim Demaille  <akim@epita.fr>
10485         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
10486         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
10487         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
10488         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
10489         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
10490         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
10491         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
10492         the converse).
10494 2001-06-18  Akim Demaille  <akim@epita.fr>
10496         * doc/autoconf.texi (ms): New index.
10497         (Macro Index): Rename as...
10498         (Autoconf Macro Index): this.
10499         (M4 Macro Index): New appendix.
10500         (Programming in M4): New chapter.
10501         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
10502         (Quoting): Rename as...
10503         (M$ Quotation): this.
10504         Be part of `Programming in M4).
10506 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
10508         * tests/torture.at (AC_ARG_VAR): Set variables and export them
10509         in separate statements for compatibility with Tru64 v5.1.
10511 2001-06-17  Akim Demaille  <akim@epita.fr>
10513         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
10514         current values of the precious variables, not the previously
10515         cached values.
10516         Pass precious variables which are set to config.status.
10517         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
10518         * tests/torture.at (AC_ARG_VAR): New.
10520 2001-06-15  Paul Eggert  <eggert@twinsun.com>
10522         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
10523         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
10524         and explain why and how to replace them.
10525         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
10526         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10528 2001-06-15  Akim Demaille  <akim@epita.fr>
10530         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
10531         Reported by Bruno Haible.
10533         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
10534          (_AC_ARG_VAR_PRECIOUS): to here.
10536 2001-06-15  Pavel Roskin  <proski@gnu.org>
10538         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
10539         an unused pointer use cast to this type and `if' statement to
10540         avoid warnings from the compiler.
10541         (AC_HEADER_TIME): Likewise.
10542         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
10543         in `if' statement to avoid warnings from the compiler. Declare
10544         ac_aggr static to avoid the need to initialize it.
10546 2001-06-14  Akim Demaille  <akim@epita.fr>
10548         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
10549         Macros'.
10551 2001-06-13  Akim Demaille  <akim@epita.fr>
10553         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
10554         Suggested by Alexander Mai.
10556 2001-06-13  Akim Demaille  <akim@epita.fr>
10558         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
10559         sys/types.h and sys/stat.h, and check for them.
10561 2001-06-13  Akim Demaille  <akim@epita.fr>
10563         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
10564         INCLUDES.
10566 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10568         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
10569         succeeds and only try adding libdnet upon a failure.
10571 2001-06-12  Akim Demaille  <akim@epita.fr>
10573         * autoscan.in (&output_kind): Output the comment only if it exists.
10574         (%kind_comment): Add entry for `programs'.
10575         (&output_programs): Use &output_kind.
10576         (&output_functions, &output_identifiers, &output_headers)
10577         (&output_programs): Inline, and remove.
10579 2001-06-12  Akim Demaille  <akim@epita.fr>
10581         * autoscan.in (%kind_comment): New.
10582         (output_kind): New.
10583         (output_functions, output_identifiers, output_headers): Use it.
10585 2001-06-12  Akim Demaille  <akim@epita.fr>
10587         * autoscan.in (&print_unique): Take `$kind' and `$word' as
10588         arguments, to factor indirections into `%macro' and `%used'.
10589         (%generic_macro): Fix a typo.
10591 2001-06-12  Akim Demaille  <akim@epita.fr>
10593         * aclibraries: New.
10594         * autoscan.in (@kinds): Add `libraries'.
10595         Use `@kinds' instead of hard coded lists.
10596         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
10597         Remove, replaced by...
10598         (%used): this.
10600 2001-06-12  Akim Demaille  <akim@epita.fr>
10602         * autoscan.in (%functions_macros %headers_macros)
10603         (%identifiers_macros %programs_macros %makevars_macros): Remove,
10604         replaced by...
10605         (%macro): New.
10607 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
10609         * aclang.m4 (AC_NO_EXECUTABLES): Override
10610         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
10612 2001-06-11  Akim Demaille  <akim@epita.fr>
10614         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
10615         trailing new line.
10616         Reported by Andreas Schwab.
10618 2001-06-11  Akim Demaille  <akim@epita.fr>
10620         * Makefile.am, Makefile.maint: Typos.
10622 2001-06-09  Akim Demaille  <akim@epita.fr>
10624         * doc/autoconf.texi (Here-Documents): New section, gathering
10625         documentation about here-documents.
10626         Use `href', not `uref', and other changes.
10628 2001-06-09  Akim Demaille  <akim@epita.fr>
10630         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
10631         chapter.
10633 2001-06-09  Akim Demaille  <akim@epita.fr>
10635         * doc/autoconf.texi (Limitations of Builtins): Complete the
10636         description of the here-docs penalties with Alexandre Oliva's
10637         explanations.
10639 2001-06-01  Paul Eggert  <eggert@twinsun.com>
10641         * doc/autoconf.texi: Talk about here documents and speedups.
10642         Do not use "echo" on arbitrary strings.
10643         Spell "here-documents" consistently with the standard.
10645 2001-06-09  Akim Demaille  <akim@epita.fr>
10647         * doc/autoconf.texi (Concept Index): Introduce it.
10648         Regenerate the menus.
10650 2001-06-09  Akim Demaille  <akim@epita.fr>
10652         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
10653         * config/prev-version.txt: New.
10654         * config/move-if-change: New, for GNU libc.
10656 2001-06-06  Pavel Roskin  <proski@gnu.org>
10658         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
10660 2001-06-06  Akim Demaille  <akim@epita.fr>
10662         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
10663         properly when $1 is not a literal.
10664         Fixes PR Autoconf/187, reported by Bram Moolenaar.
10666 2001-06-06  Akim Demaille  <akim@epita.fr>
10668         Invoking AC_COPYRIGHT before AC_INIT fails.
10670         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
10671         * acgeneral.m4 (_m4_divert(VERSION_FSF))
10672         (_m4_divert(VERSION_USER)): New.
10673         (AC_COPYRIGHT): $2 is the diversion to use.
10674         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
10675         (AC_INIT): Remove dead comments as now it's commutative.
10677 2001-06-06  Akim Demaille  <akim@epita.fr>
10679         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
10680         PR autoconf/187.
10682 2001-06-05  Akim Demaille  <akim@epita.fr>
10684         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
10685         can be empty.
10686         `*dir' variables cannot be NONE.
10687         Reported by Mark Kettenis.
10689 2001-06-05  Paul Eggert  <eggert@twinsun.com>
10691         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
10693 2001-06-04  Akim Demaille  <akim@epita.fr>
10695         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
10696         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
10697         (AC_TR_SH): Move as...
10698         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
10699         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
10700         (AS_TR_SH): these.
10701         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
10702         (_AS_TR_SH_PREPARE): New.
10703         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
10704         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
10706 2001-06-02  Akim Demaille  <akim@epita.fr>
10708         * Makefile.am (.m4.m4f): Pass the options first.
10709         Fixes PR autoconf/182.
10711 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
10713         GNU getopt, when POSIXLY_CORRECT does not permute options and
10714         arguments.  So pass the options first.
10715         Fixes PR autoconf/184.
10717         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
10718         (run_m4): Remove files.
10719         (run_m4f): Remove.
10720         Update remainder of script to use them.
10721         (for warning in): Do not use a literal comma as it will not be
10722         split by IFS.
10724 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
10726         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
10727         Fortran compilers to check.
10728         (_AC_PROG_F77_V): Add '-###' as a possible option to print
10729         information on library and object files.
10730         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
10731         to check.
10733 2001-06-02  Akim Demaille  <akim@epita.fr>
10735         * autom4te.in (Request::@request): Declare with `vars', not `my',
10736         as it prevents updates via `do FILENAME'.
10738 2001-06-02  Akim Demaille  <akim@epita.fr>
10740         * configure.in (standards_texi): Remove, dead code.
10742 2001-06-02  Akim Demaille  <akim@epita.fr>
10744         * autom4te.in: New.
10746 2001-06-02  Pavel Roskin  <proski@gnu.org>
10748         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
10749         for signals other than 0 - exit with code 1.
10750         * m4sh.m4 (AS_TMPDIR): Likewise.
10751         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
10752         * autoheader.in: Likewise.
10753         * autoreconf.in: Likewise.
10754         * tests/torture.at (Signal handling): New test for the above.
10756 2001-06-01  Akim Demaille  <akim@epita.fr>
10758         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
10759         message.
10761 2001-05-31  Akim Demaille  <akim@epita.fr>
10763         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
10764         Add copyright and comments.
10765         * acheaders: Add stdint.h.
10766         Suggested by Paul Eggert.
10768 2001-05-31  Akim Demaille  <akim@epita.fr>
10770         * atgeneral.m4 (AT_INIT): Use $SHELL.
10771         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
10773 2001-05-31  Akim Demaille  <akim@epita.fr>
10775         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
10776         stdint.h.
10777         From Paul Eggert and Lars Hecking.
10779 2001-05-31  Akim Demaille  <akim@epita.fr>
10781         * tests/base.at: Adjust line numbers in error messages.
10783 2001-05-31  Akim Demaille  <akim@epita.fr>
10785         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
10786         to emit the bangshe line.
10787         Reported by David Carter.
10789 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
10791         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
10792         Fortran (95) compilers to check.
10794 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
10796         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
10797         Macro Archive URL.
10799 2001-05-23  Pavel Roskin  <proski@gnu.org>
10801         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
10802         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
10803         (AC_PROG_CXXCPP): Likewise.
10805 2001-05-22  Akim Demaille  <akim@epita.fr>
10807         * config: New directory.
10808         * configure.in: AC_CONFIG_AUX_DIR it.
10809         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
10811 2001-05-22  Akim Demaille  <akim@epita.fr>
10813         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
10814         * autoupdate.in: Specify the Emacs mode.
10815         * acversion.m4.in: Rename as...
10816         * acversion.m4: this.
10817         * tests/Makefile.am (CLEANFILES): More garbage.
10819 2001-05-22  Akim Demaille  <akim@epita.fr>
10821         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
10822         Rename as...
10823         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
10824         these.
10826 2001-05-21  Akim Demaille  <akim@epita.fr>
10828         * configure.in: Bump to 2.50a.
10830 -----
10832 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10834 This file is part of GNU Autoconf.
10836 GNU Autoconf is free software; you can redistribute it and/or modify
10837 it under the terms of the GNU General Public License as published by
10838 the Free Software Foundation; either version 2, or (at your option)
10839 any later version.
10841 GNU Autoconf is distributed in the hope that it will be useful,
10842 but WITHOUT ANY WARRANTY; without even the implied warranty of
10843 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10844 GNU General Public License for more details.
10846 You should have received a copy of the GNU General Public License
10847 along with autoconf; see the file COPYING.  If not, write to
10848 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
10849 Boston, MA 02110-1301, USA.