* doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
[autoconf.git] / ChangeLog
blob8fa10243e1820bc24144304e88966ee7751096d8
1 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
4         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
5         Don't use the term "thread-safe" to talk about mkdir race
6         conditions, since the problem is more a process than a thread
7         issue.  Problem reported by Stepan Kasal in:
8         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
9         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
10         the test for 'install' more closely.  Look at MKDIR_P first.
11         Look in the PATH, and at /opt/sfw/bin.
12         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
13         Don't bother to try mkdir -p, since we already check mkdir --version;
14         just look at the version number.  (There's no easy way to check
15         for race-free implementations.)
16         * tests/tools.at (autoconf: subdirectories): Adjust to above
17         changes, since MKDIR_P now might end in "/mkdir -p".
19         * doc/autoconf.texi (autoheader Invocation): Mention that the
20         first arg of AC_DEFINE_UNQUOTED must not be a literal.
21         Problem reported by Ben Pfaff in
22         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
24         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
25         * doc/autoconf.texi (Special Chars in Variables): New section.
26         (Preset Output Variables): Warn about special chars in CPPFLAGS.
27         (Installation Directory Variables): Quote $(datadir) better.
28         (Limitations of Builtins): Describe some of eval's trickiness.
30         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
31         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
32         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
33         in front of every arg, not just trailing args.  Quote apostrophes.
34         (_AC_EVAL_ECHO): New macro.
35         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
36         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
37         removed.
38         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
39         exposed by quoting of eval argument.  Put the command on line line
40         so it logs better.
41         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
42         (_AC_PATH_X, AC_PATH_X): Quote more safely.
43         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
44         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
45         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
46         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
47         Use eval more safely.
48         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
49         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
50         to be replaced.
51         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
52         lines, exposed by quoting of eval argument.
54 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
55         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
58         initialization of `ac_cv_exeext', do not override it if it was
59         already set, unless it was set to `no', for compatibility with
60         Autoconf-2.13, and comment this.
61         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
62         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
63         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
64         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
65         Document that this test may be overridden by setting
66         `ac_cv_exeext'.
68 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70         Revert these two patches:
72         2006-04-06  Eric Blake  <ebb9@byu.net>
73         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
74         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
75         2006-04-01.
77         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
78         Clean up _AC_COMPILER_EXEEXT* macros.
79         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
80           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
81           ac_file to the name of the default output file and call
82           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
83           initial `rm' of the candidate files...
84         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
85           the same list in subsequent `rm' calls, and for the temporary
86           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
87           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
88         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
89         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
90           no longer needed) by libtool.  Make it a cache check.
91         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
92           copied here by mistake.
93         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
94           _AC_COMPILER_EXEEXT.
95         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
96           _AC_COMPILER_OBJEXT directly.
97         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
99 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
102         Fix description of how the buggy `sed' works.
104 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
106         Sync from Automake:
108         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
109         ENOLCK.  Only mention `make -j' when applicable.  Only raise
110         fatal errors when `make -j' is involved.  Improve error message.
112 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114         * doc/autoconf.texi (Here-Documents): We now know more about
115         the variable expansion in here documents bug.
116         Thanks to Tim Rice and Stepan Kasal.
118         * doc/autoconf.texi (Making testsuite Scripts): Add an example
119         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
121 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
123         * tests/autotest.at (Multiline command from M4 expansion):
124         No failure to be expected if the shell quotes newlines in
125         commands in the `set -x' output.  Report by Tim Rice.
126         * THANKS: Update.
128 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
130         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
131         expansion in the here-documents used by config.status, as that
132         runs afoul of the Korn shell version M-12/28/93d bug described in
133         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
134         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
135         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
137 2006-05-23  Jim Meyering  <jim@meyering.net>
139         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
140         Fix typo introduced with 2006-04-02 change.  It reversed the sense
141         of the test.
143 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
145         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
146         ac_dB slightly, to save bytes in the script.
147         Max out at 50 lines, rather than 96; this is more likely
148         (though not guaranteed) to avoid obscure 'sed' failures.
150 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
152         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
153         `tr -d -' as bad option argument.  Work around this by deleting
154         an unrelated character.
155         Report by Tim Rice <tim@multitalents.net>.
157 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
158             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
159             Stepan Kasal  <kasal@ucw.cz>
161         * doc/autoconf.texi (Particular Programs): Do not promise that
162         we always prefer the GNU version of the program, and that we
163         search according to PATH; both rules can have exceptions.
164         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
165         AC_PROG_SED.  Move descriptions of limitations
166         to the Limitations of Usual Tools section.
167         (Limitations of Usual Tools) <sed>: Mention script length
168         limitations with Solaris /usr/ucb/sed.
169         <grep>: Fix wording for empty alternative.  Mention that -c and
170         -l should not be combined, and that -E and -F should not be
171         combined.
173 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
174         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
176         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
177         limits in Solaris 8 /usr/ucb/sed by testing a long script.
179 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
181         * doc/autoconf.texi (Defining Symbols): Literal parameter of
182         AC_DEFINE is now passed to m4_pattern_allow.
183         * NEWS: Mention that; likewise for AC_SUBST.
184         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
185         the parameter to m4_pattern_allow.
186         * tests/tools.at: Add a check for that.
188 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
190         * lib/autoconf/status.m4: Fix typos.
192 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
194         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
195         only the files that this macro generates.
197 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
199         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
200         the HP-UX sed limitation of 99 commands, labels do not count.
201         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
202         in the comment.
203         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
205 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
207         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
208         Import the following fix from coreutils:
210         2006-01-13  Jim Meyering  <jim@meyering.net>
212         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
213         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
214         not double-quote uses of that variable, to accommodate the rare
215         case in which getmntent is available in none of the libraries
216         checked.  This happens at least on FreeBSD 5.0.
218 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
220         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
221         ac_config_guess, ac_config_sub, and ac_configure, since evidently
222         some other programs unwisely rely on these undocumented vars.
223         But put in warning comments about them.
224         Problem reported by Ralf Wildenhues in
225         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
226         * NEWS: Document that these variables are intended to go away.
228 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
230         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
231         and set the language to C++ (analogous to the equivalent Fortran
232         tests).
234         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
235         * doc/autoconf.texi (C++ Compiler): Document it.
236         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
237         * NEWS: Update.
239 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
241         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
242         that caused config.status to generate 100-command sed scripts; the
243         portable limit is 99.
245 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
247         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
248         variable `ac_d' instead of `d' to avoid infringing namespace.
249         Report by Ralf Menzel.
251 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
253         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
254         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
255         * tests/tools.at (autoconf: subdirectories): New test, taken from
256         the corresponding problem report by Ralf Wildenhues in:
257         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
259         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
260         Quote some uses of shell variables if they might suffer unexpected
261         globbing.  This doesn't fix all instances of quoting problems that
262         I found, just the easy ones that look safe.
263         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
264         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
265         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
266         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
267         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
268         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
269         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
270         Likewise.
271         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
272         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
274 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
276         * bin/autoreconf.in ($help): Reword according to the manual.
277         Suggested by Olly Betts.
279 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
280         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
282         * bin/autoreconf.in: Pass the directory argument to
283         `require_configure_ac'.  Fix comment.
284         * tests/torture.at (Configuring subdirectories): Expose this.
285         Reported by Olly Betts.
287 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
289         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
290         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
291         Automake as follows:
293         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
294         `$configure_in' instead of `configure.in', to preserve
295         directory component.
297 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
299         * config/config.guess, config/config.sub, config/texinfo.tex,
300         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
302 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
304         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
305         test for C99 conformance; (bool) 0.5 is an integer constant
306         expression, but (bool) -0.5 is not.  Problem reported by Fedor
307         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
309 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
311         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
312         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
313         Warn about obsolete install-sh files.  Remove stray sentence
314         fragment and fix cross reference.
315         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
316         install -d; this undoes the 2006-05-10 change.
317         (MKDIR_P): Mark with AN_MAKEVAR.
318         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
319         that we don't require $INSTALL to be thread-safe.  Move comments
320         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
321         of AC_PROG_INSTALL.  Output a message saying that we're checking
322         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
323         MKDIR_P instead of AC_SUBST.
324         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
325         Special magic for MKDIR_P, too.
326         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
327         a dnl.
328         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
330 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
332         Sync from Automake, as follows:
334         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
335         * config/install-sh: Initialize IFS, so field splitting isn't
336         turned off later.
337         * config/mkinstalldirs: Likewise.
338         * config/missing: Remove superfluous quotes.  Replace all uses of
339         `[' by `test', for consistency, and for..
340         * config/missing (sed_minuso, sed_output): New variables.
341         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
342         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
343         Fixes `missing' to detect `--output' for help2man.  Fixes
344         PR automake/483.  Report by Dennis J. Linse.
345         (autom4te): Document in `missing --help'.
347 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
349         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
350         * config/install-sh: Don't use 'path' to talk about file names,
351         as per GNU coding standards.  Close a race condition reported by Ralf
352         Wildenhues and Stepan Kasal.  There is still a race condition
353         on hosts that predate Posix 1003.1-1992, but we can't help this.
354         Don't mishandle weird characters like space on pre-Posix hosts.
355         Invoke mkdir at most once per dir arg on pre-Posix hosts.
356         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
357         AC_PROG_MKDIR_P from AS_MKDIR_P.
358         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
359         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
360         earlier editions are not (including Automake 1.8.3).
361         Do not suggest mkinstalldirs for thread-safety.
362         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
363         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
364         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
365         presence of special characters and race conditions.
366         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
367         in Autoconf's name space.
369 2006-05-10  Bruno Haible  <bruno@clisp.org>
370         and Paul Eggert  <eggert@cs.ucla.edu>
372         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
373         from Automake with minor changes.
374         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
376 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
378         * config/install-sh: Update to Automake CVS version, as follows:
379         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
380         * lib/install-sh: Simplify the expr implementation of dirname.
381         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
382         * lib/install-sh: Handle --, and diagnose unknown options.
384 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
386         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
387         `./autom4te' to create `./testsuite', since the `all' target
388         will ensure its presence, but `installcheck' should not create
389         the uninstalled wrappers.
391         * tests/torture.at (Unusual Automake input files): Skip if we
392         detect automake < 1.8.
394 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
396         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
397         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
398         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
399         * NEWS: Update.
401 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
403         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
404         munge (multiple) white space and other oddities.
405         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
406         single quotes in variable assignment.
407         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
408         and similar failures by adding multiple spaces, tabs, and other
409         special characters.
410         Report and different test suggested by Francesco Romani
411         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
413         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
414         single quotes, we only need to search for single quotes; this
415         both simplifies the search pattern, and makes us less
416         susceptible to `echo' variations for arguments not containing
417         single quotes.
418         (_AC_ARG_VAR_VALIDATE): Likewise.
420 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
422         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
423         `$*' and IFS concatenation issue with traditional shells and
424         bash-2.04.  Report by Seanster@Seanster.com.
426 2006-05-03  Bruno Haible  <bruno@clisp.org>
428         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
429         precisely which Mac OS X versions have the od problem.
431 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
433         * doc/autoconf.texi: Use @option systematically.
434         (Integer Overflow):
436 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
437         and Bruno Haible  <bruno@clisp.org>
439         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
440         about 'od'.
441         (Integer Overflow): Mention the special case of integer division
442         overflow.
444 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
446         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
447         traditional shells like the Solaris one that do not use the
448         first IFS character for assembling `$*'.
449         Prompted by a related report from autoconf_bug@nro.ca.
451 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
452         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
454         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
455         Mention more problems with the -e option.
457 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
459         * NEWS: Typo.
460         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
462         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
463         in URLs to improve DVI formatted output (requires texinfo 4.6).
464         (System Services, Systemology, Shellology): Likewise.
465         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
466         output.
468         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
469         continuous text.
470         (Runtime): Fix macro argument names to match description:
471         `action-if-found' -> `action-if-true' and similarly.
472         (Obsolete Macros): Likewise.
473         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
474         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
475         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
477 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
479         * doc/autoconf.texi (Limitations of Make): Clean up markup.
481         * ChangeLog: Typo.
482         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
483         DVI output.
485 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
487         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
488         /bin/sh set unsorted output.
489         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
490         * tests/local.at: Likewise.
492 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
494         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
495         (Integer Overflow, Null Pointers, Buffer Overruns):
496         (Floating Point Portability, Exiting Portably): New sections.
497         (Writing Test Programs): Fix some langauge.  Recommend exiting
498         with status 1, not merely nonzero.  Clarify exit declaration.
499         (Run Time): Move C exit status stuff to new Exiting Portably section.
500         (Systemology): Mention Posix and levenez.  Update v7 reference.
501         (Portable Shell): Mention the Posix shell.
503 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
505         * bin/autoconf.as (me): Replace by as_me.
507 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
509         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
510         since as_me isn't set yet.
512 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
514         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
515         a few minor bugs in this area.
517         * doc/autoconf.texi (Programming in M4sh): Comment out the
518         documentation of AS_BASENAME, for now.
519         (Shell Substitutions): Do not use AS_DIRNAME in an example.
520         (Limitations of Builtins) <basename>: Do not refer to
521         AS_BASENAME.
522         * bin/autoconf.as (me): Don't use AS_BASENAME.
523         (dir): Remove the unused variable.
524         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
525         AS_DETECT_REQUIRED.  All uses changed.
526         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
527         All uses changed.
528         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
529         (AS_BASENAME): Use "basename --" to protect against leading "-".
530         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
531         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
532         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
533         (_AS_DIRNAME_PREPARE): Likewise.
534         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
535         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
536         (AS_DIRNAME): Use "dirname --".
538 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
540         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
541         of "run time" and "run-time" changed to "runtime", for consistency.
542         * lib/autoconf/fortran.m4: Likewise (in comment).
543         * lib/autoconf/functions.m4: Likewise.
544         * lib/autoconf/general.m4: Likewise.
545         * lib/autoconf/headers.m4: Likewise.
547         * doc/autoconf.texi (Run Time): Document the exit status situation
548         with more accuracy and detail.
550 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
552         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
553         Archive is not officially `GNU' any more.  Update URL.
554         (Defining Directories): Likewise
555         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
557 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
559         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
560         newline from the `trap' code to finish `config.log'; the NetBSD
561         /bin/sh resets the exit status after an empty command, as
562         documented in doc/autoconf.texi.
563         Reported by Dalibor Topic <robilad@kaffe.org>.
565 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
567         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
568         Suggested by Bruno Haible.
570 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
572         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
573         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
574         Instead, just list the shells that we know work.
575         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
576         changed.  Be more cautious about the _cv_ variable.
577         * tests/tools.at (Syntax of the shell scripts): Check the
578         _cv_ variable once, at first, to avoid an internal autoconf error
579         when sh -n does not work.
581 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583         * lib/Autom4te/FileUtils.pm: Sync from Automake.
585 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
587         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
588         use ">&-" since we're only 99.999% sure that this is portable,
589         and since the MinGW bug is fixed in a different way.
590         * lib/autotest/general.m4 (AT_INIT): Likewise.
592 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
594         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
595         before opening config.log, to avoid hitting a bug on MinGW.
597 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
599         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
600         AS_MESSAGE_LOG_FD before reopening it onto the log file.
601         This works around a MinGW bug reported by Eric Paire.
602         Make sure that all writes to the log file append to it,
603         rather than possibly losing data.
604         * lib/autotest/general.m4 (AT_INIT): Likewise.
606 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
608         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
609         description.
611 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
613         * NEWS: Update.
615         * configure.ac (AC_INIT): Bump to 2.59d.
617 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
619         Version 2.59c.
621         * Makefile.maint (news-date-check): Do not require a leading `*'
622         before the release date in NEWS.
624 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
625         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
627         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
628         the instantiated file do not contain the string 'datarootdir'
629         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
630         @mandir@, replace the reference '${datarootdir}' by the value.
631         * tests/torture.at (datarootdir workaround): New test.
632         * NEWS: Advertise this temporary fixup.
633         Based on a patch by Bruno Haible, reported and analyzed by
634         Paul Eggert and Noah Misch.
636 2006-04-12  Eric Blake  <ebb9@byu.net>
638         * tests/autotest.at (Debugging a failed test): Fix comment.
640 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
642         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
643         all the changes since 2006-04-07.
645 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
647         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
648         succeeded, but `ln -s file dir' failed, take care to remove the
649         leftover target before the next test, to prevent its spurious
650         failure; also make sure `ln file dir' works before selecting it.
651         Thanks to Keith Marshall for pointing this out.
652         * THANKS: Update.
654         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
655         assignments in `at_debug_args', so that we put them correctly
656         in the `run' script.
657         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
658         Reported by Eric Blake.
660 2006-04-11  Eric Blake  <ebb9@byu.net>
662         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
663         top-level tests after micro-suite has been run.   Used in...
664         (Debugging a successful test, Debugging script and environment),
665         (Debugging a failed test): ...these new tests.  The first of these
666         is fixed by...
667         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
668         macro, split out from...
669         (AT_INIT): ...here, so that using -d also generates a run script.
670         Document that -d inhibits top-level logging.
671         * doc/autoconf.texi (testsuite Invocation): Document that -d only
672         inhibits top-level logging; debug scripts are created.
674         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
675         check.
676         * tests/autotest.at (Empty test, Empty check): New test to check it.
678         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
679         from gcc.
681 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
683         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
684         the files if a problem appears.  Make the empty *.at files
685         read-only, too.  Proposed by Ralf Wildenhues.
687 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
689         * config/Makefile.am: Add comment to force updated Makefile.in.
691         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
692         space only patch to this file, this patch causes the Makefile.in
693         files that include freeze.mk to be updated, and thus have a
694         newer time stamp again, which in turn makes a pristine CVS
695         checkout have correct time stamps.
697         * Makefile.maint (cvs-sv): New macro, to be used..
698         (config.guess-url_prefix, config.sub-url_prefix)
699         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
700         point to CVS text checkout of Gnulib files.
701         (copyright-check): Bump current year.
702         (announcement): Do not hard-wire `./announce-gen'.
703         (cvs-update): Propagate failures of `cvs' and `move-if-change'
704         correctly.
705         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
706         `chmod +x'.
707         (wget_files): Update config.guess, config.sub, texinfo.tex by
708         `wget-update', now that their URLs work again.
710 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
712         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
713         Problem noted by Paul D. Smith.
715 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
717         * doc/autoconf.texi: Remove unused words from word list.
718         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
719         .x-sc_trailing_space: New files.
721         * doc/standards.texi: Sync from gnulib.
723         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
724         `LIBOBJDIR' as experimental.
726         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
727         with a target directory; it's internally implemented as `cp'
728         anyway, but since Autoconf advertises the possibility to use
729         a target directory when LN_S is `ln -s', we need to find out.
730         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
731         analyzed by Keith Marshall <keith.marshall@total.com>.
733         * THANKS: Update.
735 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
737         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
738         confdefs.h as-is.  In general, if it has backslash-newline or the
739         like, then it doesn't work either to sort or to remove empty
740         lines.
742 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
744         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
746 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
748         * lib/autom4te.in (Automake-preselections): Preselect
749         _AM_SUBST_NOTMAKE.
751 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
753         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
754         apostrophe within a single-quoted string, as this is the usual
755         tradition and is easier to read than '"'"'.  Don't rely on the
756         shell treating "$/" like '$/'.  Use a more-consistent indenting
757         style for the trap.
759 2006-04-09  Eric Blake  <ebb9@byu.net>
761         * tests/autotest.at (Backquote command substitution),
762         (Multiline backquote command substitution): Remove mistaken
763         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
764         applied...
765         (Parenthetical command substitution, Multiline parenthetical
766         command substitution): here.
768 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
770         Import macros from gnulib (often changing their name).
772         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
773         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
774         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
775         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
776         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
777         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
778         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
779         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
780         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
781         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
782         The manual mentions Gnulib more prominently.
783         * doc/autoconf.texi (Gnulib): New node.
784         (Pointers): Add Gnulib URL.
785         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
786         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
787         Gnulib section.
788         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
789         suggest a #define rather than a typedef for _Bool, and mention
790         Gnulib rather than trying to substitute stdbool code.
791         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
792         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
793         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
794         AC_STRUCT_DIRENT_D_TYPE.
795         (Particular Types): Mention stdint.h and inttypes.h as standard
796         headers too.
797         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
798         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
799         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
800         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
801         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
802         (C Compiler): Move AC_C_LONG_DOUBLE to ...
803         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
804         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
805         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
806         (Coding Style).  Don't mention m4_expand_once.
807         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
808         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
809         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
810         (AC_CHECK_FUNCS): Use it.
811         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
812         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
813         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
814         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
815         (AC_HEADER_ASSERT): New macro.
816         (AC_HEADER_STDBOOL): Don't assume "#error" works.
817         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
818         Catch a bug in an HP-UX C compiler.
819         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
820         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
821         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
822         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
823         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
824         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
825         New macros.
827         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
828         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
830 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
832         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
833         of the warning introduced by the 2001-08-28 change.
835 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
836             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
838         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
839         variables shall be overriden by the cache.
840         * tests/torture.at (AC_ARG_VAR): Test also with a first value
841         that contains braces.
843 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
845         Revert the patch from 2006-04-01 and only improve
846         _AS_DETECT_BETTER_SHELL:
848         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
849         skip nonexistent directories.
850         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
851         only shell candidates which exist.
852         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
853         * lib/autotest/general.m4 (AT_INIT): No need to give three
854         parameters to _AS_PATH_WALK.
856 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
857             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
859         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
860         distinguish m4sugar macros.
861         * tests/tools.at (autoupdating with aclocal and m4_include):
862         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
863         test case by Noah Misch <noah@cs.caltech.edu>.
865 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
867         Revert my change from 2006-03-17, in other words:
868         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
869           and DUALCASE=1.
870         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
871         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
872           it is set.
874 2006-04-07  Eric Blake  <ebb9@byu.net>
876         * doc/autoconf.texi (Programming in M4sh): Document that
877         AS_MKDIR_P exits the script on failure.
878         * lib/autotest/general.m4: Remove redundant AS_ERROR.
880 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
882         * config/elisp-comp, config/install-sh, config/mdate-sh,
883         config/missing, config/mkinstalldirs: Sync from Automake.
885         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
886         from Automake.
888         * doc/make-stds.texi: Sync from gnulib.
890 2006-04-06  Eric Blake  <ebb9@byu.net>
892         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
893         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
894         2006-04-01.
896 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
897             Eric Blake  <ebb9@byu.net>,
898             Paul Eggert  <eggert@cs.ucla.edu>,
899             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
901         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
902         whether `set' quotes correctly: redirect stderr of the tested
903         `set', and use a subshell, for Ultrix; use `sed' instead of
904         `grep' for zsh `set' which may write binary output; match only
905         at the beginning of a line, to avoid false positives.
906         In order to avoid false positives by unrelated variables with
907         multiline content, put the dump algorithm in a subshell and
908         unset all variables containing newlines (except some which are
909         special to the shell).  Warn about cache variables that are
910         unset.
912 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
914         * config/config.guess, config/config.sub, config/texinfo.tex:
915         Sync from upstream.
917         * tests/mktests.sh: Reword comments.
919         * tests/mktests.sh: Only skip internal macros starting with
920         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
921         Update exclusion lists for the test suite to this end:
922         (AC_ARG_VAR): Do test this now.
923         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
924         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
925         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
926         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
928         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
929         shell issue with double-quoted command substitutions of native
930         commands.
931         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
932         Marshall.
934         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
935         no file matches the glob, discard the warning, set `nullglob'.
936         (syntax-check): Likewise.
937         (sc_cast_of_x_alloc_return_value): Likewise.
938         (sc_cast_of_alloca_return_value, sc_error_exit_success)
939         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
940         (m4-check): Likewise.
941         (sc_system_h_headers): Do not print rule on execution.
942         (sc_tight_scope): Do not fail for non-existing `src' directory.
943         (sc_changelog): Skip the Copyright footer.
944         * lib/autoconf/lang.m4: Remove trailing space.
946         * lib/autoconf/status.m4: More replacements to
947         <tab><space> where this makes sense.
949 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
951         * tests/Makefile.am (maintainer-check-posix):
952           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
954         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
955           ac_config_<foo>s again, sometimes normalized, sometimes not.
956         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
957         (AC_CONFIG_COMMANDS): Do not do so here.
958         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
959           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
960           2005-07-25 rewrite.  Noticed by Noah Misch.
962         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
963           _AC_PRESERVE_HELP_ORDER, ...
964         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
966         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
967           inside m4_expand_once; it is redundant.
969         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
970           for --help from Cygnus `configure.'
972 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
974         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
975         on a patch proposed by Ralf Wildenhues.
977 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
979         * lib/autoconf/status.m4: Replace <space>''<tab> with
980         <tab><space> where this makes sense.
982 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
983             Noah Misch  <noah@cs.caltech.edu>
985         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
986         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
987         * doc/autoconf.texi (Help Formatting): New node.
988         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
990 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
992         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
993         lib/autoconf/specific.m4, lib/autoconf/status.m4,
994         lib/autoconf/types.m4, lib/autotest/general.m4,
995         tests/mktests.sh, tests/torture.at: White space cleanup:
996         remove some SPACE before TAB, or add quoting ('' or @&t@).
998         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
1000         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
1002 2006-04-05  Eric Blake  <ebb9@byu.net>
1004         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
1005         empty test suite works.
1006         * tests/autotest.at (Empty test suite): Remove xfail.
1008 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
1010         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
1011         TAGS to ac_config_<foo>s.
1012         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
1013         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
1014         normalizing it, consistent it with previous releases.
1015         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
1017 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1019         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
1020         Use simplified args that Eric Blake originally suggested.
1022 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1024         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
1025         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
1026         Use 'comm' rather than N instances of grep; this also fixes a bug
1027         whereby substrings were incorrectly matched, causing us to not
1028         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
1029         (exclude_list): Exclude empty macros.
1030         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
1032         Use awk rather than grep -E or egrep, to avoid
1033         portability problems with regular expressions containing newlines.
1034         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
1035         Switch from grep to awk syntax.
1036         (ac_exclude_script): Renamed from ac_exclude_egrep.
1037         (au_exclude_script): Renamed from au_exclude_egrep.
1039 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
1041         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
1042         a subdirectory subject to Cygnus `configure'.
1043         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
1045         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
1046         report request when we have no AC_PACKAGE_BUGREPORT.
1048 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1050         * THANKS: Update.
1052         * tests/mktests.sh: Update copyright year in the header of the
1053         generated files.
1055         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
1056         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
1057         typedef'ed restricted pointer, to catch a compiler bug on
1058         HP-UX 11.x, and fix warnings so it passes with -Werror.
1059         (_AC_PROG_CC_C99): Likewise.
1060         Reported by Albert Chin <china@thewrittenword.com>.
1061         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
1063 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
1065         * bin/autoscan.in (subdirs): New global.
1066         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
1067         (output): Emit AC_CONFIG_SUBDIRS as needed.
1068         * tests/autoscan.at (autoscan): Remove XFAIL.
1070 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
1072         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
1074 2006-04-03  Eric Blake  <ebb9@byu.net>
1076         * THANKS: Add myself.
1078 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1080         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
1081         to log, point to testsuite output tree.
1083 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
1085         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
1086         * doc/autoconf.texi (Function Portability): Mention that C++
1087         has trouble with 'exit'.
1088         (Guidelines): Test programs shouldn't use 'exit'.
1089         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
1090         Remove; all uses removed.
1091         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
1092         Return from 'main' instead of calling 'exit'.
1093         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
1094         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
1095         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
1096         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
1097         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
1098         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
1099         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
1100         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
1101         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
1102         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
1103         * tests/compile.at: Likewise.
1105 2006-04-02  Pavel Roskin  <proski@gnu.org>
1107         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
1109 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1111         Clean up _AC_COMPILER_EXEEXT* macros.
1113         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
1114           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
1115           ac_file to the name of the default output file and call
1116           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
1117           initial `rm' of the candidate files...
1118         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
1119           the same list in subsequent `rm' calls, and for the temporary
1120           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
1121           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
1122         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
1123         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
1124           no longer needed) by libtool.  Make it a cache check.
1125         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
1126           copied here by mistake.
1127         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
1128           _AC_COMPILER_EXEEXT.
1129         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
1130           _AC_COMPILER_OBJEXT directly.
1131         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1133 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1135         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
1136         (AS_DIRNAME): Use it.
1137         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
1139         * tests/*.at: Remove the generated ones.
1141 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1143         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
1145 2006-04-01  Eric Blake  <ebb9@byu.net>
1147         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
1148         directories, unless optional third argument supplied.
1149         (AS_UNAME): Don't optimize PATH walk.
1151         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
1153 2006-04-01  Eric Blake  <ebb9@byu.net>
1154         and Stepan Kasal  <kasal@ucw.cz>
1156         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
1157         and fix some typos.
1159 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
1161         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
1162         Autoconf version number despite a zero- or one-argument AC_INIT.
1164         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
1165         subordinate tools.
1166         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
1167         * doc/autoconf.texi (autoreconf Invocation): Document it.
1169         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
1170         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
1172 2006-04-01  Eric Blake  <ebb9@byu.net>
1174         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
1175         * lib/autotest/general.m4: Be tolerant of existing directory when
1176           rm failed to remove it.
1178 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1180         * bin/autoupdate.in: Redefine m4_location so that warnings print
1181         the correct lines of the input file by subtracting..
1182         (_au__first_line): ..this new definition.
1184         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
1185         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
1186         Remove stray newline in output.
1187         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
1188         AC_DEFUN this for autoconf, including the obsoletion diagnose.
1189         Fixes autoupdating of code where the replacement output contains
1190         m4sugar macros.
1191         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
1192         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
1193          (au_exclude_list): Add AC_LANG_SAVE.
1194         * tests/tools.at: Several new tests for all of this.
1195         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
1196         hairy details.
1197         The AC_LANG_SAVE issue was reported against Libtool by
1198         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
1199         Kristian Kvilekval <kris@cs.ucsb.edu>.
1201 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1203         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
1204           switch all of them on and of when necessary.  Fixes the bug when
1205           m4sugar macros (e.g., m4_define) were expanded after the first
1206           automatic update (e.g., after AC_PREREQ or AC_INIT).
1208 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
1210         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
1211         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
1213         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
1214         correctly.  Problem reported by Eric Blake.
1215         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
1216         Ralf Wildenhues.
1218 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1220         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
1221         Tighten up the basename/dirname wording.
1223 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1225         * Makefile.maint (sc_texi_notab): New check: do not use TABs
1226         in texinfo files outside of verbatim environments.
1227         (syntax-check-rules): Update.
1228         * doc/autoconf.texi (Configuration Headers): Conform to it.
1230 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
1232         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
1233           aclocal cannot be given on the command line.
1235 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1237         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
1238         Give an example for AS_DIRNAME instead of referring to Posix..
1239         (File System Conventions): Put discussion of // versus / here, and
1240         modernize it a bit.
1241         (Limitations of Usual Tools): Add basename.  Remove verbiage
1242         after dirname, since it got moved to the above sections.
1243         All this was inspired by a patch proposed earlier by Eric Blake.
1245 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1247         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
1248         `$0' to protect against spaces.
1249         * lib/autotest/general.m4 (AT_INIT): Likewise.
1250         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
1251         `$0', $as_me.
1253 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1255         * bin/autoscan.in: The value of find_configure_ac should be
1256         checked for existence, so we don't barf over a nonexisting
1257         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
1259 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1261         * bin/autoupdate.in: Fix some typos.
1263 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
1265         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
1267         * lib/autoscan/autoscan.list: Refreshed.
1269 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1271         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
1272         and Erlang related variables.
1274         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
1275         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
1276         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
1277         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
1278         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
1279         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
1280         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
1281         (_AC_PROG_OBJC_G): New macros.
1282         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
1283         * doc/autoconf.texi (Objective C Compiler): New node.
1284         (Preset Output Variables): Document OBJCFLAGS.
1285         (Language Choice): Document `Objective C' language.
1286         (Fortran Compiler): Fix typo.
1287         * NEWS: Updated.
1288         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
1290 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
1292         * doc/autoconf.texi (Default Includes): Fix typo
1293           s/AC_HEADERS_STDC/AC_HEADER_STDC/
1294         (Limitations of Usual Tools): s/unwriteable/unwritable/
1295         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
1296           Fix typos in the comments.
1298 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
1300         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
1301           Factor out the warning to...
1302         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
1303         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
1304         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
1306         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
1307           case `ac_delim' when writing the sed script.
1309         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
1310           moved DUALCASE=1 ...
1311         (AS_SHELL_SANITIZE): ... here.
1312         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
1313           that it is set.
1315         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
1316           AC_SUBST.
1317         (_AC_PATH_PROG): Store the result to VARIABLE.
1318         (AC_PATH_PROG): No need to set VARIABLE again.
1320         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
1321           the first one is usual AT_CHECK_MACRO test, the second one checks
1322           that the same works when cross-compiling.
1323         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
1324         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
1326 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1328         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
1329         the directory `/usr/bin/posix' in the shell search, to prefer
1330         the Posix shell not only in subsequent spawns as with `$BIN_SH'
1331         on Tru64.
1333         * doc/autoconf.texi (contents): To fix texi2html output, hide
1334         `@setcontentsaftertitlepage' for HTML.
1335         (Writing Autoconf Macros): Likewise, insert space after `@c'.
1336         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
1337         `@,{c}'.
1339 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
1341         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
1342           sanitizing...
1343         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
1344         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
1345           why IFS is restored so late; thank you, Ralf, for reminding us.
1347 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
1349         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
1350           variables in the examples.
1352 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
1354         * doc/autoconf.texi (several sections): Cleaned up documentation for
1355         macros in erlang.m4.
1357 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1359         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
1360         failure condition for `$(cmd)' style command substitutions.
1361         (Parenthetical command substition, Multiline parenthetical
1362         command substition): Use it.
1364         * doc/autoconf.texi (Special Shell Variables): Missing word.
1365         Reported by Keith Marshall <keith.marshall@total.com>.
1367         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
1368         IFS even in case of empty `$PATH'.
1370 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1372         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
1373         `expr' away if there is nothing to do.
1374         < --keywords >: Simplify and robustify argument handling.
1375         Revert erroneous comment from 2005-08-23.  Extend to allow
1376         keyword negation with `!'.
1377         Update help message.  Remove broken code to prevent running
1378         tests multiple times.
1379         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
1380         Update and fix the documentation accordingly.
1381         * tests/autotest.at (Keywords): Renamed to..
1382         (Keywords and ranges): .. this.  Extended to make sure negated
1383         keywords, keywords taken from AT_SETUP arguments, and numeric
1384         test ranges work, and that matching is case-insensitive.
1386 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1388         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
1389         allow to pass unnamed structs even in C++.
1390         (AC_CHECK_SIZEOF):  Likewise.
1391         Also fix quoting error in `AC_MSG_FAILURE' arguments.
1392         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
1393         struct): New tests for unnamed structs, each both native and
1394         cross-compiling.
1396         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
1397         a structure inside a cast, for C++ conformance.
1398         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
1399         Also fix quoting error in `AC_MSG_FAILURE' arguments.
1401         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
1402         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
1403         trying to execute the command `no'.
1405         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
1406         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
1407         expanded outside.
1409         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
1410         example.  Do not emphasize `$%', it is hardly new and special.
1411         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
1413         * doc/autoconf.texi (Limitations of Usual Tools): Document
1414         OpenBSD and traditional `grep' failure to handle multiple
1415         patterns separated by newlines.
1417 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
1419         * doc/autoconf.texi (several sections): Add documentation for macros
1420         in erlang.m4.
1422 2006-03-10  Eric Blake  <ebb9@byu.net>
1424         * doc/autoconf.texi (Obsolete Macros): Fix wording of
1425         AC_TRY_LINK_FUNC.
1427 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1429         * doc/autoconf.texi: Use @acronym more consistently for acronyms
1430         like BSD, GPL, LGPL.  Fix minor English typos.
1431         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
1432         Mention that these macros are becoming obsolete.
1433         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
1434         Use more modern terminology for which standard is what.
1435         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
1436         and to ansi2knr.
1437         (AC_PROG_CXX): Likewise.
1438         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
1439         Remove obsolete discussion about how to port to K&R.
1440         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
1441         the obsolescent AC_HEADER_STDC.
1442         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
1443         can't rely on it.
1445 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1447         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
1448         Remove stdin redirection from /dev/null to allow pipe to work.
1450 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1452         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
1453         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
1454         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
1455         Ralf Wildenhues.
1457 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1459         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
1460         HP-UX sed is 99 commands, not 100.
1461         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
1462         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
1463         newline for portability.
1464         * tests/torture.at (Torturing config.status): Also test 100
1465         AC_SUBST_FILE invocations.  Fix test to actually verify the
1466         AC_CONFIG_FILES output.
1467         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
1468         command, label, and read-file `r' limits.  Unify HP-UX spelling.
1470         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
1471         non-suffix rule.
1472         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
1473         non-GNU make.
1474         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
1475         * tests/mktests.sh: Small shell portability fixes.
1477 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1479         * doc/autoconf.texi (Caching Results): Fix the examples to use a
1480         recommended quoting style and discard unwanted output.
1482 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
1484         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
1485         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
1486         cases, and to work around Tru64 expr bug.
1488 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1490         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
1491         expr bug that turns the result of a regex match into a number if
1492         possible.
1494 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1496         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
1497         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
1498         in section `Specific Compiler Characteristics'.
1500 2006-03-04  Eric Blake  <ebb9@byu.net>
1502         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
1503         variable warning.
1505 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1507         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
1508         order of variable initialization, so even the Solaris 2.6 shell
1509         can create a config header correctly.  Fixes lots of test suite
1510         failures.
1512 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1514         * doc/autoconf.texi (Text processing Macros): New node to
1515         document the m4sugar macros m4_re_escape, m4_tolower,
1516         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
1518 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
1520         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
1521         XrmInitialize (0) -> XrmInitialize ().
1522         Reported by Toshio Kuratomi.
1524 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1526         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
1527         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
1528         * doc/autoconf.texi (Programming in M4sh): Adjusted.
1529         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
1530         both macros are defun'ed so that required macros are evaluated
1531         outside.
1533         * doc/autoconf.texi (Prerequisite Macros): State more precisely
1534         where a required macro will be expanded.
1535         (Coding Style): Another reason not to use `m4_define'.
1537 2006-02-21  Eric Blake  <ebb9@byu.net>
1539         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
1541 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1543         * doc/autoconf.texi (Looping constructs): New node, to
1544         document m4_for, m4_foreach, m4_foreach_w, and mention
1545         obsolete AC_FOREACH.
1546         (Obsolete Macros): Document AC_FOREACH.
1547         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
1548         (m4_for): Fix to never loop (almost) endlessly, work correctly
1549         with arithmetic expressions in arguments, a step of zero or
1550         non-integer multiple of the interval, and avoid integer
1551         overflow.
1552         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
1553         m4_foreach_w.
1555 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
1557         Add basic support for Erlang, both for configuring Erlang/OTP
1558         tools, and Erlang as a conf test language.
1559         * lib/autoconf/erlang.m4: New file.
1560         * lib/autoconf/autoconf.m4: Add erlang.m4.
1561         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
1562         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
1563         * NEWS: Add short description of new macros.
1564         * THANKS: Add Romain Lenglet.
1566 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1568         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
1569         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
1571 2006-02-15  Eric Blake  <ebb9@byu.net>
1573         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
1574         warning.
1576 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1578         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
1579         (_AS_CASE): Private helper macro.
1580         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
1581         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
1582         Fix syntax of AS_IF description
1583         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
1584         for the AC_REQUIRE mess.
1585         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
1586         AS_SHELL_SANITIZE.
1588 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1590         * doc/autoconf.texi: Minor style cleanup.
1591         Be consistent about spaces after commas.
1592         Insert [] where empty args look a bit funny.
1593         Fix some "i.e." and "e.g." usages.
1594         Try to avoid "X/Y" usages.
1595         Don't be pedantic about "ISO C99"; just say C99.
1596         Prefer GNU style for spaces in front of parens.
1597         (Function Portability): Comment about C89 versus C99
1598         signed integer division.
1599         (Particular Headers): Use current gnulib style for dirent
1600         includes.
1602 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
1603         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1605         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
1606         macros without parameters.
1607         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
1608         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
1609         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
1610         `$#' bug.
1611         (autoupdate): Updated to match AU_ALIAS fix.
1613 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1614         and Paul Eggert  <eggert@cs.ucla.edu>
1616         * doc/autoconf.texi (Programming in M4sh): Document
1617         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
1619 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1621         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
1622         (AS_BOURNE_COMPATIBLE): ..this.
1623         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
1625 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1627         * doc/install.texi (Defining Variables): Tighten up the
1628         CONFIG_SHELL wording.
1630 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
1631         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1633         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
1634         of (set -o) rather than testing whether (set -o posix) succeeds,
1635         to work around a bug in the AIX 5.3 shell.  Problem originally
1636         reportd by Howard Chu for libtool.
1638 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
1640         * doc/autoconf.texi (Running the Compiler, Running the Linker):
1641         Changes the macro arguments in summaries to match the
1642         descriptions.
1644 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
1646         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
1647         hint as ``a workaround for a bug.''
1649 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1651         * bin/autoreconf.in: New option `--no-recursive'.
1652         Improve wording for subpackages a bit.
1653         * doc/autoconf.texi (autoreconf Invocation): Updated.
1654         * NEWS: Updated.
1656         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
1657         in environment of `configure', not the command line.
1658         Reported by Howard Chu <hyc@highlandsun.com>.
1660 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1662         * doc/autoconf.texi (Limitations of Builtins): Document the
1663         problem with "trap -".
1665 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
1667         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
1668         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
1669         messages to differentiate Fortran and Fortran 77 tests.
1670         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
1671         AC_LANG_ASSERT, to allow use in mixed-language projects.
1673 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1675         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
1676         FOO" to "defined (FOO)".
1677         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
1678         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
1679         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
1680         * tests/tools.at (ifnames): Likewise.
1682 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1684         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
1685         * lib/Autom4te/General.pm (mktmpdir): Likewise.
1686         (END): Improve error message a bit.
1687         Reported by Bruce Korb <bkorb@gnu.org>.
1689 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1691         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
1692         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
1694 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
1696         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
1697         requires sys/stream.h.  Reported by Oliver Kiddle.
1699 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1700             Stepan Kasal  <kasal@ucw.cz>
1702         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
1703         before the removals of test dirs, use `find' to avoid modification
1704         of symlinked directories.
1706 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
1708         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
1709         Don't ignore the macro arguments.
1711 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
1713         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
1714         declaration that works for MSVC.
1716 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1718         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
1719         Add `*.map' and `.inf' for Green Hills compiler.
1720         Reported by Stefan Seefeld <stefan@codesourcery.com>.
1722         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
1723         correctly: pad with spaces after FIRST_PREFIX if necessary,
1724         and compute string lenghts with `m4_qlen' instead of `m4_len'.
1725         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
1726         * tests/m4sh.at (AS_HELP_STRING): Test extended.
1727         * NEWS: Updated.
1728         Reported by numerous people, numerous times.
1730 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1732         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
1733         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
1734         * lib/autoconf/general.m4, lib/autoconf/status.m4:
1735         * lib/autotest/general.m4, tests/local.at:
1736         Update copyright year to 2006.
1738         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
1739         sed substitutions.
1740         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
1741         for file names, again.  Reported by Noah Misch.
1742         (Coding Style): Explain that s|a|b| is preferred for file names.
1743         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
1744         (AC_OUTPUT_MAKE_DEFS): Likewise.
1745         * lib/autotest/general.m4 (AT_INIT): Likewise.
1746         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
1747         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
1749         Fix Posix-conformance bugs re use of { command in sed scripts,
1750         and improve the sed-related documentation a bit.
1751         * doc/autoconf.texi (Installation Directory Variables): Use
1752         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
1753         rather than "sed" when talking about Sed in general.
1754         (Particular Programs): Likewise.
1755         (Coding Style): y is like s with respect to / and ,.
1756         (Limitations of Usual Tools): Document the weird restrictions
1757         that Posix has about { }.  Use better quoting.
1758         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
1759         Rewrite to conform to Posix rules about { } in sed scripts.
1760         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
1761         * tests/foreign.at (Libtool): Likewise.
1762         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
1763         Use our own style advice re 's,a,b,' versus 's|a|b|'.
1765 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1767         * lib/autoconf/status.m4: Fix typo.
1769         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
1770         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
1771         `-def', for the benefit of Portland `pgf90 -Mipa'.
1772         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
1774 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1776         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
1777         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
1778         shell from zsh to bash.
1780 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
1782         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
1783           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
1785 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1787         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
1788         parentheses in $(...).  Problem reported by Eric Blake.
1790 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1792         * doc/autoconf.texi (Limitations of Usual Tools):
1793         Mention which characters can be escaped with \ in portable regular
1794         expressions used in grep, sed, expr.  Mention the leading ^ problem
1795         with expr.  Clean up some confusing wording.  Mention which
1796         grep options are portable.
1798 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
1800         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
1802 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1804         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
1805         patch, noted by Ralf Wildenhues.
1807 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1809         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
1810         posix' unconditionally, for pdksh in `native sh' emulation.
1812 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1814         * doc/autoconf.texi (Shellology): Document eval $? problem
1815         with ash.
1816         (Limitations of Builtins): Likewise.
1818 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1820         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
1821         CONFIG_SHELL in the environment of the configure rerun.
1822         * doc/autoconf.texi (Here-Documents, config.status Invocation):
1823         Suggest passing CONFIG_SHELL absolute, and in the environment
1824         rather than as option.
1826 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1828         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
1829         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
1830         Fix macro quoting.  Fix output for n * 98 substituted variables.
1832 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1834         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
1835         `tmp' to avoid file removal race.
1837 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1839         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
1840         ac_clean_files and LIBOBJS.
1842 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1844         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
1845         Factor functionality to..
1846         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
1847         `AC_SUBST($1)' in the public version.
1848         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
1849         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
1850         ac_pt_* variables.
1852 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
1854         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
1855         filesystems.
1857 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1859         * NEWS: Move AH_HEADER mention to right place.
1861 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
1863         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
1864         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1866 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
1868         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
1869         conftst2.$ac_objext.
1870         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1872 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
1874         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
1875         conftest.o, to see whether the compiler really obeys; rm the object
1876         file before and after the test and register it with ac_clean_files.
1877         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1879 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
1881         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
1882         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
1883         code so that the most common case requires less forks.
1885 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
1887         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
1888         not portable; thanks to Paul Eggert and Alexandre.
1890         * NEWS: Fix an old typo.
1892 2005-10-20  Jim Meyering  <jim@meyering.net>
1894         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
1895         the latter'', in two places.
1897 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1899         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
1900         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
1901         the inner workings of AC_LANG_FUNC_LINK_TRY.
1902         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
1903         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
1904         by the function rather than ignoring it.
1905         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
1906         comparing its address.  Intel's interprocedural optimization was
1907         outsmarting the old heuristic.  Problem reported by
1908         Mikulas Patocka.
1910 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
1912         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
1914 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1916         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
1917         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
1919 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
1921         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
1922         before removing it (chmod -R u+rwx); there are three instances of this.
1924 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1925             Stepan Kasal  <kasal@ucw.cz>
1927         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
1928         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
1929         make its content writable before removing it.  Remove an errorneous
1930         comment from the end, where the logs of the failed tests are copied
1931         to the main log file.
1933 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
1935         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
1936           in case the computer is too quick.  Double quote the configure.ac
1937           snippets.
1939         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
1940           problems if the testsuite were running too fast.
1942 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1944         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
1945         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
1946         (which belong to Xt, not X itself).  See Debian bug 327655.
1947         * NEWS: Mention this.
1949 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
1951         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
1953 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
1955         * config/move-if-change: Don't output "$2 is unchanged";
1956         suggested by Ben Elliston.  Handle weird characters correctly.
1958 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
1960         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
1961           calls, so that the final expansion of this macro is shorter.
1962           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
1963           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
1964           the cleanup there.  Use AS_VAR_* macros, to be more general.
1965         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
1967         * lib/autoconf/general.m4: Use AS_IF where appropriate.
1969         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
1971 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
1973         * doc/autoconf.texi (Configuration Headers): Add an index entry
1974           for AH_HEADER.
1976 2005-08-26  Pavel Roskin  <proski@gnu.org>
1978         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
1979         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
1980         running xmkmf.
1982 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
1984         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
1985         The previous patch didn't work, so try a better one.
1987 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
1989         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
1990         in the example.  Reported by Bruno Haible.
1991         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
1992         "if $undefined_var;" succeeds with my shell.
1994         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
1995         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
1996         but change the m4_divert_text to m4_divert_once.
1998 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2000         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
2001         Work around bug in Solaris /usr/xpg4/bin/awk.
2002         The bug is present in at least Solaris 8 through 10.
2004 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
2006         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
2007         some evil values and relying on the fact that $* concatenates the
2008         parameters by the first character from IFS.
2010 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
2011             Stepan Kasal  <kasal@ucw.cz>
2013         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
2014         first header appears, define AH_HEADER.
2015         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
2016         Update limitations about when to call AC_CONFIG_HEADERS.
2017         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
2018         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
2019         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
2020         ``Configuration Actions''; fix their index entries.
2022         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
2023         options correctly.  Process N-M as M-N if M is smaller than N.
2024         Process ranges correctly so that N-N will run only N.
2025         Sort and uniquify the tests that will be run.  If there is more
2026         than one test, reinsert the banners for the tests.
2027         * tests/autotest.at (Keywords): Unmark XFAIL.
2029 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
2031         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
2032           before passing the macro name to AH_TEMPLATE.
2034         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
2035           now opens log after option processing; in particular, --version
2036           and --help do not touch config.log.
2038         * Makefile.maint: Revert the change from 2005-08-12.
2040 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
2042         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
2043           common code to...
2044         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
2046 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2048         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
2049         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
2050         Language cleanup.
2052         * doc/autoconf.texi (Defining Symbols, Changed Results):
2053         Prepend to LIBS, not append, in examples.
2055 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
2057         When building in place, set srcdir="."; suggested by Tim Van Holder.
2059         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
2060           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
2061         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
2062         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
2063           does not mean "no --srcdir option".
2065 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2067         * tests/autoscan.at (autoscan): New file.
2068         * tests/suite.at: Use it.
2069         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
2070         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
2072         * tests/autotest.at (Keywords): Test keywords combinations.
2074 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
2076         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
2077           add "2>&1"; gzip 1.2.4 prints help on stderr.
2079 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
2081         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
2082         was pushdef'ed twice while popped only once.  Push it only once.
2083         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
2085 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
2087         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
2088         prefixed by mere "===", not "configure: === ".
2090 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2092         * Makefile.maint: Update from Bison.
2094         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
2095         "<tab>" in comment, so that the point is understandable.
2097 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
2099         Rewrite substantial part of lib/autoconf/status.m4.
2100         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
2101         and CONFIG_COMMANDS are not processed in four separate loops.
2102         Instead, there is one main loop.  This alows that the common code
2103         is expanded only once, thus config.status (and configure) is smaller.
2105         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
2106         the AC_LIST_FILES and cousins macros are no longer used.
2108         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
2109         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
2110         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
2111         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
2112         contain the initialization, nor the for loop, nor the associated
2113         commands; all these go to ...
2114         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
2115         _AC_OUTPUT_CONFIG_STATUS.
2116         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
2117         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
2118         (_AC_OUTPUT_FILE): The creation of the sed script ...
2119         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
2120         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
2121         _AC_OUTPUT_MAIN_LOOP.
2122         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
2123         _AC_CONFIG_COMMANDS): Use ...
2124         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
2125         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
2126         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
2127         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
2128         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
2129         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
2130         ... new macros.
2131         (_AC_CONFIG_UNIQUE): Update.
2132         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
2133         Replaced by this ...
2134         (_AC_LIST_TAGS): ... new common macro.
2135         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
2136         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
2137         (_AC_LIST_TAG_COMMANDS): ... new common macro.
2138         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
2139         this didn't belong to the `config commands' section.
2140         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
2141         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
2142         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
2143         to the `config commands' section either.
2144         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
2145         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
2147         ... and many changes to the comments nearby.
2149         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
2150         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
2151         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2152         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
2153         (#define header templates): The comment at the top of the generated
2154         header now includes the name(s) of the source file(s).
2156         Several unrelated small changes:
2158         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
2159         parameter to AC_DIAGNOSE.
2160         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
2161         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
2162         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
2163         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
2164         with AU::AC_OUTPUT.
2165         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
2166         in AC_OUTPUT doesn't double-quote it either.
2167         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
2168         parameters.
2170 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
2172         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
2173         versions of Portland Group compiler produce single- and double-quoted
2174         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
2175         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
2177 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2179         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
2180         This is a corrected version of yesterday's patch.
2182 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
2184         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
2185         path, too; insert a "===" to emphasize the line.
2187         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
2188           ac_cv_build_alias to ac_build_alias.
2189         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
2191         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
2192         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
2193         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
2194         (AC_ARG_VAR): ... here.
2195         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
2196           target_alias.
2198         Keep a list of all precious variables and process them with one simple
2199         for loop, instead of expanding all commands, or, OTOH, complicated
2200         processing of output of "set".
2201         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
2202         variable names in new macro...
2203         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
2204         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
2205           a loop to assign all ac_env_* and ac_cv_env_* variables.
2206         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
2207           to INIT_PREPARE.
2208         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
2209           its value to shell variable ac_precious_vars and call
2210           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
2211         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
2212           _AC_ARG_VAR_VALIDATE.
2214         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
2215           and the AC_SUBSTs ...
2216         (AC_INIT): ... here.
2218         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
2219           the ac_subst_files section in config.log.
2221         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
2223 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2225         * NEWS: New macro AC_C_TYPEOF.
2226         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
2227         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
2228         * tests/c.at (C keywords): Test AC_C_TYPEOF.
2230         Fix problems reported by Nicolas Joly.
2231         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
2232         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
2233         They are generated by the Tru64 v5.1B shell.
2235 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
2237         Fix my changes from 2005-07-01; reported by Noah Misch.
2238         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
2239         description, the macro now accepts only a single tag.
2240         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
2242         Fix cases when the varsions of Autoconf and Autotest don't match.
2243         Reported by Noah Misch.
2244         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
2245         at_top_builddir, for compatibility with older autotest.
2246         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
2247         is not set, use at_top_builddir, for compatibility with older
2248         versions of autoconf.
2250 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2252         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
2253         Problem reported by Patrick Welche.
2255 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2257         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
2258         sed substitution command, so that we allow | in program prefixes
2259         and program suffixes.  (& is a problem anyway; we're not fixing
2260         that here.)
2261         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
2262         configure_input, top_builddir, srcdir, etc.
2263         * lib/autotest/general.m4 (AT_INIT): Likewise, for
2264         PATH_SEPARATOR in AUTOTEST_PATH.
2266 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
2268         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
2269         for loop over config.site files using `set', to allow
2270         directory names containing IFS characters.
2272 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2274         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
2275         directories with weird names.  Apparently some people like living
2276         on the edge.  However, improve the test that "pwd" actually does
2277         report a name for the working directory.
2278         * NEWS: Remove the claim that we test for funny chars in dir names.
2280 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
2282         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
2283         replaced ...
2284         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
2285         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
2286         Now accept a single tag, not whitespace separated list.
2287         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
2289 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
2291         * doc/autoconf.texi (Configuration Headers): Change the explanation
2292         about #include <config.h>.
2293         (Generic Functions): Mention the Gnulib project.
2294         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
2296         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
2297         document to output the default config_* lists to config.status.
2298         Don't recognize option --file, if the functionality is not there.
2299         Likewise for --header; moreover, recognize --he and --h as shortcuts
2300         for --help in that case.
2302         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
2303         matches the order of execution.  No code changed.
2305 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2307         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
2308         single-quoted -cmdline argument in Portland Group compiler.
2309         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
2311 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
2313         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
2315 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2317         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
2318         descriptors to child processes; reported by Norman Gray.
2320 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2322         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
2324         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
2325         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
2326         (AC_SUBST): Call it.
2327         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
2328         the directory specific variables; but don't call it for configure_input.
2330 2005-06-28  Derek Price  <derek@ximbiot.com>
2332         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
2333         addition.
2335 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2337         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
2338         directory have inherent problems with special characters like spaces,
2339         due to limitations in Make syntax.  Problem reported by Alexandre
2340         Duret-Lutz.
2341         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
2342         Also, fix Tru64 porting problem with shell patterns,
2343         reported by Ralf Wildenhues.
2345 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2347         * doc/autoconf.texi (Subdirectories): Fix markup typos.
2349 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2351         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
2353         Fix some more shell quoting problems.  Prompted by a bug report
2354         from Justace Clutter.
2355         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
2356         variable into diagnostic.  Make the diagnostic an error, not a warning,
2357         because we really don't support spaces and suchlike in dir names.
2358         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
2359         Don't worry about backslashes in srcdir; it can't happen now.
2360         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
2361         Simplify ac_optarg handling.
2362         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
2364 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
2366         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
2367         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
2368         * tests/atlocal.in: Propagate $EGREP and $SED.
2369         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
2370         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
2372         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
2373         that '\|' is not allowed in BREs; recommend using newline separated
2374         list of patterns instead of multiple -e options.
2376         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
2378         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
2380 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2382         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
2384 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
2386         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
2387         b, t, r, w commands require single space, while : cannot have any.
2388         (Special Shell Variables): Fix sed code this in the example.
2389         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
2390         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
2392         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
2393         expand to the empty list.  Don't use two pairs of m4_changequote,
2394         it's not necessary.
2396 2005-06-20  Derek Price  <derek@ximbiot.com>
2398         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
2400 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2402         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
2403         * doc/autoconf.texi:
2404         Don't mention Solaris versions so much, if a
2405         problem is common to all extant versions of Solaris.  Say "SunOS
2406         4" instead of "SunOS" for SunOS 4.
2407         (awk): Mention more of the limitations of traditional Awk.
2408         (cat): Don't talk about cat -v.
2410 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2412         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
2413         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
2414         but the implementation is entirely different and is designed
2415         to be compatible with glibc strverscmp.
2416         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
2418         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
2419         on Mac OS X 10.4 reported by Peter O'Gorman in:
2420         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
2421         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
2422         Use shell builtins rather than 'expr', to work around expr bug.
2424 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
2426         * doc/autoconf.texi: "filesystem" -> "file system".
2427         "behaviour" -> "behavior".
2428         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
2429         * lib/autoconf/general.m4: Omit blank after ":" sed command,
2430         as per POSIX.
2431         * lib/m4sugar/m4sh.m4: Likewise.
2432         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
2433         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
2435         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
2436         (.x.1): Ignore the time stamp in the .TH line when deciding whether
2437         to update the man page.  That way, we don't have to check in new
2438         man pages every month.
2440         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
2441         quotes and backslashes.  Patch from Derek Price.
2443 2005-06-10  Derek Price  <derek@ximbiot.com>
2445         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
2446         AS_TR_SH.
2448 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
2450         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
2451         -u, since it outputs chatter if the input files are the same.
2452         Problem reported by Ralf Menzel.
2454 2005-06-08  Derek Price  <derek@ximbiot.com>
2456         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
2457         renaming them since they are about to be redefined anyhow.
2459 2005-06-08  Derek Price  <derek@ximbiot.com>
2461         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
2462         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
2463         Move m4_undefine to alphabetical order.
2465 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2467         * README: Recommend GNU M4 1.4.3 or later.
2468         * doc/autoconf.texi (Introduction): Likewise.
2469         Reword to avoid some formatting glitches.
2470         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
2471         Clarify explanation of HP compiler bug.
2472         Redo example output tp match current CVS snapshot.
2473         Use @example.org in email addresses when the examples
2474         might get inadvertently cut-and-pasted into user code.
2475         Remove example of autom4te usage that doesn't seem to work now.
2476         Use modern AC_INIT (except when the example is meant to be
2477         shown with Autoconf 2.13).
2478         Update ksh info for Solaris 9 and later.
2479         KB -> kB.
2480         Modernize description of Automake versions a bit.
2481         Don't claim a future version of Autoconf is near.
2482         * doc/install.texi: Reword to avoid some formatting glitches.
2484 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2486         * doc/autoconf.texi: Add [] to examples, so that the manual
2487         follows its own advice about quoting better.
2488         Reword to avoid some formatting glitches.
2489         * doc/installt.exi: Reword to avoid some formatting glitches.
2491         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
2492         Tru64 ksh pattern matching bug.  Reported against Libtool by
2493         Albert Chin <libtool@mlists.thewrittenword.com> and
2494         Nicolas Joly <njoly@pasteur.fr>.
2496 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
2498         m4_cdr of one-member list was [[]] (one-member list containing an
2499         empty string) instead of [] (an empty list.  Callers were skewed to
2500         match this misbehaviour.  As a consequence of this:
2501          - m4_foreach([x], [], [foo]) expanded to `foo', while
2502          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
2503         This bug has been fixed:
2505         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
2506           expand to an empty string; print error msg if called without
2507           an argument list.
2508         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
2509           misbehaviour; handle [] and [[]] correctly.
2511 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
2513         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
2514         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
2515           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
2517 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
2519         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
2520           swallow records with more than 99 fields.
2521         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
2522           parse the long line.
2524 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
2526         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
2527           swallow literals longer than 399.  Reported by Ralf Wildenhues.
2528         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
2529           to workaround this limitation.
2531 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
2533         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
2534         to gfortran, and make these the first two compiler names
2535         checked (following the general autoconf preference for gcc).
2537 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
2539         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
2540         (DISTCLEANFILES): Remove $(check_SCRIPTS).
2541         (testsuite): Make sure autotest.m4f is up-to-date before using it.
2543 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2545         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
2546         expression of unbounded size when processing the --list
2547         option.  This runs afoul of a limit of 399 bytes per regular
2548         expression on AIX.  Problem reported by Ralf Wildenhues.
2550 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2552         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
2553         * doc/autoconf.texi (Particular Headers): Reword example
2554         for multiline stdbool replacement.
2555         (Setting Output Variables): Reword text a bit.  Don't
2556         give all the details about |#_!!_#|.
2557         Reword description of line replacement.
2559 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
2561         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
2562         now contain newlines, and substituted files must be referenced on
2563         a line alone; the sed scripts to substitute them are now very
2564         different.
2565         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
2566         commands can be put in a sed script portably.
2567         * doc/autoconf.texi (Setting Output Variables): Document above
2568         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
2569         use of multiline substitution.
2570         * tests/torture.at: No longer expect substitution of newline to fail.
2572 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2574         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
2575         From Ralf Menzel (trivial change).
2577 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2579         * tests/local.at: Don't attempt to check for negated character
2580         classes in shell scripts.  The test was too brittle.
2582 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
2584         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
2585         * doc/autoconf.texi (Limitations of Builtins): Document this
2586           limitation.
2588 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
2590         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
2591           common code; used in many places in the tree.
2592         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
2593         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
2595         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
2597         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
2598           messages when ac_unique_file is not found.
2599         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
2600         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
2601           commands, for consistency with AC_MSG_ERROR and such.
2603         * bin/autoconf.as: Make more use of "shift 2" in option processing.
2605         * bin/Makefile.am: Merge the two rules for creating scripts.
2607 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
2609         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
2610         obsolete; it was never documented.
2611         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
2613 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
2615         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
2616         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
2617         (ac_top_builddir): ... this ...
2618         (ac_top_build_prefix): ... to this; the old name is also kept, for
2619           backward compatibility.
2620         (ac_top_builddir_sub): New variable, without the trailing slash,
2621           always nonempty.
2622         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
2623         * doc/autoconf.texi (Configuration Actions): Rename
2624           ac_top_builddir to ac_top_build_prefix.
2625         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
2626           at_top_builddir to at_top_build_prefix.
2627         * lib/autotest/general.m4 (AT_INIT): Likewise.
2629 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
2631         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
2632           of confdefs.h .
2634 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
2636         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
2637           argument to m4_foreach.  I guess it was necessary in the past,
2638           but I think it's a no-op now.
2640 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
2642         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
2643           ``cat <<_ACEOF'' commands to one.
2644         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
2645         * lib/autoconf/status.m4: On various places, use expr instead of
2646           ``echo|sed.''
2647         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
2648         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
2649         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
2650           a range.
2651         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
2652           the wrong patterns between ``case'' and ``esac.''  The previous
2653           code had false positives.
2655 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
2657         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
2658         as on 2005-05-02.
2659         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
2660         Mention LIBOBJDIR.
2662 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2664         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
2665         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
2666         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
2667         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
2668         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
2669         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
2670         config/config.guess, config/config.sub, config/elisp-comp,
2671         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
2672         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
2673         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
2674         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
2675         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
2676         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
2677         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
2678         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
2679         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
2680         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
2681         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
2682         lib/autoconf/general.m4, lib/autoconf/headers.m4,
2683         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
2684         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
2685         lib/autoconf/specific.m4, lib/autoconf/status.m4,
2686         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
2687         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
2688         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
2689         lib/autotest/general.m4, lib/emacs/Makefile.am,
2690         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
2691         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
2692         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
2693         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
2694         tests/compile.at, tests/foreign.at, tests/fortran.at,
2695         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
2696         tests/semantics.at, tests/suite.at, tests/tools.at,
2697         tests/torture.at, tests/wrapper.as:
2698         Update FSF postal mail address.
2700 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
2702         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
2703           check.
2704         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
2705           enough arguments, similarly as in m4_bpatsubsts.
2707 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
2709         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
2710           of absolute paths.
2712 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
2714         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
2715           for absolute directory names in one loop.
2716         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
2717           abbreviations of --version and --debug.
2719 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2721         * doc/autoconf.texi (Autoconf Language): Be more precise about
2722         quoting rules.  Problems noted by Stepan Kasal.
2723         Also, throughout this document, be more careful about white space.
2724         "blank", "white space", and "space" all have different meanings
2725         and we should be careful to say what we mean.
2727 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2729         Fix C++ related problems reported by Werner Lemberg.
2730         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
2731         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
2732         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
2733         avoid problems with C++ and throw.
2734         * tests/compile.at: .cpp, not .cc.
2736         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
2738 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2740         * doc/autoconf.texi (Generic Functions): Typos.
2742 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
2744         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
2745         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
2746         set by latest automake.
2748 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
2750         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
2751         outputs 0 on GNU/Linux these days.
2753 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2755         * doc/autoconf.texi (Autoconf Language): Add more description
2756         about quoting heuristics.
2757         (Limitations of Builtins): Describe "set -" problems.
2759 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2761         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
2762         not newline.
2764         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
2765         by AC_DEFINE; it was a mistake.
2766         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
2768 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
2770         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
2772 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
2774         * doc/autoconf.texi (External Software): Quadrigraphs are not
2775           processed correctly in AS_HELP_STRING; avoid this in the examples.
2776         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
2777         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
2778           comment and reduce m4_default([foo], []) to [foo].
2779         (m4_strip): Update the explanation.
2781 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
2783         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
2784         Remove core.conftest.* too; it's generated by Tru64 5.1.
2785         Problem reported by Jennis Pruett.
2786         * lib/autoconf/functions.m4
2787         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
2788         Don't bother to remove core files; AC_RUN_IFELSE should do that
2789         for you.
2791 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
2793         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
2795 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
2797         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
2798         Report from Horst Wente.
2800 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
2802         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
2803           the comment.
2805 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
2807         * doc/autoconf.texi (External Software, Package Options): Add
2808           examples showing how to implement --with-* and --enable-* options.
2810 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
2812         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
2813         as well as configure.in.  Problem reported by Gregorio Guidi.
2815 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
2817         * doc/autoconf.texi (Particular Functions): Use gnulib's current
2818         pattern for alloca snippet.
2820 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
2822         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
2824 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
2826         * doc/autoconf.texi (Generic Programs): Fix a typo.
2828 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
2830         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
2831         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
2833 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2835         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
2836         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
2837         whole-archive (-zallextract, -zdefaultextract) options in the hope of
2838         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
2839         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
2841 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
2843         * NEWS: The configure command now warns you if you attempt to use
2844         a directory whose name contains a special character like space,
2845         newline, or "\".
2846         * doc/autoconf.texi (Installation Directory Variables): Allow
2847         "," in file names.  Do not use \@; it's not a portable regexp.
2848         * bin/Makefile.am (edit): Likewise.
2849         * lib/Makefile.am (edit): Likewise.
2850         * tests/Makefile.am (edit): Likewise.
2851         * tests/semantics.at: Likewise.
2852         * tests/torture.at: Likewise.
2853         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
2854         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
2855         * doc/autoconf.texi (File System Conventions): Warn about
2856         unportable file names.
2857         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
2858         (AC_INIT): Use it.
2859         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
2860         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
2861         ac_pwd, and quote srcdir.
2862         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
2864         * doc/autoconf.texi: Fix some systematic formatting problems.
2865         ".)"  needs a following @: if not at the end of a sentence, and
2866         similarly for "!)".  "etc." should be preceded by a comma.
2867         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
2869 2005-03-22  Bruno Haible  <bruno@clisp.org>
2871         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
2872         argument is often called 'build-aux'.
2874 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
2876         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
2877           macro AC_TRY_LINK is obsolete.
2878         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
2879           `AC_CONFIG_FILES'.
2881 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
2883         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
2884           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
2885           from a Common Lisp's `cl'.
2886         (AC_PROG_CXX): Behave according to the documentation: don't
2887           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
2888           make the variable CCC precious; use `cl.exe', not `cl'.
2890 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2891             Alexandre Duret-Lutz  <adl@gnu.org>
2893         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
2894         /dev/null, as "configure" shouldn't read stdin, and this insulates
2895         us from problems (e.g., when testing for "cl").  Also, do this
2896         redirection before invoking "hostname" or "uname", and keep the
2897         original input stream available via...
2898         (AS_ORIGINAL_STDIN_FD): ... this new macro.
2899         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
2900         bother with "</dev/null" since it's now done at the top of
2901         'configure'.
2902         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
2903         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2904         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
2905         * doc/autoconf.texi (File Descriptor Macros): New section.
2906         (Printing Messages): Mention it.
2907         * tests/base.at (Input/Output): New test.
2909 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2911         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
2912         newline if neither \c nor -n work, as that would output two
2913         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
2915 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
2917         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
2918         This causes that any required macros inside will get before the if.
2919         * doc/autoconf.texi (autom4te.cache): A typo.
2921 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2923         Undo previous change, except keep the change to
2924         lib/autoconf/programs.m4 that replaced grep with shell
2925         pattern-matching.  This is because net-snmp configure reads stdin.
2926         Reported by Noah Misch.
2928 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
2930         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
2931         from /dev/null, as "configure" shouldn't read stdin, and this
2932         insulates us from problems (e.g., when testing for "cl").
2933         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
2934         before invoking "hostname" or "uname".
2935         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2936         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
2937         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
2938         "</dev/null" since it's now done at the top of 'configure'.
2939         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2940         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
2941         Also, replace grep with shell pattern-matching, to save a process.
2943 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
2945         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2946         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
2947         avoid thinking that Allegro Common Lisp's "cl" command is a C++
2948         compiler.
2950 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2952         * doc/autoconf.texi (Limitations of Usual Tools): Document that
2953         grep -q isn't portable.  Improve grep -s explanation.
2954         Problem reported by Dan Manthey.
2956 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2958         * doc/autoconf.texi (Special Shell Variables): Clarify
2959         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
2961 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2963         * doc/autoconf.texi: Use @acronym for DJGPP.
2964         Fix some @code's that should have been @env's, and vice versa.
2965         Sort environment variable names.
2966         Mention that shells no longer inherit IFS.
2967         Don't recommend PATH_SEPARATOR=';' so strongly.
2968         Mention that $RANDOM might expand to the empty string.
2969         "symlink" and "soft link" -> "symbolic link".
2970         Improve mktemp description (reported by Bruno Haible).
2972 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
2974         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
2975         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
2976         Likewise.
2977         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
2978         Likewise.
2980 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2982         * NEWS: Mention AT_COPYRIGHT.
2984         * tests/local.at (AT_CMP): Use diff directly on input files rather
2985         than copying them.
2987         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
2988         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
2990 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
2991         and Paul Eggert  <eggert@cs.ucla.edu>
2993         * tests/autotest.at (Empty test suite): New test.
2994         * tests/torture.at (Substitute and define special characters)
2995         (Substitute a 2000-byte string, Define to a 2000-byte string)
2996         (Substitute a newline, Define a newline): New tests.
2998 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
3000         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
3001         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
3002         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
3003         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
3004         (Standard regular expressions): New test.
3005         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
3006         excess test name quoting.
3007         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
3008         CPPFLAGS to `configure' instead of setting it in `configure'.
3010         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
3011         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
3012         on some platforms.
3014         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
3015         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
3017         * tests/local.at (AT_CMP): New macro.
3018         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
3019         (AC_SAVE_STATE): Move environment grep...
3020         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
3021         (AT_CONFIG_CMP): New macro.
3022         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
3023         * tests/c.at (Extensions): Do not exit early.
3024         * tests/atlocal.in: Inherit $GREP.
3026         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
3027         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
3029         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
3030         (AC_COPYRIGHT): Factor header comment portion out and move into...
3031         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
3032         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
3033         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
3034         --version output.
3035         * tests/local.at: Add Autoconf test suite copyright notice.
3036         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
3038 2005-02-04  Bruno Haible  <bruno@clisp.org>
3039         and Paul Eggert  <eggert@cs.ucla.edu>
3041         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
3043 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
3045         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
3046         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
3048         Try not to generated lines of unlimited length, as POSIX places a
3049         2047-byte limit on line length of portable text files.
3050         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
3051         Use newline as a separator, not space.
3052         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
3053         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
3054         space.
3056 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3058         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
3059         as_func_*.  Add test to check whether positional parameters
3060         are restored after function return.
3062 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3064         * doc/autoconf.texi (Special Shell Variables): Mention _,
3065         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
3066         if they contain a lower-case letter.  The DUALCASE problem was
3067         reported by Ralf Wildenhues.
3069         * bin/autoconf.as: Don't exit with status 0 after write failure
3070         with --help or --version.
3071         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
3072         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
3074 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3076         * doc/autoconf.texi (Limitations of Usual Tools):
3077         Unicos 9 sed limitations.
3078         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
3079         to get the option-enhanced interface on older Crays.  Try ftn for
3080         Fortran 95 (newer Crays).
3082 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
3084         * man/Makefile.am (.x.1): Go back to the simple solution, but take
3085         care to echo the commands, so the user knows what's going on.
3086         Modified from a suggestion by Stepan Kasal.
3088         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
3089         with a cross reference.  Derived from a suggestion by Bruce Korb.
3091 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
3093         * doc/autoconf.texi (config.status Invocation): Warn about
3094         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
3095         * doc/install.texi (Defining Variables): Likewise.
3096         Based on a proposed patch by Ralf Wildenhues.
3098         * man/Makefile.am (.x.1): Make sure the required generated files
3099         are up to date.  Problem and original solution proposed by Stepan Kasal.
3100         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
3101         implicit-man-prerequisites): New rules, used by the above.
3103         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
3104         * config/config.guess, config/config.sub, config/install-sh: Likewise.
3105         * config/missing, config/texinfo.tex: Likewise.
3107 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
3109         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
3110         Update the long comment explaining it.
3112         m4_require no longer writes an ``is required by'' line to the
3113         execution stack.  It contains only one bit of non-redundant
3114         information: that the macro was required, not called.  And even
3115         this bit is useless in most situations: have you ever met a macro
3116         which both calls and requires the same macro?
3118         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
3119         (_m4_defun_pro_outer): ... only via this macro, for the outermost
3120           macro.
3121         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
3122         (m4_expansion_stack_pop): Remove the misplaced comment.
3123         (m4_require): Don't put the ``is required by'' line to the
3124           execution stack; slightly improve the out-of-a-defun error message.
3125         (_m4_divert_grow): New macro, counter for the temporary diversions.
3126         (_m4_require_call): Use it.
3127         * tests/m4sugar.at (m4_require): Expect output without the
3128           ``is required by'' messages.
3130 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3132         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
3133         rather than x for expr.
3135         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
3136         this is safe.
3137         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
3138         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
3139         * lib/autotest/general.m4 (AT_INIT): Likewise.
3140         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
3141         * tests/mktests.sh: Likewise.
3143 2005-01-27  Akim Demaille  <akim@epita.fr>
3145         Have autoheader honor --force.
3147         * doc/make-stds.texi, doc/standards.texi: Update from masters.
3148         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
3149         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
3150         from masters, so that FileUtils.pm's update_file provide --force
3151         support.
3152         * bin/autoheader.in: Pass $force to update_file so that
3153         config.h.in is always recreated when --force.
3155 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
3157         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
3159 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3161         * doc/autoconf.texi (Limitations of Builtins): Clarify that
3162         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
3164 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
3166         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
3167         Warn about newline stripping in `` and $().  Update Solaris
3168         version to 9.
3169         (Limitations of Builtins): Use expr "X...", not expr "x...", as
3170         X insulates us from future changes to Posix.
3171         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
3172         stripping.
3174 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
3176         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
3177           you cannot use AC_DEFINE to define macros containing `[' or `]'.
3179 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
3181         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
3182         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
3183         bug-tar mailing list.
3185 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
3187         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
3189 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3191         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
3192         ulongval to be static, to avoid unwanted GCC warning.  Problem
3193         reported by Michael Jennings via Daniel Reed; see
3194         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
3196 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
3198         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
3199         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
3200         datadir, infodir, and mandir.  Adjust argument parsing code.
3201         (_AC_INIT_HELP): Update help text.
3202         * doc/autoconf.texi (Installation Directory Variables): Document
3203         new variables.
3205 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
3207         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
3208         not seem to work, assume it does set $(MAKE).
3209         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
3211 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
3213         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
3215 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
3217         A cleanup of the diversion support in m4sugar.
3219         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
3220         (_m4_divert_n_stack): New macro; the expansion is
3221           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
3222           otherwise.
3223         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
3224         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
3225           stored in _m4_divert_diversion or _m4_divert_dump.
3226         (m4_divert_pop): When the parameter is given, compare the symbolic
3227           name with the last diversion pushed on the stack.  Previously, the
3228           current diversion was compared with the numeric value of the
3229           diversion given as the parameter.
3230         (m4_require): If the macro hasn't been expanded yet, call ...
3231         (_m4_require_call): this new macro.
3233 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3235         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
3236         Workarounds for documented `case' limitations.
3238 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
3240         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
3241         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
3243 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3245         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
3246         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
3247         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
3249         Patch from Roger Leigh (with some minor changes) as follows:
3250         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
3251         Resurrect AC_PROG_CC_STDC.
3252         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
3253         AC_PROG_CC_C89, AC_PROG_CC_C99.
3254         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
3255         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
3256         AC_PROG_CC_C99): New macros.
3257         (AC_PROG_CC_STDC): Use them.
3258         (_AC_PROG_CC_STDC): Remove.
3259         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
3260         * THANKS: Add Roger Leigh.
3262 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
3264         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
3265         signals that the package uses Automake; a `Makefile.am' is typical but
3266         not essential.  Reported by Magnus Therning.
3267         * tests/torture.at (autoreconf.): New banner.
3268         (autoreconf and non-AC configure): Rename to `Non-Autoconf
3269         AC_CONFIG_SUBDIRS'.
3270         (autoreconf an empty directory): Rename to `Empty directory'.
3271         (Unusual Automake input files): New test.
3273 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
3275         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
3276         (AT_SETUP): Clear AT_capture_files.
3277         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
3278         (AT_KEYWORDS): Fix comment typo.
3279         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
3280         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
3281         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
3283 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
3285         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
3286         If the variable to set is already set, set ac_cv_path_$1
3287         to the preset value so caller can assume ac_cv_path_$1
3288         is available.  (trivial change)
3290 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
3292         * BUGS (Minor Problems): Warn about makefile limitations.
3293         * Makefile.am: Find and update `INSTALL' in $(srcdir).
3294         * man/Makefile.am: Find and update manual pages in $(srcdir).
3296 2004-12-24  Eric Blake  <ebb9@byu.net>
3298         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
3299         shells in subshell, to avoid noise from ash.  (trivial change)
3301 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3303         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
3304         problems with SunOS ksh and backslash escaping, Bourne shells and
3305         closing brackets (both within character classes).  Bug reported
3306         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
3307         <read>: New entry.  Mention non-availability of -r.
3309 2004-12-21  Akim Demaille  <akim@epita.fr>
3311         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
3312         avoid cluttering displayed messages.  Rather, prepend srcdir where
3313         AT_LINE is used for log files.
3315 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
3317         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
3318         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
3319           no longer part of the macro, quote the occurrence of ``$tmp''.
3320         * doc/autoconf.texi (Forbidden Patterns): Typo.
3322 2004-12-21  Akim Demaille  <akim@epita.fr>
3324         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
3325         separated from the test title by forcing a white space.
3327 2004-12-21  Akim Demaille  <akim@epita.fr>
3329         Enable Emacs navigation within testsuite.log files.
3331         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
3332         use the compilation mode.
3333         (AT_LINE): Point to the srcdir.
3335 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
3337         * tests/Makefile.am (installcheck-local): Use $(bindir).
3338         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
3339         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
3340         Makefile.am scheme Autoconf now uses.
3342 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
3344         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
3345         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
3347 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
3349         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
3350         (_AT_CHECK): Use it.
3351         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
3352         (AS_ESCAPE): Fix comment.
3353         * tests/autotest.at: Adjust section banner comments.
3354         (AT_CHECK_AT): Accept STATUS and STDERR.
3355         (AT_CHECK_AT_TEST): Likewise.
3356         (Invalid brace-enclosed parameter expansion)
3357         (Multiline command from M4 expansion)
3358         (Double-M4-quoted command): New tests.
3360 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
3362         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
3364 2004-12-17  Akim Demaille  <akim@epita.fr>
3366         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
3367         m4_pattern_allow.
3368         Suggested by Alexandre Duret-Lutz.
3369         * doc/autoconf.texi (Setting Output Variables): Catch up.
3371 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3373         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
3375 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3377         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
3378           remove the comment which said we cannot.
3380 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3382         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
3383         Reini Urban and Paul Eggert for reporting the dependencies.
3385         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
3386         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
3387         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
3389 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
3391         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
3392           so that eg. ``autoscan --help'' doesn't truncate it.
3394 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
3396         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
3397         generated conftest files.
3399 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
3401         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
3402         tracing on commands with possibly-escaped newlines.
3403         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
3404         discontinued behavior and its implications.
3405         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
3406         (BSx641-newline in command, BS-BS-newline in command)
3407         (BSx640-newline in command, Newline-CODE-BS-newline in command)
3408         (Single-quote-BS-newline in command)
3409         (Single-quote-newline-BS-newline in command): New tests.
3411 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
3413         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
3414           on platforms where it works.
3415         (_AS_TEST_PREPARE): Test for ``test -x''.
3416         (_AS_BROKEN_TEST_PREPARE): Nuke.
3418 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
3420         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
3421         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
3422           give only 4-letter prefix to AS_TMPDIR, comment fixed.
3423         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
3424           create the temporary directory.
3425         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
3427 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
3429         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
3430         (trivial change)
3432 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
3434         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
3436 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
3438         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
3439         to avoid using a negated character class.  Reported by Nicolas Joly.
3440         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
3442 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
3444         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
3445         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
3446         Don't depend on .x file explicitly, since "make" does that for us.
3447         Suggested by Stepan Kasal.
3449         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
3450         Add *.tmp.
3451         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
3452         ifnames): Factor common code.  And they said it couldn't be done!
3454 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
3456         * bin/.cvsignore: Add autoconf.in.
3457         * tests/.cvsignore: Add wrapper.in.
3458         * lib/autotest/general.m4: Escape '$' in case pattern.
3460 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
3462         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
3464         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
3466         * tests/autotest.at: New file.
3467         * tests/suite.at: Include it.
3468         * tests/Makefile.am: Distribute it.
3470         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
3471           shell tracing on a command that could contain multiple lines.
3472         * doc/autoconf.text: Document that fact and its implications.
3473         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
3474         * tests/autotest.at (Multiline backquote command substitution,
3475           Multiline parameter expansion, Literal multiline command,
3476           Multiline parenthetical command substitution): Remove XFAIL.
3478 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
3480         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
3481         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
3483 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
3485         * configure.ac (test suite): Cease to generate wrapper scripts.
3486         * configure: Regenerate.
3487         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
3488         (m4f_dependencies): Adjust accordingly.
3489         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
3490         (wrapper.in): Generate it in the build directory.
3491         (MAINTAINERCLEANFILES): Delete wrapper.in.
3492         (CLEANFILES): Add wrapper.in.
3493         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
3494         the output.  Replace each $as_me with a @wrap_program@.
3495         * tests/wrapper.in: Delete it; we always build it.
3497         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
3498         (EXTRA_DIST): Remove autoconf.in.
3499         (CLEANFILES): Add autoconf.in.
3500         (autoconf): Find autoconf.in in the build directory.
3501         * bin/autoconf.in: Delete it; we always build it.
3503 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
3505         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
3506         PATH members so as to not prepend an empty element.  Move a comment.
3507         * Makefile.am (SUBDIRS): Build in `tests' last.
3508         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
3510 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
3512         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
3513         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
3514         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
3515         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
3517 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
3519         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
3520         patch: extra "-l"s.
3522 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
3524         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
3525         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
3526         * doc/autoconf.texi (Particular Functions): Mention new behavior.
3528 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
3530         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
3531           out the common code to ...
3532         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
3533           value of the #define--default to 1, iff the macro was called
3534           with exactly one parameter.
3536 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
3538         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
3539         "char c = '\200';" rather than "char c = 0x80;" as the
3540         latter doesn't conform to the strict C standard due to
3541         overflow on signed char hosts.
3543         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
3544         to -qlanglvl=ansi.  We don't want to disable extensions.
3546 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
3548         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
3549         (Using Autotest, testsuite Scripts, Writing testsuite.at):
3550         Reword slightly to avoid some English-language problems noted
3551         by Ralf Wildenhues in:
3552         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
3554 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
3556         * NEWS: Add ^L above each release.
3558 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
3560         Fix documentation problems reported by Russ Boylan in
3561         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
3562         along with some nearby cruft.
3563         * doc/autoconf.texi (Libtool): Libtool can be used without
3564         Automake (not without Autoconf).
3565         (Introduction): Mention lists.gnu.org.
3566         * BUGS: Don't mention bugs.gnu.org.
3567         Remove mention of ancient libtool compatibility problem.
3568         * NEWS: Mention that bugs.gnu.org is kaput.
3569         * README: Likewise.  Mention where mailing list archives can be found.
3571 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
3573         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
3574         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
3576 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
3578         * doc/autoconf.texi (Pretty Help Strings): Go back to
3579         single-quoting assignments to cache variables.
3581 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
3583         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
3584         with the examples; fix the bug in MY_ARG_WITH example reported
3585         by Alexandre Duret-Lutz.
3586         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
3587         expansion of $1 in the comment emitted to configure.
3589 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
3591         * doc/autoconf.texi (Pretty Help Strings): Fix typo
3592         in my editing of the previous patch.  Problem reported
3593         by Alexandre Duret-Lutz.
3595 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
3597         * doc/autoconf.texi (Autoconf Language): Explain that
3598         ``descriptions'' may not be double quotes.
3599         (Quotation Rule Of Thumb): Likewise.
3600         (Pretty Help Strings): Likewise; remove the wrong comment;
3601         simplify the examples and improve their quoting.
3603 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
3605         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
3606         the $1_found variable, don't test whether the file is executable;
3607         Both things are checked ...
3608         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
3609         the former ``test -f''.
3610         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
3612 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
3614         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
3615         use cp -R instead.
3617 2004-11-10  Derek R. Price  <derek@ximbiot.com>
3619         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
3620         limitations.  Reorder paragraphs for clarity.
3622 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3624         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
3625         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
3626         variants", "Unix", and some related minor wording fixups.
3628         (Shellology, Special Shell Variables): Document that the Zsh
3629         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
3630         to Alexandre Duret-Lutz for this info.
3632 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
3634         * doc/autoconf.texi (One-Shot Macros): New node.
3636 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3638         * doc/autoconf.texi (Function Portability): Fix misdescription
3639         of putenv.  Problem reported by Michael Wardle.
3641 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3643         * doc/autoconf.texi (auindex): New macro.
3644         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
3645         Problem reported by Stepan Kasal.
3647 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3649         Fix problems reported by Andreas Buening in:
3650         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
3651         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
3652         in test makefile.
3653         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
3654         readable; it's not true in OS/2-emx.
3656 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
3658         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
3659         "/usr/include", clear ac_x_includes instead of leaving it as "no"
3660         (trivial change).  Problem and patch reported by Andrew Church in:
3661         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
3663 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3665         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
3666         three args in examples.  Problem reported by Frederik Fouvry in:
3667         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
3668         Also, fix some minor spacing and punctuation bugs.
3670 2004-09-02  Akim Demaille  <akim@epita.fr>
3672         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
3673         "case" to restore ordering.
3674         Reported by Stepan Kasal.
3676 2004-08-26  Akim Demaille  <akim@epita.fr>
3678         * doc/autoconf.texi: Minor typos and stylos.
3680 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3682         * configure.ac (AC_INIT): Bump to 2.59c.
3684 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3686         Version 2.59b.
3688         * README: Add advice about m4 1.4.2.
3690         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
3691         texinfo.tex for now (done by hand now).
3692         * Makefile.maint (wget_files, cvs_files):
3693         Remove ansi2knr.c; nobody uses it.
3694         (ansi2knr.c-url_prefix): Remove.
3695         (cvs-update): Fix test for failure.  I don't know why it ever
3696         worked...
3698         * doc/autoconf.texi: Update URLs, some of which went stale.
3699         Use @uref rather than @href.
3701         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
3702         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
3704         * config/config.guess, config/config.sub, config/elisp-comp,
3705         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
3706         doc/fdl.texi, doc/standards.texi: Sync with master copy.
3708         * NEWS, TODO, configure.ac, bin/autoscan.in,
3709         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
3710         doc/install.texi, lib/Autom4te/Configure_ac.pm,
3711         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
3712         lib/autoconf/programs.m4, lib/autoconf/status.m4,
3713         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
3714         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
3715         tests/tools.at, tests/torture.at:
3716         Use "file name" rather than "filename" or "path",
3717         to be consistent with the terminology of the GNU coding standards.
3719 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3721         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
3722         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
3723         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
3724         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
3726         More fixes to support spaces in the name of the build directory.
3727         This isn't a complete fix but it's an improvement.
3729         * bin/autoconf.as (autom4te_options): New var.
3730         Use it instead of appending to AUTOM4TE, so that we can allow
3731         spaces in the build directory's absolute name.
3732         * bin/autoheader.in ($autoconf): Allow spaces in file names.
3733         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
3734         AT_CHECK_NOESCAPE): Likewise.
3735         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
3736         main program): Likewise.
3738 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3740         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
3741         From Ralf Corsepius in:
3742         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
3744 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3746         * doc/autoconf.texi (Function Portability): Document isinf and
3747         and isnan.  From a suggestion by Kevin Ryde.
3749         * lib/Autom4te/General.pm (END): Return correct exit status even
3750         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
3752 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3754         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
3755         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
3756         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
3758 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
3760         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
3761         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
3762         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
3763         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
3764         * lib/autom4te.in (Automake-preselections): Preselect
3765         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
3767 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
3769         * lib/autom4te.in (Automake-preselections): Preselect
3770         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
3771         trace them.
3773 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
3775         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
3776         Tru64.
3777         * doc/autoconf.texi (Shellology): Mention BIN_SH.
3778         Document problem with "`""`" in pdksh POSIX mode.
3780 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3782         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
3783         with pdksh, too.  Problem reported by Patrick Welche via
3784         Gary V. Vaughan.
3785         * doc/autoconf.texi (Shellology): Note that set -o posix is
3786         useful for pkdsh, too.
3788 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3790         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
3791         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
3792         Don't fail if ENV or BASH_ENV is readonly.
3793         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
3794         etc. are read only.  Problem reported by Ludovic Courtes.
3796 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
3798         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
3799         zsh, disable GLOB_SUBST to avoid backslash handling problems.
3800         (trivial change)
3802 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3804         * doc/autoconf.texi (File System Conventions): Warn about
3805         names like "aux".  Problem reported by Eric Blake.
3807         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
3808         by zero instead of array size, so that we can use any arithmetic
3809         constant expression (instead of requiring an integer constant
3810         expression).  This allows us to test expressions like DBL_MAX <
3811         LDBL_MAX, which didn't conform to the C standard using the old
3812         method.
3813         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
3814         now that we can do floating-point tests at compile time.
3816 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3818         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
3819         and LDBL_EPSILON, as the resulting expression isn't an
3820         integer constant expression and violates the C standard.
3821         Problem reported by Nelson H. F. Beebe.  Also, check
3822         for "L" suffix, and check that long double doesn't have
3823         worse range or precision than double, that mixed-mode
3824         arithmetic doesn't generate a diagnostic, that double
3825         constants fit in long double.
3827 2004-06-03  Kevin Ryde  <user42@zip.com.au>
3829         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
3830         malloc(0) and realloc(NULL,size).
3832         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
3833         Bob Proulx.
3835 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3837         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
3838         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
3839         by Jim Meyering.
3841 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3843         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
3844         can be rewritten using if-then-else.  Suggested by Bruno Haible.
3846 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3848         * doc/autoconf.texi (testsuite Scripts): Fix typo.
3849         Problem reported by Stepan Kasal.
3851 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3853         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
3854         change).  Patch reported by Ralf Wildenhues in
3855         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
3857         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
3858         function F exists if the compiler and linker let you compile an
3859         expression like (F != 0).  Recent versions of GCC optimize away
3860         the reference to F in that case, since every function address must
3861         be nonzero, so the link succeeds even if F does not exist.
3862         Problem reported by Manu in
3863         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
3865         * doc/autoconf.texi (Systemology): Standardize on the spelling of
3866         "Unix".  Many uses changed.
3867         (Limitations of Builtins): Explain better why the ! command isn't
3868         portable.
3870 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
3872         * lib/autom4te.in (Automake-preselections): Preselect
3873         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
3875 2004-05-19  Kevin Ryde  <user42@zip.com.au>
3877         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
3878         referencing AC_FUNC_STRERROR_R.
3880         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
3881         note pessimistic assumption when cross compiling.
3883 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3885         * doc/autoconf.texi (Limitations of Make): Note that BSD make
3886         (until 2004) invoked subcommands with sh -e, contra POSIX.
3887         Reported by Kevin Ryde.
3889 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
3891         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
3892         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
3893         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
3894         `test -f "        /usr/bin/grep"', which _always_ failed.
3895         (AC_PROG_SED): Ditto bogus PATH fix.
3896         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
3897         requires that grep correctly supports _multiple_ `-e' options, rather
3898         than stating only that grep should accept `-e'.
3900 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3902         Port to C99, which requires that 'exit' be declared.
3904         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
3905         to ensure that stdlib.h is included.
3906         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
3907         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
3908         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
3909         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
3910         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
3911         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
3912         when using 'exit' in a test; C99 requires that 'exit' be declared.
3914 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3916         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
3917         now prefers 'grep' implementations that accept -e.
3918         (Limitations of Usual Tools): Describe problems of traditional
3919         egrep and fgrep with long input lines, and of traditional grep
3920         with -e.
3921         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
3922         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
3923         All callers changed.  Append /usr/xpg4/bin to the PATH, for
3924         Solaris.
3925         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
3926         the user with complaints about multiple -e options.
3927         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
3928         Define it with AC_PROG_GREP.
3929         * configure.ac (AC_PROG_GREP): Add.
3930         * lib/freeze.mk (GREP): New macro.
3932 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
3934         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
3935         a possible candidate only after all others fail, rather than
3936         consulting it first.  This improves backward compatibility by
3937         better reflecting the way shell selection occurred in previous
3938         versions of Autoconf, and should help to avoid triggering latent
3939         problems in other packages, such as the one in Automake where zsh
3940         is not handled robustly:
3941         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
3942         Although it is not Autoconf's responsibility to work around
3943         problems in Automake, it nevertheless makes sense to avoid
3944         introducing unnecessary incompatibilites.
3946 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
3947             Gary V. Vaughan  <gary@gnu.org>
3949         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
3950         how deeply nested we are when a suitable tool is found, set the
3951         ac_path_TOOL_found flag.
3952         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
3953         nested we are in this macro.  Break out of all 3 nested loops if
3954         ac_path_TOOL_found is set.
3956 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
3958         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
3959         of the _AS_PATH_WALK loop too if GNU flavor is found.
3961 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
3963         * doc/autoconf.texi (Limitations of Make): Update documentation
3964         for `$<'.  New entry `Long lines', based on a report from Simon
3965         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
3966         paragraph about DJGPP, based on a mail from Richard Dawe.
3968 2004-04-20  Paul Eggert  <eggert@twinsun.com>
3970         * tests/c.at (C keywords): Don't assume that GCC supports
3971         "restrict" and "inline", as sufficiently-old GCC versions do not
3972         (also, GCC configured to be in pedantic C89 mode does not).
3973         Problem reported by Sumit Pandya in:
3974         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
3976         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
3977         consider -g to work if it generates warnings when plain compiles
3978         don't.  Problem reported by Braden McDaniel in:
3979         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
3981         * doc/autoconf.texi (Slashes): New section, to document a problem
3982         reported by Jim Meyering in:
3983         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
3985         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
3986         linker output files before linking, to work around IRIX 6 linker bug.
3987         Problem reported by Rainer Orth in:
3988         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
3990 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
3992         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
3993         best tool so far counter rely on the tool path variable name to
3994         avoid checks for one tool being affected by the results of running
3995         the length check on a previous tool.
3997         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
3998         match expression argument, as different greps have different
3999         regular expression flavours.
4000         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
4001         literals.
4002         (AC_PROG_EGREP): Pass 'EGREP$'.
4003         (AC_PROG_GREP): Pass 'GREP$'.
4005 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
4007         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
4008         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
4010 2004-03-29  Paul Eggert  <eggert@twinsun.com>
4012         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
4013         Types, Specific Compiler Characteristics, System Services,
4014         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
4015         etc. consistently instead of 'long', 'short', 'unsigned' etc.
4016         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
4017         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
4018         Likewise.
4019         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
4020         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
4021         AC_TYPE_OFF_T): Likewise.
4022         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
4023         Likewise.
4025         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
4026         pacify libtool 1.5.2.  Fix quoting problems in sed command.
4028 2004-03-28  Paul Eggert  <eggert@twinsun.com>
4030         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
4031         now defines HAVE_DECL_TZNAME if it is declared, when
4032         HAVE_STRUCT_TM_TM_ZONE is not defined.
4033         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
4034         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
4035         for HAVE_TZNAME.
4037 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
4039         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
4040         superfluous backslashing of quotes (") in sed expressions;
4041         thanks to Paul Eggert.
4043 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
4045         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
4046         Fortran compiler is ifort, also added pghpf; thanks to Nelson
4047         H. F. Beebe for the bug report.
4049 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
4051         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
4052         quoted -cmdline argument in Portland Group compiler (bug
4053         reported by Jeffrey J. Barteet).
4055 2004-03-25  Kevin Ryde  <user42@zip.com.au>
4057         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
4058         (Run Time): ... here, where it's now mentioned.
4060 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
4062         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
4063         inherits from language Autoconf-without-aclocal-m4.
4064         (Customizing autom4te): Adjust example; the cache must now be
4065         disabled for language Autoconf-without-aclocal-m4.
4067 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
4068             Nathanael Nerode  <neroden@twcny.rr.com>
4070         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
4071         AC_CHECK_TOOLS): Warn if a cross-tool is found without
4072         a prefix.
4073         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
4074         AC_CHECK_TARGET_TOOLS): New macros.
4075         * doc/autoconf.texi (Generic Programs): Document
4076         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
4077         AC_CHECK_TARGET_TOOLS, and warn for future changes
4078         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
4079         AC_CHECK_TOOLS.
4080         (Specifying Names): Document the reason for these future
4081         behavioral changes.
4082         * tests/mktests.sh: Do not generate tests for the
4083         new macros.
4084         * NEWS: Document these changes.
4086         * doc/autoconf.texi: Avoid macros with unbraced arguments,
4087         they make TeX hang up.
4089 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
4091         * NEWS: New macro AC_CHECK_ALIGNOF.
4092         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
4093         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
4094         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
4095         vowel.
4096         (AC_CHECK_ALIGNOF): New macro.
4097         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
4098         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
4099         those for sizeof.
4101 2004-03-03  Paul Eggert  <eggert@twinsun.com>
4103         * bin/Makefile.am (edit): Don't use $< in a context where
4104         POSIX doesn't require support for it.  Use $@.in instead.
4105         Problem reported by Anthony N. Frasso in
4106         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
4107         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
4109 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
4111         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
4112         from the next generation of Libtool.
4113         * lib/autom4te.in (Autoreconf-preselections): Ditto.
4115 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
4117         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
4118         is not always thread-safe.  Report from Nathanael Nerode.
4120 2004-02-18  Paul Eggert  <eggert@twinsun.com>
4122         Fix a dependencies problem, stemming from a Autoconf 2.59 build
4123         problem on QNX reported by Stephen Rasku in
4124         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
4126         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
4127         $(m4sh_m4f_dependencies); this removes a FIXME.
4128         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
4129         (MAINTAINERCLEANFILES): Split into pieces,
4130         one per related section.  Add $(srcdir)/wrapper.in.
4132 2004-02-09  Paul Eggert  <eggert@twinsun.com>
4134         * doc/autoconf.texi (Setting Output Variables): Emphasize that
4135         AC_SUBST provides no portable way to escape literal newlines.
4137         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
4138         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
4139         Darwin uses -lcrt2.o and there's little point to cataloging all
4140         the system variants.  Partial fix reported by Andreas Waechter in:
4141         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
4142         for bug reported by Nelson H. F. Beebe in:
4143         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
4145 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
4147         * doc/autoconf.texi (AU_DEFUN): Fix English,
4148         suggested by Paul Eggert.
4149         * lib/autoconf/autoupdate.m4: Correct reference to
4150         acobsolete.m4, suggested by Alexandre Duret-Lutz.
4152 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
4154         * bin/autoupdate.in: Define __file__ so that warnings
4155         refer to the correct file.
4156         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
4157         the behavior of the third argument.
4158         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
4159         correctly the behavior of the third argument.  Document
4160         what the three macros that AU_DEFUN defines do.  Fix
4161         warning message when the third argument includes $0
4162         (reported by Alexandre Duret-Lutz).
4164 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
4165             Eric Sunshine  <sunshine@sunshineco.com>
4166             Paul Eggert  <eggert@twinsun.com>
4168         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
4169         (AS_INIT): Output shell initialization there. Removed optional
4170         parameter. Expand _AS_SHELL_FN_SPY.
4171         (AS_INIT_WITH_SHELL_FN): Removed.
4172         (_AS_SHELL_FN_SPY): New macro.
4173         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
4174         macros.
4175         (AS_SHELL_SANITIZE): Remove loop to find better shell
4176         and documentation for the parameter.
4177         (_AS_DETECT_BETTER_SHELL): Move it here.
4178         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
4179         (_AS_RUN): Move it here, support testing with eval.
4180         (AS_REQUIRE_SHELL_FN): Require shell functions when
4181         it is used.
4182         (_AS_LINENO_WORKS): Put around braces, we do not
4183         trigger the bash bug anymore.
4184         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
4185         use AS_INIT_WITH_SHELL_FN.
4186         * bin/autoconf.in, tests/wrapper.in: Regenerated.
4188 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
4190         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
4191         * doc/autoconf.texi: Don't say that the third parameter
4192         is broken.
4193         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
4194         (AU_DEFUN): Honor the third parameter, create autoupdate
4195         macros with AU_DEFINE.
4196         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
4197         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
4198         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
4199         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
4200         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
4201         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
4202         AC_XENIX_DIR): Likewise.
4203         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
4204         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
4205         * lib/autoconf/status.m4: Remove FIXME.
4206         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
4207         that the macro is not present anymore in the updated
4208         configure.ac.
4209         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
4210         of autoupdate.
4212 2004-01-28  Paul Eggert  <eggert@twinsun.com>
4214         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
4215         copyright years.
4216         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
4217         2003 (except 1997) to the list of copyright years.  This undoes
4218         the 2003-05-22 change, which removed the older years from the list.
4219         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
4221 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
4222             Albert Chin-A-Young  <china@thewrittenword.com>
4224         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
4225         grep or ggrep program in PATH that accepts as long lines as
4226         possible.
4227         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
4228         AC_PROG_GREP.
4229         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
4230         egrep and fgrep respectively if $GREP -E/-F don't work.
4231         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
4232         _AC_PROG_GREP, and AC_PROG_SED.
4233         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
4234         longest input length accepted by a command.
4235         (AC_PROG_SED): Use it.
4236         * doc/autoconf.texi (Particular Programs): Document the changes.
4237         * NEWS: Updated.
4239 2004-01-27  Paul Eggert  <eggert@twinsun.com>
4241         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
4242         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
4243         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
4244         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
4246         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
4247         bin/autoconf.in, config/Makefile.in, config/config.guess,
4248         config/config.sub, config/install-sh, config/mdate-sh,
4249         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
4250         lib/Makefile.in, lib/Autom4te/Makefile.in,
4251         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
4252         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
4253         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
4254         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
4255         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
4256         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
4257         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
4258         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
4259         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
4260         tests/actypes.at: Regenerate and/or sync with original
4261         sources.
4263 2004-01-26  Paul Eggert  <eggert@twinsun.com>
4265         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
4266         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
4267         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
4268         not <inttypes.h>.  Problem reported by Tim Mooney in
4269         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
4270         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
4271         Likewise.
4273         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
4274         otherwise "make check" fails because it forbids cmp (I guess
4275         because cmp treats files as binary on DOS-like systems).
4277         * tests/mktests.sh: Update copyright date to 2004, since some tests
4278         have changed in 2004.
4280 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
4282         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
4283         non-truncating sed or gsed program in PATH.
4284         * tests/acprograms.at: Add it.
4285         * doc/autoconf.texi (Particular Programs): Document it.
4286         * NEWS: Updated.
4288 2004-01-15  Paul Eggert  <eggert@twinsun.com>
4290         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
4291         -std1 disables some useful extensions on Tru64.  Problem reported
4292         by N. Lichtmaier in
4293         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
4295 2004-01-14  Paul Eggert  <eggert@twinsun.com>
4297         * doc/autoconf.texi (Programming in M4sh): Document that
4298         AS_MKDIR_P succeeds if the destination is a symbolic link
4299         to an existing directory.
4300         (Limitations of Usual Tools): Note that mkdir -p might not
4301         succeed on symlinks to directories.
4303 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
4305         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
4306         * bin/autoheader.in: Grammar fix in message.
4307         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
4308         Test for dir before calling mkdir -p.  (trivial changes)
4310 2004-01-13  Eric Blake  <ebb9@byu.net>
4312         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
4313         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
4315 2004-01-10  Jim Meyering  <jim@meyering.net>
4317         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
4319 2004-01-09  Paul Eggert  <eggert@twinsun.com>
4321         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
4322         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
4323         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
4324         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
4325         AC_COMPILE_IFELSE, since we now assume our caller invokes
4326         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
4327         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
4328         of AC_RUN_IFELSE; this avoids the warning mentioned above.
4329         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
4331 2004-01-07  Paul Eggert  <eggert@twinsun.com>
4333         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
4334         `"'...'"`, as it's confusing (and I suspect it may not work on
4335         some platforms).  The code was incorrect anyway, as it assumed
4336         that \$ evaluated to itself in that context.  Reported by
4337         Alexandre Duret-Lutz.
4339 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
4341         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
4342         and _LT_AC_TAGCONFIG.
4344 2004-01-06  Paul Eggert  <eggert@twinsun.com>
4346         * doc/autoconf.texi (One Macro Call): Fix an incorrect
4347         example, and add more examples.  Reported by Eric Sunshine.
4349 2004-01-05  Paul Eggert  <eggert@twinsun.com>
4351         * doc/autoconf.texi (Limitations of Usual Tools):
4352         Remove warning against "rm -fr" introduced yesterday; it
4353         was a false alarm.
4355         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
4356         autoscan, autoupdate, ifnames): Don't use chmod -w.
4357         * lib/Makefile.am (autom4te.cfg): Likewise.
4358         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
4359         "chmod -w".
4361 2004-01-04  Paul Eggert  <eggert@twinsun.com>
4362             Paolo Bonzini  <bonzini@gnu.org>
4364         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
4365         by doing lineno substitution only on lines containing "$LINENO".
4367 2004-01-04  Paul Eggert  <eggert@twinsun.com>
4369         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
4370         Use "rm -f" to remove conftest.sed, not plain "rm".
4371         Bug reported by David Relson in
4372         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
4374         * Makefile.am (autom4te-update):
4375         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
4376         * Makefile.maint (my-distcheck, do-po-update): Likewise.
4377         * doc/autoconf.texi (Guidelines): Likewise.
4378         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
4379         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
4380         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
4381         * lib/autotest/general.m4 (AT_INIT): Likewise.
4382         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
4383         * tests/Makefile.am (clean-local): Likewise.
4384         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
4385         srcdir): Likewise.
4386         * doc/autoconf.texi (Limitations of Usual Tools):
4387         Warn against "rm -fr".
4389 2004-01-03  Paul Eggert  <eggert@twinsun.com>
4391         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
4392         -c -o might not work.  From a suggestion by Kevin Ryde.
4393         (C Compiler, Generating Sources, Limitations
4394         of Usual Tools, Limitations of Make, Making testsuite Scripts):
4395         Don't put '-o' after non-options, as POSIX doesn't allow this.
4396         Mention that cc's name might be gcc or c89 or whatever.
4398 2004-01-04  Kevin Ryde  <user42@zip.com.au>
4400         * doc/autoconf.texi: Add various further index entries.
4402 2003-12-29  Paul Eggert  <eggert@twinsun.com>
4404         * bin/autoreconf.in (autoreconf_current_directory):
4405         Fix typo: mkdir without umask arg.
4407 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
4409         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
4410         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
4411         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
4412         explanation clearer.
4414 2003-12-24  Andreas Schwab  <schwab@suse.de>
4416         * doc/autoconf.texi (Default Includes): Fix misspelling of
4417         AC_INCLUDES_DEFAULT.
4419 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
4421         * configure.ac: Test if sh -n works.
4422         * configure: Regenerate.
4423         * tests/atlocal.in: Store the result here.
4424         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
4425         tools.at, looking in atlocal's ac_cv_sh_n_works instead
4426         of explicitly testing.
4427         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
4428         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
4429         * tests/tools.at (Syntax of the shell scripts): Simplify
4430         using AT_CHECK_SHELL_SYNTAX.
4431         (Syntax of the Perl scripts): Remove definition of
4432         AT_CHECK_PERL_SYNTAX.
4434 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
4436         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
4437         stderr to /dev/null.
4438         * bin/autoconf.in: Regenerate.
4439         * bin/wrapper.in: Regenerate.
4441 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
4443         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
4444         Extracted from AS_SHELL_SANITIZE.
4445         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
4446         macros.
4447         (AS_SHELL_SANITIZE): Move reinvocation code from
4448         _AS_LINENO_WORKS, use it to find out if shell
4449         functions work.
4450         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
4451         does not work.
4452         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
4453         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
4454         was called.
4455         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
4456         * bin/autoconf.in: Regenerate.
4457         * tests/wrapper.in: Regenerate.
4458         * tests/tools.at: Test the syntax of tests/autoconf
4459         and tests/testsuite.
4461 2003-11-24  Akim Demaille  <akim@epita.fr>
4463         * config/announce-gen (&print_locations, &print_signatures)
4464         (&sizes): New.
4465         Use them.
4466         No longer rely on Gnus to inline the list of signatures: compute
4467         them on the fly.
4469 2003-11-24  Akim Demaille  <akim@epita.fr>
4471         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
4472         override some files.
4473         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
4474         From Debian Autoconf 2.58.
4476 2003-11-24  Akim Demaille  <akim@epita.fr>
4478         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
4479         uses.
4480         From Debian Autoconf 2.58.
4482 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
4484         * TODO: Remove already done things.  Update the part about finding
4485         tools for the target.
4487 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
4489         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
4490         Make wording more consistent.
4491         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
4492         Explain the transition better.
4493         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
4494         the transition better.
4496 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
4498         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
4499         parameter of AU_DEFUN.
4500         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
4501         (AU_DEFUN): Remove the third parameter, it was not used.
4502         Use AC_DEFUN directly, not AU_DEFINE.
4503         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
4504         the expanded body, consistently with other macros such as AC_USG.
4506 2003-11-17  Paul Eggert  <eggert@twinsun.com>
4508         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
4509         into the initial confdefs.h, to work around a bug in NextStep 3.3
4510         patch 3 reported by Eric Sunshine.
4512 2003-11-15  Kevin Ryde  <user42@zip.com.au>
4514         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
4515         than $target since the latter is not usual, add guidelines on when to
4516         use or not use the system type.
4518 2003-11-12  Derek Price  <derek@ximbiot.com>
4520         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
4521         typo misrepaired by an auto-spellcheck.
4523 2003-11-12  Akim Demaille  <akim@epita.fr>
4525         * bin/autoreconf.in (&parse_args): Don't call automake with
4526         --force-missing unless it actually supports it.
4527         From Debian #219336.
4529 2003-11-12  Akim Demaille  <akim@epita.fr>
4531         * configure.ac: Bump to 2.59a.
4532         Require 2.59.
4534 2003-11-06  Akim Demaille  <akim@epita.fr>
4536         Version 2.59.
4538 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
4540         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
4541         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
4542         and ac_abs_top_srcdir are absolute paths.
4543         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
4545 2003-11-05  Akim Demaille  <akim@epita.fr>
4547         * configure.ac: Bump to 2.58a.
4549 2003-11-05  Kevin Ryde  <user42@zip.com.au>
4551         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
4552         it provokes a warning from makeinfo about looking like a cross
4553         reference in info output.
4555         * doc/autoconf.texi (Function Portability): Add notes on signal
4556         handler return type, as per AC_TYPE_SIGNAL.
4558 2003-11-04  Akim Demaille  <akim@epita.fr>
4560         Version 2.58.
4561         * doc/standards.texi: Update from master.
4563         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
4565 2003-11-04  Akim Demaille  <akim@epita.fr>
4567         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
4568         computing the absolute path to d1 in the source hierarchy: it may
4569         not exist at all.  So don't cd into it.
4570         From Alexandre Duret-Lutz.
4571         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
4573         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
4574         From Paul Eggert, but named after Perl's IO::Spec->catfile.
4575         * doc/autoconf.texi (Programming in M4sh): Document.
4576         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
4578 2003-11-03  Pavel Roskin  <proski@gnu.org>
4580         * doc/autoconf.texi (Generic Structure Checks): Describe
4581         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
4583 2003-10-31  Akim Demaille  <akim@epita.fr>
4585         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
4586         (GNU Fortran): New.
4587         * doc/autoconf.texi (Language Choice): Document.
4588         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
4589         the current language is Fortran.
4591 2003-10-31  Akim Demaille  <akim@epita.fr>
4593         * bin/autom4te.in (&freeze): Use a less likely warning separator
4594         than `\n\n', so that `\n\n\n' is valid in warnings.
4595         Reported by Steve Huston.
4597 2003-10-28  Akim Demaille  <akim@epita.fr>
4599         * Makefile.cfg (local_updates, executable-update): Tweak to be
4600         robust to parallel makes.
4601         Suggested by Alexandre Duret-Lutz.
4603 2003-10-27  Akim Demaille  <akim@epita.fr>
4605         * Makefile.cfg (executable-update): New.
4606         (local_updates): Call it.
4608 2003-10-27  Akim Demaille  <akim@epita.fr>
4610         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
4611         Don't remove core.* as it may remove valid user files.
4612         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
4613         (AC_FUNC_UTIME_NULL): Likewise.
4615 2003-10-23  Akim Demaille  <akim@epita.fr>
4617         Version 2.57g.
4618         * config/config.guess, config/config.sub: Upgrade from masters.
4620 2003-10-23  Akim Demaille  <akim@epita.fr>
4622         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
4623         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
4624         hand...
4626 2003-10-23  Akim Demaille  <akim@epita.fr>
4628         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
4629         Don't forget to remove conftest.err.
4631 2003-10-23  Akim Demaille  <akim@epita.fr>
4633         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
4634         same object file in $LIBOBJS.
4635         Reported by Alexandre Duret-Lutz & Derek Robert Price.
4636         * doc/autoconf.texi (Generic Functions): Adjust.
4638 2003-10-20  Paul Eggert  <eggert@twinsun.com>
4640         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
4641         Use 'eval', so that the resulting configure scripts work even if
4642         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
4644 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
4646         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
4647         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
4648         (_AC_LINK_IFELSE): Check the werror flag.
4649         * doc/autoconf.texi (Generic Compiler Characteristics): Document
4650         AC_LANG_WERROR.
4651         * NEWS: Mention it.
4653 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
4655         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
4656         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
4657         override AC_LINK_IFELSE.
4659 2003-10-15  Paul Eggert  <eggert@twinsun.com>
4661         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
4662         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
4663         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
4664         Mention /usr/dt/bin/dtksh on Solaris.
4665         (Shell Substitutions): Warn about $((...)).
4666         (Parentheses): New section.
4668 2003-10-15  Kevin Ryde  <user42@zip.com.au>
4670         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
4671         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
4673 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4675         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
4676         cross test.
4678 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
4680         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
4681         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
4683 2003-10-10  Andreas Schwab  <schwab@suse.de>
4685         * bin/autoheader.in: Avoid empty first line in --version and
4686         --help output.
4687         * bin/ifnames.in: Likewise.
4689 2003-10-09  Paul Eggert  <eggert@twinsun.com>
4691         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
4692         Issue a more-informative diagnostic.
4693         Problems reported by Eric Sunshine.
4695 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
4697         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
4698         -mGLOB_options_string stuff for Intel ifc, which can cause
4699         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
4700         pattern-matching instead of grep.
4702 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
4704         * doc/autoconf.texi: Document new FC Fortran macros.
4706 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
4708         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
4709         that future autopoint/aclocal/automake/autoreconf will be able
4710         to trace to find where to install local m4 macros.
4711         * doc/autoconf.texi (Input): Document it.
4712         * NEWS: Updated.
4714 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
4716         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
4717         -lcrtbegin.o to list of ignored flags and fix underquoting of
4718         -lcrt[01].o.
4720 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
4722         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
4723         cache variable instead of $G77 to decide whether to include -O2,
4724         since $G77 is specific to Fortran 77.
4726 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
4728         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
4729         free" flag.  Re-order flags tested into rough order of popularity.
4731 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
4733         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
4734         arguments so that it can be used with syntax identical to
4735         AC_PROG_F77, and so that we can more easily decide to
4736         remove/deprecate the DIALECT optional argument in the future if it
4737         proves troublesome.
4738         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
4739         non-freeform-supporting compilers.  Document freeform flags.
4741 2003-10-03  Akim Demaille  <akim@epita.fr>
4743         * configure.ac: Look for emacs, not macs.
4744         Reported by Eric Sunshine.
4746 2003-10-03  Akim Demaille  <akim@epita.fr>
4748         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
4749         * bin/autoreconf.in (autoreconf_current_directory): Create the
4750         AUX_DIR if needed, for sake of automake --add-missing etc.
4751         Suggested by Alexandre Duret-Lutz.
4753 2003-10-03  Akim Demaille  <akim@epita.fr>
4755         * configure.ac: Quotation and formatting changes.
4756         (EMACS): Don't set it if it is not recent enough to support
4757         autoconf-mode.el.
4758         From Eric Sunshine.
4760 2003-10-02  Akim Demaille  <akim@epita.fr>
4762         * bin/ifnames.in (&scan_file): Skip C++ comments.
4763         From Jeremy Yallop.
4765 2003-10-01  Pavel Roskin  <proski@gnu.org>
4767         * doc/autoconf.texi (Particular Structure Checks):
4768         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
4770 2003-10-01  Akim Demaille  <akim@epita.fr>
4772         Version 2.57f.
4774 2003-09-30  Paul Eggert  <eggert@twinsun.com>
4776         * lib/Autom4te/XFile.pm: Use Errno.
4777         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
4778         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
4780 2003-09-30  Akim Demaille  <akim@epita.fr>
4782         * config/announce-gen (&print_news_deltas): Extracted from...
4783         (&print_changelog_deltas): here.
4784         (&news_file): Rename as...
4785         (@news_file): this.
4787 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
4789         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
4790         have been created when invoking the compiler.
4791         * tests/fortran.at (GNU Fortran 77): Quote $G77.
4793 2003-09-29  Akim Demaille  <akim@epita.fr>
4795         Version 2.57e.
4797         * config/mkinstalldirs: Upgrade.
4799 2003-09-28  Paul Eggert  <eggert@twinsun.com>
4801         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
4802         Problem reported by Lars J. Aas in
4803         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
4804         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
4805         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
4806         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
4808 2003-09-26  Akim Demaille  <akim@epita.fr>
4810         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
4811         directory for AC_CONFIG_COMMANDS' first argument exists.
4812         This makes valid the invocation of _AC_SRCPATH that follows.
4813         Reported by Eric Sunshine.
4814         * doc/autoconf.texi (Configuration Commands): Adjust.
4816 2003-09-26  Akim Demaille  <akim@epita.fr>
4818         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
4819         Reported by Ralf Corsepius.
4821 2003-09-26  Akim Demaille  <akim@epita.fr>
4823         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
4824         arguments.
4825         Actually, use AU_ALIAS.
4826         From Bruno Haible.
4828 2003-09-26  Paul Eggert  <eggert@twinsun.com>
4830         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
4831         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
4832         Problem reported by Eric Sunshine in:
4833         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
4835 2003-09-26  Akim Demaille  <akim@epita.fr>
4837         The test suite are sometimes assigning timings incorrectly.
4838         Reported by Henk Krus.
4839         Diagnosed by Nicolas Joly.
4841         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
4842         AT_help_all.
4843         Instead of making AT_help a sequence of assignments to grow
4844         $at_help_all, just make AT_help_all be the growing contents of
4845         $at_help_all, and make a single assignment in...
4846         (AT_INIT): here.
4847         (at_times_skip): Flip the meaning and rename as...
4848         (at_times_p): this.
4849         (AT_INIT): When summarizing the test that ran, remove
4850         $at_times_file after use, and check it is present before trying to
4851         use it.
4853 2003-09-25  Akim Demaille  <akim@epita.fr>
4855         Version 2.57d.
4857         * bin/Makefile.am (edit): Handle '@configure_input@'.
4858         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
4859         (ifnames): chmod -w.
4860         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
4861         executables, not bin/ executables!  Otherwise all the magic needed
4862         to find non installed files is turned off.  This caused a failure
4863         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
4864         as found in its environment (sent by tests/autoreconf): pointing
4865         to bin/autom4te that could not find its files.
4866         * tests/mktests.sh: Force the replacement of generated files, for
4867         the sake of "mv" program that are interactive when overwriting a
4868         -w file.
4869         * config/install-sh: Upgrade from CVS Automake.
4871 2003-09-23  Paul Eggert  <eggert@twinsun.com>
4873         * doc/autoconf.texi (Limitations of Builtins): Document test -h
4874         versus test -L issues.
4876 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
4877             Paul Eggert  <eggert@twinsun.com>
4879         Trivial change to support GCC's configuration procedure.
4880         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
4881         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
4882         about inconsistency if the preprocessor is set to give errors for
4883         any warning.
4884         * doc/autoconf.texi (C Compiler Characteristics): Document this.
4886 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
4888         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
4889         and XFile.pm from Automake.
4890         * lib/Autom4te/XFile.pm: Update from Automake.
4892 2003-09-12  Akim Demaille  <akim@epita.fr>
4894         Version 2.57c.
4896 2003-09-12  Akim Demaille  <akim@epita.fr>
4898         * config/config.guess, config/config.sub, config/missing,
4899         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
4900         from masters.
4902 2003-09-12  Akim Demaille  <akim@epita.fr>
4904         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
4905         not asm/types.h.
4907 2003-09-11  Akim Demaille  <akim@epita.fr>
4909         * doc/autoconf.texi (Header Portability): linux/random.h.
4910         From Peter Hendrickson.
4912 2003-09-10  Akim Demaille  <akim@epita.fr>
4914         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
4915         willing to edit the output files.
4917 2003-09-10  Akim Demaille  <akim@epita.fr>
4919         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
4920         and AC_FC_FREEFORM.
4921         * tests/mktests.sh: Skip AC_FC_SRCEXT.
4922         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
4924 2003-09-09  Akim Demaille  <akim@epita.fr>
4926         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
4927         Reported by Gary Vaughan.
4928         * bin/autom4te.in (handle_m4): Likewise.
4930 2003-09-09  Akim Demaille  <akim@epita.fr>
4932         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
4933         trailing files.
4935 2003-09-07  Paul Eggert  <eggert@twinsun.com>
4937         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
4938         Improve the accuracy of the wording about obsolescence.
4939         From a suggestion by Ian Lance Taylor in
4940         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
4942 2003-09-05  Paul Eggert  <eggert@twinsun.com>
4944         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
4945         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
4947 2003-09-04  Akim Demaille  <akim@epita.fr>
4949         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
4950         AC_FUNC_WAIT3.
4952 2003-09-04  Akim Demaille  <akim@epita.fr>
4954         * bin/autom4te.in: Use &fatal where more appropriate than &error.
4955         (freeze): When exiting, use $exit_code.
4956         * lib/autoconf/fortran.m4: Comment changes.
4958 2003-09-04  Akim Demaille  <akim@epita.fr>
4960         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
4962 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
4964         Add support for newer Fortran dialects.  The F77 interface is
4965         unchanged, and continues to support Fortran 77.  New FC macros
4966         correspond to all the old F77 macros, with output variables FC,
4967         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
4968         available dialect, but older dialects can be specified.  There are
4969         new macros AC_FC_SRCEXT to set the source extension, and
4970         AC_FC_FREEFORM to accept free-form source files.
4972         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
4973         New macros.
4974         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
4975         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
4976         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
4977         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
4978         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
4979         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
4980         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
4981         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
4982         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
4983         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
4984         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
4985         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
4986         AC_FC_SRCEXT, AC_FC_FREEFORM):
4987         New macros.
4988         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
4989         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
4990         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
4991         Rewrite in terms of the above.
4992         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
4993         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
4994         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
4995         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
4997 2003-09-02  Paul Eggert  <eggert@twinsun.com>
4999         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
5000         Document problems with timestamp resolution that 'make', 'cp -p', and
5001         'touch -r' have.
5003 2003-08-27  Akim Demaille  <akim@epita.fr>
5005         * tests/m4sugar.at (cross_warning): Make sure to enable the
5006         output, so that we can track spurious m4sugar output.
5007         * tests/local.at: Require 2.57.
5008         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
5009         are defaulted by AT_CHECK anyway.
5010         Use AT_CHECK_AUTOM4TE.
5011         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
5012         missing dnl.
5014 2003-08-27  Akim Demaille  <akim@epita.fr>
5016         * bin/autoheader.in: Issue the "Using auxiliary..." message only
5017         when -Wobsolete is set.
5018         Set it on by default.
5019         Suggested by Klee Dienes.
5021 2003-08-27  Akim Demaille  <akim@epita.fr>
5023         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
5024         documentation.
5025         From Guido Draheim.
5027 2003-08-26  Akim Demaille  <akim@epita.fr>
5029         * doc/autoconf.texi (Output): Make clear that one can run code
5030         after AC_OUTPUT.
5032 2003-08-25  Akim Demaille  <akim@epita.fr>
5034         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
5035         CVS Bison.
5037 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
5039         * bin/autoreconf.in (parse_args): Do not pass --no-force to
5040         Automake versions prior to 1.8.
5042 2003-08-25  Akim Demaille  <akim@epita.fr>
5044         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
5045         From Ville Karaila.
5047 2003-08-24  Akim Demaille  <akim@epita.fr>
5049         * configure.ac: Bump to 2.57c.
5051 2003-08-22  Akim Demaille  <akim@epita.fr>
5053         Version 2.57b.
5055         * Makefile.cfg (local-checks-to-skip): New.
5056         * Makefile.maint (local-check): Rename as...
5057         (local-checks-available): this.
5058         (local-check): New.
5060         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
5061         * configure.ac: Require Automake 1.7.6.
5063 2003-08-22  Akim Demaille  <akim@epita.fr>
5065         Output stack traces in warnings.
5067         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
5068         Replace the former...
5069         (m4_warn): Pass the call stack to _m4_warn.
5070         * bin/autom4te.in: Adjust to output the call stack.
5071         * tests/m4sugar.at (m4@&t@_warn): Adjust.
5073 2003-08-22  Akim Demaille  <akim@epita.fr>
5075         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
5076         * bin/autom4te.in: Adjust.
5078 2003-08-21  Akim Demaille  <akim@epita.fr>
5080         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
5081         (&verbose): Remove.
5082         (&getopt): Adjust the note and verb channels, depending upon
5083         --verbose.
5084         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
5085         * bin/autoupdate.in: Adjust.
5086         Use &verb, not &verbose.
5088 2003-08-21  Akim Demaille  <akim@epita.fr>
5090         * bin/autoheader.in (&parse_args): Use &parse_warnings and
5091         &parse_WARNINGS.
5092         ($help): Use Autom4te::ChannelDefs::usage.
5093         * bin/autoscan.in: Use Autom4te::ChannelDefs.
5094         * lib/Autom4te/General.pm: Don't export error: you don't own it.
5096 2003-08-21  Akim Demaille  <akim@epita.fr>
5098         First stab at preserving warnings between calls to autom4te,
5099         including when the cache is used.
5101         There are still several issues: (i) there are too many runs of m4
5102         (one for include, one for warnings, and some more), (ii) warnings
5103         spreading on several lines are not handled gracefully, (iii) the
5104         code meant to have the call stack display for errors does not work
5105         (its handling should move from m4 to autom4te).
5107         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
5108         Use them.
5109         (@preselect): Add m4_warn.
5110         ($exit_status): Remove, use $exit_code.
5111         ($help): Use Autom4te::ChannelDefs::usage.
5112         (&handle_m4): No longer define the m4_warnings.
5113         At each run, extract and report the warnings.
5114         Always cache the result, including if the exit status is on
5115         failure, since if nothing changes, we should result in the same
5116         failure, hence we can use the cache.
5117         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
5118         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
5119         Remove.
5120         (m4_warn): Redefine as a do-nothing: it is its invocation that
5121         matters, as warnings are now reported via traces.
5122         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
5123         the contents of m4_warn: make it _call_ m4_warn, so that tracing
5124         the latter reveals calls to the former.
5126         Adjust the tests.
5128         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
5130 2003-08-21  Akim Demaille  <akim@epita.fr>
5132         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
5133         Use them.
5135 2003-08-21  Akim Demaille  <akim@epita.fr>
5137         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
5138         forward order.
5139         * lib/Autom4te/ChannelDefs.pm: Doc typos.
5140         (&parse_warnings): Accept a list of warning requests.
5141         (&usage): Return a string, not a side effect.
5142         (cross): New warning category.
5144 2003-08-21  Akim Demaille  <akim@epita.fr>
5146         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
5147         (&require_configure_ac): Accept an optional directory argument.
5148         ($configure_ac): Remove.
5149         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
5150         (&catfile): Remove.
5151         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
5152         * bin/autoscan.in: Adjust.
5154 2003-08-20  Akim Demaille  <akim@epita.fr>
5156         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
5157         Reported by Alexandre Duret-Lutz.
5159 2003-08-20  Akim Demaille  <akim@epita.fr>
5161         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
5162         * bin/autom4te: Adjust.
5163         In particular, be Autoconf tools are really silent when properly
5164         working, bind the verbosity of the 'note' channel to $verbose.
5165         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
5166         (&xsystem, &contents): Remove, since they are exported by...
5167         * lib/Autom4te/FileUtils.pm: this.
5168         More perldoc.
5169         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
5170         * lib/Autom4te/FileUtils.pm: here.
5172 2003-08-20  Akim Demaille  <akim@epita.fr>
5174         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
5175         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
5176         from CVS Automake.
5178 2003-08-20  Akim Demaille  <akim@epita.fr>
5180         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
5181         (autom4te-update): New.
5182         * Makefile.cfg (update): Bind autom4te-update.
5184 2003-08-19  Derek Price  <derek@ximbiot.com>
5186         * lib/autotest/general.m4: Comment various HELP_* diversions.
5187         (PARSE_ARGS_BEGIN): New section for option parsing related
5188         initialization.
5189         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
5190         package specific options and associated help.
5192 2003-08-19  Akim Demaille  <akim@epita.fr>
5194         * config/announce-gen, Makefile.cfg: New.
5195         * Makefile.am: Adjust.
5196         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
5198 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
5200         * lib/autom4te.in (Automake-preselections): Preselect
5201         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
5202         and m4_sinclude.
5204 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
5206         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
5207         (Autoconf-without-aclocal-m4): ... this new language.
5208         * doc/autoconf.texi (autom4te Invocation): Mention
5209         Autoconf-without-aclocal-m4.
5211 2003-08-18  Derek Price  <derek@ximbiot.com>
5213         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
5214         RUN-IF-PASS optional arguments.
5216 2003-08-18  Derek Price  <derek@ximbiot.com>
5218         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
5220 2003-08-16  Derek Price  <derek@ximbiot.com>
5222         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
5223         STDOUT & STDERR arguments.
5225 2003-08-14  Derek Price  <derek@ximbiot.com>
5227         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
5228         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
5229         shorter column three.  Add DESCRIPTION to log file content.
5231 2003-08-13  Derek Price  <derek@ximbiot.com>
5233         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
5234         output.
5236 2003-08-12  Derek Price  <derek@ximbiot.com>
5238         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
5239         (AT_CHECK_NOESCAPE): Move core functionality to...
5240         (_AT_CHECK): ...this new macro.
5242 2003-08-07  Derek Price  <derek@ximbiot.com>
5244         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
5245         (AT_CHECK_NOESCAPE): ...to this new macro.
5247 2003-07-31  Paul Eggert  <eggert@twinsun.com>
5249         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
5250         in Bash 2.01.  Problem reported by Brian Gough in
5251         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
5253 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
5255         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
5256         -lcrt1.o, for OS X.  (trivial change)
5258 2003-07-07  Paul Eggert  <eggert@twinsun.com>
5260         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
5261         inside '#ifndef __cplusplus'.  Problem reported by
5262         Bob Friesenhahn.
5264 2003-07-06  Bill Clarke  <llib@computer.org>
5266         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
5267         'long', not 'int', for benefit of Sun's recent C++ compilers
5268         (trivial change).  See:
5269         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
5270         (This really should be 'intptr_t', not 'long', but that would
5271         take more work.)
5273 2003-06-25  Akim Demaille  <akim@epita.fr>
5275         * lib/Makefile.am (autom4te.cfg): Make it read only.
5276         Depend on Makefile since it contains substitutions.
5277         From Paolo Bonzini.
5278         * lib/autom4te.in (args): Add local.at? for Autotest args.
5279         This change was made on autom4te.cfg which is generated.
5280         Reported by Raja R. Harinath.
5282 2003-06-25  Akim Demaille  <akim@epita.fr>
5284         * doc/autoconf.texi (Header Portability): sys/mount.h.
5285         From Gareth McCaughan.
5287 2003-06-23  Akim Demaille  <akim@epita.fr>
5289         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
5290         not all of them.  This fixes 1. the fact that when testing
5291         Autoconf there are many many config.log, 2. the incorrect use of
5292         top_srcdir to find config.log.
5293         Don't mix the detailed output of failed test with the summary of
5294         failures.  Rather, append detailed log afterwards.
5296 2003-06-23  Akim Demaille  <akim@epita.fr>
5298         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
5299         always run: output config.log on $at_group_log.
5301 2003-06-23  Akim Demaille  <akim@epita.fr>
5303         * tests/torture.at (#define header templates): Don't use quotes in
5304         C++ comments as it puzzles Emacs' sh font-lock-mode.
5306 2003-06-23  Akim Demaille  <akim@epita.fr>
5308         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
5309         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
5310         * tests/atspecific.m4: Rename as...
5311         * tests/local.at: This.
5312         * tests/suite.at: Move the globals into...
5313         * tests/local.at: here.
5314         * tests/Makefile.am: Adjust.
5315         * doc/autoconf.texi (testsuite Scripts): Adjust.
5317 2003-06-21  Kevin Ryde  <user42@zip.com.au>
5319         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
5320         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
5321         ensuring we add -std1 for full-ANSI.
5323         * doc/autoconf.texi (hdrindex): New macro.
5324         Add index entries for portability of various standard header files.
5326 2003-06-20  Akim Demaille  <akim@epita.fr>
5328         * configure.ac: Bump to 2.57b.
5330 2003-06-20  Akim Demaille  <akim@epita.fr>
5332         Version 2.57a.
5334 2003-06-20  Akim Demaille  <akim@epita.fr>
5336         * bin/autom4te.in: Don't rely on $HOME being defined.
5337         Reported by Marc Espie as PR/233.
5339 2003-06-20  Akim Demaille  <akim@epita.fr>
5341         * lib/autotest/general.m4: Use at_times_file only if used.
5342         From Nicolas Joly.
5344 2003-06-20  Akim Demaille  <akim@epita.fr>
5346         * config/config.guess, config/config.sub, config/elisp-comp,
5347         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
5348         Update from masters.
5350 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
5352         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
5353         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
5354         (TEST_SCRIPT): New diversion.
5355         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
5356         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
5357         (AT_INIT): Support for expected failures.
5359 2003-06-02  Akim Demaille  <akim@epita.fr>
5361         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
5362         changes.
5363         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
5364         Autoconf nor Automake.
5365         (&contents): New, from Automake.
5366         PODify.
5368 2003-05-28  Paul Eggert  <eggert@twinsun.com>
5370         * NEWS, doc/autoconf.texi (Particular Functions),
5371         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
5372         is the inverse of localtime.
5374 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
5376         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
5377         (handle_exec_errors): New function.  Work around $! being
5378         altered by WEXITSTATUS.
5379         (xqx, xsystem): Use handle_exec_errors.
5381 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
5383         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
5384         Do not call `_exit()', simply modify `$?'.
5385         (xsystem): Reset $! before running system, and check it afterward.
5386         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
5387         63 for version mismatches.
5389 2003-05-23  Akim Demaille  <akim@epita.fr>
5391         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
5392         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
5393         the middle of a line).
5394         * lib/m4sugar/m4sugar.m4: Likewise.
5395         Remove useless spaces in comments.
5397 2003-05-23  Akim Demaille  <akim@epita.fr>
5399         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
5400         exit 63, so that we (or Automake's "missing") can tell the
5401         difference with a plain failure.
5402         * doc/autoconf.texi (Notices): Adjust.
5404 2003-05-23  Akim Demaille  <akim@epita.fr>
5406         * Makefile.am, bin/Makefile.am, config/Makefile.am,
5407         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
5408         White spaces cleanup.
5410 2003-05-22  Jim Meyering  <jim@meyering.net>
5411             Paul Eggert  <eggert@twinsun.com>
5413         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
5414         Remove `#include <stdlib.h>' from the list; we should never
5415         make confdefs.h include <stdlib.h> or <cstdlib>, because the
5416         resulting namespace pollution would cause other tests to fail.
5417         Configure scripts run with some older versions of g++ and HP's
5418         aCC would fail due to such an #include.  Problems reported by
5419         Matthew Mueller in <http://bugs.debian.org/120704> and by
5420         Keith Bostic in
5421         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
5422         In the test, use the test declaration before including <stdlib.h>,
5423         as that's closer to how it'll be used.
5425 2003-05-23  Akim Demaille  <akim@epita.fr>
5427         * doc/autoconf.texi (Header Portability): ucred.h.
5428         From Ian Redfern.
5430 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
5432         Overhaul Autotest's logging: generate separate log files
5433         in testsuite.dir/NNN/testsuite.log, and append them to
5434         testsuite.log instead of re-running the test verbosely.
5436         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
5437         file descriptor, write 0 to at_status_file instead of setting
5438         at_status=0, initialize some new variables (at_status_file,
5439         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
5440         to rerun the tests, instead append the at_group_log to the
5441         at_suite_log when a test fails.
5442         (AT_SETUP): pipe the test case's output into at_tee_pipe,
5443         with the AS_MESSAGE_LOG_FD redirected to stdout.
5444         (AT_CLEANUP): save the output status in $at_status_file
5445         and restore it, redirect the AS_MESSAGE_LOG_FD back to
5446         its original place.
5447         (AT_CHECK): since tests are run with a redirected stdout,
5448         and used to be re-run in verbose mode, turn some $at_verbose
5449         into echo, and don't redirect the output of testing stdout
5450         and stderr.
5452         * lib/autotest/autoconf.texi (testsuite Scripts): Update
5453         the name of the debugging directory and information about
5454         its contents.
5456 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
5458         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
5459         parameter.
5461 2003-05-22  Akim Demaille  <akim@epita.fr>
5463         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
5464         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
5465         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
5466         * lib/autoconf/status.m4: Fix and adjust copyright notices.
5468 2003-05-22  Akim Demaille  <akim@epita.fr>
5470         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
5471         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
5472         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
5473         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
5474         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
5475         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
5476         * lib/autoconf/status.m4, lib/autoconf/types.m4,
5477         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
5478         * tests/atspecific.m4, tests/base.at, tests/compile.at,
5479         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
5480         * tests/tools.at, tests/torture.at:
5481         Whitespace clean up.
5482         Suggested by Jim Meyering.
5484 2003-05-22  Akim Demaille  <akim@epita.fr>
5486         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
5487         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
5488         Reported by Jim Meyering.
5490 2003-05-22  Akim Demaille  <akim@epita.fr>
5492         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
5493         Add AC_HELP_STRING  to the obsolete macros section.
5494         Typos.
5495         Use '@.' for sentences that ended in a capital letter.
5496         From Art Haas.
5498 2003-05-22  Akim Demaille  <akim@epita.fr>
5500         * config/config.guess, config/config.sub, config/elisp-comp,
5501         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
5502         * config/texinfo.tex, doc/standards.texi: Update from masters.
5504 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
5506         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
5507         it to eval.
5509 2003-05-21  Akim Demaille  <akim@epita.fr>
5511         * bin/autoupdate.in ($m4): Fix quotation.
5512         Reported by Martin Mokrejs.
5514 2003-05-19  Paul Eggert  <eggert@twinsun.com>
5516         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
5517         Remove non-ASCII characters.
5519 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
5521         * tests/semantics.at (AC_SEARCH_LIBS): New test.
5522         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
5523         AC_CHECK_HEADERS_NEW): New tests.
5525 2003-05-17  Akim Demaille  <akim@epita.fr>
5527         * lib/autoconf/functions.m4: Use the default includes so that
5528         memcmp be declared before being tested.
5529         Reported by Sander Niemeijer.
5530         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
5531         * doc/autoconf.texi (Default Includes): Document
5532         AC_INCLUDES_DEFAULT.
5534 2003-05-17  Akim Demaille  <akim@epita.fr>
5536         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
5537         * doc/autoconf.texi (Obsolete Macros): Adjust.
5538         Reported by Werner LEMBERG and Debian Bug 190886.
5540 2003-05-16  Akim Demaille  <akim@epita.fr>
5542         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
5543         user name space clashes.
5544         Reported by Bruno Haible.
5546 2003-05-16  Akim Demaille  <akim@epita.fr>
5548         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
5549         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
5550         them uniform, and more robust to Perl special characters.
5551         Reported by Martin Mokrejs.
5553 2003-05-14  Akim Demaille  <akim@epita.fr>
5555         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
5557 2003-05-14  Akim Demaille  <akim@epita.fr>
5559         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
5560         linux/irda.h.
5562 2003-05-12  Akim Demaille  <akim@epita.fr>
5564         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
5565         message.
5566         From Matthias Andree.
5568 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
5570         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
5571         and truncate.
5573 2003-05-06  Akim Demaille  <akim@epita.fr>
5575         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
5576         longer updates aclocal.m4 if useless, (ii) if a file m4_included
5577         by aclocal.m4 is changed it might require the importing of another
5578         m4 extension file, i.e., aclocal must be run.
5580         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
5581         (&parse_args): Use --force with aclocal if required and supported.
5582         (&autoreconf_current_directory): Use &run_aclocal.
5584 2003-05-06  Akim Demaille  <akim@epita.fr>
5586         Lock autom4te's cache.
5588         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
5589         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
5590         argument instead of a file name, so that the request file remains
5591         open during the whole autom4te run.
5592         ($icache_file): New.
5593         (&freeze): Lock the $icache_file.
5595 2003-04-29  Derek Price  <derek@ximbiot.com>
5597         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
5598         seperator with m4_append_uniq().  It doesn't work.
5599         (AT_CLEANUP): Add `;' to end of at_help_all.
5600         (AT_INIT): Allow --keywords to be specified more than once.  When
5601         grepping $at_help_all for keywords, use the field and keyword
5602         seperators to ensure a complete keyword match.  Alter at_prev handling
5603         to support the new --keywords behavior.
5605 2003-04-27  Karl Berry  <karl@freefriends.org>
5607         * doc/autoconf.texi: Make the dir entries in the autoconf manual
5608         align better with others.  I also made some of the individual
5609         entries on one line, for brevity and to make it easier for me to
5610         sort my dir-example file in the Texinfo distribution :).
5612 2003-04-12  Jim Meyering  <jim@meyering.net>
5614         * NEWS: Mention the new macro.
5615         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
5616         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
5617         * tests/c.at: Test AC_C_RESTRICT.
5618         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
5620 2003-04-08  Akim Demaille  <akim@epita.fr>
5622         * bin/ifnames.in: Skip C++ comments.
5623         From Jeremy Yallop.
5625 2003-04-08  Akim Demaille  <akim@epita.fr>
5627         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
5628         From Ilya Zakharevich.
5630 2003-04-08  Akim Demaille  <akim@epita.fr>
5632         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
5633         net/if.h, stdlib.h.
5635 2003-04-01  Derek Price  <derek@ximbiot.com>
5637         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
5638         from Akim's checkin of 2003-03-29.
5640 2003-04-01  Derek Price  <derek@ximbiot.com>
5642         * tests/torture.at (Configuring subdirectories): Add missing
5643         close-quote for Akim's change from 2003-03-28.
5645 2003-04-01  Akim Demaille  <akim@epita.fr>
5647         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
5648         (AC, AT, MS): these.
5649         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
5650         New.
5651         Use them.
5652         * doc/Makefile.am (CLEANFILES): Adjust.
5653         (TEXI2DVI): Make it --batch.
5655 2003-03-31  Derek Price  <derek@ximbiot.com>
5657         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
5658         which removed the main loop.
5659         Thanks to Akim Demaille.
5661 2003-03-29  Akim Demaille  <akim@epita.fr>
5663         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
5664         that starts a GUI.
5665         From Ilya Zakharevich.
5667 2003-03-29  Akim Demaille  <akim@epita.fr>
5669         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
5670         documentation to read is Autoconf's.
5671         Suggested by Paul Eggert.
5673 2003-03-28  Akim Demaille  <akim@epita.fr>
5675         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
5676         reading the section "Present But Cannot Be Compiled" when the
5677         header causes problems.
5679 2003-03-28  Akim Demaille  <akim@epita.fr>
5681         * tests/torture.at (Configuring subdirectories): Require aclocal
5682         1.4, otherwise the test fails, as it does support configure.ac.
5683         This fixes the "test 40 failed" bug reports.
5685 2003-03-28  Akim Demaille  <akim@epita.fr>
5687         * doc/autoconf.texi (C Compiler): `#line' portability.
5688         From Paul Eggert and Nelson H. F. Beebe.
5690 2003-03-27  Derek Price  <derek@ximbiot.com>
5692         * lib/autotest/general.m4: Eliminate main loop and reorganize test
5693         layout in order to allow scripting around test groups.
5695 2003-03-27  Derek Price  <derek@ximbiot.com>
5697         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
5698         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
5699         use new diversions in preparation for accepting new arguments and
5700         allowing scripting around tests.
5701         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
5703 2003-03-26  Derek Price  <derek@ximbiot.com>
5705         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
5706         obsolete AC_HELP_STRING.
5707         (AC_HELP_STRING): AU_DEFUN to...
5708         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
5709         * tests/m4sh.at (AS_HELP_STRING): New test.
5711         * tests/acgeneral.at: Regenerated.
5713 2003-03-26  Derek Price  <derek@ximbiot.com>
5715         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
5716         sense.  Verbosify the diversion definitions comment.
5718 2003-03-26  Derek Price  <derek@ximbiot.com>
5720         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
5721         AS_PREPARE.
5723 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
5725         * doc/autoconf.texi (Present But Cannot Be Compiled):
5726         Grammar fixes and minor rewording. (trivial change)
5728 2003-03-06  Paul Eggert  <eggert@twinsun.com>
5730         Work around a problem noted by Nelson H. F. Beebe with coreutils
5731         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
5732         2002/05/09) rejects '#line 32768 "configure"' because the line
5733         number overflows.
5734         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
5735         #line directives.
5736         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
5737         * doc/autoconf.texi (Generating Sources): Document this.
5739 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
5741         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
5742         file name for the m4 program, when it has an "exe" file extension.
5743         DJGPP's error messages include the error code in brackets -
5744         remove the error code during normalization.
5746 2003-02-28  Akim Demaille  <akim@epita.fr>
5748         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
5750 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
5752         * doc/autoconf.texi (Limitations of Make): Remove the section
5753         about `$<' in inference rules, it was a bogus interpretation of
5754         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
5755         Tru64 make in the "target lookup" section.
5756         (Automake): Automake 1.5+ no longer requires special tools to be
5757         present on the developer's host.
5759 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
5761         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
5762         to a shell that can handle redirection or quoting correctly.
5763         Override SHELL with the shell detected by configure.
5764         Use of $^O suggested by Tim van Holder.
5765         * bin/autom4te.in (BEGIN): Likewise.
5766         * bin/autoreconf.in (BEGIN): Likewise.
5767         * bin/autoscan.in (BEGIN): Likewise.
5768         * bin/autoupdate.in (BEGIN): Likewise.
5769         * bin/ifnames.in (BEGIN): Likewise.
5771         * bin/ifnames.in: Add final newline to help and version messages.
5773         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
5774         to cope with DOS-style absolute paths, when constructing
5775         ${ac_make}.
5777         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
5778         When constructing paths with IFS=:, quote the path. If we're
5779         constructing a DOS-style absolute path, we don't want to split it
5780         on the colon.
5782         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
5783         in description.
5785 2003-02-25  Pavel Roskin  <proski@gnu.org>
5787         * bin/autoheader.in: Add missing newline when printing
5788         suggestion how change AC_DEFINE call.
5790 2003-02-24  Paul Eggert  <eggert@twinsun.com>
5792         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
5793         2002-09-01 patch by replacing "test -n" with "test -z".
5794         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
5795         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
5797         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
5798         to fix a mismatch between example and discussion.
5800 2003-02-24  Kevin Ryde  <user42@zip.com.au>
5802         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
5803         format starting with "-".
5805 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
5807         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
5808         is not portable inside Makefile.
5810 2003-02-20  Akim Demaille  <akim@epita.fr>
5812         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
5813         compiler says yeah, but preproc says nope, compiler is right.
5814         Conversely, prompt the reader to send a bug report to the
5815         maintainers of the package, not of Autoconf.
5817 2003-02-20  Klee Dienes  <kdienes@apple.com>
5819         * bin/autoreconf.in (autoreconf_current_directory): Properly
5820         handle an empty aclocal.m4.
5822 2003-02-20  Akim Demaille  <akim@epita.fr>
5824         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
5825         $ac_prefix_program.
5826         From Larry Jones.
5828 2002-12-23  Paul Eggert  <eggert@twinsun.com>
5830         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
5831         innocuous variant befor including <limits.h> or <assert.h>.  This
5832         works around a bug reported by Albert Chin: HP-UX 11i
5833         (and earlier versions) have a <limits.h> that declares
5834         gettimeofday and many other functions.
5836 2002-12-03  Paul Eggert  <eggert@twinsun.com>
5838         Version 2.57.
5840         * NEWS, configure.ac: Update version.
5842         * doc/fdl.texi: Upgrade to FDL version 1.2.
5844         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
5845         nontrivially in main's body, so that f's external declaration is
5846         not optimized away in AIX.  This should fix the bug reported by
5847         Martin Frydl in
5848         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
5850         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
5851         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
5852         defined, to support freestanding compilers.  This should fix the
5853         bug reported by Momchil Velkov in
5854         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
5856         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
5857         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
5858         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
5859         by Simon Josefsson in
5860         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
5862         * Makefile.maint (www-gnu): New macro.
5863         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
5864         the location has moved.
5866 2002-12-02  Martin Frydl  <martin@systinet.com>
5868         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
5869         \(.*\) match is too long and there is something more to be checked.
5870         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
5872 2002-11-15  Akim Demaille  <akim@epita.fr>
5874         Version 2.56.
5876         * config/install-sh: chmod +x.
5877         From Paul Eggert.
5878         * config/move-if-change: Indenting changes.
5879         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
5880         * configure.ac (AM_INIT_AUTOMAKE): here.
5881         Require 1.7.1.
5883 2002-11-14  Akim Demaille  <akim@epita.fr>
5885         Version 2.55.
5887         * config/config.guess, config/config.sub, config/install-sh:
5888         Update from masters.
5890 2002-11-14  Akim Demaille  <akim@epita.fr>
5892         * Makefile.maint: Sync with Bison, i.e.:
5893         (po-check): Scan .l and .y files instead of the
5894         .c and the .h files that they generate.  This fixes the bug
5895         reported by Tim Van Holder in:
5896         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
5897         Look for N_ as well as for _.  Try to avoid matching #define for
5898         N_ and _.
5899         From Paul Eggert.
5901 2002-11-14  Akim Demaille  <akim@epita.fr>
5903         * doc/autoconf.texi (C Compiler): Compiling several files at once.
5904         From Paul Eggert and Albert Chin-A-Young.
5906 2002-11-14  Akim Demaille  <akim@epita.fr>
5908         * doc/autoconf.texi (C Compiler): Solitary backslashes.
5909         From Paul Eggert and Albert Chin-A-Young.
5911 2002-11-14  Kevin Ryde  <user42@zip.com.au>
5913         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
5914         than assigning in main, to avoid HP cc +O3 optimizing it away.
5916 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
5918         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
5919         option.  Process --recheck after parsing all options.  Pass -q
5920         option to configure on --recheck.
5921         (AC_OUTPUT): Pass -q from configure to config.status.
5922         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
5923         arguments to record.
5924         * doc/autoconf.texi (config.status Invocation): Document
5925         config.status -q option.
5927 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
5929         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
5930         Makefile.in if Makefile.am exists.
5931         (output): Strip `.am' from Makefiles.  Don't
5932         output AC_CONFIG_FILES if no Makefiles were found.
5934 2002-11-07  Akim Demaille  <akim@epita.fr>
5936         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
5937         (local_updates): New.
5938         * Makefile.maint: Update, from CVS Bison.
5939         (local_updates): New.
5941 2002-11-06  Akim Demaille  <akim@epita.fr>
5943         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
5944         declaration in extern "C" too.
5945         Reported by Roberto Bagnara.
5947 2002-11-06  Akim Demaille  <akim@epita.fr>
5949         * tests/torture.at (Configuring subdirectories): Don't use grep
5950         -w.
5951         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
5952         Reported by Ezra Peisach.
5954 2002-11-05  Akim Demaille  <akim@epita.fr>
5956         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
5957         Remove.
5958         We _have_ to stop using the old compatibility scheme that tried to
5959         avoid useless backslashes because Libtool 1.4.3 contains a
5960         AC_DEFINE([error_t], [int],
5961         [Define to a type to use for \`error_t' if it is not
5962         otherwise available.])
5963         We _have_ to quote the single quote and backslashes with \.  The
5964         old compatibility scheme saw that ` was backslashed, and therefore
5965         did not quote the single quote.  Hence before this patch, Autoconf
5966         was not compatible with Libtool.
5968 2002-11-04  Paul Eggert  <eggert@twinsun.com>
5970         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
5971         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
5972         LC_NAME, LC_PAPER, LC_TELEPHONE.
5973         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
5975 2002-11-04  Akim Demaille  <akim@epita.fr>
5977         Version 2.54c.
5979         * Makefile.maint (update, cvs-update, po-update, do-po-update):
5980         New.
5981         * config/texinfo.tex: Update.
5983 2002-11-03  Akim Demaille  <akim@epita.fr>
5985         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
5986         from...
5987         (&autoreconf): here.
5988         ($help, $make, &parse_args, &autoreconf_current_directory):
5989         Support -m/--make.
5990         * doc/autoconf.texi (autoreconf Invocation): Adjust.
5992 2002-10-31  Bruno Haible  <bruno@clisp.org>
5994         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
5995         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
5996         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
5997         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
5998         to ac_cv_func_realloc_0_nonnull.
5999         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
6001 2002-10-31  Akim Demaille  <akim@epita.fr>
6003         The test suite was no longer checking for trailing envvars and files.
6005         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
6006         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
6008 2002-10-31  Akim Demaille  <akim@epita.fr>
6010         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
6011         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
6012         Make variable, not a shell variable.
6013         Suggested by Bruno Haible.
6015 2002-10-31  Akim Demaille  <akim@epita.fr>
6017         * bin/autom4te.in (load_configuration): Reject #args out of any
6018         language.
6020 2002-10-31  Akim Demaille  <akim@epita.fr>
6022         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
6023         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
6024         (_AC_RUN_IFELSE): Use it.
6025         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
6026         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
6027         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
6028         inline it.
6030 2002-10-30  Akim Demaille  <akim@epita.fr>
6032         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
6033         * doc/autoconf.texi (autom4te Invocation): Adjust.
6034         Suggested by Tim van Holder.
6036 2002-10-29  Paul Eggert  <eggert@twinsun.com>
6038         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
6039         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
6040         Problem reported by Bruno Haible.
6042 2002-10-29  Akim Demaille  <akim@epita.fr>
6044         * doc/autoconf.texi (Header Templates): Put also in words what the
6045         pictures says to assist free style readers.
6046         (Customizing autom4te): s/--cache=/--cache /.
6048 2002-10-29  Akim Demaille  <akim@epita.fr>
6050         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
6051         sys/wait.h.
6052         sparc_address_test returns void.
6053         Use it with an argument, as prototyped.
6054         From Bruno Haible.
6056 2002-10-29  Akim Demaille  <akim@epita.fr>
6058         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
6059         configure.in, not configure.ac.
6060         Reported by Bruno Haible.
6062 2002-10-29  Akim Demaille  <akim@epita.fr>
6064         * tests/torture.at (Deep Package): New test.
6065         (Configuring subdirectories): Don't use a testSubDir as Autotest
6066         now does it itself.
6068 2002-10-29  Akim Demaille  <akim@epita.fr>
6070         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
6071         * doc/autoconf.texi (Invoking autom4te): Rename as...
6072         (autom4te Invocation): this, for consistency with the other nodes.
6074 2002-10-29  Akim Demaille  <akim@epita.fr>
6076         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
6077         Reported by Ralf Corsepius.
6079 2002-10-29  Akim Demaille  <akim@epita.fr>
6081         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
6082         characters is a back as an `obsolete' warning now.
6083         Reported by Ralf Corsepius.
6085 2002-10-28  Akim Demaille  <akim@epita.fr>
6087         * configure.ac: Bump to 2.54c.
6089 2002-10-28  Akim Demaille  <akim@epita.fr>
6091         Version 2.54b.
6093         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
6095 2002-10-28  Akim Demaille  <akim@epita.fr>
6097         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
6098         m4 executable names, and different GNU M4 version.
6099         Reported by Ezra Peisach and Paul Jarc.
6101 2002-10-27  Akim Demaille  <akim@epita.fr>
6103         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
6104         AC_RUN_IFELSE.
6106 2002-10-27  Akim Demaille  <akim@epita.fr>
6108         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
6109         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
6110         Die when a simple Fortran program cannot be compiled.
6111         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
6112         Issue a warning if no function is given.
6114 2002-10-27  Akim Demaille  <akim@epita.fr>
6116         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
6117         Move the documentation of AC_TRY_RUN to...
6118         (Obsolete Macros): here.
6119         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
6120         (autoconf Invocation): Remove the duplicates with `invoking
6121         autom4te'.
6122         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
6123         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
6125 2002-10-27  Akim Demaille  <akim@epita.fr>
6127         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
6128         and AC_LANG_FUNC_LINK_TRY.
6129         (Examining Libraries): Rename as...
6130         (Running the Linker): this.
6131         Document AC_LINK_IFELSE.
6132         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
6133         (Obsolete Macros): here.
6134         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
6135         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
6136         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
6137         * lib/autoconf/headers.m4 (AC_USG): Likewise.
6139 2002-10-27  Akim Demaille  <akim@epita.fr>
6141         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
6143         More `check config.log' messages.
6145         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
6146         * doc/autoconf.texi (Printing Messages): Document it.
6147         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
6148         appropriate.
6149         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
6150         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
6151         (_AC_COMPILER_OBJEXT): Likewise.
6152         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
6153         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
6154         Likewise.
6155         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
6156         Likewise.
6158         Deprecate macros with unusual interfaces.
6160         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
6161         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
6163         Document the new ones, and proper style.
6165         * doc/autoconf.texi (Generating Sources): New.
6166         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
6167         (Examining Declarations): Rename as...
6168         (Running the Preprocessor): this.
6169         Document AC_PREPROC_IFELSE.
6170         (Examining Syntax): Rename as...
6171         (Running the Compiler): this.
6172         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
6173         (Obsolete Macros): Move the definition of AC_TRY_CPP and
6174         AC_TRY_COMPILE here.
6176 2002-10-27  Akim Demaille  <akim@epita.fr>
6178         Move sections around.
6180         * doc/autoconf.texi (Customizing autom4te): Remove a lost
6181         sentence.
6182         Reported by Burno Haible.
6183         (Language Choice): Now the first section of...
6184         (Writing Tests): this section.
6185         Make the introduction less C-centric.
6186         (Guidelines, Test Functions): Move to...
6187         (Writing Test Programs): this new section.
6188         (Test Programs): Merge into...
6189         (Run Time): this.
6191 2002-10-27  Akim Demaille  <akim@epita.fr>
6193         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
6194         autom4te.in that resulted in the need for two `make' runs.
6196 2002-10-27  Akim Demaille  <akim@epita.fr>
6198         * configure.ac: Bump to 2.54b.
6200 2002-10-25  Akim Demaille  <akim@epita.fr>
6202         Version 2.54a.
6204         * Makefile.maint: Update from the Coreutils.
6205         (AMTAR): Remove, obsolete.
6206         (automake_repo): Update to redhat.com.
6207         (cvs_file): New.
6208         Adjust to the fact that ansi2knr is now hosted by Automake.
6209         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
6210         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
6211         Update from masters.
6212         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
6213         autoscan.pre is not to be installed, and autoscan.list is not to
6214         be shipped.
6215         (CLEANFILES): Add autoscan.list.
6216         (autoscan.list): Disable the cache.
6217         * bin/Makefile.am: Include freeze.mk.
6219 2002-10-25  Akim Demaille  <akim@epita.fr>
6221         * bin/autom4te.in (&load_configuration): Take the file as
6222         argument.
6223         (&parse_args): Handle -C, --cache.
6224         ($help): Adjust.
6225         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
6226         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
6227         * doc/autoconf.texi (Invoking autom4te): Document --cache.
6228         Now a subsection of...
6229         (Using autom4te): This new section.
6230         (Customizing autom4te): New.
6231         (autom4te.cache): Adjust.
6233 2002-10-25  Akim Demaille  <akim@epita.fr>
6235         * doc/autoconf.texi (Generic Headers): More information on how to
6236         use AC_CHECK_HEADERS.
6238 2002-10-25  Akim Demaille  <akim@epita.fr>
6240         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
6241         Space changes.
6243 2002-10-25  Akim Demaille  <akim@epita.fr>
6245         * bin/autoscan.in (output): Output AC_PREREQ.
6246         (%needed_macros): Add AC_PREREQ so that configure.ac without one
6247         be reported.
6249 2002-10-23  Akim Demaille  <akim@epita.fr>
6251         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
6252         document _Bool.
6254 2002-10-23  Akim Demaille  <akim@epita.fr>
6256         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
6257         Reported by Peter Eisentraut.
6259 2002-10-23  Akim Demaille  <akim@epita.fr>
6261         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
6262         type _Bool.
6263         Fix a typo.
6264         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
6265         Eggert's recommandations.
6267 2002-10-22  Akim Demaille  <akim@epita.fr>
6269         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
6270         Bison, by Paul Eggert.
6271         * doc/autoconf.texi (Particular Headers): Document it.
6273 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
6275         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
6276         `$ac_configure_args'.
6278 2002-10-22  Akim Demaille  <akim@epita.fr>
6280         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
6281         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
6282         From Art Haas.
6284 2002-10-22  Akim Demaille  <akim@epita.fr>
6286         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
6288         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
6289         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
6290         (_AC_CHECK_HEADER_NEW): Rename as...
6291         (AC_CHECK_HEADER): this.
6293 2002-10-22  Akim Demaille  <akim@epita.fr>
6295         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
6296         words about HP-UX cmp: it was actually a user-written cmp.
6298 2002-10-22  Akim Demaille  <akim@epita.fr>
6300         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
6301         are a few warnings.
6302         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
6303         Quote for Perl '' strings, not "".
6304         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
6305         strings.
6307 2002-10-22  Akim Demaille  <akim@epita.fr>
6309         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
6310         characters is a syntax warning now.
6311         (_AS_QUOTE): Accept $2 as list of characters to quote.
6312         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
6313         Quote for Perl, not sh.
6314         * bin/autoheader.in: When $debug, report the file which is
6315         `do'ne.
6316         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
6317         `@', to tickle Perl's lists.
6318         Reported by Carlos Velasco.
6320 2002-10-18  Akim Demaille  <akim@epita.fr>
6322         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
6323         missing included files _are_ errors.
6324         Thanks to Alexandre Duret-Lutz.
6325         * tests/tools.at (autom4te cache): Adjust.
6326         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
6327         (AT_CHECK_M4SUGAR): Use it.
6328         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6329         Adjust.
6330         * tests/tools.at (autom4te): Now it does exit 1.
6332 2002-10-17  Akim Demaille  <akim@epita.fr>
6334         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
6335         Fixes the `AC_ARG_VAR' test failures.
6336         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
6337         * lib/freeze.mk (check-forbidden-patterns): New.
6338         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
6339         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
6340         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
6341         /dev/null.
6342         Reported months ago by H. Merijn Brand.
6344 2002-10-17  Akim Demaille  <akim@epita.fr>
6346         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
6348 2002-10-16  Paul Eggert  <eggert@twinsun.com>
6350         * Makefile.maint (wget_files): Remove ansi2knr.c.
6351         (ansi2knr.c-url_prefix): Remove.
6353 2002-10-16  Akim Demaille  <akim@epita.fr>
6355         Because of caching, some files that no longer exist and are no
6356         longer required can still cause errors.
6357         Reported by Alexandre Duret-Lutz.
6359         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
6360         to frozen files in @ARGV, as @ARGV must remain being a list of
6361         files.  Rather, at M4 call sites, use this...
6362         (&files_to_options): New function.
6363         (&freeze): Use &error.
6364         (&up_to_date): If a file that was included according to the cache
6365         is no longer there, then the output is out dated.
6366         (&main): Don't even check whether a file is up to date is anyway
6367         --force is given.
6368         * tests/tools.at (autom4te cache): New.
6370 2002-10-16  Akim Demaille  <akim@epita.fr>
6372         * bin/autoconf.as: Kill dead options.
6373         * bin/autoupdate.in (&parse_args): Kill old options.
6374         * bin/autoreconf.in (&parse_args): Remove dead options.
6375         Factor some code.
6376         (&autoreconf): Report the directories we enter *and leave*, so
6377         that error messages can be easily located, and use GNU Make
6378         format, so that Emacs' compile mode understands us.
6379         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
6380         if some file was changed instead of `print'.
6381         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
6382         (&parse_args): Remove the dead options.
6383         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
6384         autoheader's quiet mode.
6385         (AT_CHECK_AUTOUPDATE): Likewise.
6386         * tests/tools.at (autoupdate): Adjust.
6387         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
6389 2002-10-11  Akim Demaille  <akim@epita.fr>
6391         No longer use CPP to check for the existing of headers: use CC to
6392         check for compilability.
6394         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
6395         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
6396         (_AC_CHECK_HEADER_NEW): Rename as...
6397         (AC_CHECK_HEADER): this.
6399         * lib/autotest/general.m4 (AT_INIT): Include the failed test
6400         numbers in the Subject suggestion.
6402 2002-10-11  Akim Demaille  <akim@epita.fr>
6404         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
6405         Suggest using AC_CHECK_DECLS instead.
6407 2002-10-11  Akim Demaille  <akim@epita.fr>
6409         * tests/torture.at (AC_ARG_VAR): Have configure report the value
6410         of `precious'.
6412 2002-10-11  Akim Demaille  <akim@epita.fr>
6414         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
6415         file name to enable parallel executions.
6416         From Sam Varshavchik.
6418 2002-10-08  Akim Demaille  <akim@epita.fr>
6420         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
6421         aclocal invocation, as Gettext macros might not be visible to
6422         aclocal.
6423         Instead of blindly running autopoint, scan configure.ac (not the
6424         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
6425         Reported by Paul D. Smith.
6427 2002-10-08  Paul Eggert  <eggert@twinsun.com>
6429         Work around problems found when POSIXLY_CORRECT=1 is set.
6430         None of this seems to have anything to do with POSIX, really,
6431         but it's how Perl getopt works.
6432         * bin/autom4te.in (parse_args): Configure GetOpt with
6433         "permute", too.
6434         * doc/autoconf.texi (Invoking autom4te):
6435         --warning -> --warnings.
6436         * lib/autom4te.in: --warning -> --warnings.
6438 2002-09-28  Akim Demaille  <akim@epita.fr>
6440         * doc/autoconf.texi (autom4te.cache): New section.
6442 2002-09-28  Akim Demaille  <akim@epita.fr>
6444         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
6445         (Automake-preselections): Update.
6446         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
6448 2002-09-28  Akim Demaille  <akim@epita.fr>
6450         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
6451         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
6452         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
6453         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
6455 2002-09-28  Akim Demaille  <akim@epita.fr>
6457         * tests/torture.at (Configuring subdirectories): Be robust to
6458         users who use config.site to require for a cache: in this case,
6459         the two last configure runs, using two different sets of
6460         arguments, trigger a legitimate error.
6462 2002-09-28  Akim Demaille  <akim@epita.fr>
6464         * tests/m4sh.at (Functions Support, Functions and return Support):
6465         New.
6467 2002-09-28  Akim Demaille  <akim@epita.fr>
6469         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
6470         autoheader are Perl programs.
6471         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
6472         (autom4te): Specify that the sources are in the $srcdir.
6473         * doc/autoconf.texi (Installation Directory Variables): Adjust.
6475 2002-09-28  Akim Demaille  <akim@epita.fr>
6477         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
6478         (tm_zone): Move their rules to...
6479         * lib/autoconf/types.m4: here, using AN_ macros.
6480         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
6481         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
6482         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
6483         * lib/autoconf/programs.m4: here.
6484         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
6485         (ETAGS_FOR_AUTOCONF): New.
6486         Use it.
6488 2002-09-28  Akim Demaille  <akim@epita.fr>
6490         * lib/autoconf/autoscan.m4: New file.
6491         * lib/autoconf/autoconf.m4: Include it.
6492         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
6493         that were listed in the original autoscan.list.
6494         * lib/autoconf/headers.m4: Similarly with headers.
6495         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
6496         (.m4.m4f): Don't pass --prepend-include, since that's done by
6497         tests/autom4te itself.
6498         * lib/autoscan/Makefile.am: Include freeze.mk.
6499         (autoscan.list): New target --this file is no longer a source.
6500         (autoscan.pre): New file.
6502 2002-09-28  Akim Demaille  <akim@epita.fr>
6504         * bin/autoscan.in (@kinds): Make them singular.
6505         Adjust all uses.
6506         (&init_tables): When --debug, report the list of rules to ease
6507         tracking changes in autoscan.list.
6508         * lib/autoscan/autoscan.list (function): Strip comments, sort.
6510 2002-09-28  Akim Demaille  <akim@epita.fr>
6512         * lib/autoscan/functions, lib/autoscan/headers,
6513         * lib/autoscan/identifiers, lib/autoscan/makevars,
6514         * lib/autoscan/programs: Merge into...
6515         * lib/autoscan/autoscan.list: this.
6516         * bin/autoscan.in (&init_tables): Adjust.
6518 2002-09-28  Akim Demaille  <akim@epita.fr>
6520         * lib/autoscan/functions, lib/autoscan/headers,
6521         * lib/autoscan/identifiers, lib/autoscan/makevars,
6522         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
6523         `functions' line is now prefixed with `function:'.
6524         * bin/autoscan.in (&init_tables): Adjust.
6526 2002-09-28  Akim Demaille  <akim@epita.fr>
6528         From now on, autoscan files must always map a macro name to a
6529         word: there is no `default' macro for autoscan.
6531         * bin/autoscan.in (&init_tables): Reject entries with no macro at
6532         all.
6533         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
6534         explicit.
6536 2002-09-28  Akim Demaille  <akim@epita.fr>
6538         * bin/autoscan.in (%c_keywords): Remove.
6539         (&used): Keep only track of the words we might be interested in.
6540         (&output_kind): It is no longer needed to look for non active
6541         checks.
6543 2002-09-27  Akim Demaille  <akim@epita.fr>
6545         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
6546         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
6547         * lib/autoscan/functions: Adjust.
6548         * doc/autoconf.texi (Particular Functions): Adjust.
6550 2002-09-27  Akim Demaille  <akim@epita.fr>
6552         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
6553         from /tmp.
6554         Thanks to Bill Moseley and Paul Eggert.
6555         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
6556         the tmpdir must be created.
6557         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
6558         dir be in the build tree, instead of $TMPDIR.
6560 2002-09-27  Akim Demaille  <akim@epita.fr>
6562         * bin/autoscan.in: Improve the comments.
6563         (&parse_args): Drop obsolete undocumented options.
6564         (&output_kind): Output warnings.
6565         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
6566         (getwd): Trigger a warning.
6568 2002-09-26  Akim Demaille  <akim@epita.fr>
6570         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
6571         Reported by Ralf Corsepius.
6572         * doc/autoconf.texi (autoreconf Invocation): Likewise.
6574 2002-09-26  Akim Demaille  <akim@epita.fr>
6576         Single suffix rules and seperated dependencies are not portable.
6578         * doc/autoconf.texi (Installation Directory Variables): Update.
6579         (Limitations of Make): Some about `Single Suffix Rules and
6580         Separated Dependencies'.
6581         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
6582         (ifnames, autoscan, autom4te): Un-factor into several rules.
6584 2002-09-25  Paul Eggert  <eggert@twinsun.com>
6586         * BUGS (Interoperability bugs): New section.  Mention libtool
6587         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
6589 2002-09-24  Paul Eggert  <eggert@twinsun.com>
6591         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
6592         make handles suffix-rules differently from GNU make.
6594         * bin/Makefile.am (SUFFIXES, .in): Remove.
6595         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
6596         Move the body of the old .in rule here.
6598 2002-09-16  Akim Demaille  <akim@epita.fr>
6600         i960 compilers create `b.out' files by default.
6601         Reported by Ralf Corsepius.
6603         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
6604         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
6606 2002-09-13  Paul Eggert  <eggert@twinsun.com>
6608         * doc/autoconf.texi (Particular Headers): Remove obsolete
6609         reference to `struct timezone' in the description of
6610         AC_HEADER_TIME.
6612 2002-09-13  Akim Demaille  <akim@epita.fr>
6614         Version 2.54.
6616         * config/config.sub, config/config.guess: Update.
6617         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
6618         * Makefile.am: Adjust.
6620 2002-09-13  Akim Demaille  <akim@epita.fr>
6622         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
6623         reading config.log when the compiler is rejected.
6624         Suggested by Guido Draheim.
6626 2002-09-13  Akim Demaille  <akim@epita.fr>
6628         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
6629         (chdir_init) might hang when stat'ing mounted directories.
6630         Reported by Vance Shipley.
6632 2002-09-12  Akim Demaille  <akim@epita.fr>
6634         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
6635         the lists.
6637 2002-09-12  Akim Demaille  <akim@epita.fr>
6639         * doc/autoconf.texi (Defining Symbols): Present two different
6640         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
6641         difference between 1 argument calls, and 2-3 argument calls.
6643 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
6645         * doc/autoconf.texi: Review grammar and punctuation.
6647 2002-09-11  Paul Eggert  <eggert@twinsun.com>
6649         * doc/autoconf.texi: Fix minor formatting, spelling, and
6650         grammatical typos.
6651         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
6652         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
6653         is obsolescent.
6655 2002-09-11  Akim Demaille  <akim@epita.fr>
6657         * doc/autoconf.texi (Questions): Rename as...
6658         (FAQ): this.
6659         (Defining Directories): New.
6661 2002-09-09  Akim Demaille  <akim@epita.fr>
6663         * doc/autoconf.texi (Making testsuite Scripts): Update.
6664         Suggested by Nishio Futoshi.
6666 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
6668         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
6669         plain `@' is wanted.
6671 2002-09-09  Akim Demaille  <akim@epita.fr>
6673         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
6674         `duplicates', since the algorithm was too naive and could keep
6675         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
6676         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
6677         Reported by Ralf Corsepius.
6678         * tests/torture.at (Configuring subdirectories): Exercise these
6679         cases.
6681 2002-09-09  Akim Demaille  <akim@epita.fr>
6683         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
6684         looking for a replacement file.
6685         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
6686         directory is relative.
6687         * doc/autoconf.texi (Generic Functions): Clarify the replacement
6688         directory definition.
6689         Reported by Andreas Schwab and Jim Meyering.
6691 2002-09-06  Akim Demaille  <akim@epita.fr>
6693         * doc/autoconf.texi (Setting Output Variables): Clarify what
6694         precious variables are.
6695         Suggested by Pontus Skoeld.
6697 2002-09-05  Akim Demaille  <akim@epita.fr>
6699         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
6700         (ifnames, autoscan, autom4te): Since we don't only depend on
6701         configure.ac variables (such as VERSION etc.), but also on prefix
6702         and so forth, depend on Makefile, not configure.ac.
6703         Reported by Alexandre Duret-Lutz.
6704         * doc/autoconf.texi (Installation Directory Variables): Adjust.
6706 2002-09-05  Kevin Ryde  <user42@zip.com.au>
6708         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
6709         doesn't seem to be confined to ia64, just say "some versions".
6711 2002-09-04  Akim Demaille  <akim@epita.fr>
6713         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
6714         Automake 1.6c.
6715         * Makefile.am (maintainer-clean-local): Remove.
6716         (MAINTAINERCLEANFILES): Remove COPYING.
6718 2002-09-03  Paul Eggert  <eggert@twinsun.com>
6720         * doc/autoconf.texi (Configuration Commands): Remove obsolete
6721         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
6722         Brinkmann.
6724 2002-09-03  Akim Demaille  <akim@epita.fr>
6726         * configure.ac: Bump to 2.53d.
6727         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
6728         as of today, on Automake's team suggestion.
6730 2002-09-03  Akim Demaille  <akim@epita.fr>
6732         Version 2.53c.
6734 2002-09-02  Akim Demaille  <akim@epita.fr>
6736         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
6737         SITE_MACRO_DIR.
6738         * configure.ac: Disable SITE_MACRO_DIR.
6740 2002-09-02  Jim Meyering  <meyering@lucent.com>
6742         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
6743         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
6744         Also, tweak grammar: s/make sure to/be sure to/.
6746 2002-09-02  Paul Eggert  <eggert@twinsun.com>
6748         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
6749         directory names are generally preferable to physical names.
6751 2002-09-02  Akim Demaille  <akim@epita.fr>
6753         * lib/Autom4te/General.pm (&update_file): s/die/error/.
6754         Reported by Raja R. Harinath.
6755         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
6756         * bin/autoupdate.in: Use error instead of die.
6758 2002-09-01  Paul Eggert  <eggert@twinsun.com>
6760         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
6761         ordinary shell concatenation rather than echo+tr+sed command that
6762         runs afoul of a long-line-related sed bug in Solaris 8.
6764         * bin/autoheader.in (parse_args): --warning -> --warnings.
6766         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
6767         stdout, as traditional "ls" does.
6768         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
6769         _AC_COMPILER_EXEEXT_O): Likewise.
6770         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
6772         * bin/autoconf.as: Add --prepend-include option.  This patch was
6773         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
6774         but bin/autoconf.in is generated automatically from bin/autoconf.as.
6776         * bin/autoconf.in, configure: Regenerate.
6778         * doc/autoconf.texi (Special Shell Variables): Mention
6779         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
6781         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
6782         MAILPATH and set PS1, PS2, PS4 to default values, to work
6783         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
6784         For LC_ALL etc, first try to set to "C" as POSIX requires and as
6785         the Autoconf documentation specifies; fall back to "unset" only if
6786         this fails.  Use a shell for-loop for this rather than an m4 loop,
6787         to shorten the output script.
6789 2002-08-30  Paul Eggert  <eggert@twinsun.com>
6791         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
6792         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
6793         for the CDPATH problem.  Document PWD.
6794         (Limitations of Builtins): Document the problem that "cd $foo" and
6795         "ls $foo" may refer to different directories in shells conforming
6796         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
6797         example, since the old example is now out of date.
6799         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
6800         FOO" and "ls FOO" talk about different directories; this catches
6801         problems when POSIX 1003.1-2001 "cd" fails due to symlink
6802         spaghetti.
6804         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
6805         of rolling our own unset.
6806         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
6807         in practice we needn't worry about CDPATH if unset doesn't work.
6809         * Makefile.in, aclocal.m4, bin/Makefile.in,
6810         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
6811         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
6812         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
6813         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
6814         tests/Makefile.in: Regenerate with Automake 1.6.3.
6816         * config/config.guess, config/config.sub, config/mkinstalldirs:
6817         Update.
6819         * configure: Regenerate with self.
6821 2002-08-30  Kevin Ryde  <user42@zip.com.au>
6823         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
6824         default output.
6826 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6828         * bin/autom4te.in (Request::load): Correctly test for "do" read
6829         failure.
6831 2002-08-29  Akim Demaille  <akim@epita.fr>
6833         * lib/Autom4te/General.pm (&xqx): New.
6834         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
6835         hand, which is not portable.
6836         (&error): New.
6837         * bin/autom4te.in: Use them.
6838         Use &error instead of die.
6839         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6840         Adjust.
6842 2002-08-17  Paul Eggert  <eggert@twinsun.com>
6844         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
6845         default list of compilers to try, since it was long ago superseded
6846         by the ksh fc builtin.  Suggested by Steven G. Johnson.
6848 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
6850         * doc/autoconf.texi (Invoking autom4te): End the option table,
6851         fixing a bug introduced by the previous patch.
6852         (Limitations of Make): Add a 'target lookup' subentry in the
6853         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
6855 2002-07-29  Mark D. Roth  <roth@feep.net>
6857         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
6858         options and use $AUTOM4TE_PATH.
6859         * doc/autoconf.texi: Remove documentation of autom4te
6860         --include-envvar and --site-macro-subdir options and document
6861         use of $AUTOM4TE_PATH.
6862         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
6863         arguments from each language section.
6865 2002-07-29  Paul Eggert  <eggert@twinsun.com>
6867         * doc/install.texi: Include copyright symbol in copyright notice.
6869         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
6870         Replace with:
6871         (AM_MAKEINFOFLAGS): New macro.
6872         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
6873         * Makefile.am (INSTALL): Use the new macros.
6874         Use -o rather than --output, since "missing" does not grok --output.
6876 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
6878         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
6879         comments do not always work. Never trust the exit status of
6880         `make -k'.
6882 2002-07-24  Kevin Ryde  <user42@zip.com.au>
6884         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
6885         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
6887 2002-07-23  Paul Eggert  <eggert@twinsun.com>
6889         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
6890         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
6891         apparently treats PATH="nonexistent" as if it contained ".".
6892         Bug reported by Stefan `Sec' Zehl.
6894 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
6896         * doc/autoconf.texi (Limitations of Make): Mention the special
6897         handling of the obj/ directory by BSD make.
6899 2002-07-20  Kevin Ryde  <user42@zip.com.au>
6901         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
6902         backslashes.
6904 2002-07-19  Akim Demaille  <akim@epita.fr>
6906         * doc/autoconf.texi (Function Portability): `exit'.
6907         (Programming in M4sh): Ethymology of M4sh.
6909 2002-07-19  Akim Demaille  <akim@epita.fr>
6911         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
6913 2002-07-18  Akim Demaille  <akim@epita.fr>
6915         Version 2.53b.
6917 2002-07-18  Akim Demaille  <akim@epita.fr>
6919         * config/config.guess, config/config.sub: Update.
6921 2002-07-18  Akim Demaille  <akim@epita.fr>
6923         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
6924         Automake's parts.
6926         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
6927         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
6928         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
6930 2002-07-18  Akim Demaille  <akim@epita.fr>,
6931             Alexandre Duret-Lutz  <duret_g@epita.fr>
6933         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
6934         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
6936 2002-07-17  Russ Allbery  <rra@stanford.edu>
6938         * doc/autoconf.texi (Initializing configure): Clarify the
6939         description of the tarname default.
6941 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
6943         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
6944         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
6945         latter was not run.
6947 2002-07-17  Akim Demaille  <akim@epita.fr>
6949         * lib/Autom4te/General.pm (find_file): Browse the directories in
6950         the order they are given.
6952 2002-07-17  Akim Demaille  <akim@epita.fr>
6954         * tests/wrapsh.as, tests/wrappl.as: Merge into...
6955         * tests/wrapper.as: this.
6956         * tests/Makefile.am, configure.ac: Adjust.
6958 2002-07-17  Mark D. Roth  <roth@feep.net>
6960         * configure.ac: Add --enable-site-macro-dir option.
6961         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
6962         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
6963         --site-macro-subdir options.
6964         * bin/autoconf.in: Add --prepend-include option.
6965         * bin/autoheader.in: Add --prepend-include option.
6966         * bin/autoreconf.in: Add --prepend-include option.
6967         * bin/autoscan.in: Add --prepend-include option.
6968         * bin/autoupdate.in: Add --prepend-include option.
6969         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
6970         macro directory, remove note that include path directories are
6971         used in reverse order, and document --prepend-include option.
6972         * lib/autom4te.in: Use --prepend-include instead of --include.
6973         * tests/wrapsh.in: Use --prepend-include instead of --include.
6975 2002-07-17  Akim Demaille  <akim@epita.fr>
6977         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
6978         tarnames.
6979         * doc/autoconf.texi (Initializing configure): Adjust.
6981 2002-07-17  Akim Demaille  <akim@epita.fr>
6983         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
6984         (_AC_FUNC_MALLOC): New.
6985         (AC_FUNC_MALLOC): Use the latter.
6986         Define HAVE_MALLOC to 0 if broken.
6987         * doc/autoconf.texi (Particular Functions): Adjust.
6989 2002-07-16  Akim Demaille  <akim@epita.fr>
6991         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
6992         * doc/autoconf.texi (C Compiler): Adjust.
6994 2002-07-09  Akim Demaille  <akim@epita.fr>
6996         * doc/autoconf.texi: Properly set the ``header'' part.
6998 2002-07-09  Akim Demaille  <akim@epita.fr>
7000         * doc/autoconf.texi (Systemology): Some about Darwin.
7002 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
7004         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
7005         Don't use AC_REQUIRE in AU_DEFUN.
7007 2002-07-09  Art Haas  <ahaas@neosoft.com>
7009         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
7011 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
7013         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
7014         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
7015         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
7016         so that Emacs setups GNU style for perl-mode and cperl-mode.
7018 2002-06-27  Paul Eggert  <eggert@twinsun.com>
7020         * config/install-sh: Quote $src.  Prefer || to test's -o option,
7021         as per "Limitations of Builtins".
7022         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
7023         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7025         * tests/mktests.sh: Use grep instead of fgrep, as per
7026         "Limitations of Builtins".
7028 2002-06-15  Paul Eggert  <eggert@twinsun.com>
7030         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
7031         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
7032         so that we consistently test the just-built programs.
7033         * tests/wrappl.as: Likewise.
7035 2002-06-12  Paul Eggert  <eggert@twinsun.com>
7037         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
7038         name, so that symlinks to 'autoconf' work properly.  Bug reported
7039         by Bruno Haible.
7040         * bin/autoheader.in (AUTOM4TE): Likewise.
7041         * bin/autoreconf.in (autoconf, autoheader): Likewise.
7042         * bin/autoscan.in (autom4te): Likewise.
7043         * bin/autoupdate.in (autom4te): Likewise.
7045         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
7046         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
7047         on Solaris 2.5.1.
7049 2002-06-11  Andreas Schwab  <schwab@suse.de>
7051         * doc/autoconf.texi: Add more dir entries.
7053 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
7055         * bin/autom4te.in ($cache): Don't define using `$me', the name
7056         of the cache should not depend on the name under which autom4te
7057         was installed.
7059 2002-06-07  Akim Demaille  <akim@epita.fr>
7061         * tests/tools.at (autoconf: forbidden tokens, basic)
7062         (autoconf: forbidden tokens, exceptions): Adjust to the change of
7063         words in autom4te.in.
7065 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
7067         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
7068         _AC_LANG_PROGRAM_C_F77_HOOKS.
7070 2002-06-07  Akim Demaille  <akim@epita.fr>
7072         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
7073         rename as...
7074         (AC_REPLACE_FNMATCH): this.
7075         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
7076         AC_FUNC_FNMATCH_GNU.
7078 2002-06-07  Akim Demaille  <akim@epita.fr>
7080         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
7081         Rosetta Stone for Unix.
7083 2002-06-07  Akim Demaille  <akim@epita.fr>
7085         * bin/autom4te.in (warn_forbidden): When rejecting a token,
7086         suggest m4_pattern_allow.
7087         Suggested by Adam J. Richter.
7089 2002-06-07  Akim Demaille  <akim@epita.fr>
7091         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
7092         ac_config_libobj_dir.
7093         (AC_CONFIG_LIBOBJ_DIR): New.
7094         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
7095         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
7096         Use ac_config_libobj_dir to find the replacement files.
7097         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
7098         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
7099         (AC_REPLACE_FNMATCH_GNU): these.
7100         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
7101         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
7102         * tests/mktests.sh (ac_exclude_list): Don't check
7103         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
7105 2002-06-06  Paul Eggert  <eggert@twinsun.com>
7107         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
7108         if ln doesn't work.
7109         * NEWS: Likewise.
7110         * doc/autoconf.texi (Configuration Links): Likewise.
7111         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
7113 2002-06-05  Paul Eggert  <eggert@twinsun.com>
7115         * config/config.guess, config/config.sub, config/texinfo.tex:
7116         Update from masters.
7118 2002-05-29  Paul Eggert  <eggert@twinsun.com>
7120         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
7121         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
7122         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
7123         Likewise.
7124         * lib/autoconf/Makefile.am (check-local): Likewise.
7125         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
7126         * lib/autoconf/types.m4 (commentary only): Likewise.
7127         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
7128         * lib/autotest/Makefile.am (check-local): Likewise.
7129         * lib/m4sugar/Makefile.am (check-local): Likewise.
7130         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
7131         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
7133         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
7134         * doc/autoconf.texi (Particular Programs): Document them.
7135         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
7136         * NEWS: Likewise.
7138 2002-05-27  Paul Eggert  <eggert@twinsun.com>
7140         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
7141         * NEWS, doc/autoconf.texi (Particular Types): Document it.
7142         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
7143         instead of AC_MBSTATE_T, which never existed.
7145 2002-05-23  Akim Demaille  <akim@epita.fr>
7147         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
7148         version of Autoconf that is discussed.
7150 2002-05-22  Paul Eggert  <eggert@twinsun.com>
7152         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
7153         from the default list of compilers to try.  Suggested by
7154         Kate Hedstrom.
7155         * NEWS: Document the above.
7156         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
7158 2002-05-17  Paul Eggert  <eggert@twinsun.com>
7160         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
7161         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
7162         This improves on an earlier suggestion by H. Peter Anvin.
7164 2002-05-16  Paul Eggert  <eggert@twinsun.com>
7166         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
7167         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
7168         Both macros now accept an optional source-dir arg.
7169         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
7171         * NEWS: Document this.
7172         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
7174         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
7175         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
7176         not for GNU extensions; this undoes part of the 2000-11-03 change,
7177         reverting to 2.13-compatible behavior.
7178         Add new optional argument DIR.
7179         (AC_FUNC_FNMATCH_GNU): New macro.
7181         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
7183 2002-05-08  Paul Eggert  <eggert@twinsun.com>
7185         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
7186         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
7187         and it causes a 'test' syntax error if it fails.
7188         Bug reported by Stephen Gildea.
7190         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
7191         If prototypes are supported, use them to check this at compile-time,
7192         instead of trying to check it at run-time.  If we must do a run-time
7193         check, assume that setvbuf is standard when cross-compiling, as
7194         nonstandard setvbuf occurs only on ancient and unlikely hosts.
7195         Bug reported by Paul D. Smith.
7197         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
7198         argument specifying location of getloadavg.c.  This removes a
7199         FIXME.  This idea was taken from Jim Meyering's implementation in
7200         textutils.
7201         * doc/autoconf.texi (Particular Functions): Document this.
7202         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
7203         that's what the code does; this fixes a bug reported by
7204         Paul D. Smith.
7206 2002-05-03  Akim Demaille  <akim@epita.fr>
7208         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
7209         autopoint instead of gettextize.
7210         ($uses_alocal): Rename as...
7211         ($uses_aclocal): this.
7212         * doc/autoconf.texi (autoreconf Invocation): Adjust.
7213         Suggested by Bruno Haible.
7215 2002-05-03  Akim Demaille  <akim@epita.fr>
7217         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
7219 2002-04-29  Paul Eggert  <eggert@twinsun.com>
7221         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
7222         files to be 1 second older; just set them to be the same time.
7223         Also, sleep 1 second after the first aclocal, to work around
7224         problems with sub-second time stamps on the input files.
7226 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
7228         * doc/autoconf.texi: Mention "set -e -x" lossage
7229         under node "Limitations of Builtins".
7231 2002-04-29  Akim Demaille  <akim@epita.fr>
7233         * doc/install.texi: Better wording for setting variables when
7234         running configure.
7235         From Christian Cornelssen.
7237 2002-04-29  Akim Demaille  <akim@epita.fr>
7239         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
7240         of lack of $LINENO support, then the test will compare the $LINENO
7241         in testsuite vs. the lineno in the test file.  This is wrong, of
7242         course.
7243         Be sure to protect it.
7244         Reported by Patrick Welche.
7246 2002-04-25  Akim Demaille  <akim@epita.fr>
7248         * doc/autoconf.texi (Obsolete Macros): Typo.
7249         Reported by Vladimir Volovich.
7251 2002-04-25  Akim Demaille  <akim@epita.fr>
7253         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
7254         than some of the input files, hence, on the second run of aclocal,
7255         if some of its input are younger, make them older.
7256         Suggested by Paul Eggert.
7258 2002-04-25  Akim Demaille  <akim@epita.fr>
7260         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
7261         Thanks to Paul Eggert.
7263 2002-04-25  Akim Demaille  <akim@epita.fr>
7265         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
7266         and ac_subst_vars be sh variables containing the list of
7267         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
7268         DEFAULT diversion.
7269         (_AC_INIT_PREPARE): Use them to log them.
7270         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
7271         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
7272         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
7273         _AC_SUBST_FILES and _AC_SUBST_VARS.
7274         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
7276 2002-04-24  Akim Demaille  <akim@epita.fr>
7278         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
7279         autoheader, so that automake does not complain about a missing
7280         config.h.in that was to be created.
7282 2002-04-23  Akim Demaille  <akim@epita.fr>
7284         * bin/autoheader.in (parse_args): --warning takes an argument.
7285         Fixes PR/220.
7287 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
7289         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
7290         and bb.out when cleaning up.
7292 2002-04-22  Akim Demaille  <akim@epita.fr>
7294         Version 2.53a.
7296 2002-04-22  Akim Demaille  <akim@epita.fr>
7298         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
7300 2002-04-22  Akim Demaille  <akim@epita.fr>
7302         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
7303         comma.
7304         Reported by Gregory Giannoni.
7306 2002-04-22  Akim Demaille  <akim@epita.fr>
7308         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
7309         Fixes false failures on Darwin.
7311 2002-04-21  Paul Eggert  <eggert@twinsun.com>
7313         * TODO, bin/autoupdate.in, doc/autoconf.texi,
7314         lib/autoconf/general.m4, lib/autoconf/libs.m4,
7315         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
7316         tests/tools.at: Minor spelling and grammar fixes.
7318 2002-04-20  Paul Eggert  <eggert@twinsun.com>
7320         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
7321         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
7322         * lib/autotest/general.m4 (AT_INIT): Likewise.
7323         * tests/atgeneral.m4 (AT_INIT): Likewise.
7325 2002-04-19  Paul Eggert  <eggert@twinsun.com>
7327         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
7328         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
7329         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
7330         lib/autoconf/functions.m4, lib/autoconf/general.m4,
7331         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
7332         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
7333         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
7334         Minor spelling and grammar fixes.
7336         * doc/autoconf.texi: Follow the outline suggested in the GNU
7337         Sample Texts sections of the Texinfo 4.2 manual.  Most
7338         importantly, this makes sure that the copyright notices appear in
7339         all output formats.  You probably need Texinfo 4.2 to generate
7340         the manual now.
7342         Fix some bugs when using "$@" when there might be zero positional
7343         arguments in cases where this matters.
7345         * bin/autoconf.as: Rewrite so that the problem does not come up.
7346         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
7347         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
7348         * lib/autotest/general.m4 (AT_INIT): Likewise.
7350         * bin/autoheader.in: Use 'case' statement to work around problem.
7351         * bin/auto4mte.in: Likewise.
7352         * bin/autoreconf.in: Likewise.
7353         * bin/autoscan.in: Likewise.
7354         * bin/autoupdate.in: Likewise.
7355         * bin/ifnames.in: Likewise.
7357         * doc/autoconf.texi (Shell Substitutions): Document the problem.
7359         * lib/autotest/general.m4 (AT_INIT):
7360         Use Zsh alias to work around problem.
7361         * tests/atgeneral.m4 (AT_INIT): Likewise.
7363         * tests/c.at: We can't have zero arguments, so remove workaround
7364         that is not portable to Zsh.
7366 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
7368         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
7369         from aclocal.m4 too.
7371 2002-04-12  Akim Demaille  <akim@epita.fr>
7373         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
7375 2002-04-10  Akim Demaille  <akim@epita.fr>
7377         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
7378         workaround for ${1+"$@"}.
7379         * doc/autoconf.texi (Shell Substitutions): Explain it.
7380         From Oliver Kiddle and Peter Stephenson.
7382         Have M4sh perform minimal shell sanitizing.
7384         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
7385         part into...
7386         (_AS_PREPARE): this new macro.
7387         (AS_PREPARE): New.
7388         (AS_INIT): Invoke AS_SHELL_SANITIZE.
7389         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
7391         Adjust Autoconf and Autotest.
7393         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
7394         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
7395         * lib/autotest/general.m4 (AT_INIT): Likewise.
7396         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
7397         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
7398         AS_SHELL_SANITIZE.
7400         Use this M4sh to generate Autoconf's shell scripts.
7402         * tests/wrapsh.as: New, precursor of wrapsh.in.
7403         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
7404         on Autotest and M4sh.
7405         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
7406         (wrapsh.in): New target.
7407         * bin/autoconf.as: New, precursor of autoconf.in.
7408         (autoconf.in): New target.
7410 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
7412         * doc/autoconf.texi (Limitations of Make): Mention the issue
7413         with indented comments in rules.
7415 2002-04-09  Andreas Schwab  <schwab@suse.de>
7417         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
7418         ac_top_builddir when setting ac_abs_top_builddir.
7420 2002-04-06  Kevin Ryde  <user42@zip.com.au>
7422         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
7423         (Portable Shell): Cross reference to Systemology.
7425 2002-04-05  Akim Demaille  <akim@epita.fr>
7427         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
7428         directories when descending in a SUBDIRS.
7429         Reported by Ezra Peisach.
7431 2002-04-04  Andreas Schwab  <schwab@suse.de>
7433         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
7434         contains no literal separators.
7436 2002-04-03  Akim Demaille  <akim@epita.fr>
7438         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
7439         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
7440         Use dnl, not the KILL diversion.
7441         Extracted from...
7442         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
7443         (AC_CONFIG_LINKS): here.
7444         Adjust.
7445         Don't use the KILL diversion, as it kills spurious output, which
7446         results in failures being hidden.
7447         Use m4_defn where appropriate.
7448         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
7449         after the second argument.
7450         Use m4_defn.
7451         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
7452         syntax, as it is provided by M4sugar.
7453         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
7455 2002-04-03  Andreas Schwab  <schwab@suse.de>
7457         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
7458         expanded if $# <= 2.
7460         * bin/autoreconf.in (autoreconf): Run automake after rerunning
7461         aclocal.
7463 2002-04-03  Akim Demaille  <akim@epita.fr>
7465         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
7466         (_AC_COMPILER_EXEEXT_REJECT): New.
7467         Also recognize *.bb and *.bbg as compilation byproducts.
7468         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
7469         (_AC_COMPILER_OBJEXT): Use them.
7470         Fixes Debian #138666.
7472 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
7474         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
7476         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
7477         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
7478         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
7479         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
7480         (AC_C_CONST): Same.
7481         (AC_C_INLINE): Same.
7482         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
7483         * doc/autoconf.texi, NEWS: Document.
7484         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
7485         AC_C_CROSS.
7487 2002-04-02  Akim Demaille  <akim@epita.fr>
7489         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
7490         _AS_MKDIR_P_PREPARE.
7492 2002-03-28  Kevin Ryde  <user42@zip.com.au>
7494         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
7495         to avoid versions of HP C which don't allow that.
7497 2002-03-27  Paul Eggert  <eggert@twinsun.com>
7499         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
7500         (AS_SHELL_SANITIZE): Invoke it.
7501         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
7503 2002-03-26  Akim Demaille  <akim@epita.fr>
7505         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
7507 2002-03-26  Akim Demaille  <akim@epita.fr>
7509         * doc/autoconf.texi (Introduction): The GNATS base moved.
7511 2002-03-25  Paul Eggert  <eggert@twinsun.com>
7513         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
7514         as POSIX requires, as it doesn't work with Zsh.
7515         * doc/autoconf.texi (Assignments): Document the problem.
7517 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
7519         * doc/autoconf.texi (Limitations of Make): Mention more issue
7520         about VPATH, overriding of macros in sub-makes, and handling of
7521         SHELL.
7523 2002-03-21  Paul Eggert  <eggert@twinsun.com>
7525         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
7526         problem with here-document buffer boundaries.
7528         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
7529         when reinvoking the shell, to work around problems with installers
7530         who put strange things like "cd" commands in their environments.
7532 2002-03-19  Akim Demaille  <akim@epita.fr>
7534         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
7535         From Aaron Ucko.
7537 2002-03-19  Akim Demaille  <akim@epita.fr>
7539         * bin/autoscan.in (scan_file): Specify the location in `&used'
7540         invocations.
7541         From Nicolas Joly.
7543 2002-03-19  Akim Demaille  <akim@epita.fr>
7545         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
7546         From Nishio Futoshi.
7548 2002-03-19  Akim Demaille  <akim@epita.fr>
7550         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
7552 2002-03-18  Paul Eggert  <eggert@twinsun.com>
7554         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
7555         (Limitations of Usual Tools): Add mkdir section.
7557         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
7558         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
7559         back on AS_DIRNAME to compute prefixes otherwise; this is
7560         roughly what mkinstalldirs does.  That way, we need not have
7561         our own filename disassembler.  The old disassembler did not
7562         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
7564         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
7565         Create at_test_all by a series of assignments,
7566         not by a single assignment of a long string.  The latter causes ksh
7567         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
7568         presumably because of a buffer overrun.
7570 2002-03-14  Paul Eggert  <eggert@twinsun.com>
7572         * lib/autotest/general.m4 (at_times_skip):
7573         Renamed from at_times.  Now a boolean.
7574         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
7575         says 'times: not found'.
7577 2002-03-14  Akim Demaille  <akim@epita.fr>
7579         * bin/autoreconf.in (&study_gettextize): New.
7580         (&autoreconf): Handle newest gettextize.
7581         Rerun aclocal if needed.
7582         Suggested by Andreas Schwab.
7584 2002-03-13  Akim Demaille  <akim@epita.fr>
7586         * doc/autoconf.texi (Special Shell Variables): More about IFS.
7588 2002-03-13  Akim Demaille  <akim@epita.fr>
7590         * doc/autoconf.texi (Header Portability): New.
7591         Add information about stdint.h and inttypes.h from Paul Eggert.
7593 2002-03-13  Akim Demaille  <akim@epita.fr>
7595         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
7596         -p'.
7597         From Bob Proulx.
7599 2002-03-12  Akim Demaille  <akim@epita.fr>
7601         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
7602         m4_require.
7604 2002-03-11  Andreas Schwab  <schwab@suse.de>
7606         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
7607         does not do it if --with-lispdir is given.
7609 2002-03-08  Akim Demaille  <akim@epita.fr>
7611         Version 2.53.
7613 2002-03-08  Akim Demaille  <akim@epita.fr>
7615         * doc/autoconf.texi (Subdirectories): Clarify that the
7616         subdirectory should exist.
7618 2002-03-08  Akim Demaille  <akim@epita.fr>
7620         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
7622 2002-03-08  Akim Demaille  <akim@epita.fr>
7624         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
7625         aliases the actual variables, and modifications of the former
7626         affect the latter.
7628 2002-03-08  Akim Demaille  <akim@epita.fr>
7630         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
7631         because of C-c: have m4 output in tmp files, then mv them.
7633 2002-03-08  Akim Demaille  <akim@epita.fr>
7635         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
7636         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
7637         * bin/ifnames.in: Copyright update.
7639 2002-03-08  Akim Demaille  <akim@epita.fr>
7641         * doc/autoconf.texi (Invoking autom4te): New.
7643 2002-03-05  Akim Demaille  <akim@epita.fr>
7645         * doc/autoconf.texi (Specifying Names): Clarification suggested by
7646         Kevin Ryde.
7648 2002-03-05  Akim Demaille  <akim@epita.fr>
7650         Version 2.52i.
7652 2002-03-04  Akim Demaille  <akim@epita.fr>
7654         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
7655         * lib/autoconf/general.m4 (AC_INIT): More informative error
7656         message for LIBOBJ.
7658 2002-03-04  Akim Demaille  <akim@epita.fr>
7660         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
7661         parallel builds.
7663 2002-03-04  Akim Demaille  <akim@epita.fr>
7665         * doc/autoconf.texi (Transforming Names): Equality between target
7666         and host is irrelevant.
7667         (Specifying Names, Canonicalizing): Remove all references to the
7668         backward compatibility hooks.  Rather, collect them all into...
7669         (Hosts and Cross-Compilation): this new section.
7670         * doc/install.texi (System Type): Ditto.
7671         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
7672         that `--host' implies cross-compilation.
7674 2002-03-04  Akim Demaille  <akim@epita.fr>
7676         * doc/autoconf.texi (Evaluation Macros): New.
7677         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
7678         useless.
7679         (_m4_foreach): Define the variant with immediate evaluation so
7680         that it contains exactly the items, not an expression which
7681         evaluation is the current item.
7682         (m4_re_string, m4_re_word): Don't over quote them.
7684 2002-03-04  Akim Demaille  <akim@epita.fr>
7686         Instead of having stacking `shift's evaluated at the end, let
7687         `foreach' loops immediately evaluate them.
7689         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
7690         $*.  This is the n-th time I change my mind, but hopefully this is
7691         the last...
7692         (m4_lquote): New.
7693         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
7694         efficient.
7695         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
7696         it was only a hack for m4_text_wrap.
7697         (m4_car2): Remove, replaced by...
7698         (m4_cdr): New.
7699         (_m4_foreach): Adjust.
7700         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
7701         m4_bpatsubst for clarification.
7703 2002-03-04  Akim Demaille  <akim@epita.fr>
7705         * doc/autoconf.texi (Changequote is Evil): New.
7707 2002-03-03  Kevin Ryde  <user42@zip.com.au>
7709         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
7710         on old systems like SunOS.
7712 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
7714         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
7715         lib/autoconf/functions.m4, lib/autoconf/general.m4,
7716         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
7717         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
7718         of messages.
7720 2002-02-28  Akim Demaille  <akim@epita.fr>
7722         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
7723         message to be sent.
7725 2002-02-28  Kevin Ryde  <user42@zip.com.au>
7727         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
7729 2002-02-25  Akim Demaille  <akim@epita.fr>
7731         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
7732         From Akinori Musha.
7734 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
7736         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
7737         translate \r\n to \n.
7739 2002-02-07  Akim Demaille  <akim@epita.fr>
7741         Version 2.52h.
7743 2002-02-07  Akim Demaille  <akim@epita.fr>
7745         Fix Autoconf PR/209.
7746         Also reported by Frank Denis.
7748         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
7750 2002-02-07  Akim Demaille  <akim@epita.fr>
7752         Fix Autoconf PR/207:
7753         AC_PREFIX_PROGRAM fails with dashed program names
7755         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
7756         variable when looking for the prefix program.
7757         Now it also works for shell variables.
7759 2002-02-07  Akim Demaille  <akim@epita.fr>
7761         * doc/autoconf.texi (Limitations of Builtins): More about
7762         case/esac.
7764 2002-02-06  Akim Demaille  <akim@epita.fr>
7766         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
7767         case/esac, some shells don't support it.
7768         Reported by Zack Weinberg.
7769         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
7771 2002-02-06  Akim Demaille  <akim@epita.fr>
7773         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
7774         sure not to introduce newlines in at_groups.
7775         * lib/autotest/Makefile.am (autotest.m4f): Typo.
7777 2002-02-06  Akim Demaille  <akim@epita.fr>
7779         * tests/torture.at (Configuring subdirectories): Skip if aclocal
7780         is not available.
7782 2002-02-05  Paul Eggert  <eggert@twinsun.com>
7784         * doc/autoconf.texi (Specific Compiler Characteristics):
7785         Describe HP-UX cc bug workaround more accurately.
7786         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
7787         not unsigned long.
7788         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
7789         cross-compilers, too.  This undoes some of the most recent change
7790         to this file.
7792 2002-02-05  Akim Demaille  <akim@epita.fr>
7794         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
7795         to make sure they are up to date when `check' is run.
7797 2002-02-05  Akim Demaille  <akim@epita.fr>
7799         * doc/autoconf.texi (Making testsuite Scripts): Document
7800         package.m4.
7802 2002-02-05  Akim Demaille  <akim@epita.fr>
7804         * lib/freeze.mk: New.
7806 2002-02-05  Akim Demaille  <akim@epita.fr>
7808         Implement `autom4te --freeze'.
7810         * bin/autom4te.in (&freeze): New.
7811         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
7812         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
7814 2002-02-05  Akim Demaille  <akim@epita.fr>
7816         * bin/autom4te.in (&parse_args): Implement `frozen files are
7817         optional are the sum of the previous files on the command line'.
7818         Also, pass `--reload-state=' on them, so...
7819         (handle_m4): don't.
7820         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
7821         (M4sh): Rely on M4sugar.
7822         (Autotest, M4sh, M4sugar): Use frozen files.
7824 2002-01-31  Akim Demaille  <akim@epita.fr>
7826         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
7827         * doc/autoconf.texi (Initializing configure): Adjust.
7829 2002-01-30  Akim Demaille  <akim@epita.fr>
7831         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
7832         alphanumeric to `-' instead of `_'.
7834 2002-01-30  Akim Demaille  <akim@epita.fr>
7836         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
7837         for plain code, the other for cross-compilation code.  The latter
7838         is now run with GCC only.
7839         * doc/autoconf.texi (Compilers and Preprocessors): New.
7841 2002-01-30  Akim Demaille  <akim@epita.fr>
7843         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
7844         values.
7845         * doc/autoconf.texi (Initializing configure): Explain how to
7846         change AC_INIT default values.
7848 2002-01-29  Akim Demaille  <akim@epita.fr>
7850         * tests/torture.at (Configuring subdirectories): Use configure.in,
7851         so that aclocal 1.4 works.
7852         Reported by Alexandre Duret-Lutz and Larry Schmitt.
7854 2002-01-28  Akim Demaille  <akim@epita.fr>
7856         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
7857         needs an argument.
7859 2002-01-28  Akim Demaille  <akim@epita.fr>
7861         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
7862         AUTOTEST_PATH *after* it was set.
7863         Don't put `.' in the PATH: the user should be precise and `./' if
7864         needed.  In addition, given that the test suite does some `cd', if
7865         `.' is in the path, the `tested programs' sections will report
7866         programs found in the test suite's directory, while during the
7867         tests (performed in their own directory), these programs are no
7868         longer visible.  In other words, the results is confusing and
7869         useless.
7870         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
7872 2002-01-24  Akim Demaille  <akim@epita.fr>
7874         Version 2.52g.
7876 2002-01-24  Akim Demaille  <akim@epita.fr>
7878         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
7879         * doc/autoconf.texi: Finally add Akim as an author.
7881 2002-01-24  Akim Demaille  <akim@epita.fr>
7883         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
7884         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
7885         Bourne. Use /bin/sh.
7886         From Andreas Buening.
7888 2002-01-24  Akim Demaille  <akim@epita.fr>
7890         * config/config.guess, config/config.sub, config/texinfo.tex:
7891         Update from masters.
7893 2002-01-24  Akim Demaille  <akim@epita.fr>
7895         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
7896         * config/auxdir.m4, config/cond.m4, config/depend.m4,
7897         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
7898         * config/missing.m4, config/sanity.m4, config/select.m4,
7899         * config/strip.m4: Remove, to ease sync'ing with any version of
7900         Automake.
7902 2002-01-24  Akim Demaille  <akim@epita.fr>
7904         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
7905         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
7906         Reported by Geir Ove Myhr.
7908 2002-01-21  Akim Demaille  <akim@epita.fr>
7910         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
7912 2002-01-21  Akim Demaille  <akim@epita.fr>
7914         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
7915         message on invalid options.
7916         * bin/autom4te.in (parse_args): Don't use
7917         Autoconf::General::getopt with non valid options.
7919 2002-01-17  Jim Meyering  <meyering@lucent.com>
7921         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
7922         $ac_cv_exeext so we don't use an old, invalid, cached value.
7924 2002-01-11  Akim Demaille  <akim@epita.fr>
7926         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
7927         Meyering.
7928         * doc/autoconf.texi (Function Portability): Document the strnlen
7929         limitation.
7930         (Particular Functions): Document AC_FUNC_STRNLEN.
7931         * lib/autoscan/functions: Adjust.
7933 2002-01-06  Akim Demaille  <akim@epita.fr>
7935         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
7936         package.m4, since is really depends upon configure.ac, not
7937         configure.
7938         * doc/autoconf.texi (testsuite Scripts): Adjust.
7939         * tests/Makefile.am (package.m4): New.
7940         EXTRA_DIST it since its a source.
7942 2002-01-06  Akim Demaille  <akim@epita.fr>
7944         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
7945         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
7946         and PACKAGE_BUGREPORT from here...
7947         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
7948         arguments.
7949         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
7950         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
7951         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
7952         * tests/tools.at (autoheader): Adjust.
7953         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
7955 2002-01-06  Akim Demaille  <akim@epita.fr>
7957         * bin/autoscan.in (scan_file): Use `&used'.
7959 2002-01-03  Akim Demaille  <akim@epita.fr>
7961         * doc/autoconf.texi (Output): Improved wording regarding use of
7962         AC_OUTPUT.
7963         From Olly Betts.
7965 2001-12-18  Kevin Ryde  <user42@zip.com.au>
7967         * doc/autoconf.texi (Function Portability): Add notes on sscanf
7968         sometimes needing writable input.
7970 2001-12-17  Jim Meyering  <meyering@lucent.com>
7972         * doc/autoconf.texi (New Macros): Tweak wording.
7974 2001-12-14  Akim Demaille  <akim@epita.fr>
7976         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
7977         trailing files, don't apply `-rf' to files which might not be
7978         created by configure (core, core.*, and *.core), but just `rm -f'.
7979         Suggested by Jonathan Kamens.
7981 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
7983         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
7985 2001-12-14  Akim Demaille  <akim@epita.fr>
7987         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
7989 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
7991         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
7992         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
7993         abs_srcdir, top_srcpath to abs_top_srcdir.
7994         (_AC_OUTPUT_FILES): Adjust.
7995         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
7996         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
7997         * tests/wrappl.in, tests/wrapsh.in: Adjust.
7999 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
8001         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
8002         C/Fortran linking on HP/UX, by extracting the Fortran library
8003         search path from the LPATH line in the $F77 -v output.
8005 2001-12-12  Kevin Ryde  <user42@zip.com.au>
8007         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
8008         forbidden file descriptors table.
8010 2001-11-26  Akim Demaille  <akim@epita.fr>
8012         * bin/autoscan.in (%c_keywords): Build it at top level.
8013         Map to 1 in order to simplify its uses.
8015 2001-11-26  Akim Demaille  <akim@epita.fr>
8017         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
8018         Remove $filepath, useless.
8019         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
8020         variables, they are really part of the tokens.
8021         Split the input line on spaces and then look for tokens.
8022         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
8023         because of `lex$U.$(OBJEXT)'.
8024         (&scan_files): Use "@list" instead of join.
8025         * doc/Makefile.am (CLEANFILES): Add *.fns.
8027 2001-11-26  Akim Demaille  <akim@epita.fr>
8029         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
8030         Remove, replaced by...
8031         * tests/wrappl.in: Be common for all the Perl executables.
8032         In particular autoscan and autoheader want -I.
8033         * configure.ac: Adjust.
8034         * lib/autoscan/headers: errno.h is portable.
8036 2001-11-26  Akim Demaille  <akim@epita.fr>
8038         * bin/autoscan.in (used): New.
8039         Use it.
8041 2001-11-26  Akim Demaille  <akim@epita.fr>
8043         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
8044         directives.
8045         (&scan_sh_file): Remove a duplicate pattern.
8046         (&check_configure_ac): Use long options.
8047         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
8049 2001-11-26  Akim Demaille  <akim@epita.fr>
8051         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
8052         Before, having a line containing the opening of a multi line
8053         comment made the whole line be ignored.
8055 2001-11-26  Akim Demaille  <akim@epita.fr>
8057         * doc/autoconf.texi (Using an Autotest Test Suite): New.
8058         (testsuite Scripts): Be one of its subsection.
8059         (Autotest Logs): New.
8061 2001-11-26  Akim Demaille  <akim@epita.fr>
8063         Test groups are now run two directories deeper.
8065         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
8066         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
8067         at_top_builddir.
8068         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
8069         top_srcdir, builddir and top_builddir.
8070         Use `at_*dir' relatively to the directory containing the
8071         suite, use `*dir' when relatively to the current group dir.
8073 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
8075         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
8076         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
8077         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
8078         spelling errors.
8080 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
8082         * doc/autoconf.texi (Using System Type): Add an example of `case
8083         $host' usage so people quit using `case $target' everywhere.
8085 2001-11-22  Akim Demaille  <akim@epita.fr>
8087         * doc/autoconf.texi (Installation Directory Variables): Englishoes
8088         spotted by Jim Meyering.
8090 2001-11-16  Paul Eggert  <eggert@twinsun.com>
8092         This patch implements a `long double' suggestion by Oliver Kiddle.
8094         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
8095         static, to catch errors if the value isn't known at compile-time
8096         and the compiler supports dynamic arrays.  Change its name from
8097         `_array_' to `test_array' to avoid potential name clashes.
8098         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
8099         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
8100         better than double.  Catch a bug in GCC 2.95.2 x86.
8101         * doc/autoconf.texi (C Compiler): Document the above.
8102         * NEWS: Likewise.
8104 2001-11-13  Akim Demaille  <akim@epita.fr>
8106         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
8107         hand.
8108         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
8110 2001-11-13  Akim Demaille  <akim@epita.fr>
8112         * lib/autotest/general.m4 (AT_INIT): After having run the test
8113         group, go back to the initial directory, not to at_suite_dir.
8115 2001-11-13  Akim Demaille  <akim@epita.fr>
8117         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
8118         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
8119         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
8120         option.
8121         (AT_CHECK_CONFIGURE): Use absolute paths.
8122         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
8123         The problem is still the old one: there is no means in M4 (that I
8124         know about) to create a defining macro, because there is no means
8125         to create `$1' etc., therefore, the defining macro ``swallows''
8126         all the arguments meant to the defined macro.
8128 2001-11-13  Akim Demaille  <akim@epita.fr>
8130         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
8131         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
8132         configure.ac.
8133         * tests/aclocal.m4: Remove, as it is no longer used.
8135 2001-11-13  Akim Demaille  <akim@epita.fr>
8137         * lib/autotest/general.m4: Change `tests?' into `groups?' in
8138         variable names when referring to a single test group, or to
8139         `suite' when referring to the whole test suite.
8140         `at_last_test' is removed: m4 compute at_format itself.
8141         (at_stdout, at_stder1, at_stderr): New variables.
8142         (AT_CHECK): Use them.
8144 2001-11-13  Akim Demaille  <akim@epita.fr>
8146         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
8147         in PATH.
8148         Create `testsuite.dir/003/run' instead of `testsuite.003'.
8149         Do it as soon as a test fails, don't wait till the end of the test
8150         suite.
8151         Don't remove $as_me.[0-9]*, since these files no longer exist.
8153 2001-11-13  Akim Demaille  <akim@epita.fr>
8155         * tests/tools.at: Use absolute paths, since we are no longer run
8156         in place.
8158 2001-11-13  Akim Demaille  <akim@epita.fr>
8160         Now that tests are running in their own private dir, there is no
8161         need to list the files to remove at the end of tests groups.
8163         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
8164         (AT_data_files, at_data_files): Remove.
8165         (AT_CLEANUP, AT_DATA): Simplify.
8166         (AT_INIT): Adjust.
8167         Remove the group dir if !debug && !failed.
8168         * tests/atspecific.m4: Adjust.
8170 2001-11-13  Akim Demaille  <akim@epita.fr>
8172         Start a new layout for Autotest: `testsuite' creates
8173         `testsuite.dir' in which the at-check-line etc. files are to be
8174         found, and `testsuite.dir/003' where the test group 3 is run.
8176         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
8177         at_check_line_file, at_format, at_test_normalized, at_group_dir
8178         are new variables.
8179         Create the directories.
8180         Use absolute paths for at- files.
8181         (AT_CHECK): Adjust.
8183 2001-11-11  Michael Matz  <matz@kde.org>
8185         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
8186         (m4_car2): New.
8187         (m4_car): Properly quote arguments.
8189 2001-11-13  Akim Demaille  <akim@epita.fr>
8191         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
8192         with stricter rules on LIBOBJS.
8194 2001-11-12  Paul Eggert  <eggert@twinsun.com>
8196         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
8197         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
8198         __PROTOTYPES too.
8200 2001-11-12  Akim Demaille  <akim@epita.fr>
8202         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
8204 2001-11-12  Akim Demaille  <akim@epita.fr>
8206         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8207         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
8208         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
8209         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
8210         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
8211         specify to what the macro should be defined (typically to 1).
8213 2001-11-12  Akim Demaille  <akim@epita.fr>
8215         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
8216         From Jim Meyering.
8218 2001-11-12  Akim Demaille  <akim@epita.fr>
8220         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
8221         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
8222         definition used by Automake where LEX is +/- "${missing} lex" and
8223         `missing' itself contains variables.
8225 2001-11-12  Akim Demaille  <akim@epita.fr>
8227         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
8228         Now that M4sh pushes BODY, the comments were output at the end of
8229         the test suites.
8231 2001-11-08  Akim Demaille  <akim@epita.fr>
8233         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
8234         that we can trace macros from aclocal.m4.
8235         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
8236         obsoleted, and redirect to the former anyway.
8237         Reported by Ralf Corsepius.
8239 2001-11-08  Akim Demaille  <akim@epita.fr>
8241         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
8242         processed only if present.
8243         * tests/torture.at (Configuring subdirectories): Use autoreconf
8244         instead of successive calls to autoconf.
8245         Add a nonexistent subdirectory to exercise the patch above.
8246         Reported by Ralf Corsepius.
8248 2001-11-08  Kevin Ryde  <user42@zip.com.au>
8250         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
8251         doesn't accept .S files.
8253 2001-11-07  Akim Demaille  <akim@epita.fr>
8255         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
8256         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
8257         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
8258         * bin/autom4te.in (warn_forbidden): New.
8259         (handle_output): Use it.
8260         Read m4_pattern_forbid with messages.
8262 2001-11-05  Akim Demaille  <akim@epita.fr>
8264         * bin/autom4te.in (--normalize): Remove.
8265         * lib/autom4te.in: Adjust.
8267 2001-11-05  Akim Demaille  <akim@epita.fr>
8269         * tests/Makefile.am (testsuite): Rename this target as...
8270         ($(TESTSUITE)): this.
8271         From Nicolas Joly.
8273 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
8275         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
8276         the --prefix option, also remove it's argument.
8278 2001-11-05  Akim Demaille  <akim@epita.fr>
8280         * doc/autoconf.texi (testsuite Invocation): Update.
8281         (Writing testsuite.at): Update.
8283 2001-11-03  Akim Demaille  <akim@epita.fr>
8285         * doc/autoconf.texi: s/@code/@command/ where appropriate.
8287 2001-11-03  Akim Demaille  <akim@epita.fr>
8289         * lib/Autom4te/General.pm: (&catfile, &canonfile)
8290         (&file_name_is_absolute): New, wrappers around routines from
8291         File::Spec.
8292         Use and export them.
8293         (&find_configure_ac): Optionally take a directory where to look at.
8294         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
8295         the arguments.
8296         Default @ARGV to `.', not find_configure_ac.
8297         (&autoreconf): Argument is a directory.
8298         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
8299         * doc/autoconf.texi (autoreconf Invocation): Update.
8301 2001-11-03  Akim Demaille  <akim@epita.fr>
8303         * lib/Autom4te/General.pm (@export_vars, @export_subs)
8304         (@export_forward_subs): New.
8305         Add basename, dirname, and fileparse.
8306         (@EXPORT): Adjust.
8307         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
8308         Don't look for aclocal flags if we already know aclocal is not
8309         used.
8310         Move aclocal.m4t only if it exists.
8311         Reported by Ezra Peisach.
8313 2001-11-03  Akim Demaille  <akim@epita.fr>
8315         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
8316         passed on command line, defaulting to ./configure.ac if present.
8317         (&maybe_autoreconf, File::Find): Remove, unused.
8318         (&autoreconf): If autoconf is not used, don't try to trace.
8320 2001-11-02  Akim Demaille  <akim@epita.fr>
8322         * configure.ac: Bump to 2.52g.
8324 2001-11-02  Akim Demaille  <akim@epita.fr>
8326         Version 2.52f.
8328 2001-11-02  Akim Demaille  <akim@epita.fr>
8330         * config/config.guess, config/config.sub, doc/standards.texi:
8331         * config/lispdir.m4: Update from masters.
8332         * configure.ac: Bump to 2.52f.
8334 2001-11-02  Akim Demaille  <akim@epita.fr>
8336         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
8337         Don't run aclocal when aclocal.m4 is not from aclocal.
8338         From Ezra Peisach.
8339         Don't run libtoolize and gettextize if --install is not given.
8341 2001-11-01  Paul Eggert  <eggert@twinsun.com>
8343         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
8344         be invoked before _AS_LINENO_PREPARE.
8345         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
8346         than character ranges.
8348         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
8349         invoking AS_BASENAME.  Set the locale variables to 'C' if
8350         possible, as POSIX requires this to get the traditional
8351         behavior.
8352         * doc/autoconf.texi (Special Shell Variables): Describe the above.
8354 2001-10-31  Paul Eggert  <eggert@twinsun.com>
8356         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
8357         with {}, as that triggers a bug in Bash 2.05.
8359         (_AS_LINENO_PREPARE): Use Sed rather than
8360         Awk.  Fix the sed prepass to work even if there are multiple
8361         instances of $LINENO on the same line.  Do not substitute for
8362         other variables like $LINENOT.  Do not check file dates; such a
8363         check is unreliable on sufficiently fast machines, and removing
8364         the check makes the code simpler and more reliable.  Check for
8365         output and chmod failures.
8367         * doc/autoconf.texi (Special Shell Variables): Document
8368         the above.
8370 2001-10-31  Akim Demaille  <akim@epita.fr>
8372         * tests/Makefile.am (atconfig): Remove this target, Automake
8373         handles it now.
8375 2001-10-31  Akim Demaille  <akim@epita.fr>
8377         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
8378         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
8379         provided, while it is optional.
8380         * configure.ac: Adjust.
8382 2001-10-26  Paul Eggert  <eggert@twinsun.com>
8384         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
8385           lib/Autom4te/Struct.pm:
8386         Require Perl 5.005_03 instead of just 5.005, as some tests fail
8387         with 5.005_02.
8389         * doc/autoconf.texi (Special Shell Variables): Document some
8390         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
8392         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
8393         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
8394         eval $LINENO is not portable in practice.
8396 2001-10-24  Akim Demaille  <akim@epita.fr>
8398         * lib/Autom4te/General.pm (backname): New.
8400 2001-10-24  Akim Demaille  <akim@epita.fr>
8402         * m4/: Remove, merged into...
8403         * config/: here.
8405 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
8407         * doc/autoconf.texi (Shellology): Mention the problems with bash
8408         2.05's use of ANSI quoting in its `set' builtin.
8410 2001-10-22  Paul Eggert  <eggert@twinsun.com>
8412         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
8413         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
8414         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
8415         POSIX decided to standardize on the int flavor of strerror_r.
8416         Always do char* test, as there's no reason not to.
8417         Assign to a char* var, to catch strerror_r that returns int*.
8419         * doc/autoconf.texi (Particular Functions):
8420         Document the above changes.  Also, document the fact that
8421         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
8423         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
8425 2001-10-20  Akim Demaille  <akim@epita.fr>
8427         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
8428         the executable was missing from the log.
8430 2001-10-20  Akim Demaille  <akim@epita.fr>
8432         * lib/Autom4te/General.pm (&update_file): If destination is
8433         unchanged, remove the source.
8434         (&up_to_date_p): Don't be verbose, be debug.
8435         * bin/autoreconf.in: No longer support --m4dir.
8436         (&autoreconf): Display the full path of the configure.ac we are
8437         studying.
8438         Trace it only once.
8439         Be sure to honor --force with gettextize.
8440         Always run aclocal.
8441         * doc/autoconf.texi: Adjust.
8443 2001-10-20  Akim Demaille  <akim@epita.fr>
8445         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
8446         Remove, dead.
8447         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
8448         `intl' is already present, as it refuses unless --force.
8449         (&parse_args): Use -I, --include instead of the old Autoconf
8450         options.
8451         ($localdir, $autoconf_dir): Remove.
8452         (@include): New.
8453         (&maybe_autoreconf): New, to preserve $_ for File::Find.
8455 2001-10-19  Jens Petersen  <petersen@redhat.com>
8457         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
8458         * doc/autoconf.texi (Particular Programs): Likewise.
8460 2001-10-19  Akim Demaille  <akim@epita.fr>
8462         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
8463         file in @configure_input@.
8464         Don't mention `automatically' in addition to `generated'.
8465         * tests/torture.at (#define header templates): Adjust.
8467 2001-10-19  Akim Demaille  <akim@epita.fr>
8469         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
8470         comment, explain how to install automatic mode selection.
8471         From Russ Allbery.
8473 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
8475         * bin/autoreconf.in (autoreconf): Display the path to the
8476         configure.ac being studied.
8478 2001-10-18  Paul Eggert  <eggert@twinsun.com>
8480         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
8481         long, to work around a bug in the HP C compiler version HP92453-01
8482         B.11.11.23709.GP.
8484         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
8485         (AS_BASENAME_EXPR): New macro.
8486         (AS_BASENAME_SED): Do not assume GNU sed semantics.
8487         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
8488         and fall back on 'sed' only if the other two fail.  This makes
8489         AS_BASENAME act more like AS_DIRNAME.
8490         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
8491         contains white space.
8492         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
8493         Use AS_DIRNAME, since I think it's now DOS-friendly.
8494         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
8495         Allow "dirname //FOO" to return either / or //, as POSIX allows
8496         either behavior.
8498 2001-10-10  Akim Demaille  <akim@epita.fr>
8500         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
8501         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
8502         From Eric Sharkey.
8504 2001-10-10  Akim Demaille  <akim@epita.fr>
8506         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
8507         m4_define, since...
8508         (_AS_ECHO_N): AS_REQUIREs it.
8510 2001-10-10  Akim Demaille  <akim@epita.fr>
8512         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
8513         (AC_INCLUDES_DEFAULT): Move to...
8514         * lib/autoconf/headers.m4: here.
8515         * lib/autoconf/types.m4: Comment changes.
8516         * doc/autoconf.texi: Specify where the default includes are used
8517         in the macro prototypes.
8519 2001-10-09  Akim Demaille  <akim@epita.fr>
8521         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
8522         transition code.
8524 2001-10-08  Akim Demaille  <akim@epita.fr>
8526         * bin/autoreconf.in (&autoreconf): Remove debugging code.
8527         (&parse_args): Pass verbosity/debugging options to subtools when
8528         --debug, not when --verbose.
8529         * lib/autom4te.in (Autoreconf-preselections): New.
8530         (Autoconf): Use it.
8532 2001-10-08  Akim Demaille  <akim@epita.fr>
8534         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
8536 2001-10-08  Akim Demaille  <akim@epita.fr>
8538         * doc/autoconf.texi (autoreconf Invocation): Adjust.
8539         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
8541 2001-10-08  Akim Demaille  <akim@epita.fr>
8543         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
8544         (Syntax of the shell scripts): Don't.
8545         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
8546         bother with $force since...
8547         * lib/Autom4te/General.pm: does.
8549 2001-10-08  Akim Demaille  <akim@epita.fr>
8551         * bin/autoreconf.in: Rewrite in Perl.
8552         * configure.ac: Adjust.
8553         * lib/Autom4te/General.pm (&up_to_date_p): New.
8554         * bin/autom4te.in (&up_to_date_p): Use it.
8555         Rename as...
8556         (&up_to_date): this.
8558 2001-10-08  Akim Demaille  <akim@epita.fr>
8560         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
8561         (m4_list_cmp): Use $0 to reinvoke yourself.
8562         (m4_patsubsts): New.
8563         (m4_strip, m4_version_unletter): Use it.
8564         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
8566 2001-10-08  Akim Demaille  <akim@epita.fr>
8568         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
8569         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
8570         * lib/autoconf/types.m4, lib/autotest/general.m4,
8571         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
8572         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
8573         m4_bregexp, m4_bpatsubst, and m4_bmatch.
8574         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
8576 2001-10-08  Akim Demaille  <akim@epita.fr>
8578         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
8580 2001-10-08  Akim Demaille  <akim@epita.fr>
8582         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
8583         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
8584         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
8585         * tests/tools.at, tests/m4sh.at: Use it.
8586         * tests/m4sh.at: Don't rely on Autoconf macros.
8587         (DIRNAME_TEST): Also exercise the expr variant.
8588         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
8589         preferred M4sugar extension is now `.4s'.
8590         * tests/README: Remove.
8592 2001-10-08  Akim Demaille  <akim@epita.fr>
8594         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
8595         (m4_provide_if): this.
8596         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
8597         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
8598         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
8599         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
8601 2001-10-08  Akim Demaille  <akim@epita.fr>
8603         Use `add-log-current-defun-function' for ChangeLog creation.
8604         Suggested by Tom Tromey.
8606         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
8607         (autotest-mode): Adjust.
8608         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
8609         'comment-region onto `C-c ;'.
8610         Comments are `#', not `dnl'.
8611         (autoconf-current-defun): New.
8612         (autoconf-font-lock-keywords): Recognize `m4_defun'.
8614 2001-10-08  Akim Demaille  <akim@epita.fr>
8616         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
8617         * lib/m4sugar/m4sh.m4: here.
8618         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
8619         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
8620         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
8621         include handle the m4_pattern_*, no longer push the
8622         BODY diversion nor set the /bin/sh line, AS_INIT does it.
8623         * lib/autotest/general.m4 (AT_INIT): Likewise.
8624         * tests/base.at: Adjust the tests to use AS_INIT.
8625         * tests/tools.at (AT_DATA_FORBIDDEN): New.
8626         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
8627         Autoconf.
8629 2001-10-07  Paul Eggert  <eggert@twinsun.com>
8631         * doc/autoconf.texi (config.status Invocation):
8632         CONFIG_SHELL defaults to a shell that supports LINENO if available.
8634         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
8635         shell does not support LINENO, and if CONFIG_SHELL is unset or
8636         empty, and if we can find a shell that does support LINENO,
8637         then set CONFIG_SHELL to that shell and then re-execute
8638         ourselves with CONFIG_SHELL.
8640 2001-10-05  Paul Eggert  <eggert@twinsun.com>
8642         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
8643         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
8644         build of $(TESTSUITE).
8646 2001-10-05  Akim Demaille  <akim@epita.fr>
8648         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
8649         iff we are a bareword.
8650         Reported by Raja R Harinath.
8652 2001-10-05  Akim Demaille  <akim@epita.fr>
8654         * tests/m4sh.at (LINENO): New.
8655         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
8656         PATH_SEPARATOR before using it.
8657         Fix the absolute path case/esac pattern.
8658         Provide $0 as fallback for as_myself.
8659         Reported by Raja R Harinath.
8661 2001-10-05  Akim Demaille  <akim@epita.fr>
8663         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
8664         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
8666 2001-10-05  Akim Demaille  <akim@epita.fr>
8668         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
8669         (AS_SHELL_SANITIZE): here.  Use it.
8670         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
8671         From Paul Eggert.
8673 2001-10-04  Akim Demaille  <akim@epita.fr>
8675         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
8676         combination of Awk and sed to replace $LINENO.
8678 2001-10-02  Paul Eggert  <eggert@twinsun.com>
8680         * doc/autoconf.texi (Limitations of Builtins): You can't use
8681         "source"; it's not portable.  Remove confusing and
8682         somewhat-incorrect example involving "." and "/".
8684         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
8685         compatibility with POSIX shells.
8687 2001-10-02  Akim Demaille  <akim@epita.fr>
8689         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
8690         instead of exec'ing to preserve $0 and $@.
8692 2001-10-01  Akim Demaille  <akim@epita.fr>
8694         * tests/testsuite (AT_INIT) <at_pass_list>: New.
8695         Don't run twice the same test.
8697 2001-10-01  Akim Demaille  <akim@epita.fr>
8699         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
8700         No longer output the list of tests.
8701         <--list>: New option.
8702         <--full-help>: Remove.
8703         Complete the short/long options duality.
8704         Various small adjustments.
8706 2001-10-01  Akim Demaille  <akim@epita.fr>
8708         * doc/autoconf.texi: Use @kbd for user input.
8709         Always use `$' as shell prompt.
8711 2001-09-30  Paul Eggert  <eggert@twinsun.com>
8713         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
8714         Don't use nested parenthesization.  This patch was originally
8715         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
8716         but somehow it didn't get incorporated then.
8717         * doc/autoconf.texi (Limitations of Usual Tools):
8718         Clarify remark about sed and nested parenthesization.
8720         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
8721         Report an error if the size cannot be determined even though
8722         the type exists.
8723         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
8724         Check for `expr' arithmetic overflow, and for compilation failure,
8725         and invoke a new argument $4 if either is discovered.
8726         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
8727         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
8729 2001-09-28  Akim Demaille  <akim@epita.fr>
8731         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
8732         * m4/lispdir.m4: New.
8733         * aclocal.m4, configure.ac: Adjust.
8735 2001-09-28  Akim Demaille  <akim@epita.fr>
8737         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
8738         (AT_TESTED): this.
8739         (AT_INIT): More the wrapped section to where it will be expanded.
8740         Output `AT_tested' only when existing.
8741         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
8743 2001-09-27  Akim Demaille  <akim@epita.fr>
8745         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
8746         generates too many bug reports.
8748         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
8749         status when executing the ACTION-IF-FALSE.
8750         * tests/base.at (AC_TRY_*): Rename as...
8751         (AC_TRY_COMMAND): this.
8752         (AC_RUN_IFELSE): New.
8753         * tests/compile.at (Extensions, C keywords)
8754         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
8755         (Broken/missing compilers, AC_PROG_CPP with warnings)
8756         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
8757         * tests/c.at (Extensions, C keywords)
8758         (Broken/missing compilers, AC_PROG_CPP with warnings)
8759         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
8760         (AC_PROG_CPP requires AC_PROG_CC): here and...
8761         * tests/fortran.at (GNU Fortran 77): there.
8762         * doc/autoconf.texi (autoconf Invocation): Fix the example:
8763         AC_TRY_RUN is about compilation, not shell commands.
8764         (Test Programs): AC_TRY_RUN works as used to be advertised.
8766 2001-09-27  Akim Demaille  <akim@epita.fr>
8768         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
8769         Raja R Harinath:
8770         Be sure to detect when $LINENO always returns the same value.
8771         Look for the original script, basename($0) is certainly not
8772         enough.
8773         Pass the CLI arguments to `$as_me.lineno'.
8775 2001-09-25  Akim Demaille  <akim@epita.fr>
8777         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
8778         Be sure the close and reopen the LOG fd before and after using tee
8779         to extend the log.
8780         <at_tests_pattern>: Adjust to the new format of at_help_all.
8782 2001-09-23  Akim Demaille  <akim@epita.fr>
8784         * bin/autom4te.in (parse_args): There can be several invocations
8785         of --language now.
8787 2001-09-23  Akim Demaille  <akim@epita.fr>
8789         * doc/autoconf.texi (Top): Wrap in @ifnottex.
8791 2001-09-23  Akim Demaille  <akim@epita.fr>
8793         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
8794         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
8795         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
8796         builddir, buildpath, top_builddir, and top_buildpath.
8797         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
8798         the current directory.
8799         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
8800         variables *before* changing the current directory.
8801         Skip nonexistent dirs.
8802         * doc/autoconf.texi (Preset Output Variables): Document these
8803         variables.
8805         * lib/autotest/general.m4: Do not reset AT_victims.
8806         Don't compute at_srcdir nor at_top_srcdir.
8808         * tests/tools.at: Hence use top_srcdir.
8810         * tests/Makefile.am, tests/autoconf, tests/autoheader,
8811         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
8812         Remove.
8813         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
8814         * tests/wrapsh.in, tests/autoupdate.in: New.
8815         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
8816         * configure.ac: Build the position independent wrappers.
8818         * man/Makefile.am: Now that test wrappers are position
8819         independent, use them and drop dark envvar magic.
8821 2001-09-23  Akim Demaille  <akim@epita.fr>
8823         * doc/autoconf.texi (Common Shell Constructs): Rename as...
8824         (Programming in M4sh): this.
8825         Promote to @section.
8827 2001-09-23  Akim Demaille  <akim@epita.fr>
8829         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
8830         Pass $at_debug_args to the rerun test suite.
8831         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
8832         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
8833         From Paul Eggert.
8835 2001-09-23  Akim Demaille  <akim@epita.fr>
8837         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
8839 2001-09-23  Akim Demaille  <akim@epita.fr>
8841         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
8842         over-escaping.
8844 2001-09-23  Akim Demaille  <akim@epita.fr>
8846         * lib/Autom4te/General.pm (&debug): New.
8847         * bin/autom4te.in ($language): Move to...
8848         (parse_args): here.
8849         Handle --language in languages.
8850         * lib/autom4te.in (Automake-selections, Autoheader-selections)
8851         (Autoscan-selections): New.
8852         (Autoconf): Adjust.
8854 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
8856         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
8857         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
8858         to match current versions from CVS Automake.
8860 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
8862         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
8863         for $LINENO.
8865 2001-09-22  Akim Demaille  <akim@epita.fr>
8867         * lib/autoconf/autotest.m4: Create `package.m4'.
8868         * tests/Makefile.am (package.m4): Remove.
8870 2001-09-22  Akim Demaille  <akim@epita.fr>
8872         Rely on `$LINENO' when possible instead of `__oline__'.
8874         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
8875         `$LINENO' support replacement when not supported.
8876         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
8877         them explicitly to be sure they are not output before this section
8878         (via m4_require).  Cosmetic only.
8879         * lib/autoconf/c.m4, lib/autoconf/general.m4,
8880         * lib/autoconf/programs.m4: Replace all the occurrences of
8881         `__oline__' with `$LINENO'.
8882         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
8884 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
8886         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
8887         character (u: -> ue) in a code comment.
8888         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
8889         it works.
8891 2001-09-21  Akim Demaille  <akim@epita.fr>
8893         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
8894         Suggested by Jim Meyering.
8896 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8898         * lib/autoconf/programs.m4: Use extensions listed in
8899         $ac_executable_extensions when looking for programs.
8901 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8903         * lib/autoconf/general.m4: Fix a small Englisho.
8904         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
8905         setting up ac_dir_suffix and ac_top_builddir.
8906         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
8908 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8910         * doc/autoconf.texi (File System Conventions): Clarify the use of
8911         PATH_SEPARATOR.
8912         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
8913         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
8914         be used instead of ':'.
8915         * lib/autotest/general.m4: Replace occurrences of ':' in
8916         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
8918 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8920         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
8921         arguments.  Fixed a typo.
8923 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8925         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
8926         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
8928 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8930         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
8931         * bin/autoupdate.in: Ditto.
8932         * bin/autoheader.in: Reworded a few comments.
8933         * bin/autoconf.in: Reworded help text for a few options.
8934         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
8935         * bin/autoscan.in, bin/autoupdate.in: Ditto.
8937 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8939         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
8940         already have $file).  Set output files to binary mode (helps avoid
8941         CR issues on DOSish systems).
8943 2001-09-19  Akim Demaille  <akim@epita.fr>
8945         * lib/autotest/general.m4: Englishoes.
8946         From Tim Van Holder and Alexey Mahotkin.
8948 2001-09-18  Paul Eggert  <eggert@twinsun.com>
8950         * doc/autoconf.texi (Common Shell Constructs): New node,
8951         documenting AS_DIRNAME.
8952         (Limitations of Usual Tools): Refer to it when discussing dirname.
8953         Also, update discussion of POSIX standard to reflect latest draft.
8955         * lib/autoconf/c.m4:
8956         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
8958         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
8959         Do not pass a first argument with leading '-'
8960         to expr, by parenthesizing initial integers that might be negative.
8962         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
8963         now merely checks whether it is an error to pass an argument
8964         to getpgrp.
8966         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
8967         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
8968         whether it is a (compile-time) error to pass an argument to
8969         getpgrp.  This simpler test supports the revised documentation,
8970         and is all that AC_FUNC_GETPGRP's users really need.
8972 2001-09-18  Akim Demaille  <akim@epita.fr>
8974         * doc/autoconf.texi (Limitations of Make) <$<>: New.
8976 2001-09-18  Akim Demaille  <akim@epita.fr>
8978         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
8979         `{}'.
8980         * lib/autotest/general.m4 (AT_INIT): Adjust.
8982 2001-09-18  Paul Wagland  <paul@wagland.net>
8984         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
8985         correctly.
8986         Add test for AS_BASENAME.
8987         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
8988         added test. It now correctly handles /1/2/3/, returning '3' not ''.
8989         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
8990         * tests/base.at: Fixed the expected responses. The old ones were
8991         one line out...
8992         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
8993         the documentation claims it should (and how it behaved in 2.13).
8995 2001-09-18  Akim Demaille  <akim@epita.fr>
8997         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
8998         the AC_CONFIG_COMMANDS invocation.
8999         This also solves the name clash problems.
9000         Don't set the package's ID.
9001         * lib/m4sugar/Makefile.am (version.m4): Revamp.
9002         No longer to be shipped.
9003         (version.in): Remove.
9004         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
9005         * lib/autoconf/status.m4: Adjust.
9006         Use `m4_PACKAGE_STRING'.
9007         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
9008         the only optional argument is the name of the test suite.
9009         Expect `package.m4' to define the package signature.
9010         * lib/autom4te.in (Autotest): Add `package.m4?'.
9011         * tests/Makefile.am (package.m4): New.
9012         * tests/suite.at: ifnames is a victim.
9014 2001-09-18  Akim Demaille  <akim@epita.fr>
9016         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
9017         AC_LIBSOURCE, AC_CONFIG_FILES.
9018         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
9019         program version string doesn't match the package's.
9020         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
9021         after `(cached)'.
9023 2001-09-17  Paul Eggert  <eggert@twinsun.com>
9025         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
9026         Allow expression to return any value that can fit into unsigned long
9027         (not int, as before).  Check for output errors.
9029 2001-09-17  Bruno Haible  <haible@ilog.fr>
9031         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
9032         Always include <stdio.h> and <stdlib.h>. Evaluate
9033         the expression in an extra function before these includes. Call
9034         fprintf "%d" only after ensuring the argument is of type 'int'.
9035         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
9037 2001-09-17  Paul Eggert  <eggert@twinsun.com>
9039         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
9040         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
9041         fatal errors, and AC_CHECK_LIB causes it to include libraries even
9042         when they don't exist.
9044         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
9045         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
9046         need it.
9048         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
9049         version with the version used by fileutils 4.1, except use
9050         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
9051         we don't need it.
9053         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
9055 2001-09-13  Akim Demaille  <akim@epita.fr>
9057         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
9058         _first_.
9059         Reported by Gerrit P. Haase.
9061 2001-09-13  Akim Demaille  <akim@epita.fr>
9063         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
9064         m4_defn'ing is valid.
9066 2001-09-13  Akim Demaille  <akim@epita.fr>
9068         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
9069         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
9070         Use it.
9072 2001-09-13  Akim Demaille  <akim@epita.fr>
9074         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
9075         m4_match.
9076         (m4_re_escape): New.
9077         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
9078         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
9079         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
9080         Likewise.
9081         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
9082         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
9083         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
9084         AT_tests_all for consistency.
9085         Set at_victims.
9086         (AT_VICTIMS): Similar to AT_KEYWORDS.
9087         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
9089 2001-09-13  Akim Demaille  <akim@epita.fr>
9091         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
9093 2001-09-13  Akim Demaille  <akim@epita.fr>
9095         * lib/autotest/general.m4 (AT_INIT): Create and remove
9096         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
9097         test suites can cohabit.
9099 2001-09-13  Akim Demaille  <akim@epita.fr>
9101         * tests/mktests.sh: Don't output banners for empty test files.
9103 2001-09-13  Akim Demaille  <akim@epita.fr>
9105         Test suites can be run independently of configure.
9107         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
9108         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
9109         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
9110         ECHO_N etc.
9111         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
9112         and at_c.
9113         * lib/autotest/general.m4: Use ECHO_*.
9115 2001-09-13  Akim Demaille  <akim@epita.fr>
9117         * bin/ifnames.in: Rewrite in Perl.
9118         * configure.ac: Don't look for AWK.
9119         * tests/tools.at (AWK portability): Remove.
9120         (Syntax of the shell scripts): Don't check ifnames.
9121         (AT_CHECK_PERL_SYNTAX): New.
9122         (Syntax of the Perl scripts): Check ifnames.
9123         * tests/ifnames: New.
9125 2001-09-13  Akim Demaille  <akim@epita.fr>
9127         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
9128         test group titles.
9129         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
9130         Remove all the other keywords.
9132 2001-09-10  Akim Demaille  <akim@epita.fr>
9134         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
9135         SETUP: no longer used.
9136         Support -k, --keywords.
9137         <at_help>: Be `no', `short', or `long'.
9138         <at_help_all>: New variable.
9139         (AT_KEYWORDS): New.
9140         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
9141         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
9142         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
9143         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
9144         No longer fill the HELP diversion.
9145         (AT_CLEANUP): Use them.
9146         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
9147         (m4_list_append): Remove.
9149         Spread a few keywords in the Autoconf test suite.
9151 2001-09-10  Akim Demaille  <akim@epita.fr>
9153         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
9154         PATH_SEPARATOR, let M4sh compute it.
9155         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
9156         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
9157         Move to...
9158         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
9159         Simplify when the path is not a literal.
9160         (AS_UNAME): Use it to report PATH.
9161         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
9162         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
9163         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
9164         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
9165         normalize the path, and to look for victims.
9166         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
9167         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
9169 2001-09-07  Akim Demaille  <akim@epita.fr>
9171         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
9172         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
9173         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
9174         related variables into `at_package_*'.
9175         * lib/autotest/general.m4 (AT_VICTIMS): New.
9176         (AT_INIT): Adjust for stand-alone/embedded test suites.
9177         (AS_MESSAGE_LOG_FD): Define and use it.
9178         * tests/suite.at (AT_VICTIMS): Use it.
9179         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
9180         at_version.
9182 2001-09-07  Akim Demaille  <akim@epita.fr>
9184         Move toward possibly stand-alone test suites.
9186         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
9187         in addition, it introduces useless differences in logs.
9188         (AT_INIT): Let atconfig and atlocal be both optional.
9189         Adjust PATH computation.
9190         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
9192 2001-09-07  Akim Demaille  <akim@epita.fr>
9194         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
9195         m4sugar/version.m4.
9197 2001-09-05  Akim Demaille  <akim@epita.fr>
9199         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
9200         to avoid GCC warnings.
9201         From Uwe Seimet.
9203 2001-09-05  Akim Demaille  <akim@epita.fr>
9205         * bin/autom4te.in: --language is -l, not -s.
9207 2001-09-05  Akim Demaille  <akim@epita.fr>
9209         Be ready to handle filenames as stupid as `dnl.at', for if even
9210         the maintainer is dumb enough to do that...
9212         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
9213         excellence in M4 quotation: consider `__file__' is active.
9215         And BTW, when invoking m4, pass the --include in the right order:
9216         the wrong one.
9218         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
9219         4m.
9221 2001-09-05  Akim Demaille  <akim@epita.fr>
9223         * lib/Autom4te/XFile.pm: New lib file.
9224         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
9225         * bin/autoheader.in: Use it.
9227 2001-09-05  Akim Demaille  <akim@epita.fr>
9229         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
9230         defined.
9232 2001-09-05  Akim Demaille  <akim@epita.fr>
9234         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
9235         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
9237         * bin/autoscan.in: Use `getopt' and `find_files' etc.
9238         Add -I, --include support.
9239         * doc/autoconf.texi (autoscan Invocation): Adjust.
9241 2001-09-05  Akim Demaille  <akim@epita.fr>
9243         CVS GNU M4 doesn't like `undefine(undefined)'.
9245         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
9246         New, extracted from main.
9247         Use IO::File wherever possible.
9248         (input.m4): Be constant, use -I instead of hard coding $tmp.
9249         Therefore be a quoted heredoc.
9250         Don't invoke `_au_disable', since ac was not loaded, but just
9251         `unm4.m4'.
9253 2001-08-31  Akim Demaille  <akim@epita.fr>
9255         Version 2.52d.
9257 2001-08-31  Akim Demaille  <akim@epita.fr>
9259         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
9260         previous patch.
9261         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
9263 2001-08-31  Akim Demaille  <akim@epita.fr>
9265         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
9266         serious problems handling heredocs in heredocs.
9267         Reported by Nicolas Joly.
9269 2001-08-31  Akim Demaille  <akim@epita.fr>
9271         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
9272         (Making testsuite Scripts): Update.
9274 2001-08-31  Akim Demaille  <akim@epita.fr>
9276         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
9278 2001-08-31  Akim Demaille  <akim@epita.fr>
9280         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
9281         (testsuite Scripts): There is no such thing as `atconfig.in'.
9282         And actually one diagram is missing: test suite runtime.
9284 2001-08-31  Akim Demaille  <akim@epita.fr>
9286         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
9287         inverse order.
9289 2001-08-31  Akim Demaille  <akim@epita.fr>
9291         * bin/autoupdate.in (@include): `installcheck' revealed the path
9292         to m4sugar was lacking!
9294 2001-08-31  Akim Demaille  <akim@epita.fr>
9296         * man/Makefile.am (.x.1): We really have to pass
9297         autom4te_perllibdir.
9299 2001-08-31  Akim Demaille  <akim@epita.fr>
9301         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
9302         debug scripts, in particular passing explicitly listed tests to
9303         run is stupid.
9305 2001-08-31  Akim Demaille  <akim@epita.fr>
9307         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
9308         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
9309         Use directly autom4te, not autoconf.
9310         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
9312 2001-08-31  Akim Demaille  <akim@epita.fr>
9314         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
9315         * bin/autoheader.in (%symbol): Strip arguments of macros.
9317 2001-08-31  Akim Demaille  <akim@epita.fr>
9319         * doc/autoconf.texi: Catch up -I, --include changes.
9321 2001-08-31  Akim Demaille  <akim@epita.fr>
9323         * bin/autom4te.in (&parse_args): Die on unknown languages.
9324         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
9325         need for autoconf.
9326         Promote --include over --macrodir and other obsolete options.
9328 2001-08-31  Akim Demaille  <akim@epita.fr>
9330         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
9331         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
9332         * bin/autom4te.in ($autoconf): Pass --force.
9333         `print $out' doesn't print `$_' but `$out'.
9334         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
9335         (autoheader): Pass --force since the test suite goes too fast for
9336         the time stamps.
9337         Adjust to the new autoheader messages.
9339 2001-08-31  Akim Demaille  <akim@epita.fr>
9341         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
9342         Check the completeness of the #template.
9343         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
9344         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
9345         invocation.
9347 2001-08-31  Akim Demaille  <akim@epita.fr>
9349         * lib/Autom4te/General.pm (&find_file, &update_file): New.
9350         * bin/autoupdate.in, bin/autoheader.in: Adjust.
9351         Drop AC_MACRODIR dead for real.
9352         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
9353         `autoheader: `config.hin' is created'.
9354         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
9356 2001-08-31  Akim Demaille  <akim@epita.fr>
9358         * bin/autoheader.in: Rewrite in Perl.
9359         * tests/autoheader: Adjust.
9361 2001-08-31  Akim Demaille  <akim@epita.fr>
9363         * bin/autoconf.in (--include, -I): New option.
9364         Map --localdir, --autoconf-dir onto it.
9365         Forward autom4te's options instead of interpreting them.
9366         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
9367         There is no such envvar since the inception of autom4te.cfg.
9368         * bin/autom4te.in (&parse_args): Uniquify `@include'.
9369         * bin/autoupdate.in: Adjust, and perform more control.
9370         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
9371         * tests/autoconf: Dittowise.
9373 2001-08-31  Akim Demaille  <akim@epita.fr>
9375         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
9376         * bin/autom4te.in (&find_file): Support `FILE?' standing for
9377         optionally `FILE'.
9378         Use -e, not -f, since /dev/null for instance is OK.
9379         (&parse_args): Adjust.
9380         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
9382 2001-08-31  Akim Demaille  <akim@epita.fr>
9384         * configure.ac: Also find tested executables in bin.
9385         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
9386         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
9387         installed peer executables, only PATH is allowed to resolve it.
9388         Pass `autoconf_dir' via options, not via invisible envvars.
9389         * lib/Autom4te/General.pm (&find_peer): Remove.
9390         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
9391         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
9392         * man/Makefile.am: Let help2man rely on PATH instead of trying to
9393         find the executables for it.
9394         * tests/Makefile.am: Major cleanup.  Too lazy to document...
9395         * tests/atlocal.in: Remove all the obscure envvar manipulations.
9396         We only need PERL.
9397         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
9398         indeed related to running the test suite, while passing
9399         --autoconf-dir and others is related to running non installed
9400         Autoconf executables.  So don't do that, leave it to...
9401         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
9402         * tests/autoscan: New.
9403         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
9404         refer to library files: rely on --language.
9406 2001-08-29  Akim Demaille  <akim@epita.fr>
9408         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
9409         s/--set/--language/.
9411 2001-08-29  Akim Demaille  <akim@epita.fr>
9413         * doc/autoconf.texi: Strip the @nodes.
9414         Suggested by Paul Eggert.
9415         (Initializing configure): Typo.
9417 2001-08-29  Akim Demaille  <akim@epita.fr>
9419         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
9420         Suggested by Paul Eggert.
9422 2001-08-29  Akim Demaille  <akim@epita.fr>
9424         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
9425         download in a tmp dir.
9427 2001-08-29  Akim Demaille  <akim@epita.fr>
9429         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
9430         case insensitive OSes out there :(
9431         From Tim Van Holder.
9433 2001-08-29  Akim Demaille  <akim@epita.fr>
9435         * lib/autom4te.in: New.
9436         * lib/Makefile.am (edit, autom4te.cfg): New.
9437         * bin/autom4te.in (BEGIN): Simplify.
9438         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
9439         (&load_configuration): New.  Use it.
9440         (&parse_args): Support --mode, --set, and --melt.
9441         * bin/autoconf.in: Simplify and adjust.
9442         * tests/Makefile.am (AUTOMAKE): Use --set.
9443         * tests/atlocal.in: Adjust.
9444         * BUGS: distcheck and check are weak.
9446 2001-08-29  Akim Demaille  <akim@epita.fr>
9448         * lib/autotest/general.m4: Use
9449                 foo=`(command) 2>/dev/null`
9450         not
9451                 foo=`command` 2>/dev/null
9452         (at-devnull): Rename as...
9453         (AT-devnull): this.
9454         (--clean): Remove AT-* files too.
9455         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
9456         Reported by Nicolas Joly.
9458 2001-08-28  Akim Demaille  <akim@epita.fr>
9460         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
9461         quotes inside single quotes.
9462         Reported by Nicolas Joly.
9464 2001-08-28  Kevin Ryde  <user42@zip.com.au>
9466         * doc/autoconf.texi (Function Portability): Mention C right shifts.
9468 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
9470         * lib/autotest/general.m4: Reword some messages.
9471         (AT_INIT): Check for the `times' builtin before using it.
9472         Support test ranges as arguments to the testsuite.
9473         Have -e imply -d as the help text suggested.
9475 2001-08-27  Akim Demaille  <akim@epita.fr>
9477         * Makefile.maint: Formatting changes.
9478         (do-po-update, po-update, cvs-update, update): New targets.
9479         (AMTAR): Remove.
9481 2001-08-27  Akim Demaille  <akim@epita.fr>
9483         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
9484         <at_cmd_line>: New.
9485         Pass it to debug-*.sh scripts.
9486         <AUTOTEST_PATH>: May contain absolute dir names.
9488 2001-08-27  Akim Demaille  <akim@epita.fr>
9490         * lib/autotest/general.m4 (AT_INIT): Log the command line.
9491         Support `VAR=VAL' as arguments.
9492         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
9493         may be set via the command line.
9495 2001-08-27  Akim Demaille  <akim@epita.fr>
9497         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
9498         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
9499         first the build dirs, then the src dirs.
9500         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
9502 2001-08-27  Akim Demaille  <akim@epita.fr>
9504         * lib/autotest/general.m4 (AT_INIT): Output the definition of
9505         at_data_files earlier.
9506         (--clean, -c): New option.
9507         * tests/Makefile.am: Use this option.
9509 2001-08-27  Akim Demaille  <akim@epita.fr>
9511         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
9512         `ac_top_builddir' to mimic Automake's vocabulary, which much more
9513         readable.
9514         Adjust callers.
9515         * doc/autoconf.texi (Configuration Actions): Document the vars
9516         available in commands.
9517         Emphasize the risks of collisions in init-cmds.
9519 2001-08-27  Akim Demaille  <akim@epita.fr>
9521         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
9522         (Initializing configure): this new node.
9524 2001-08-27  Akim Demaille  <akim@epita.fr>
9526         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
9528 2001-08-27  Akim Demaille  <akim@epita.fr>
9530         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
9531         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
9532         New file.
9533         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
9535 2001-08-27  Akim Demaille  <akim@epita.fr>
9537         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
9538         to...
9539         * lib/autoconf/autoheader.m4: this new file.
9540         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
9541         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
9542         Move to...
9543         * lib/autoconf/autoupdate.m4: this new file.
9545 2001-08-27  Akim Demaille  <akim@epita.fr>
9547         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
9548         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
9549         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
9550         -> ac_dir).
9551         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
9552         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
9554 2001-08-27  Akim Demaille  <akim@epita.fr>
9556         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
9557         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
9558         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
9559         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
9560         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
9561         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
9562         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
9563         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
9564         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
9565         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
9566         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
9567         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
9568         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
9569         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
9570         (_AC_OUTPUT_SUBDIRS): Move to...
9571         * lib/autoconf/status.m4: this new file.
9572         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
9573         * tests/Makefile.am, tests/suite.at: Adjust.
9575 2001-08-27  Akim Demaille  <akim@epita.fr>
9577         Automake 1.5.
9579         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
9580         (AMTAR): Help automake define it.
9581         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
9582         needed, 1.5 can have a macro and a target with the same name.
9583         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
9584         * m4/strip.m4: New.
9585         * m4/init.m4, m4/sanity.m4: Update.
9586         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
9587         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
9588         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
9589         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
9591 2001-08-27  Akim Demaille  <akim@epita.fr>
9593         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
9595         * lib/autoconf/version.in: Remove.
9596         * lib/m4sugar/version.in: New.
9597         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
9598         Adjust callers.
9599         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
9600         the name of the directory they're in, instead of the filename,
9601         since version.m4 is now in m4sugar, but m4_acversion must not be
9602         classified as an Autoconf macro.
9603         ($input_m4): Don't qualify the path to m4sugar.
9604         Rather, pass autoconf_dir to m4.
9605         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
9606         * tests/suite.at: Require 2.52c.
9608 2001-08-27  Akim Demaille  <akim@epita.fr>
9610         testsuite.log should include config.log.
9612         * lib/autotest/autotest.m4: New.
9613         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
9614         * tests/suite.at : Adjust.
9615         (AT_INIT): Log config.log.
9616         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
9617         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
9618         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
9619         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
9620         of config.log on traps.
9621         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
9622         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
9623         for config.status'.
9624         Open the log as soon as possible.
9625         Use the same log introduction as configure's.
9627 2001-08-22  Paul Eggert  <eggert@twinsun.com>
9629         * doc/autoconf.texi (Indices): New node.
9630         Move indices out of the top level menu and into this submenu.
9632 2001-08-22  Akim Demaille  <akim@epita.fr>
9634         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
9635         AC_TRY_COMMAND.
9636         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
9638 2001-08-22  Akim Demaille  <akim@epita.fr>
9640         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
9641         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
9642         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
9643         * lib/autoconf/programs.m4: here.
9644         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
9645         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
9646         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
9647         * lib/autoconf/programs.m4: here.
9648         (_AC_DECL_YYTEXT): Rename as...
9649         (_AC_PROG_LEX_YYTEXT_DECL): this.
9650         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
9651         * tests/Makefile.am, tests/suite.am: Adjust.
9653 2001-08-22  Akim Demaille  <akim@epita.fr>
9655         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
9656         Move to...
9657         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
9658         here.
9659         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
9660         * lib/autoconf/functions.m4: here.
9661         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
9662         (AH_CHECK_LIB): Move to...
9663         * lib/autoconf/libs: this new file.
9664         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
9665         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
9666         * lib/autoconf/libs.m4: here.
9667         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
9669 2001-08-22  Akim Demaille  <akim@epita.fr>
9671         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
9672         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
9673         (AC_SITE_LOAD): Better logging of config.site.
9675 2001-08-20  Akim Demaille  <akim@epita.fr>
9677         * configure.ac (AT_CONFIG): Fix the path.
9678         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
9679         can be used.
9681 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
9683         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
9684         program with AC_LANG_PROGRAM before feeding it to
9685         AC_COMPILE_IFELSE.  Cleanup grep usage.
9687 2001-08-20  Akim Demaille  <akim@epita.fr>
9689         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
9690         * NEWS, README, README-alpha, TODO, tests/README: This package is
9691         `Autoconf', not `autoconf' (the executable).
9693 2001-08-20  Akim Demaille  <akim@epita.fr>
9695         Info readers seem to need `Index' in the index node title :(
9697         * doc/autoconf.texi: Reverse the 2001-08-15 change which
9698         simplified index node names.
9700 2001-08-20  Akim Demaille  <akim@epita.fr>
9702         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
9703         arguments are not literals.
9704         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
9705         Specify the output variables, and macros defined.
9707 2001-08-20  Akim Demaille  <akim@epita.fr>
9709         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
9710         (Examining Syntax) <AC_TRY_COMPILE>
9711         (Examining Libraries) <AC_TRY_LINK>
9712         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
9713         their arguments.
9714         Reported by Werner Lemberg.
9716 2001-08-20  Akim Demaille  <akim@epita.fr>
9718         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
9719         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
9720         Load atlocal late enough to dump it in the log.
9721         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
9723 2001-08-20  Akim Demaille  <akim@epita.fr>
9725         * tests/torture.at (Configuring subdirectories): New test.
9726         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
9727         looking for.
9728         * m4/atconfig.m4: Be sure the let $[0] be expandable.
9729         (top_srcdir): Fix its computation.
9731 2001-08-20  Akim Demaille  <akim@epita.fr>
9733         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
9734         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
9735         test suite lives.
9736         Create `atconfig' automagically.
9737         Configure atlocal.in if present.
9738         * tests/atconfig.in: Remove.
9739         * tests/atlocal.in: New.
9740         * tests/Makefile.am: Adjust.
9742 2001-08-20  Akim Demaille  <akim@epita.fr>
9744         Huh!?!?!  There are still some user EOF tags used, which prevents
9745         their use in AC_CONFIG_COMMANDS for instance...
9747         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
9748         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
9749         `_CSEOF', or `_ATEOF', as appropriate.
9750         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
9751         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
9753 2001-08-20  Akim Demaille  <akim@epita.fr>
9755         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
9756         * tests/semantics.at, tests/tools.at, tests/torture.at:
9757         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
9759 2001-08-20  Akim Demaille  <akim@epita.fr>
9761         Autotest invokes M4sh's initialization.
9763         * lib/autotest/general.m4: Adjust the diversion names.
9764         (AT_INIT): Run AS_INIT.
9765         Use the BINSH diversion to invoke /bin/sh.
9766         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
9767         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
9769 2001-08-20  Akim Demaille  <akim@epita.fr>
9771         Let M4sh have its own diversions.
9773         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
9774         (_m4_divert(NOTICE)): Rename as...
9775         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
9776         (_m4_divert(HEADER-COMMENT)): these.
9777         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
9778         (_m4_divert(NOTICE)): New, for Libtool.
9779         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
9780         long ago with `_m4_divert(GROW)'.
9781         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
9783 2001-08-20  Akim Demaille  <akim@epita.fr>
9785         * tests/base.at, tests/compile.at, tests/foreign.at,
9786         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
9787         * tests/semantics.at, tests/suite.at, tests/tools.at,
9788         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
9790 2001-08-20  Akim Demaille  <akim@epita.fr>
9792         * bin/autom4te.in (handle_output): Handle @__@.
9794 2001-08-20  Akim Demaille  <akim@epita.fr>
9796         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
9797         * lib/autotest/general.m4: Adjust the license.
9799 2001-08-17  Paul Eggert  <eggert@twinsun.com>
9801         * doc/autoconf.texi (Function Portability): Mention snprintf,
9802         following up on a suggestion by Kevin Ryde.
9804 2001-08-17  Akim Demaille  <akim@epita.fr>
9806         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
9807         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
9809 2001-08-17  Akim Demaille  <akim@epita.fr>
9811         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
9812         `$0.log' as for projects where testsuite is in src, we'd have
9813         testsuite.log created in src.
9815 2001-08-17  Akim Demaille  <akim@epita.fr>
9817         * bin/autom4te.in (&parse_args): Recognize --normalize.
9819 2001-08-17  Akim Demaille  <akim@epita.fr>
9821         Start implementing the AC_CHECK_HEADER transition scheme.
9823         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
9824         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
9825         (AC_CHECK_HEADER): Use them.
9827 2001-08-17  Akim Demaille  <akim@epita.fr>
9829         * doc/autoconf.texi: Work around Texinfo buglets.
9830         (Transformation Rules): One example is enough, users are expected
9831         to have their brains on. And BTW, use DESTDIR.
9832         (dvar): New macro.  Use it.
9834 2001-08-17  Akim Demaille  <akim@epita.fr>
9836         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
9837         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
9838         looking for ChangeLogs.
9840 2001-08-17  Akim Demaille  <akim@epita.fr>
9842         * bin/autom4te.in: --normalize is a new option.
9843         * bin/autoconf.in: Use it.
9845 2001-08-17  Akim Demaille  <akim@epita.fr>
9847         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
9848         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
9850 2001-08-16  Paul Eggert  <eggert@twinsun.com>
9852         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
9853         start, not at end.
9855 2001-08-15  Akim Demaille  <akim@epita.fr>
9857         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
9858         Use it.
9860 2001-08-15  Akim Demaille  <akim@epita.fr>
9862         * doc/autoconf.texi (pr): New index.
9863         (prindex, findex): Use, merge, and output them.
9864         (Environment Variable Index, Output Variable Index)
9865         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
9866         (Autotest Macro Index): Rename as...
9867         (Environment Variables, Output Variables,Preprocessor Symbols)
9868         (Autoconf Macros, M4 Macros, Autotest Macros): these.
9869         * doc/install.texi: Use @command.
9870         (Environment Variables): Rename as...
9871         (Defining Variables): this.
9873 2001-08-15  Akim Demaille  <akim@epita.fr>
9875         * doc/autoconf.texi (Function Portability): sprintf's return
9876         value.
9877         From Kevin Ryde.
9879 2001-08-15  Akim Demaille  <akim@epita.fr>
9881         * Makefile.maint (CVS): New.
9882         (local-check): Run changelog-check. last.
9883         (alpha): Don't depend upon local-check, since...
9884         (cvs-dist): depends upon it.
9886 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
9888         * tests/Makefile.am: Use a clean-local rule to remove
9889         autom4te.cache (it's a directory, not a file.
9890         * Makefile.am: Ditto (but maintainer-clean-local).
9892 2001-08-15  Akim Demaille  <akim@epita.fr>
9894         * bin/autom4te.in (@m4_warning): New.
9895         (&handle_m4): Use it.
9896         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
9897         warnings are issued at each run.
9898         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
9899         is in the src tree.
9901 2001-08-15  Akim Demaille  <akim@epita.fr>
9903         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
9904         don't waste time running `autoupdate --version' works.
9905         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
9907 2001-08-13  Akim Demaille  <akim@epita.fr>
9909         * doc/autoconf.texi (ma): Rename this index as...
9910         (ac): this.
9912 2001-08-13  Akim Demaille  <akim@epita.fr>
9914         * Makefile.am: Remove dead code and dead comments.
9915         (pdf, html): New targets.
9916         * doc/autoconf.texi (Using Autotest): New chapter.
9917         * doc/Makefile.am (pdf): New targets.
9918         (CLEANFILES): Adjust.
9920 2001-08-13  Akim Demaille  <akim@epita.fr>
9922         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
9923         duration of the test suite.
9925 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
9927         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
9928         endianness for comparison instead of relying on AT_CHECK_ENV.
9930 2001-08-11  Paul Eggert  <eggert@twinsun.com>
9932         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
9933         to the INSTALL file.
9935 2001-08-11  Paul Eggert  <eggert@twinsun.com>
9937         * NEWS: The autoconf manual now is distributed under the terms
9938         of the GNU Free Documentation License.
9940         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
9941         Add an appendix "Copying This Manual" for the FDL.
9943         * doc/fdl.texi: New file, from
9944         <http://www.gnu.org/licenses/fdl.texi>.
9946         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
9948 2001-08-10  Paul Eggert  <eggert@twinsun.com>
9950         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
9951         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
9952         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
9953         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
9954         m4/sanity.m4, tests/README, tests/aclocal.m4,
9955         tests/atspecific.m4, tests/base.at, tests/compile.at,
9956         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
9957         tests/semantics.at, tests/suite.at, tests/tools.at,
9958         tests/torture.at: Add copyright notice.
9960         * tests/mktests.sh: Update year in copyright notice.
9962 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
9964         * tests/semantics.at (AC_C_BIGENDIAN): New test.
9966 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
9968         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
9969         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
9970         * doc/autoconf.texi (C Compiler Characteristics): Update
9971         documentation for AC_C_BIGENDIAN.
9973 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
9975         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
9976         magic values from an object file when cross-compiling.
9977         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
9979 2001-08-10  Akim Demaille  <akim@epita.fr>
9981         * bin/autom4te.in (&handle_output): Don't use `grep' with side
9982         effects.
9983         Suggested by Russ Allbery.
9985 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
9987         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
9988         current $prefix to the sub-configures.
9990 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
9992         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
9993         extension (needed on BeOS).  Reported by Guido van Rossum.
9995 2001-08-09  Akim Demaille  <akim@epita.fr>
9997         * bin/autom4te.in ($icache): Load it only if older than autom4te.
9999 2001-08-07  Akim Demaille  <akim@epita.fr>
10001         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
10002         removed.
10003         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
10004         No need to remove the files before and after the each test, before
10005         each test and at the end of the suite is enough.
10006         Display only the children `times', not the shell's.
10007         If the test failed or was skipped, at-times is not available.
10009 2001-08-07  Akim Demaille  <akim@epita.fr>
10011         Always produce testsuite.log, including when there are no
10012         failures.  This helps getting information on skipped tests, and
10013         duration of the tests.  Err, implement the latter btw.
10015         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
10016         Dump information on the first run of each test.
10017         (AT_CLEANUP): Create `at-times' containing the duration of the
10018         test group.
10020 2001-08-07  Akim Demaille  <akim@epita.fr>
10022         The use of `dumpstat' revealed that `len' was used although it
10023         should not.  m4_text_wrap was using it, but in the Autoconf world
10024         where it is legal.  Hence (i) test M4sh in its own world, not
10025         Autoconf's, and (ii), ahem, fix the bug :)
10027         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
10028         does not like `' instead of [].
10029         (AT_INIT): Forbid `^_?AT_'.
10030         And don't output such tokens.
10031         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
10032         `script.as', and `autom4te.cache'.
10033         Remove `empty' and `macro' which are no longer used.
10034         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
10035         * tests/m4sugar.at: Use it.
10036         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
10038 2001-08-07  Akim Demaille  <akim@epita.fr>
10040         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
10042 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
10044         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
10046 2001-08-04  Akim Demaille  <akim@epita.fr>
10048         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
10049         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
10050         AC_TRY_LINK.
10051         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
10052         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
10053         (AC_F77_MAIN): Likewise.
10055 2001-08-04  Akim Demaille  <akim@epita.fr>
10057         Don't rely on M4sugar outputting the patterns in files, since we
10058         might process the output _without_ running m4, hence without these
10059         files.
10061         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
10062         * bin/autom4te.in (@Request::includes): Remove, unused.
10063         (@Request::source): Rename as...
10064         (@Request::input): this.
10065         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
10066         (&handle_output): Fetch the patterns from the traces.
10067         `$forbidden' and `$allowed' are constant: use m//o.
10068         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
10069         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
10071 2001-08-04  Akim Demaille  <akim@epita.fr>
10073         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
10074         autoconf', i.e., in addition to caching traces, cache the output.
10076         * bin/autom4te.in (Request::cache): Rename as...
10077         (Request::id): this.
10078         ($cache, $icache, $tcache, $ocache): New.
10079         (&handle_m4): Save M4 output in the cache instead of $tmp.
10080         (&handle_output): Adjust.
10081         (&up_to_date_p): Check that the output cache is up to date too.
10082         (top level): Run `&handle_m4' iff force or the cache is invalid.
10083         Run `&handle_output' if the output cache is more recent.
10085 2001-08-04  Akim Demaille  <akim@epita.fr>
10087         * bin/autom4te.in ($force): New.
10088         (&parse_args, &print_usage): -f, --force is a new option.
10089         (&handle_output): CPP directives might have spaces after `#'.
10090         (&parse_args): The first file only can be frozen.
10092 2001-08-04  Akim Demaille  <akim@epita.fr>
10094         Don't let autom4te compute the `include' traces several times:
10095         first check that the trace cache file is up to date, and then
10096         compare its timestamp with that of the output.
10098         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
10099         the preamble.  Don't require 5.005 as Autom4te::General does it,
10100         and better yet (use `use', not `require'!).
10101         * lib/Autom4te/Struct.pm: Rename the last occurrences of
10102         Class::Struct as Autom4te::Struct.
10103         * lib/Autom4te/General.pm (File::stat): Use it.
10104         (&mtime): New, export it.
10105         * bin/autom4te.in: Use it.
10106         Declare `$req' is invalid if it is outdated.
10107         Don't declare it valid before saving it if something went wrong.
10109 2001-08-04  Akim Demaille  <akim@epita.fr>
10111         Autom4te shall not encode Autoconf data, and preselecting traces
10112         must be proposed to the users.
10114         * bin/autom4te.in (@required_trace): Remove.
10115         (@preselect): New.
10116         (&parse_args, &print_usage): -p, --preselect is a new option.
10117         (&up_to_date_p): Adjust.
10118         * bin/autoconf.in: Preselect some Autoconf macros.
10120 2001-08-04  Akim Demaille  <akim@epita.fr>
10122         * tests/tools.at (autoconf --trace: user macros): Check traces on
10123         macros invoked without arguments, and macros invoked with multiple
10124         lines arguments.
10126 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
10128         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
10129         arguments.
10131 2001-08-03  Akim Demaille  <akim@epita.fr>
10133         * bin/autoconf.in ($@): Work around the usual sh bug.
10134         From Nicolas Joly.
10136 2001-08-03  Akim Demaille  <akim@epita.fr>
10138         Clean up the handling of the M4 builtins tracing exception.
10140         * bin/autom4te.in (Request::request): Don't complete M4 builtins
10141         trace requests.
10142         (@m4_builtins): Rename as...
10143         (@m4_builtin): this.
10144         (%m4_builtin_alternate_name): New.
10145         (&parse_args): Complete the trace requests with alternate names.
10146         (&handle_traces): Hence no longer do it here.
10147         (&trace_requests): Remove, unused.
10149 2001-08-03  Akim Demaille  <akim@epita.fr>
10151         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
10152         m4_if, and m4_wrap.
10154 2001-08-03  Akim Demaille  <akim@epita.fr>
10156         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
10157         (m4_divert_pop): Dump the whole diversion stack when a diversion
10158         mismatch happens.
10159         * bin/autom4te.in (&handle_output): Remember of the first
10160         occurrence of a possibly undefined macro, not the last.
10161         Complain about the possibly undefined macros in the same order as
10162         the appear in the output.
10163         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
10164         * tests/tools.at (autoconf: forbidden tokens, basic)
10165         (autoconf: forbidden tokens, exceptions): No longer sort
10166         autoconf's stderr, as it is now deterministic.
10167         Check that `dnl' is caught.
10169 2001-08-01  Akim Demaille  <akim@epita.fr>
10171         * configure.ac: Bump to 2.52c.
10173 2001-08-01  Akim Demaille  <akim@epita.fr>
10175         Version 2.52b.
10177         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
10179 2001-08-01  Akim Demaille  <akim@epita.fr>
10181         Version 2.52a.
10183 2001-08-01  Akim Demaille  <akim@epita.fr>
10185         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
10186         `die'.
10187         (&END): New.
10188         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
10189         `END', as `Autom4te::General::END' will be triggered.
10190         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
10191         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
10192         system to run `mv', `rm', and `cmp'.
10194 2001-08-01  Akim Demaille  <akim@epita.fr>
10196         * lib/Autom4te/General.pm (&unique): New.
10197         * bin/autoscan.in (&output): Use it to issue trace requests once.
10199 2001-08-01  Akim Demaille  <akim@epita.fr>
10201         * lib/Autom4te/General.pm: New.
10202         * bin/autom4te.in (Autom4te::General): Use it.
10203         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
10204         (&find_configure_ac, &find_slave): Remove.
10205         * bin/autoscan.in: Likewise.
10206         * bin/autoupdate.in: Likewise.
10208 2001-08-01  Akim Demaille  <akim@epita.fr>
10210         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
10211         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
10212         * bin: here, new directory.
10213         * lib/Autoconf: Rename as...
10214         * lib/Autom4te: this, to please case insensitive junkie OSes.
10216 2001-08-01  Akim Demaille  <akim@epita.fr>
10218         * autom4te.in ($m4): Handle the --nesting-limit.
10219         * autoconf.in (M4): Remove.
10221 2001-08-01  Akim Demaille  <akim@epita.fr>
10223         * autoconf.in ($AWK): Remove, no longer used.
10224         * test/tools.at: Use AT_CHECK_AUTOCONF.
10225         (AWK portability): Remove, for autoconf no longer uses AWK.
10226         (Syntax of the Perl scripts): New.
10227         * configure.ac: autoconf no longer needs an AWK with a good
10228         regexp engine.
10229         Use a static test on AC_PACKAGE_VERSION.
10230         * autom4te.in (&up_to_date_p): Output depends on the arguments.
10231         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
10232         * tests/atconfig.in (PERL): New.
10234 2001-08-01  Akim Demaille  <akim@epita.fr>
10236         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
10237         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
10238         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
10239         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
10240         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
10241         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
10242         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
10243         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
10244         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
10245         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
10246         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
10247         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
10248         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
10249         * lib/autoconf/c.m4: here, new file.
10251         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
10252         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
10253         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
10254         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
10255         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
10256         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
10257         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
10258         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
10259         (AC_F77_FUNC): Move to...
10260         * lib/autoconf/fortran.m4: here, new file.
10262 2001-08-01  Akim Demaille  <akim@epita.fr>
10264         * acfunctions.m4: Rename as...
10265         * lib/autoconf/functions.m4: this.
10266         * acgeneral.m4: Rename as...
10267         * lib/autoconf/general.m4: this.
10268         * acheaders.m4: Rename as...
10269         * lib/autoconf/headers.m4: this.
10270         * aclang.m4: Rename as...
10271         * lib/autoconf/lang.m4: this.
10272         * acoldnames.m4: Rename as...
10273         * lib/autoconf/oldnames.m4: this.
10274         * acspecific.m4: Rename as...
10275         * lib/autoconf/specific.m4: this.
10276         * actypes.m4: Rename as...
10277         * lib/autoconf/types.m4: this.
10278         * autoconf.m4: Rename as...
10279         * lib/autoconf/autoconf.m4: this.
10281         * m4sugar.m4: Rename as...
10282         * lib/m4sugar/m4sugar.m4: this.
10283         * m4sh.m4: Rename as...
10284         * lib/m4sugar/m4sh.m4: this.
10286         * tests/atgeneral.m4: Rename as...
10287         * lib/autotest/general.m4: this.
10289         * acfunctions: Rename as...
10290         * lib/autoscan/functions: this.
10291         * acheaders: Rename as...
10292         * lib/autoscan/headers: this.
10293         * acidentifiers: Rename as...
10294         * lib/autoscan/identifiers: this.
10295         * aclibraries: Rename as...
10296         * lib/autoscan/libraries: this.
10297         * acmakevars: Rename as...
10298         * lib/autoscan/makevars: this.
10299         * acprograms: Rename as...
10300         * lib/autoscan/programs: this.
10302 2001-08-01  Akim Demaille  <akim@epita.fr>
10304         * doc/autoconf.texi: Moving/deleting open files is not portable.
10305         Portability issues for `.' (source), and more information about sed.
10307 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
10309         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
10310         which has a special meaning and is not a reference to libibmil.a.
10311         Reported by Matteo Frigo.
10313 2001-07-25  Pavel Roskin  <proski@gnu.org>
10315         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
10316         output.
10318 2001-07-25  Akim Demaille  <akim@epita.fr>
10320         * autoconf.in: Try to define the variables before using them.
10321         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
10322         instead of `$perllibdir'.
10323         * tests/atconfig.in ($autom4te_perllibdir): Export it.
10325 2001-07-25  Akim Demaille  <akim@epita.fr>
10327         * autoconf.in (ac_LF_and_DOT): Remove, unused.
10329 2001-07-24  Akim Demaille  <akim@epita.fr>
10331         Let autoconf use autom4te for traces.
10333         * autoconf.in ($task, task trace): Remove, merely pass --trace to
10334         autom4te.
10335         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
10336         (Because I found no way for autom4te to accept `-').
10337         * autom4te.in (&Request::request): Beware of M4 builtins.
10338         (END): Don't try to remove the content of an empty dir.
10339         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
10340         (&handle_output): Set a default value to `$forbidden'.
10341         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
10342         ($autoconf): Pass --debug and --verbose.
10343         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
10344         cache.
10346 2001-07-24  Akim Demaille  <akim@epita.fr>
10348         Let autoconf use autom4te to create configure.
10350         * autoconf.in ($automate): New var.
10351         (task script): Use autom4te.
10352         * autom4te.in (File::Spec): Use it.
10353         (&find_file): New.
10354         (&parse_args): --warning is -W, not -w.
10355         Find the top level files.
10356         (&handle_m4): Pass the warnings flags.
10357         Don't report verbosely m4's failures, unless requested.
10358         (&handle_output): Don't complain for forbidden tokens in comments.
10359         Be sure to report all the forbidden tokens within a single line.
10360         (&trace_format_to_m4): Preserve `$_'.
10361         (&handle_traces): Sort the output macros.
10362         (&up_to_date_p): Find the files before trying to get its time stamp.
10364 2001-07-24  Akim Demaille  <akim@epita.fr>
10366         * Makefile.am: Ship, build and install Autom4te.
10367         (SUBDIRS): Add lib.
10368         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
10369         * configure.in: Require Perl.
10370         * man/autom4te.in: New.
10372 2001-07-19  Paul Eggert  <eggert@twinsun.com>
10374         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
10375         example, rather than (exit 1); exit (which isn't portable).
10377 2001-07-18  Akim Demaille  <akim@epita.fr>
10379         Version 2.52.
10381 2001-07-18  Akim Demaille  <akim@epita.fr>
10383         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
10384         was run, while they are needed also when it is expanded.
10385         Reported by Nicolas Joly.
10387         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
10388         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
10389         AC_F77_DUMMY_MAIN being expanded.
10391 2001-07-18  Akim Demaille  <akim@epita.fr>
10393         * configure.in: Bump to 2.51a.
10395 2001-07-17  Akim Demaille  <akim@epita.fr>
10397         Version 2.51.
10399 2001-07-17  Akim Demaille  <akim@epita.fr>
10401         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
10402         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
10404 2001-07-17  Akim Demaille  <akim@epita.fr>
10406         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
10407         used.  Well, then use the prototypes when you can, and runtime as
10408         a last resort.
10409         Reported by Artur Frysiak
10411         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
10412         (AC_FUNC_GETPGRP): Use it.
10413         First try to compile with 0-ary or 1-ary calls.
10415 2001-07-17  Akim Demaille  <akim@epita.fr>
10417         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
10418         replacement type.
10419         From Paul Eggert.
10421 2001-07-17  Akim Demaille  <akim@epita.fr>
10423         * Makefile.maint: Sync. with cppi 1.10.
10425 2001-07-17  Akim Demaille  <akim@epita.fr>
10427         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
10428         AC_F77_DUMMY_MAIN has been run.
10429         From Pavel Roskin and Steven G. Johnson.
10431 2001-07-17  Akim Demaille  <akim@epita.fr>
10433         * configure.in: Rename as...
10434         * configure.ac: this.
10436 2001-07-17  Akim Demaille  <akim@epita.fr>
10438         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
10439         rules.
10440         From Marc Espie.
10441         * Makefile.maint (release-archive-dir): Rename as...
10442         (release_archive_dir): this, so that it can be specialized in
10443         Makefile.
10445 2001-07-14  Akim Demaille  <akim@epita.fr>
10447         * configure.in: Bump to 2.50d.
10449 2001-07-14  Akim Demaille  <akim@epita.fr>
10451         Version 2.50c.
10452         * Makefile.maint (alpha): Typo.
10454 2001-07-14  Akim Demaille  <akim@epita.fr>
10456         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
10458 2001-07-14  Akim Demaille  <akim@epita.fr>
10460         * config/config.guess, config/config.sub, config/texinfo.tex
10461         * doc/standards.texi, doc/make-stds.texi: Update.
10463 2001-07-14  Akim Demaille  <akim@epita.fr>
10465         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
10467 2001-07-14  Akim Demaille  <akim@epita.fr>
10469         * Makefile.maint (maintainer-check): Rename as...
10470         (maintainer-distcheck): this.
10471         (changelog-check, static-check): New.
10472         Use them.
10474 2001-07-14  Kevin Ryde  <user42@zip.com.au>
10476         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
10477         for CXX is g++, not gcc.
10479 2001-07-14  Akim Demaille  <akim@epita.fr>
10481         * doc/autoconf.texi (Files): New subsection.
10483 2001-07-14  Akim Demaille  <akim@epita.fr>
10485         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
10486         of...
10487         (Generic Compiler Characteristics): this.
10488         (C++ Compiler): New subsection.
10490 2001-07-14  Akim Demaille  <akim@epita.fr>
10492         * autoscan.in: Use IO::File.
10493         Adjust all the routines to use it.
10494         ($log): New file (autoscan.log).
10495         (output): Dump detailed logs into $log, and a shortened version to
10496         stderr.
10497         (&scan_makefile): Refine the regexp catching tokens in the code.
10498         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
10499         and the `configure.ac' checking feature.
10501 2001-07-12  Akim Demaille  <akim@epita.fr>
10503         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
10504         Reported by Michael Elizabeth Chastain.
10506         * autoconf.in: Refuse such AWK.
10507         * configure.in: Likewise.
10508         * Makefile.am (acversion.m4): Do not use move-if-change this file
10509         has dependencies.
10510         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
10512 2001-07-10  Jens Petersen  <petersen@redhat.com>
10514         * autoscan.in (&scan_makefile): Improve programs regexp to parse
10515         things like "g++", "file.c" and "some-conf" as tokens.
10516         (&scan_file): Match C++ files extensions.
10517         If the filename extension is C++ then ask for c++.
10519 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
10521         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
10522         AC_TRY_LINK_FUNC, to check whether defining a dummy
10523         main-like routine is needed for linking with F77 libs.
10525 2001-07-05  Pavel Roskin  <proski@gnu.org>
10527         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
10528         after using break.
10529         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
10530         linking.
10532 2001-07-05  Akim Demaille  <akim@epita.fr>
10534         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
10535         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
10536         Makes' lives.
10537         Reported by Nicolas Joly.
10539 2001-07-04  Akim Demaille  <akim@epita.fr>
10541         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
10542         up.
10543         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
10544         warnings from compilers.
10545         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
10546         for all the compilers, not only GNU.  Hence move from here...
10547         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
10549 2001-07-04  Akim Demaille  <akim@epita.fr>
10551         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
10552         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
10553         AC_COMPILE_IFELSE.
10555 2001-07-04  Akim Demaille  <akim@epita.fr>
10557         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
10558         the ``strings.h'' change claimed below.
10560 2001-07-04  Akim Demaille  <akim@epita.fr>
10562         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
10564 2001-07-04  Akim Demaille  <akim@epita.fr>
10566         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
10567         strings.h if usable with string.h.
10568         Suggested by Paul Eggert.
10570 2001-07-04  Akim Demaille  <akim@epita.fr>
10572         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
10573         From Jens Petersen.
10575 2001-07-03  Akim Demaille  <akim@epita.fr>
10577         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
10578         etc. in the log.
10580 2001-07-03  Akim Demaille  <akim@epita.fr>
10582         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
10583         compiler, not the preprocessor.
10584         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
10585         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
10586         the right thing.
10587         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
10588         earlier if there are.
10590 2001-07-03  Akim Demaille  <akim@epita.fr>
10592         * autoscan.in ($initfile): Remove.
10593         (&find_file): Rename as...
10594         (&scan_file): this.
10595         Immediately scan the current file, instead of gathering them, and
10596         later having them handled by &scan_files.
10597         (&scan_files): Merely invoke Find::File.
10598         Adjust.
10600 2001-07-02  Akim Demaille  <akim@epita.fr>
10602         * autoscan.in: Formatting changes, matching the invocation order.
10603         (File::Find): Use it instead of Perl 4's `find.pl'.
10604         (&wanted): Rename as...
10605         (&find_file): this.
10607 2001-07-01  Pavel Roskin  <proski@gnu.org>
10609         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
10610         break in the argument to AC_TRY_LINK_FUNC.
10611         (AC_F77_MAIN): Remove conftest* after using break in the
10612         argument to AC_TRY_LINK.
10614 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
10616         Add alternate 'main' routine detection for linking C/C++ with Fortran,
10617         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
10619         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
10620         dummy alternate main is required even if the user provides her own
10621         'main'.
10622         (AC_F77_MAIN): New macro to detect whether it is possible to
10623         provide an alternate 'main' function name, using the 'main' from
10624         the Fortran libraries.
10625         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
10626         cross-language link tests can be performed successfully.
10627         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
10628         after $LIBS, for consistency; this should be the general rule since
10629         the user may want to link to Fortran libraries that require $FLIBS.
10630         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
10632 2001-06-29  Pavel Roskin  <proski@gnu.org>
10634         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
10635         at-stdout and at-stderr instead of removing the newline
10636         from the echo output, which is not guaranteed to work.
10638 2001-06-28  Jens Petersen  <petersen@redhat.com>
10640         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
10641         confdefs.h when non-zero.
10643 2001-06-28  Akim Demaille  <akim@epita.fr>
10645         * configure.in: Bump to 2.50c.
10647 2001-06-26  Akim Demaille  <akim@epita.fr>
10649         Version 2.50b.
10651 2001-06-26  Akim Demaille  <akim@epita.fr>
10653         Version 2.50a.
10655 2001-06-25  Pavel Roskin  <proski@gnu.org>
10657         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
10658         argument, AUTOCONF-FLAGS.
10659         * tests/mktests.sh (update_exclude_list): Add
10660         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
10661         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
10662         AC_FUNC_WAIT3 with "-W no-obsolete".
10664 2001-06-25  Akim Demaille  <akim@epita.fr>
10666         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
10668 2001-06-25  Akim Demaille  <akim@epita.fr>
10670         * autoscan.in (%macro): Now maps from word to list of macros.
10671         (&init_tables): Die when a word which is already handled by
10672         explicit macros is mapped to the default macro.
10673         (&print_unique): Remove, inlined in...
10674         (&output_kind): here.
10675         (File::Basename): Use it.
10676         (&output): Sort the CONFIG_FILES.
10677         * acheaders: Normalize.
10678         * acfunctions: Likewise.
10680 2001-06-25  Akim Demaille  <akim@epita.fr>
10682         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
10683         characteristics in the logs.
10684         Suggested by Mo DeJong.
10686 2001-06-24  Akim Demaille  <akim@epita.fr>
10688         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
10689         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
10690         * doc/autoconf.texi (Autoconf 2.13): New section.
10692 2001-06-24  Akim Demaille  <akim@epita.fr>
10694         * autoconf.in (Task traces): Separate the error messages from the
10695         traces to improve robustness.
10697 2001-06-23  Akim Demaille  <akim@epita.fr>
10699         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
10700         three as failures are unlikely, and speed matters.
10702 2001-06-23  Akim Demaille  <akim@epita.fr>
10704         * doc/autoconf.texi (Redefined M4 Macros): New.
10706 2001-06-23  Akim Demaille  <akim@epita.fr>
10708         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
10709         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
10710         5.3.
10712 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
10714         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
10715         config.status targets to after the evaluation of the INIT-CMDS.
10716         Double quote config.status targets (used to be single quoted).
10718 2001-06-23  Akim Demaille  <akim@epita.fr>
10720         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
10721         Check the content of the created file.
10722         Check the ./config.status command line invocation.
10724 2001-06-23  Akim Demaille  <akim@epita.fr>
10726         * tests/foreign.at (Libtool): Reject prehistoric versions.
10728 2001-06-23  Akim Demaille  <akim@epita.fr>
10730         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
10731         preexisting files matching a.*.
10733 2001-06-23  Akim Demaille  <akim@epita.fr>
10735         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
10736         stderr.
10737         * doc/autoconf.texi (AC_ARG_VAR): Update.
10739 2001-06-21  Akim Demaille  <akim@epita.fr>
10741         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
10742         precious variables have changed.
10743         * tests/torture.at (AC_ARG_VAR): Adjust.
10745 2001-06-21  Akim Demaille  <akim@epita.fr>
10747         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
10748         but some sed choke on multiple `;', and other tools (e.g.,
10749         Automake), include the separator themselves.
10751         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
10753 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
10755         * doc/autoconf.texi (Functions Portability): Rename as...
10756         (Function Portability): this.
10757         (Function Portability): Document potential problems with unlink().
10759 2001-06-19  Paul Eggert  <eggert@twinsun.com>
10761         * NEWS, doc/autoconf.texi: Document quadrigraphs.
10763 2001-06-18  Akim Demaille  <akim@epita.fr>
10765         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
10767 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
10769         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
10770         (_AC_FUNC_VFORK): this.
10771         Remove AC_DEFINEs and don't guess cross-compilation values.
10772         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
10773         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
10774         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
10775         vfork doesn't work.
10776         Guess values if cross-compiling, but warn.
10777         * acfunctions: Add AC_FUNC_FORK.
10778         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
10779         and vfork appropriately.
10781 2001-06-18  Akim Demaille  <akim@epita.fr>
10783         * doc/autoconf.texi (Functions Portability): New section.
10785 2001-06-18  Akim Demaille  <akim@epita.fr>
10787         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
10788         in $M4.
10789         Suggested by Andreas Schwab.
10791 2001-06-18  Akim Demaille  <akim@epita.fr>
10793         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
10794         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
10795         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
10796         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
10797         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
10798         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
10799         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
10800         the converse).
10802 2001-06-18  Akim Demaille  <akim@epita.fr>
10804         * doc/autoconf.texi (ms): New index.
10805         (Macro Index): Rename as...
10806         (Autoconf Macro Index): this.
10807         (M4 Macro Index): New appendix.
10808         (Programming in M4): New chapter.
10809         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
10810         (Quoting): Rename as...
10811         (M$ Quotation): this.
10812         Be part of `Programming in M4).
10814 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
10816         * tests/torture.at (AC_ARG_VAR): Set variables and export them
10817         in separate statements for compatibility with Tru64 v5.1.
10819 2001-06-17  Akim Demaille  <akim@epita.fr>
10821         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
10822         current values of the precious variables, not the previously
10823         cached values.
10824         Pass precious variables which are set to config.status.
10825         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
10826         * tests/torture.at (AC_ARG_VAR): New.
10828 2001-06-15  Paul Eggert  <eggert@twinsun.com>
10830         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
10831         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
10832         and explain why and how to replace them.
10833         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
10834         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10836 2001-06-15  Akim Demaille  <akim@epita.fr>
10838         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
10839         Reported by Bruno Haible.
10841         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
10842          (_AC_ARG_VAR_PRECIOUS): to here.
10844 2001-06-15  Pavel Roskin  <proski@gnu.org>
10846         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
10847         an unused pointer use cast to this type and `if' statement to
10848         avoid warnings from the compiler.
10849         (AC_HEADER_TIME): Likewise.
10850         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
10851         in `if' statement to avoid warnings from the compiler. Declare
10852         ac_aggr static to avoid the need to initialize it.
10854 2001-06-14  Akim Demaille  <akim@epita.fr>
10856         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
10857         Macros'.
10859 2001-06-13  Akim Demaille  <akim@epita.fr>
10861         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
10862         Suggested by Alexander Mai.
10864 2001-06-13  Akim Demaille  <akim@epita.fr>
10866         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
10867         sys/types.h and sys/stat.h, and check for them.
10869 2001-06-13  Akim Demaille  <akim@epita.fr>
10871         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
10872         INCLUDES.
10874 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10876         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
10877         succeeds and only try adding libdnet upon a failure.
10879 2001-06-12  Akim Demaille  <akim@epita.fr>
10881         * autoscan.in (&output_kind): Output the comment only if it exists.
10882         (%kind_comment): Add entry for `programs'.
10883         (&output_programs): Use &output_kind.
10884         (&output_functions, &output_identifiers, &output_headers)
10885         (&output_programs): Inline, and remove.
10887 2001-06-12  Akim Demaille  <akim@epita.fr>
10889         * autoscan.in (%kind_comment): New.
10890         (output_kind): New.
10891         (output_functions, output_identifiers, output_headers): Use it.
10893 2001-06-12  Akim Demaille  <akim@epita.fr>
10895         * autoscan.in (&print_unique): Take `$kind' and `$word' as
10896         arguments, to factor indirections into `%macro' and `%used'.
10897         (%generic_macro): Fix a typo.
10899 2001-06-12  Akim Demaille  <akim@epita.fr>
10901         * aclibraries: New.
10902         * autoscan.in (@kinds): Add `libraries'.
10903         Use `@kinds' instead of hard coded lists.
10904         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
10905         Remove, replaced by...
10906         (%used): this.
10908 2001-06-12  Akim Demaille  <akim@epita.fr>
10910         * autoscan.in (%functions_macros %headers_macros)
10911         (%identifiers_macros %programs_macros %makevars_macros): Remove,
10912         replaced by...
10913         (%macro): New.
10915 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
10917         * aclang.m4 (AC_NO_EXECUTABLES): Override
10918         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
10920 2001-06-11  Akim Demaille  <akim@epita.fr>
10922         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
10923         trailing new line.
10924         Reported by Andreas Schwab.
10926 2001-06-11  Akim Demaille  <akim@epita.fr>
10928         * Makefile.am, Makefile.maint: Typos.
10930 2001-06-09  Akim Demaille  <akim@epita.fr>
10932         * doc/autoconf.texi (Here-Documents): New section, gathering
10933         documentation about here-documents.
10934         Use `href', not `uref', and other changes.
10936 2001-06-09  Akim Demaille  <akim@epita.fr>
10938         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
10939         chapter.
10941 2001-06-09  Akim Demaille  <akim@epita.fr>
10943         * doc/autoconf.texi (Limitations of Builtins): Complete the
10944         description of the here-docs penalties with Alexandre Oliva's
10945         explanations.
10947 2001-06-01  Paul Eggert  <eggert@twinsun.com>
10949         * doc/autoconf.texi: Talk about here documents and speedups.
10950         Do not use "echo" on arbitrary strings.
10951         Spell "here-documents" consistently with the standard.
10953 2001-06-09  Akim Demaille  <akim@epita.fr>
10955         * doc/autoconf.texi (Concept Index): Introduce it.
10956         Regenerate the menus.
10958 2001-06-09  Akim Demaille  <akim@epita.fr>
10960         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
10961         * config/prev-version.txt: New.
10962         * config/move-if-change: New, for GNU libc.
10964 2001-06-06  Pavel Roskin  <proski@gnu.org>
10966         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
10968 2001-06-06  Akim Demaille  <akim@epita.fr>
10970         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
10971         properly when $1 is not a literal.
10972         Fixes PR Autoconf/187, reported by Bram Moolenaar.
10974 2001-06-06  Akim Demaille  <akim@epita.fr>
10976         Invoking AC_COPYRIGHT before AC_INIT fails.
10978         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
10979         * acgeneral.m4 (_m4_divert(VERSION_FSF))
10980         (_m4_divert(VERSION_USER)): New.
10981         (AC_COPYRIGHT): $2 is the diversion to use.
10982         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
10983         (AC_INIT): Remove dead comments as now it's commutative.
10985 2001-06-06  Akim Demaille  <akim@epita.fr>
10987         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
10988         PR autoconf/187.
10990 2001-06-05  Akim Demaille  <akim@epita.fr>
10992         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
10993         can be empty.
10994         `*dir' variables cannot be NONE.
10995         Reported by Mark Kettenis.
10997 2001-06-05  Paul Eggert  <eggert@twinsun.com>
10999         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
11001 2001-06-04  Akim Demaille  <akim@epita.fr>
11003         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
11004         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
11005         (AC_TR_SH): Move as...
11006         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
11007         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
11008         (AS_TR_SH): these.
11009         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
11010         (_AS_TR_SH_PREPARE): New.
11011         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
11012         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
11014 2001-06-02  Akim Demaille  <akim@epita.fr>
11016         * Makefile.am (.m4.m4f): Pass the options first.
11017         Fixes PR autoconf/182.
11019 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
11021         GNU getopt, when POSIXLY_CORRECT does not permute options and
11022         arguments.  So pass the options first.
11023         Fixes PR autoconf/184.
11025         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
11026         (run_m4): Remove files.
11027         (run_m4f): Remove.
11028         Update remainder of script to use them.
11029         (for warning in): Do not use a literal comma as it will not be
11030         split by IFS.
11032 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
11034         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
11035         Fortran compilers to check.
11036         (_AC_PROG_F77_V): Add '-###' as a possible option to print
11037         information on library and object files.
11038         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
11039         to check.
11041 2001-06-02  Akim Demaille  <akim@epita.fr>
11043         * autom4te.in (Request::@request): Declare with `vars', not `my',
11044         as it prevents updates via `do FILENAME'.
11046 2001-06-02  Akim Demaille  <akim@epita.fr>
11048         * configure.in (standards_texi): Remove, dead code.
11050 2001-06-02  Akim Demaille  <akim@epita.fr>
11052         * autom4te.in: New.
11054 2001-06-02  Pavel Roskin  <proski@gnu.org>
11056         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
11057         for signals other than 0 - exit with code 1.
11058         * m4sh.m4 (AS_TMPDIR): Likewise.
11059         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
11060         * autoheader.in: Likewise.
11061         * autoreconf.in: Likewise.
11062         * tests/torture.at (Signal handling): New test for the above.
11064 2001-06-01  Akim Demaille  <akim@epita.fr>
11066         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
11067         message.
11069 2001-05-31  Akim Demaille  <akim@epita.fr>
11071         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
11072         Add copyright and comments.
11073         * acheaders: Add stdint.h.
11074         Suggested by Paul Eggert.
11076 2001-05-31  Akim Demaille  <akim@epita.fr>
11078         * atgeneral.m4 (AT_INIT): Use $SHELL.
11079         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
11081 2001-05-31  Akim Demaille  <akim@epita.fr>
11083         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
11084         stdint.h.
11085         From Paul Eggert and Lars Hecking.
11087 2001-05-31  Akim Demaille  <akim@epita.fr>
11089         * tests/base.at: Adjust line numbers in error messages.
11091 2001-05-31  Akim Demaille  <akim@epita.fr>
11093         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
11094         to emit the bangshe line.
11095         Reported by David Carter.
11097 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
11099         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
11100         Fortran (95) compilers to check.
11102 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
11104         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
11105         Macro Archive URL.
11107 2001-05-23  Pavel Roskin  <proski@gnu.org>
11109         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
11110         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
11111         (AC_PROG_CXXCPP): Likewise.
11113 2001-05-22  Akim Demaille  <akim@epita.fr>
11115         * config: New directory.
11116         * configure.in: AC_CONFIG_AUX_DIR it.
11117         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
11119 2001-05-22  Akim Demaille  <akim@epita.fr>
11121         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
11122         * autoupdate.in: Specify the Emacs mode.
11123         * acversion.m4.in: Rename as...
11124         * acversion.m4: this.
11125         * tests/Makefile.am (CLEANFILES): More garbage.
11127 2001-05-22  Akim Demaille  <akim@epita.fr>
11129         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
11130         Rename as...
11131         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
11132         these.
11134 2001-05-21  Akim Demaille  <akim@epita.fr>
11136         * configure.in: Bump to 2.50a.
11138 -----
11140 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11142 This file is part of GNU Autoconf.
11144 GNU Autoconf is free software; you can redistribute it and/or modify
11145 it under the terms of the GNU General Public License as published by
11146 the Free Software Foundation; either version 2, or (at your option)
11147 any later version.
11149 GNU Autoconf is distributed in the hope that it will be useful,
11150 but WITHOUT ANY WARRANTY; without even the implied warranty of
11151 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11152 GNU General Public License for more details.
11154 You should have received a copy of the GNU General Public License
11155 along with autoconf; see the file COPYING.  If not, write to
11156 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
11157 Boston, MA 02110-1301, USA.