Resync upstream files.
[autoconf.git] / ChangeLog
blob6cef0d2ce943b59f2c1dd76775354337b88d2270
1 2009-03-14  Eric Blake  <ebb9@byu.net>
3         Resync upstream files.
4         * GNUmakefile: Run 'make fetch'.
5         * build-aux/announce-gen: Likewise.
6         * build-aux/config.guess: Likewise.
7         * build-aux/config.sub: Likewise.
8         * build-aux/gnupload: Likewise.
9         * build-aux/texinfo.tex: Likewise.
10         * build-aux/vc-list-files: Likewise.
11         * doc/gnu-oids.texi: Likewise.
12         * doc/standards.texi: Likewise.
14 2009-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16         New test for SunStudio `restrict' handling.
17         * tests/c.at (AC_C_RESTRICT and C++): New test.
18         Prompted by bug report from Rolf Vandevaart.
20 2009-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22         Manual: testsuite depends on package.m4.
23         * doc/autoconf.texi (Making testsuite Scripts): In the example
24         makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
26 2009-03-02  Allan Caffee  <allan.caffee@gmail.com>  (tiny change)
28         Fix a typo in comment for AS_LITERAL_IF.
29         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
30         out of date when this function was moved/renamed in 59ecd766.
31         * THANKS: Update.
33 2009-03-02  Eric Blake  <ebb9@byu.net>
35         Improve wording for AS_ESCAPE.
36         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
37         up documentation.
38         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
39         Reported by Ralf Wildenhues.
41 2009-02-24  Eric Blake  <ebb9@byu.net>
43         Use pkgdatadir consistently.
44         * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
45         * lib/Makefile.am (edit): Likewise.
46         * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
47         (M4sugar): Use @pkgdatadir@, not @datadir@.
48         * bin/autoheader.in ($datadir): Likewise.
49         * bin/autom4te.in ($datadir): Likewise.
50         * bin/autoreconf.in ($datadir): Likewise.
51         * bin/autoscan.in ($datadir): Likewise.
52         * bin/autoupdate.in ($datadir): Likewise.
53         * bin/ifnames.in ($datadir): Likewise.
54         * doc/autoconf.texi (Installation Directory Variables): Update
55         example to be consistent; focus on $(bindir) as an autoconf
56         variable, and mention that $(pkgdatadir) comes from automake.
57         Reported by Reuben Thomas.
59 2009-02-19  Eric Blake  <ebb9@byu.net>
61         Use m4_translit more efficiently in AS_ESCAPE.
62         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
63         of set separately from rest.
64         (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
65         callers.
66         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
67         characters in translit request.
68         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
69         Document the macro.
70         * NEWS: Likewise.
72         Mention recently documented macros.
73         * NEWS: Update list of new documentation.
75 2009-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77         Add index for config.site.
78         * doc/autoconf.texi (Site Defaults): Add index for config.site.
79         * THANKS: Update.
80         Report by Stephen P. Schaefer.
82 2009-02-12  Eric Blake  <ebb9@byu.net>
84         Fix m4_set speed regression introduced 2008-12-18.
85         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
86         creating larger argument on each iteration.
87         (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
88         (_m4_set_contents_2): Adjust all four-argument callers.
90 2009-02-05  Eric Blake  <ebb9@byu.net>
92         Mention new AC_DEFUN_ONCE clients.
93         * NEWS: Mention recent semantic changes.
94         Reported by Ralf Wildenhues.
96 2009-02-03  Eric Blake  <ebb9@byu.net>
98         Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
99         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
100         AC_DEFUN_ONCE, since this is a one-shot macro.
101         (AC_PROG_INSTALL): Likewise.
103 2009-02-03  Eric Blake  <ebb9@byu.net>
105         Mention that packagers should not pre-set CFLAGS.
106         * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
107         advice given by automake on handling variables reserved by GNU
108         Coding Standards.
109         Reported by Karl Berry.
111         Document lib64 in config.site.
112         * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
113         Mention use of lib64.
114         * THANKS: Update.
115         Reported by Tom Browder, with help from Peter Breitenlohner.
117 2009-01-28  Eric Blake  <ebb9@byu.net>
119         Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
120         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
121         AC_DEFUN_ONCE, since this is a one-shot macro.
122         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
123         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
124         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
126 2009-01-28  Eric Blake  <ebb9@byu.net>
128         Reduce blank lines in AC_DEFUN_ONCE macros.
129         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
130         line when a defun_once macro is required.
131         (_m4_defun_once): New helper macro, for less memory use.
132         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
134         Silence another false positive expand-before-require.
135         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
136         (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
137         that caused a diversion change, not just diversion number.
138         (m4_require): Factor...
139         (_m4_require_check): ...into new macro, which also checks whether
140         diversion that performed the expansion has been collected.
141         * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
142         Reported by Ralf Wildenhues.
144 2009-01-28  Eric Blake  <ebb9@byu.net>
146         Fix AC_C_RESTRICT for Sun Studio 12 C++.
147         * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
148         __restrict__ rather than _Restrict, which still trips up Sun
149         Studio 12 C++.
150         * THANKS: Update.
151         Reported by Rolf Vandevaart.
153 2009-01-28  Eric Blake  <ebb9@byu.net>
155         Fix years in copyright notices.
156         * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
157         undocumented for now.
158         * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
159         m4_PACKAGE_URL.
160         (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
161         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
162         (AC_COPYRIGHT): Add undocumented third parameter.
163         (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
164         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
165         * lib/autotest/general.m4 (AT_INIT): Likewise.
166         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
167         (AT_COPYRIGHT): Add undocumented third parameter.
168         * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
169         parameter; the generic copyright given by autotest is sufficient
170         since we are the package that owns autotest.
172 2009-01-27  Eric Blake  <ebb9@byu.net>
174         Use URLs in --help output, part 3: testsuite.
175         * doc/autoconf.texi (Writing Testsuites): Mention autotest
176         namespace.
177         (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
178         (Making testsuite Scripts): Document AT_PACKAGE_URL.
179         * tests/Makefile.am (package.m4): Follow our own advice.
180         * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
181         package.m4.  Enhance --help output.
182         (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
184         Use URLs in --help output, part 2: configure.
185         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
186         date.
187         (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
188         AC_PACKAGE_URL.
189         (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
190         (_AC_INIT_HELP): Use it in './configure --help' output.
191         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
192         './config.status --help'.  Bump copyright date.
193         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
194         new parameter.
195         * NEWS: Likewise.
196         * tests/tools.at (autoheader): Adjust test.
197         * tests/torture.at (@%:@define header templates)
198         (Torturing config.status): Likewise.
200         Use URLs in --help output, part 1: autoconf executables.
201         * bin/autoconf.as (usage): Make output consistent with recent
202         change in gnulib version-etc module.
203         * bin/autoheader.in ($help): Likewise.
204         * bin/autom4te.in ($help): Likewise.
205         * bin/autoreconf.in ($help): Likewise.
206         * bin/autoscan.in ($help): Likewise.
207         * bin/autoupdate.in ($help): Likewise.
208         * bin/ifnames.in ($help): Likewise.
210 2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
212         Quote traced macros passed from autom4te to M4.
213         * bin/autom4te (handle_m4): Apply shell_quote to macro names.
214         * tests/tools.at (autom4te --trace and unusual macro names): New
215         test.
216         * THANKS: Update.
218 2009-01-26  Eric Blake  <ebb9@byu.net>
220         Improve AC_DEFUN_ONCE semantics.
221         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
222         rather than warning, on second use, and make sure first use never
223         occurs out of order.
224         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
225         Enhance test.
226         * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
227         (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
228         * NEWS: Document this.
229         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
230         AC_DEFUN_ONCE.
231         (Prerequisite Macros) <AC_REQUIRE>: Likewise.
232         (Expanded Before Required): Likewise.
233         (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
234         Reported by Bruno Haible, with suggestion by Paolo Bonzini.
236 2009-01-24  Eric Blake  <ebb9@byu.net>
238         Fix typos in recent patches.
239         * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
240         * doc/autoconf.texi (Expanded Before Required): Fix typos.
241         Reported by Ralf Wildenhues.
243         Revert change to AC_DIR_HEADER.
244         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
245         AC_HEADER_DIRENT no longer triggers a warning, and helps the user
246         who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
247         Reported by Paolo Bonzini.
249 2009-01-22  Eric Blake  <ebb9@byu.net>
251         Silence a false positive expand-before-require case.
252         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
253         which a macro was provided.
254         (m4_require): Compare diversion numbers, rather than m4_require
255         nesting, when determining direct requires.
256         * tests/m4sugar.at (m4@&t@_require: nested): Test it.
257         Reported by Ralf Wildenhues, affecting Libtool.
259 2009-01-21  Eric Blake  <ebb9@byu.net>
261         Fix out-of-order expansion with expand-before-require.
262         * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
263         required macro when issuing expand-before-require warning.
264         * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
265         (Expanded Before Required): New node.
266         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
267         * NEWS: Mention this fix.
268         Suggested by Bruno Haible.
270         Warn if macro is provided before indirectly required.
271         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
272         provided since last outermost defun.
273         (_m4_defun_pro_outer): Empty the set.
274         (_m4_require_call): Distinguish between direct and indirect
275         requires, and remove required macros from the set.
276         (m4_require): Check the set, in order to warn.
277         * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
278         test case for direct requires.
280 2009-01-20  Eric Blake  <ebb9@byu.net>
282         Clean up some bugs caught by preliminary dependency validation.
283         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
284         AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
285         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
286         (_AS_SHELL_SANITIZE): Fix quoting bugs.
288 2009-01-19  Eric Blake  <ebb9@byu.net>
290         Improve AC_REQUIRE documentation.
291         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
292         and mention interaction with AC_REQUIRE.
293         (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
294         ordering constraint bug, and how to fix it.
295         * tests/m4sugar.at (m4@&t@_require: nested): New test.
297         Speed up m4_require.
298         * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
299         always be defined, as either empty or a number.
300         (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
301         as a stack, rather than a one-shot macro.
302         (_m4_require_call): Expect third argument to be pre-expanded.
303         (m4_divert_require, m4_require): Adjust clients accordingly.
304         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
306 2009-01-17  Eric Blake  <ebb9@byu.net>
308         Avoid underfull hbox.
309         * doc/autoconf.texi (Installation Directory Variables): Reword to
310         fit on line.
312 2009-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
314         Ignore `set -e'-related failure of NetBSD sh.
315         * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
316         fails to finish EXIT trap after set -e.
318 2009-01-06  Eric Blake  <ebb9@byu.net>
320         Maintainer cleanups.
321         * cfg.mk (web-manual): Use new feature of gendocs.
322         (fetch): Fetch gendocs.
323         * Makefile.am (EXTRA_DIST): Distribute new file.
324         * doc/Makefile.am (EXTRA_DIST): Likewise.
325         * .gitattributes: Ignore whitespace in upstream files.
326         * HACKING (Other web updates): Update Free Software Directory
327         instructions.
328         (Upload): No longer mention xdelta.
329         * maint.mk (xd-delta): Likewise.
330         * build-aux/gendocs.sh: New upstream file.
331         * doc/gendocs_template: Likewise.
332         * build-aux/announce-gen: Resync from upstream.
333         * build-aux/config.guess: Likewise.
334         * build-aux/config.sub: Likewise.
335         * build-aux/gnupload: Likewise.
336         * build-aux/texinfo.tex: Likewise.
338 2008-12-30  Eric Blake  <ebb9@byu.net>
340         Make it easier to track diversion bugs.
341         * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
342         internal macros, which are easier to trace than m4_builtin.
343         (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
344         (m4_undivert): Use them.
345         (_m4_require_call): Likewise.  Use fewer macros.
346         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
348 2008-12-26  Bruno Haible  <bruno@clisp.org>
350         Improve multiarch detection.
351         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
352         indicating a universal build more reliable.
354 2008-12-28  William Pursell  <bill.pursell@gmail.com>  (tiny change)
356         Use AS_CASE in documented example.
357         * doc/autoconf.texi (Using the System Type): Use AS_CASE in
358         example instead of raw case.
360 2008-12-23  Eric Blake  <ebb9@byu.net>
362         Make m4_dumpdef more useful with M4 1.6.
363         * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
364         (m4_init): Install it for new enough m4.
365         * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
366         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
367         lack of sorting.
369 2008-12-24  Bruno Haible  <bruno@clisp.org>
371         Improve INSTALL for HP-UX.
372         * doc/install.texi (Particular Systems): For HP-UX, also recommend
373         -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
374         HP-UX 11.11.
376 2008-12-22  Bruno Haible  <bruno@clisp.org>
378         Improve INSTALL for Haiku.
379         * doc/install.texi (Particular Systems): Add a recommendation
380         which prefix to use on Haiku.
382 2008-12-19  Eric Blake  <ebb9@byu.net>
384         Fix typo in previous commit.
385         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
386         Fix typo.
388         Document some recently added macros.
389         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
390         parameter.
391         * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
392         <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
393         new macros.
394         (Set manipulation Macros) <m4_set_map_sep>: Likewise.
395         * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
396         * NEWS: Document new macros.
398 2008-12-18  Eric Blake  <ebb9@byu.net>
400         Fix separator in m4_stack_foreach_sep.
401         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
402         from prefix.
403         * tests/m4sugar.at (m4@&t@_stack): Enhance test.
405 2008-12-18  Eric Blake  <ebb9@byu.net>
407         Mention limitation of M4 1.4.x on builtin tokens.
408         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
409         ramification of M4 1.4.x's inability to pass builtin tokens
410         through text macros.
411         (Evaluation Macros) <m4_curry>: Likewise.
412         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
413         * NEWS: Mention subtle change in m4_dumpdef semantics.
415         Document m4_version_prereq.
416         * doc/autoconf.texi (Number processing Macros)
417         <m4_version_prereq>: Add documentation.
418         * NEWS: Mention it.
419         Reported by Bruno Haible.
421 2008-12-10  Jim Meyering  <meyering@redhat.com>
423         AC_HEADER_ASSERT: don't say assertions are disabled when they're not
424         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
425         report "checking whether to enable assertions... no", when they are
426         in fact enabled.  This is solely a bug in the output of configure.
427         In spite of saying "no", NDEBUG was not defined in that case.
428         Also, as noted by Eric Blake, leave assertions enabled upon
429         --enable-assert=INVALID.
431 2008-12-09  Eric Blake  <ebb9@byu.net>
433         Fix m4_location inside m4_wrap with m4 1.4.5.
434         * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
435         inside wrapped text if older m4 is detected.
436         Reported by William Pursell.
438 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
439         and Eric Blake  <ebb9@byu.net>
441         Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
442         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
443         rather than treating it as a synonym for --disable-assert.
444         * NEWS: Document the fix.
446 2008-12-06  William Pursell  <bill.pursell@gmail.com>  (tiny change)
448         Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
449         treat --enable-assert and --disable-assert equivalently.
450         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
452 2008-12-05  William Pursell  <bill.pursell@gmail.com>  (tiny change)
454         Fix some typos and grammatical errors in documentation.
455         * doc/autoconf.texi: Clean up some bad use of English.
457 2008-12-03  Eric Blake  <ebb9@byu.net>
459         Improve AC_STATE_SAVE.
460         * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
461         process by hoisting the uniqueness check into sed.
462         * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
463         MacOS bug.
465 2008-12-02  Eric Blake  <ebb9@byu.net>
467         Avoid MacOS readdir bug in testsuite.
468         * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
469         duplicated ls entries.
470         * THANKS: Update.
471         Reported by Bruce Dugan and others.
473 2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
475         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
476         error messages about `set -m'.
478 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
480         Fix a couple of test failures with dash.
481         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
482         exit status of `cd'.
483         * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
484         regeneration, to avoid timing effects.
486 2008-11-25  Eric Blake  <ebb9@byu.net>
488         Add m4_cleardivert.
489         * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
490         * lib/autotest/general.m4 (AT_INIT): Use it.
491         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
492         * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
493         * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
494         it.
495         * NEWS: Likewise.
496         Suggested by Paolo Bonzini.
498         Add safety check for m4_expand vs. diversions.
499         * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
500         diverted text.
501         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
502         safety check.
504 2008-11-24  Eric Blake  <ebb9@byu.net>
506         Fix typo in AS_MESSAGE_LOG_FD patch.
507         * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
509 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
511         More reliable signal handling in Autotest.
512         * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
513         Start parallel jobs in their own process group, enabling job
514         control in the shell if possible, for better signal handling.
515         Deal with INT, TERM, and HUP in the testsuite driver.  In the
516         parallel driver, propagate TSTP to jobs either as TSTP or as
517         STOP (to avoid fork bombs with ksh).
518         Inside the job processes, add PIPE handler to write back the
519         job token, so the master process does not hang.
520         Disable the parallel driver if job control is not provided or if
521         trap does not understand signal names.
522         * tests/autotest.at (parallel autotest and signals): New test,
523         exercises INT, TERM, and PIPE, serial and parallel, with and
524         without `make' in the loop.
525         Kudos to Richard Stevens for writing APUE.
527 2008-11-22  Eric Blake  <ebb9@byu.net>
529         Fix testsuite failure on Solaris.
530         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
531         failure status to 1.
533 2008-11-21  Eric Blake  <ebb9@byu.net>
535         Clean up AS_MESSAGE_LOG_FD usage.
536         * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
537         (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
538         (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
539         usage.
540         (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
541         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
542         (AS@&t@_MESSAGE_FD): New test.
543         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
544         Give more details about fd manipulation.
545         (File Descriptor Macros): Describe M4sh defaults for the fds.
547 2008-11-21  Eric Blake  <ebb9@byu.net>
549         Use shell function for AS_ERROR.
550         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
551         new shell function.
552         (AS_ERROR): Use it.
553         (_AS_LINENO_PREPARE): Break circular dependency.
554         (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
556 2008-11-21  Eric Blake  <ebb9@byu.net>
558         Fix typos in recent testsuite improvements.
559         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
560         Fix typo.
561         * NEWS: Clarify the potential impact to users.
562         * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
563         AT_DATA_M4SUGAR.
564         (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
565         (unusual file names): Test that the recent echo fix does not
566         regress.  Fix quoting bug that made the test a no-op.
567         Reported by Paolo Bonzini and Ralf Wildenhues.
569 2008-11-21  Eric Blake  <ebb9@byu.net>
571         Use modern m4sh constructs in autoconf.
572         * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
573         than AS_EXIT.
575         Change the semantics of AS_EXIT without argument.
576         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
577         even if it is 0.
578         (AS_ERROR): Guarantee non-zero status.
579         * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
580         we want non-zero status.
581         * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
582         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
583         the documentation.
584         <AS_SET_STATUS>: Don't overly restrict implementation.
585         (Printing Messages) <AC_MSG_ERROR>: Describe better default.
586         Suggestions by Paolo Bonzini and Ralf Wildenhues.
588 2008-11-21  Eric Blake  <ebb9@byu.net>
590         Add @anchors within Builtins and Usual Tools lists.
591         * doc/autoconf.texi (Limitations of Builtins)
592         (Limitatations of Usual Tools): Add anchors for tools called out
593         by name.  Adjust callers to narrow in on tool of interest.
595         Move case statement style discussion to m4 quoting section.
596         * doc/autoconf.texi (Limitations of Builtins): Move comparison of
597         quoting styles...
598         (Balancing Parentheses): ...to this new node.
599         Suggested by Ralf Wildenhues.
601 2008-11-20  Eric Blake  <ebb9@byu.net>
603         Factor more common code out of AT_CHECK into shell function.
604         * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
605         starts with -.  Move preparations...
606         (AT_INIT) <at_fn_check_prepare_trace>
607         <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
608         ...into these new shell functions.
609         <at_fn_check_newline>: Inline into only caller.
610         (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
612 2008-11-20  Eric Blake  <ebb9@byu.net>
614         Handle version numbers as decimal, even if they start with 0.
615         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
616         interpreting leading zeros as octal.
618 2008-11-20  Eric Blake  <ebb9@byu.net>
620         Speed up AT_CHECK.
621         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
622         third and fourth arguments once.
623         (_AT_CHECK): Don't re-expand expected output.  Rearrange code for
624         fewer scans of arguments.
625         (AT_CHECK): Update caller.
626         (AT_INIT) <at_fn_filter_trace>: Drop parameter.
627         * tests/m4sugar.at (m4@&t@_split): Protect test with
628         quadrigraphs.
630         Fix XFAIL related to AT_CHECK.
631         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
632         first argument once.
633         (_AT_CHECK): Don't re-expand commands.
634         * tests/autotest.at (Multiline command from M4 expansion): Remove
635         XFAIL.
636         * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
637         * NEWS: Document the fallout.
639 2008-11-20  Eric Blake  <ebb9@byu.net>
641         Reduce forks in AC_DEFINE.
642         * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
643         (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
644         AC_DEFINE_UNQUOTED.
645         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
646         * tests/torture.at (Substitute and define special characters):
647         (Define to a 2000-byte string): Enhance tests to cover
648         AC_DEFINE_UNQUOTED.
649         (@%:@define header templates): Enhance test to cover #.
651 2008-11-20  Eric Blake  <ebb9@byu.net>
653         Improve m4_expand robustness, part 2.
654         * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
655         comments, by wrapping old implementation...
656         (_m4_expand): ...as this, and renaming old core...
657         (_m4_expand_): ...to this.
658         (m4_text_box): Use lighter-weight _m4_expand.
659         * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
660         (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
661         * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
662         * tests/m4sugar.at (m4@&t@_expand): Enhance test.
663         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
664         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
665         functionality.
667         Improve m4_expand robustness, part 1.
668         * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
669         unbalanced `)'.
670         * tests/m4sugar.at (m4@&t@_expand): New test.
672 2008-11-20  Eric Blake  <ebb9@byu.net>
674         Add m4_chomp, m4_esyscmd_s.
675         * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
676         New macros.
677         * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
678         them.
679         (Text processing Macros) <m4_chomp>: Likewise.
680         * NEWS: Likewise.
681         * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
683         Remove _m4_index.
684         * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
685         to make callers guarantee a match.
686         (m4_init): Adjust caller.
687         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
688         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
690         Describe different hacks for balancing ')' in case statements.
691         * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
692         exposition on various quoting styles.
694 2008-11-20  Eric Blake  <ebb9@byu.net>
696         Speed up _AS_QUOTE.
697         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
698         (_AS_QUOTE): ...here, delete unused second paramenter, and factor
699         choice into...
700         (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
702 2008-11-20  Alfred G. de Wijn  <dwijn@iluvatar.eu.org>  (tiny change)
704         For consistency, make temporary variable match language name.
705         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
706         Match the save/test variables' names to the FFLAGS/FCFLAGS being
707         saved.
708         * THANKS: Update.
710 2008-11-19  Eric Blake  <ebb9@byu.net>
712         Improve testsuite generation.
713         * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
714         (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@.  Use
715         fewer macros.
717 2008-11-18  Eric Blake  <ebb9@byu.net>
719         Use fn for shell functions, func for autoconf CHECK_FUNCS.
720         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
721         function names.
722         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
723         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
724         (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
725         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
726         (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
727         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
728         (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
729         * lib/autotest/general.m4 (AT_INIT): Likewise.
730         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
731         (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
732         (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
733         (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
734         * doc/autoconf.texi (Shell Functions): Likewise.
736 2008-11-18  Eric Blake  <ebb9@byu.net>
738         Alter default value of AS_EXIT.
739         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
740         parameter be optional.
741         (AS_EXIT): Use it to make better default.
742         (_AS_DETECT_BETTER_SHELL): Use new default.
743         * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
744         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
745         * tests/m4sh.at (AS@&t@_EXIT): Update test.
746         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
747         new default behavior.
748         (Limitations of Builtins) <trap>: Adjust to use new default.
749         * NEWS: Mention the semantic change.
750         Suggested by Ralf Wildenhues.
752         Update example to match actual Tru64 behavior.
753         * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
754         the example.
755         Reported by Ralf Wildenhues.
757         Add AS_SET_STATUS, make AS_EXIT more efficient.
758         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
759         macros.
760         (AS_EXIT): Rewrite to avoid forks.
761         (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
762         (AS_PREPARE, _AS_PREPARE): Add new preparation.
763         * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
764         Document.
765         * NEWS: Mention new macro.
766         * tests/m4sh.at (AS@&t@_EXIT): New test.
767         (BASENAME_TEST): Sort.
769         Document Tru64 bug with 'set -e'.
770         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
771         bug in mixing 'set -e' with 'trap .. 0'.
772         Reported by Ralf Wildenhues.
774         Document a Solaris /bin/sh bug with 'set -e'.
775         * doc/autoconf.texi (Shell Functions): Mention the bug.
777 2008-11-17  Eric Blake  <ebb9@byu.net>
779         Detect empty list in AS_FOR.
780         * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
781         properly.
782         * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
783         Reported by Paolo Bonzini.
785 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
787         Use a different workaround for an automake quirk.
788         * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
789         (distclean_generic): New helper variable, to fool automake.
790         ($(distclean_generic)): Depend on clean-local, to prevent
791         the race in the two rules with accessing and removing
792         $(TESTSUITE).
793         Report by Eric Blake.
795         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
796         unbalanced parentheses from last change.
797         Spotted by Eric Blake, fix suggested by Paolo Bonzini.
799         Fix exit status of expr version of as_func_arith.
800         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
801         status of 1 of expr also as success, to avoid failure if the
802         computation result is zero.  Fixes test failures with IRIX sh,
803         where the expr variant of as_func_arith is used.
805         Do not use read-only variable $status.
806         * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
807         $status, for zsh.
809 2008-11-15  Eric Blake  <ebb9@byu.net>
811         Use the new AS_FOR function.
812         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
813         abstraction for cleaner code.
814         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
816         Add AS_FOR, undocumented for now.
817         * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
818         * tests/m4sh.at (AS@&t@_FOR): New test.
819         Suggested by Paolo Bonzini.
821 2008-11-13  Eric Blake  <ebb9@byu.net>
823         Optimize single-argument loop.
824         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
825         loop only has one argument.
826         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
828 2008-11-13  Eric Blake  <ebb9@byu.net>
830         Fix AS_ESCAPE usage bugs.
831         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
832         (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
833         escapes.
834         (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
835         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
836         caveat due to conditional AS_ESCAPE.
837         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
839 2008-11-12  Eric Blake  <ebb9@byu.net>
841         Whitespace reduction in configure.
842         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
843         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
844         Likewise.
845         (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
846         depend on it.
848 2008-11-12  Eric Blake  <ebb9@byu.net>
850         Make M4sh, not autoconf, guarantee sane $SHELL.
851         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
852         SHELL...
853         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
854         * doc/autoconf.texi (Initialization Macros): Document the effect
855         on SHELL.
856         * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
857         Reported by Ralf Wildenhues.
859 2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
861         Wrap keywords in `testsuite --list' output.
862         * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
863         avoid lint warnings from gawk, wrap keyword lists to stay below
864         80 characters per line if possible.
865         * tests/autotest.at (Keyword wrapping): New test.
867         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
869         * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
870         typos.
872 2008-11-10  Eric Blake  <ebb9@byu.net>
874         Work around <=m4-1.4.9 bug in m4_format.
875         * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
876         (m4_init): Only use it in older m4.
877         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
878         m4_format bug in older m4.
879         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
880         Reported by Bob Proulx.
882 2008-11-10  Eric Blake  <ebb9@byu.net>
884         Match upstream standards.texi.
885         * doc/standards.texi: Resync from upstream.
886         * doc/fdl-1.3.texi: Rename...
887         * doc/fdl.texi: ...to this.
888         * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
889         users.
890         * doc/autoconf.texi (GNU Free Documentation License): Likewise.
891         * cfg.mk (fetch): Likewise.
893         Yet more FDL 1.3 fallout.
894         * NEWS: Mention manual license change.
896 2008-11-10  Eric Blake  <ebb9@byu.net>
898         Avoid some regex uses.
899         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
900         than m4_bpatsubst to grab string prefix.
901         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
902         (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
903         (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
904         m4_bpatsubst to change bytes.
905         (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
906         m4_bmatch to find byte.
907         (_AC_CONFIG_COMPUTE_DEST): New helper macro.
909         Use more efficient macros in AC_CONFIG_SUBDIRS.
910         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
911         m4_map_args_w.
912         (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
913         (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
915         Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
916         * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
917         and avoid typo.
918         (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
919         (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
920         helper macros.
921         (AC_LIBSOURCES): Use m4_map_args.
923         Use more efficient macros in AC_CHECK_TYPES.
924         * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
925         m4_map_args_sep.
926         (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
928         Use more efficient macros in AC_CHECK_HEADERS.
929         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
930         (AH_CHECK_HEADERS_DIRENT): Rename...
931         (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
932         argument, rather than a list.
933         (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
934         Adjust callers to use m4_map_args_w.
935         (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
936         (_AC_CHECK_HEADER_ONCE): New helper macro.
938         Use more efficient macros in AC_CHECK_FUNCS.
939         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
940         (_AH_CHECK_FUNC): ...and take only one argument, rather than a
941         list.
942         (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
943         m4_map_args_w.
944         (_AC_CHECK_FUNC_ONCE): New helper macro.
945         (AC_REPLACE_FUNCS): Use m4_map_args_w.
947         Use more efficient macro in AT_INIT.
948         * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
950 2008-11-10  Eric Blake  <ebb9@byu.net>
952         More FDL 1.3 fallout.
953         * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
954         * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
955         dependency changes.
956         * doc/fdl.texi: Delete.
957         * doc/gnu-oids.texi: New upstream file.
958         * doc/standards.texi: Resync from upstream.
959         * doc/make-stds.texi: Likewise.
960         * build-aux/announce-gen: Likewise.
961         * build-aux/texinfo.tex: Likewise.
963 2008-11-10  Clinton Roy  <clinton.roy@gmail.com>  (tiny change)
965         Pass autoreconf -I to aclocal -I
966         * bin/autoreconf.in (parse_args): Pass --include to aclocal.
967         * doc/autoconf.texi (autoreconf Invocation): Updates for above.
968         * NEWS: Document it.
969         * THANKS: Update.
971 2008-11-10  Eric Blake  <ebb9@byu.net>
973         Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
974         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
975         * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
976         the print workaround.
977         Idea by Paolo Bonzini.
979 2008-11-10  Eric Blake  <ebb9@byu.net>
981         Provide a section on all tools allowed in GNU Coding Standards.
982         * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
983         <wait>: Add section.
984         (Limitations of Usual Tools) <awk>: Make table entry consistent.
985         <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
987 2008-11-09  Paolo Bonzini  <bonzini@gnu.org>
989         Balance parentheses in _AC_CACHE_DUMP.
990         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
991         without introducing \).
993 2008-11-07  Eric Blake  <ebb9@byu.net>
995         Further doc updates for AC_CHECK_HEADER change.
996         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
997         new default, and make it more obvious that using [-] is generally
998         broken.
1000 2008-11-07  Eric Blake  <ebb9@byu.net>
1002         * ChangeLog: Enforce UTF-8 encoding.
1004 2008-11-06  Eric Blake  <ebb9@byu.net>
1006         Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
1007         * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
1008         argument to speed up check.
1010 2008-11-06  Eric Blake  <ebb9@byu.net>
1012         Speed up AC_CHECK_TYPE.
1013         * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
1014         regex when enough arguments are present.
1016 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
1018         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
1019         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
1020         sequence when the program's stderr was empty, while providing a
1021         conftest.err file even in that case.
1022         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
1024 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
1026         Change `present but cannot be compiled' behavior to use compiler result.
1027         * NEWS: Document it.
1028         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
1029         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
1030         and adjust warning.
1031         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
1033 2008-11-05  Eric Blake  <ebb9@byu.net>
1035         Add m4_map_args_w.
1036         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
1037         for now.
1038         (_m4_split): Allow user control over separator.
1039         (m4_split): Adjust caller.
1040         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
1041         m4_map_args_w.
1042         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
1043         (M4 loops): Test new interface.
1045         Use m4_set_map_sep in more places.
1046         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
1047         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
1048         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
1049         Enhance documentation.
1050         <m4_set_foreach>: Mention faster alternative.
1051         (Looping constructs) <m4_foreach>: Likewise.
1053         Unify m4_set_foreach and m4_set_map.
1054         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
1055         for now.
1056         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1057         (m4_set_map): Adjust callers.
1059         Use _m4_foreach in more places.
1060         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
1061         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
1062         m4_foreach.
1063         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
1064         instead of m4_foreach or m4_map_args.
1066         Unify _m4_foreach and _m4_map.
1067         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
1068         (_m4_foreach): ...this.
1069         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
1070         (m4_map_args, m4_map_args_sep): Adjust callers.
1071         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
1072         (_m4_foreach): ...to this, overwriting old definition.
1074 2008-11-04  Eric Blake  <ebb9@byu.net>
1076         Add m4_map_args_sep, undocumented for now.
1077         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
1078         (_m4_map): Change API to cover more of m4_map*.
1079         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
1080         (m4_map_args): Delete.
1081         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
1082         test.
1084         Improve m4_for performance.
1085         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
1086         avoid m4_define by some clients.
1087         (m4_for): Adjust caller.
1088         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
1089         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
1090         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
1091         (_m4_list_cmp): Likewise.
1093 2008-11-04  Eric Blake  <ebb9@byu.net>
1095         Adjust expected output.
1096         * tests/torture.at (Missing templates): Reflect added quoting.
1097         Detected by Bob Proulx's buildbot.
1099         Reject arguments with leading =.
1100         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
1101         missing variable name, with fewer forks.  Quote invalid arguments
1102         in message, in case they include spaces.
1103         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
1104         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
1105         * lib/autotest/general.m4 (AT_INIT): Likewise.
1106         * tests/base.at (configure arguments): Test this.
1107         Reported by Jeff Squyres.
1109 2008-11-04  Eric Blake  <ebb9@byu.net>
1111         Upgrade to FDL 1.3.
1112         * cfg.mk (fetch): Add fdl-1.3.texi.
1113         * .gitattributes: Likewise.
1114         * doc/autoconf.texi (GNU Free Documentation License): Point to new
1115         upstream version.
1116         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
1117         (standards_TEXINFOS): Mention current dependence on older license.
1118         * doc/fdl-1.3.texi: New upstream file.
1119         * GNUmakefile: Resync from upstream.
1120         * build-aux/announce-gen: Likewise.
1121         * build-aux/texinfo.tex: Likewise.
1123 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1125         Point at AM_SUBST_NOTMAKE.
1126         * doc/autoconf.texi (Setting Output Variables): Add cross
1127         reference to new Automake macro AM_SUBST_NOTMAKE.
1129 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1131         Eliminate a fork per invocation of AC_LANG_CONFTEST.
1132         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
1133         AC_LANG_SOURCE(C).
1134         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
1135         top of confdefs.h, which also works around cpp deficiencies.
1136         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
1137         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
1138         (AC_LANG_CONFTEST()): New.
1140 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1142         Reorganize definition of languages.
1143         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
1144         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
1145         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
1146         Replace definitions with usage of AC_LANG_DEFINE.
1147         (Sections 2b, 2c): Delete.
1148         (Sections 1b, 1c): Move after section 2a.
1149         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
1150         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
1151         with usage of AC_LANG_DEFINE.
1152         (AC_LANG_ERLANG): Define using AU_DEFUN.
1153         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
1154         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
1155         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
1156         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
1157         definitions with usage of AC_LANG_DEFINE.
1158         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
1160 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1162         Use preprocessor in cpp tests.
1163         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
1165 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
1167         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
1168         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
1169         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
1170         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
1171         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
1172         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
1173         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
1174         Give better name.
1176 2008-10-31  Eric Blake  <ebb9@byu.net>
1178         Support multiple undiverts and dumpdefs at once.
1179         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
1180         arguments.
1181         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
1182         <m4_undivert>: Document argument list change.
1183         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
1184         them.
1186         Simplify diversion stack handling.
1187         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
1188         avoid extra newlines.
1189         (m4_divert_stack_push): Compute location here, rather than caller.
1190         (m4_divert_push): Update caller.
1191         (m4_divert): Likewise, and also adjust current diversion name.
1192         (m4_divert_pop): Simplify rule that diversion stack must never go
1193         empty.
1194         (_m4_require_call): Bypass diversion stack when collecting
1195         required macro text.
1196         (m4_init): Set current diversion without requiring m4_init.
1197         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
1198         * lib/autotest/general.m4 (AT_INIT): Likewise.
1199         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
1200         text to run prior to m4sugar cleanup.
1201         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
1202         optional argument.
1203         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
1204         * NEWS: Undo blurb about m4_divert.
1205         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
1207         Simplify expansion stack handling.
1208         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
1209         always output 'top level'.
1210         (_m4_expansion_stack_entry): New macro, to format the string only
1211         when needed.
1212         (m4_expansion_stack_push): Only push a macro name.
1213         (m4_warn, _m4_defun_pro): Update callers.
1214         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
1215         (_m4_defun_epi, m4_fatal): Inline the calls.
1216         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
1218 2008-10-30  Eric Blake  <ebb9@byu.net>
1220         Better documentation of AC_CHECK_HEADER's fourth argument.
1221         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
1222         how to suppress compiler or preprocessor header check.
1223         Reported by Jeff Squyres.
1225 2008-10-30  Eric Blake  <ebb9@byu.net>
1227         Fix LINENO testsuite failure.
1228         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
1229         undocumented _AS_PREPARE, and move unset earlier in script.
1231         Update LINENO documentation.
1232         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1233         (Special Shell Variables) <LINENO>: Mention that LINENO support in
1234         child scripts may be broken.  Modernize example.
1236 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1238         Do not check for $LINENO in generated scripts.
1239         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
1240         and explain why.
1242 2008-10-30  Eric Blake  <ebb9@byu.net>
1244         Don't check for non-POSIX extensions in suggested tests.
1245         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
1246         we still use += if available, but should not reject shells (like
1247         dash) that don't provide it.
1248         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
1249         Reported by Paolo Bonzini.
1251 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1253         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
1254         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
1255         with a given CONFIG_SHELL, move it to SHELL.
1256         (AS_INIT_GENERATED): Re-export SHELL.
1258 2008-10-30  Eric Blake  <ebb9@byu.net>
1260         Work around Solaris /bin/sh case bug.
1261         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
1262         a non-empty command list.
1263         (AS_CASE): Always guarantee that a case will match.
1264         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
1265         Solaris bug, and mention AS_CASE.
1267 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1269         Require _AS_CR_PREPARE where appropriate.
1270         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
1271         (AS_PREPARE): Require _AS_CR_PREPARE.
1273         Avoid walking the entire PATH when looking for a better shell.
1274         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
1275         as the PATH is walked.
1277         Add third argument to _AS_PATH_WALK
1278         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
1279         (_AS_PATH_WALK): Add third optional argument.
1281         Trim down the length of the shell function test.
1282         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
1284 2008-10-29  Eric Blake  <ebb9@byu.net>
1286         Fix LINENO detection to work around bash and pdksh limitations.
1287         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
1288         that we can choose which of two tests to trust.
1289         (_AS_RUN): Set flag when alternate shell is running.
1290         (_AS_DETECT_EXPAND): New macro.
1291         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
1293 2008-10-29  Eric Blake  <ebb9@byu.net>
1295         Mention proper fix for zsh users.
1296         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
1297         version known to work.
1298         Suggested by Paolo Bonzini.
1300         Document current beta-quality status.
1301         * configure.ac: Reflect fact that change to git-version-gen
1302         produces -, but not always a letter, on non-release builds.
1303         * BUGS: Mention known issues.
1304         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
1305         debugging platforms with deficient shells.
1307 2008-10-29  Eric Blake  <ebb9@byu.net>
1309         Alter signature of AS_INIT_GENERATED.
1310         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
1311         manage here-doc and chmod in place.  This also allows future
1312         changes for optimizing the child via diversion/m4_wrap magic.
1313         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
1314         caller.
1315         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1316         Update the documentation.
1318 2008-10-29  Eric Blake  <ebb9@byu.net>
1320         Use _m4_stack_reverse in m4_set.
1321         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
1322         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
1323         implementation.
1324         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1325         (m4_set_map): Adjust callers to new API.
1327         Add m4_stack_foreach_sep.
1328         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
1329         (m4_stack_foreach_sep_lifo): New macros.
1330         (_m4_stack_reverse): Adjust prototype, to support it.
1331         (m4_copy): Use fewer macros.
1332         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
1333         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
1335 2008-10-29  Bruno Haible  <bruno@clisp.org>
1337         Mention Sun WorkShop 6.2 OpenMP bug.
1338         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
1340 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
1342         Rewrite handling of diversion and expansion stack.
1343         * NEWS: Document stricter requirement on m4_init.
1344         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
1345         _m4_divert_n_stack.
1346         (_m4_divert_stack_push): New.
1347         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
1348         m4_popdef.
1349         (m4_divert_push): Use _m4_divert_stack_push.
1350         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
1351         pop _m4_divert_stack instead of m4_divert_stack.
1352         (m4_expansion_stack): New.  Update comment above it.
1353         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
1354         _m4_expansion_stack instead of m4_expansion_stack.
1355         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
1356         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
1357         instead of the definition, and compensate for the trailing newline
1358         in the expansion.
1359         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
1360         _m4_expansion_stack instead of m4_expansion_stack.
1361         (m4_newline): Expand first argument after the newline.
1362         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
1363         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
1364         * tests/tools.at (whitespace in file names, the empty token): Likewise.
1366 2008-10-28  Eric Blake  <ebb9@byu.net>
1368         Reduce forks while searching for better shell.
1369         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
1370         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
1371         already does the job.
1372         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
1373         0 context.
1375         Undo needless efforts to protect $2 in $2_t.
1376         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
1377         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
1379 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1381         Fix parallel test execution output lossage.
1382         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
1383         standard output and standard error before the test, use append
1384         mode for writing.
1385         * THANKS: Update.
1386         Caught by Bob Proulx' build daemons, analysis and suggested fix
1387         by Stéphane Chazelas.
1389 2008-10-28  Eric Blake  <ebb9@byu.net>
1391         Use m4_map_args in more places.
1392         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
1393         (m4_undefine, m4_combine): Use m4_map_args, rather than
1394         m4_foreach.
1396 2008-10-28  Eric Blake  <ebb9@byu.net>
1398         Override m4 1.4.x dumpdef, as it breaks autom4te.
1399         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
1400         (m4_copy): Formatting touchup.
1401         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
1402         semantic differences as well as m4_dumpdefs.
1403         * NEWS: Likewise.
1404         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
1406 2008-10-28  Eric Blake  <ebb9@byu.net>
1408         Allow m4sugar to be used without autom4te, such as in bison.
1409         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
1410         alternate escape sequences can be used.
1411         (m4_text_box): Likewise.  Don't output quadrigraphs.
1412         (m4_qdelta): Delete unused macro.
1414 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1416         Add m4_stack_foreach and m4_stack_foreach_lifo.
1417         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
1418         (m4_stack_foreach, m4_stack_foreach_lifo): New.
1419         (m4_copy): Use m4_stack_foreach and m4_curry.
1420         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
1421         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
1422         * tests/m4sugar.at (m4_stack_foreach): New test.
1424 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1426         use a shell function for AC_TYPE_INTx_T
1427         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
1428         New.
1429         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
1431 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1433         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
1434         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
1435         _AC_CHECK_HEADER_NEW): Likewise.
1436         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
1438 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1440         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
1441         (AC_CHECK_MEMBER): Define and use a shell function.
1443 2008-10-27  Eric Blake  <ebb9@byu.net>
1445         Prefer m4_fatal over AC_FATAL.
1446         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
1447         (AC_CHECK_MEMBER): Use non-obsolete macro name.
1448         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
1449         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
1450         Likewise.
1451         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
1452         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
1453         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
1455 2008-10-27  Eric Blake  <ebb9@byu.net>
1457         Avoid raw carriage return in scripts.
1458         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
1459         via tr, rather than with literal byte.
1460         * THANKS: Update.
1461         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
1463 2008-10-27  Eric Blake  <ebb9@byu.net>
1465         Use AS_VAR_ARITH.
1466         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
1467         clients with AS_VAR_ARITH instead.
1468         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
1469         macro.
1470         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
1471         * tests/torture.at (Torturing config.status): Likewise.
1472         * tests/tools.at (autom4te --force): Likewise.
1474         Add AS_VAR_ARITH.
1475         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
1476         (AS_VAR_ARITH): New macros.
1477         (_AS_PREPARE, AS_PREPARE): Emit preparation.
1478         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
1479         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
1480         Document new macro.
1481         (Limitations of Usual Tools) <expr>: Mention portability problem
1482         if first argument starts with -.
1483         (Shell Substitutions) <$((expression))>: Mention it.
1484         * NEWS: Likewise.
1486 2008-10-27  Eric Blake  <ebb9@byu.net>
1488         Use read, rather than `cat`, for safe one-line files.
1489         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
1490         known that the file has only one line and no \.
1491         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
1493 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1495         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
1496         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
1497         (_AC_COMPUTE_INT_BODY): New.
1498         (AC_COMPUTE_INT): Define and use a shell function.
1500 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1502         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
1503         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
1504         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
1506 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1508         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
1509         (AC_CHECK_DECL): Use a shell function.
1511 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1513         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
1514         _AC_CHECK_HEADER_NEW): Use a shell function.
1516 2008-10-25  Eric Blake  <ebb9@byu.net>
1518         Track recent copyright assignments.
1519         * AUTHORS: Update.
1521 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
1522         and Eric Blake  <ebb9@byu.net>
1524         Use a shell function for _AC_CHECK_HEADER_MONGREL.
1525         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
1526         macro.
1527         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
1529 2008-10-25  Eric Blake  <ebb9@byu.net>
1531         Simplify _AS_PREPARE handling of functions.
1532         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
1533         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
1534         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
1535         this task easier.
1536         (_AS_LINENO_PREPARE): Make more efficient.
1537         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
1538         (_AS_UNSET_PREPARE): Avoid blank newline.
1539         (AS_INIT): Emit as_func_unset alongside other functions.
1541 2008-10-25  Eric Blake  <ebb9@byu.net>
1543         Document AS_EXIT.
1544         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
1545         this macro.
1546         (Limitations of Builtins): Mention AS_EXIT.
1547         * NEWS: Mention it.
1549         Use AS_EXIT in autoconf.as.
1550         * bin/autoconf.as: Consistently use AS_EXIT.
1552 2008-10-24  Eric Blake  <ebb9@byu.net>
1554         Fix m4 underquoting in AC_PROG_INSTALL.
1555         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
1556         character ranges.
1558         Speed up AC_CHECK_HEADER.
1559         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
1561 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
1562         and Eric Blake  <ebb9@byu.net>
1564         Use a shell function for AC_CHECK_FUNC.
1565         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
1566         (AC_CHECK_FUNC): Use a shell function.
1567         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
1569 2008-10-24  Eric Blake  <ebb9@byu.net>
1571         Work around fact that gnulib-tool doesn't use m4_copy.
1572         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
1573         define, so that an initial location is present, to account for
1574         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
1576         Make m4_defun_init more robust.
1577         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
1578         names, and correct number of arguments.
1579         (m4_copy): Also set up location of the copy.
1580         (m4_defun): When copied, use current macro name, not original.
1581         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
1582         Update test.
1584         Optimize clients of AS_REQUIRE.
1585         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
1586         argument.
1587         (m4_defun_init): New undocumented macro.
1588         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
1589         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
1590         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
1591         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
1592         simplify these macros once the one-shot initialization is
1593         complete.
1594         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
1595         test.
1597         Improve m4_copy.
1598         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
1599         public use.
1600         (_m4_copy): New macro, which preserves pushdef stacks.
1601         (_m4_defun_pro_outer): Bypass it, for speed.
1602         (m4_init): Bypass new implementation, since it breaks on m4_defn.
1603         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
1604         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
1605         now that m4_copy checks this.
1606         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
1607         this, as well as m4_rename.
1608         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
1609         renaming builtins, since it breaks on m4_ifdef.
1610         * NEWS: Likewise.
1611         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
1613 2008-10-24  Eric Blake  <ebb9@byu.net>
1615         AC_FUNC_GETGROUPS: Revert regression.
1616         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
1617         ac_cv_func_getgroups_works=no when it is not available.
1619 2008-10-23  Eric Blake  <ebb9@byu.net>
1621         Whitespace cleanup.
1622         * lib/autoconf/fortran.m4: Consistently use tabs.
1624 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
1626         For gfortran on sh, ignore -little.
1627         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
1628         list of ignored arguments.
1629         * THANKS: Update.
1631 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
1633         Eliminate empty lines after AC_*_IFELSE.
1634         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
1635         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
1637 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
1639         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
1640         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
1641         Return a boolean status code based on $ac_status.
1643 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
1645         Ensure actions can look at conftest* files.
1646         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
1647         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
1648         Move rm commands, except IPA files and Apple debug symbols...
1649         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
1650         _AC_RUN_IFELSE): ...in here.
1651         * tests/compile.at: Add regression test.
1653 2008-10-23  Eric Blake  <ebb9@byu.net>
1655         Remove excess dnl from m4sh.
1656         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
1657         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
1658         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
1659         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
1660         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
1661         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
1662         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
1663         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
1664         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
1665         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
1667 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
1668         and Eric Blake  <ebb9@byu.net>
1670         Use a shell function for _AC_RUN_IFELSE.
1671         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
1672         (_AC_RUN_IFELSE): Use a shell function.
1673         (_AC_RUN_LOG): Avoid subshell for logging.
1675 2008-10-23  Eric Blake  <ebb9@byu.net>
1677         Formatting tweak: balance () with m4sh case statements.
1678         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
1679         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
1680         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
1681         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
1682         allow output of strategic shell comments.
1683         (AS_VERSION_COMPARE): Use AS_CASE.
1684         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
1686 2008-10-22  Jim Meyering  <meyering@redhat.com>
1688         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
1689         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
1690         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
1691         it is set to "yes" in the environment and configure is run on
1692         a system like mingw that lacks the getgroups function, it would
1693         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
1694         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
1696 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
1697         and Eric Blake  <ebb9@byu.net>
1699         Use a shell function for _AC_LINK_IFELSE.
1700         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
1701         (_AC_LINK_IFELSE): Use a shell function.
1703 2008-10-22  Eric Blake  <ebb9@byu.net>
1705         Fix autoconf logging commands.
1706         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
1707         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
1708         (_AC_DO_ECHO): Likewise, and use fewer dnl.
1709         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
1711 2008-10-22  Eric Blake  <ebb9@byu.net>
1713         Fix testsuite failure.
1714         * tests/mktests.sh (ac_exclude_list): Don't generate test for
1715         AC_REQUIRE_SHELL_FN.
1717 2008-10-21  Eric Blake  <ebb9@byu.net>
1719         Improve wording related to automake and autotest.
1720         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
1721         relation to automake.  Mention dependency on package.m4.
1722         Consolidate examples.  Define AUTOM4TE.
1723         * THANKS: Update.
1724         Reported by William Pursell.
1726 2008-10-21  Eric Blake  <ebb9@byu.net>
1728         Allow AS_VAR_SET_IF in shell lists.
1729         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
1730         line.
1731         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
1732         provided by AS_VAR_SET_IF.
1733         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
1734         clients.
1735         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1736         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1738         Allow AS_VAR_IF in shell lists.
1739         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
1740         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
1741         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
1742         Likewise.
1743         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
1744         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
1745         (_AC_CHECK_HEADER_DIRENT): Likewise.
1746         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
1747         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
1748         Likewise.
1749         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1751         Allow AS_CASE in shell lists.
1752         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
1753         side effects.  Allow continuation of script on same line as esac.
1754         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
1755         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
1756         * NEWS: Document the subtle change.
1758         Allow AS_IF in shell lists.
1759         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
1760         side effects.  Allow continuation of script on same line as fi.
1761         (_AS_DETECT_BETTER_SHELL): Adjust clients.
1762         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
1763         given by AS_IF.
1764         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
1765         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
1766         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
1767         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1768         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
1769         (Polymorphic Variables): Move mention of dnl to the only two
1770         AS_VAR functions that need it.
1772 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
1773         and Eric Blake  <ebb9@byu.net>
1775         Use a shell function for _AC_COMPILE_IFELSE.
1776         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
1777         (_AC_COMPILE_IFELSE): Use a shell function.
1779 2008-10-21  Eric Blake  <ebb9@byu.net>
1781         Use AS_VAR_APPEND.
1782         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
1783         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
1784         (_AC_LIBOBJS_NORMALIZE): Likewise.
1785         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
1786         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
1787         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
1788         * lib/autotest/general.m4 (AT_INIT): Likewise.
1790         Add AS_VAR_APPEND.
1791         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
1792         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
1793         (AS_PREPARE, _AS_PREPARE): Emit preparation.
1794         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
1795         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
1796         Document new macro.
1797         <AS_VAR_SET>: Mention ramification of `""` rules.
1798         * NEWS: Mention new macro.
1800 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
1801         and Eric Blake  <ebb9@byu.net>
1803         Use a shell function for _AC_PREPROC_IFELSE.
1804         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
1805         (_AC_PREPROC_IFELSE): Use a shell function.
1806         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
1807         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
1808         been provided.
1810 2008-10-21  Eric Blake  <ebb9@byu.net>
1812         Add banners to generated files.
1813         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
1814         existing banner.
1815         (AS_INIT): Add new banners at strategic points.
1816         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
1817         make consistent with other banners.
1818         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
1820 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
1822         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
1823         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
1824         (m4_divert(SHELL_FN)): New.
1826 2008-10-20  Eric Blake  <ebb9@byu.net>
1828         Avoid unportable use of echo in testsuite.
1829         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
1830         contains backslash.
1832 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
1834         Make sure that nested AS_REQUIRE do not lose the desired diversion.
1835         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
1836         passing it to m4_divert_require, so that its content is not used
1837         anymore.
1838         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
1840 2008-10-18  Eric Blake  <ebb9@byu.net>
1842         Document bugs in { } handling.
1843         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
1844         empty list.
1846         Fix some testsuite failures introduced two days ago.
1847         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
1848         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
1849         API.
1850         Reported by Ralf Wildenhues.
1852 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1854         Show how to extract single substitutions from config.status.
1855         * doc/autoconf.texi (config.status Invocation): Show example
1856         using `--file=-'.
1858 2008-10-17  Eric Blake  <ebb9@byu.net>
1860         Add m4_curry.
1861         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
1862         * tests/m4sugar.at (m4@&t@_map_args): Rename...
1863         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
1864         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
1865         currying as a way to add parameters.
1866         (Evaluation Macros) <m4_curry>: Document the new macro.
1867         * NEWS: Likewise.
1869         Improve suggested test filtering.
1870         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
1871         extracted from...
1872         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
1873         check for an empty required set.
1875         Add m4_set_map.
1876         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
1877         * tests/m4sugar.at (m4@&t@_set): Enhance test.
1878         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
1879         Document it.
1880         * NEWS: Likewise.
1882         Document m4_map_args.
1883         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
1884         Rename...
1885         (m4_map_args, m4_map_args_pair): ...to these names, and document.
1886         (m4_version_unletter): Use the interface.
1887         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
1888         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
1889         Perform same renames.
1890         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
1891         * tests/m4sugar.at (m4@&t@_map_args): New test.
1892         (recursion): Adjust caller.
1893         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
1894         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
1895         this interface.
1896         * NEWS: Mention the new macros.
1898 2008-10-17  Eric Blake  <ebb9@byu.net>
1900         Reduce vertical whitespace in configure.
1901         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
1902         m4 side effect initializations.
1903         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
1905 2008-10-17  Eric Blake  <ebb9@byu.net>
1907         Document AS_VAR interfaces.
1908         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
1909         (Polymorphic Variables): New node.
1910         * NEWS: Update accordingly.
1912         Test AS_VAR interfaces.
1913         * tests/m4sh.at (AS@&t@_VAR): New test.
1914         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
1915         _AS_TR_SH_PREPARE at top level, rather than argument collection.
1916         (AS_TR_SH): Support command substitution.
1918         Add AS_VAR_COPY.
1919         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
1920         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
1921         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
1922         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1923         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
1925         Sort AS_VAR_* interfaces.
1926         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
1927         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
1928         no code changes.
1930 2008-10-16  Eric Blake  <ebb9@byu.net>
1932         Allow comments before functions emitted by m4sh.
1933         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
1934         argument.  Supply closing comment, to ease readability.
1935         (_AS_MKDIR_P_PREPARE): Adjust caller.
1936         (_AS_UNSET_PREPARE): Add comment.
1938         Add AS_FUNCTION_DESCRIBE.
1939         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
1940         * lib/autotest/general.m4 (AT_INIT): Use it.
1942 2008-10-16  Eric Blake  <ebb9@byu.net>
1944         Speed up m4_qlen with caching.
1945         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
1946         (m4_qlen): Cache results for speed.
1948 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
1950         Add a testcase using more then one language.
1951         * tests/compile.at (Multiple languages): New test.
1953 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
1955         Fix Libtool's config.lt test.
1956         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
1957         expanding it.
1959 2008-10-15  Eric Blake  <ebb9@byu.net>
1961         Break circular require chain in _AS_LINENO_PREPARE.
1962         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
1963         disabled when reporting LINENO failure, since logging requires
1964         LINENO.
1965         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
1966         not m4_rename, since the latter is undocumented.
1967         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
1968         m4_rename, as it does not yet handle pushdef stacks.
1969         Reported by Ralf Wildenhues.
1971 2008-10-15  Eric Blake  <ebb9@byu.net>
1973         Cleanups to previous patches.
1974         * doc/autoconf.texi (Portable Shell): Minor edits.
1975         (Limitations of Builtins): Touch up wording.
1976         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
1977         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
1979 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
1981         Updates to shell portability documentation.
1982         * doc/autoconf.texi: Updates all references to "Portable Shell" and
1983         "Limitations of Builtins" to use three-argument commands.
1984         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
1985         (Portable Shell): Move here discussion about "Where is the POSIX
1986         shell?"  Mention that M4sh provides a SVR2 shell and takes care
1987         of unsetting variables if necessary.  Talk about M4sh and not only
1988         Autoconf-generated scripts.
1989         (Special Shell Variables): Talk about M4sh and not only
1990         Autoconf-generated scripts.  Don't talk about things that Autoconf
1991         does not do.  Mention problems of $LINENO with shell functions.
1992         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
1993         discussion of eval bugs before discussion on proper use of eval.
1994         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
1995         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
1996         * NEWS: Update list of documented M4sh macros.
1998 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2000         Assume a (possibly buggy) `unset' is present after a
2001         `better shell' was found.
2002         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
2003         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
2004         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
2005         alias for AS_UNSET, for backwards compatibility.
2006         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
2007         the shell does not support unset.
2008         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
2009         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
2010         (AS_UNSET): Assume it is there but it might fail if the variable is
2011         not set.  Use it throughout instead of $as_unset.
2013 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2015         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
2016         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
2017         m4_require of _AS_DETECT_BETTER_SHELL.
2018         (_AS_CLEANUP): Add it here.
2019         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
2020         to _AS_CLEANUP.
2021         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
2022         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
2023         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
2024         (AS_INIT): Add m4_provide of itself.
2026 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2028         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
2029         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
2030         "test x$foo = xyes".
2032 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2034         Trim down the size of the better-shell test.
2035         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
2036         snippets into shell variables.
2037         (_AS_RUN): Rewrite.
2039 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2041         Support a stack of LINENO values for AS_MESSAGE.
2042         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
2043         the line number emitted to the log file.
2044         (AS_LINENO_PUSH, AS_LINENO_POP): New.
2045         * tests/m4sh.at (LINENO Stack): New test.
2047 2008-10-14  Eric Blake  <ebb9@byu.net>
2049         Correct previous patch.
2050         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
2051         all.
2053         Document shell function environment pitfall.
2054         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
2055         Solaris /bin/sh.
2057 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
2059         Use m4_require to implement AS_REQUIRE.
2060         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
2061         (m4_require): Pass it.
2062         (m4_divert_require): New.
2063         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
2064         Remove comment about differences with m4_require.
2065         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
2066         the expected behavior.
2067         (Nested AS_REQUIRE_SHELL_FN): New test.
2069 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2071         Test AS_LINENO_PREPARE.
2072         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
2074 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2076         Test AS_ME_PREPARE.
2077         * tests/m4sh.at (as_me): New test.
2079 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2081         Add and document AS_INIT_GENERATED.
2082         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
2083         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
2084         * doc/autoconf.texi (Initialization macros): Document it.
2086 2008-10-13  Eric Blake  <ebb9@byu.net>
2088         Use consistent shell function style.
2089         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
2090         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
2091         functions.
2093 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2095         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
2096         contributors under m4 rather than shell comments.
2098 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2100         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
2101         * doc/autoconf.texi (Initialization macros): Document them.
2102         (Portable Shell): Refer to AS_LINENO_PREPARE.
2103         * NEWS: Mention them.
2105         * bin/autoconf.as: Invoke AS_ME_PREPARE.
2106         * lib/autotest/general.m4: Likewise.
2108 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2110         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
2112 2008-10-10  Eric Blake  <ebb9@byu.net>
2114         Fix _AS_MKDIR_P usage.
2115         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
2116         match implementation.
2117         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
2118         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
2119         wording to better match behavior.
2121 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2123         * doc/autoconf.texi: Be less wary of shell functions.
2124         * NEWS: Document the increased use of shell functions.
2126 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2128         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
2129         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
2130         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
2131         (_AS_PREPARE): Define shell functions.
2132         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
2133         Define shell functions.
2135 2008-10-09  Eric Blake  <ebb9@byu.net>
2137         Only prepare $as_me if it will be used.
2138         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
2139         preparation.
2140         (_AS_ECHO_LOG): Depend on $LINENO preparation.
2141         (AS_MESSAGE): Depend on $as_me preparation.
2142         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
2144 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
2146         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
2147         until the M4SH-INIT diversion using _AS_ME_PREPARE.
2148         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
2149         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
2150         before _AS_LINENO_PREPARE.
2151         (AS_PREPARE): Include all the AS_REQUIREs manually.
2152         (_AS_ME_PREPARE): New.
2153         (_AS_LINENO_PREPARE): Use m4_defun.
2155 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
2157         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
2158         require _AS_EXPR_PREPARE.
2159         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
2160         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
2162 2008-10-08  Eric Blake  <ebb9@byu.net>
2164         Resync from gnulib.
2165         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
2166         (fetch): ...into new target.
2167         (executable-update): Delete, now that it is unused.
2168         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
2169         (wget-update, cvs-update): Likewise.
2170         * HACKING (Update the foreign files): Document new procedure.
2171         * GNUmakefile: Resync from upstream, via new 'make fetch'.
2172         * build-aux/config.guess: Likewise.
2174 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2176         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
2177         (AS_INIT): Do not call it.
2179 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2181         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
2182         _AS_UNSET_PREPARE in M4SH-SANITIZE.
2184 2008-10-08  Eric Blake  <ebb9@byu.net>
2186         Avoid repeating required shell tests in suggested set.
2187         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
2188         Use m4_set, rather than m4_expand_once/m4_append.
2189         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
2190         required tests out of suggested tests.
2191         Reported by Paolo Bonzini.
2193 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2195         Add m4sh keyword to all m4sh.at tests.
2196         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
2197         pastos.
2199 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2201         Document AS_VERSION_COMPARE.
2202         * doc/autoconf.texi (Programming in M4sh): Document
2203         AS_VERSION_COMPARE.
2204         * NEWS: Update.
2206         Do not write to testsuite log fd before initialization.
2207         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
2208         Define fds only when initializing the log fd so early error
2209         messages do not try to write to it.
2210         * tests/autotest.at (Startup error messages): New test.
2211         * NEWS: Document this 2.63 regression.
2213 2008-10-07  Eric Blake  <ebb9@byu.net>
2215         Ensure _AS_CLEANUP is defined.
2216         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
2217         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
2219         Improve m4sh maintainability.
2220         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
2221         code change.
2223         Fix m4 quoting in previous patch.
2224         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
2225         name prior to invoking AS_REQUIRE.
2226         Reported by Ralf Wildenhues.
2228 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
2229         and Eric Blake  <ebb9@byu.net>
2231         Add a separate diversion for shell functions.
2232         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
2233         (AS_REQUIRE): Accept diversion parameter.
2234         (AS_REQUIRE_SHELL_FN): Use it.
2236 2008-10-06  Eric Blake  <ebb9@byu.net>
2238         Add m4_default_quoted.
2239         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
2240         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
2241         * doc/autoconf.texi (Conditional constructs): Document it.
2242         * NEWS: Likewise.
2244         Fix build with case-insensitive make, again.
2245         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
2246         Reported via Keith Marshall, originally by newthinker in
2247         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
2249 2008-10-06  Bruno Haible  <bruno@clisp.org>
2251         Warn about /usr/ucb on Solaris.
2252         * doc/install.texi (Particular Systems): Recommend putting
2253         /usr/ucb late in PATH, if at all.
2255 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2257         Fix more testsuite hang corner cases.
2258         * lib/autotest/general.m4: Use the serial code path if no test
2259         is to be run.
2260         * tests/autotest.at (parallel test execution): Test -j and -jN
2261         with `-k notmatched'.
2263 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2265         Fix hang with `testsuite -k notmatched'.
2266         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
2267         to one.  Fixes hang with `-k notmatched'.
2269 2008-10-02  Eric Blake  <ebb9@byu.net>
2271         Document more binary file portability traps.
2272         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
2273         reader that NUL and sed don't always mix.
2274         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
2276 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2278         Implement parallel Autotest test execution: testsuite --jobs.
2279         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
2280         (AT_INIT): <at_jobs>: New variable.
2281         Accept -j, -jN, --jobs[=N], document them in --help output.
2282         Implement parallel driver loop using a FIFO, enabled with --jobs
2283         and if mkfifo works; otherwise, fall back to sequential loop.
2284         (AT_SETUP): Store, do not output summary progress line if
2285         parallel.
2286         * tests/autotest.at (parallel test execution, parallel truth)
2287         (parallel fallacy, parallel skip): New tests.
2288         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
2289         the mkfifo requirement, and that --errexit may cause concurrent
2290         jobs to finish.
2291         * NEWS: Update.
2293 2008-09-20  Eric Blake  <ebb9@byu.net>
2295         Fix sample isinf definition.
2296         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
2297         first.
2298         * THANKS: Update.
2299         Reported by David Cournapeau.
2301 2008-09-16  Eric Blake  <ebb9@byu.net>
2303         Fix Erlang regression, introduced 2006-11-17.
2304         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
2305         caused by underquoting.
2306         * NEWS: Mention this fix.
2307         * THANKS: Update.
2308         Reported by BJ Terry.
2310 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2312         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
2314         Mention Solaris sh ':' redirection bug.
2315         * doc/autoconf.texi (File Descriptors): Redirecting ':'
2316         in a loop causes bogus optimization with Solaris sh.
2318 2008-09-10  Eric Blake  <ebb9@byu.net>
2320         Avoid testsuite bug when autom4te cache is disabled by user.
2321         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
2322         cache, even if user normally disabled it.
2323         Reported by Bruno Haible.
2325         Avoid testsuite bug in presence of verbose config.site.
2326         * tests/base.at (Input/Output): Nullify config.site during test.
2327         Reported by Bob Friesenhahn.
2329 2008-09-09  Eric Blake  <ebb9@byu.net>
2331         Release Version 2.63.
2332         * NEWS: Mention the release.
2334         Formatting tweaks to the manual.
2335         * doc/autoconf.texi (Introduction, Systemology)
2336         (File System Conventions, Portable C and C++)
2337         (Floating Point Portability): Allow URLs to split as needed.
2338         (Indices): Add entries, to work around texinfo bug on indices that
2339         start too close to a page break.
2340         (Particular Functions): Mention ftello.
2341         (Introduction, Language Choice): Use @enddots at sentence end.
2343         Resync from gnulib.
2344         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
2345         although for now, they are still manually sync'd.
2346         * build-aux/gnupload: Update.
2347         * build-aux/config.sub: Likewise.
2348         * GNUmakefile: Likewise.
2350 2008-09-06  Eric Blake  <ebb9@byu.net>
2352         Mention that Automake already supports VPATH.
2353         * doc/autoconf.texi (Build Directories): Details in this section
2354         only apply to users avoiding automake.
2355         * THANKS: Update.
2356         Reported by Matej Tyc.
2358         Relax tone when warning about cross-compiler names.
2359         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
2360         with poorly named tools; the issue has been reported too many
2361         times in the last four years to pull support.
2362         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
2363         documentation accordingly.
2364         * THANKS: Update.
2365         Reported by Josef Tran and others, wording suggested by Ralf
2366         Wildenhues.
2368 2008-09-01  Eric Blake  <ebb9@byu.net>
2370         Improve AC_C_BIGENDIAN.
2371         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
2372         universal builds require a config header.
2373         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
2374         AH_HEADER at the last possible moment, so that users can use
2375         AC_CONFIG_HEADER after this macro.
2376         Reported by Stepan Kasal.
2378         Fix manual date information.
2379         * doc/autoconf.tex: UPDATED refers to the day the manual was
2380         built, not the release date of Autoconf.
2381         Based on a bison patch by Akim Demaille.
2383 2008-08-27  Eric Blake  <ebb9@byu.net>
2385         Fix off-by-one bug in _m4_shiftn.
2386         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
2387         all arguments.
2388         * tests/m4sugar.at (M4 loops): Test it.
2389         Reported by Akim Demaille.
2391 2008-08-26  Eric Blake  <ebb9@byu.net>
2393         Improve INSTALL formatting.
2394         * doc/install.texi [!autoconf]: Ensure first paragraphs are
2395         indented like all others in a plain text rendering.
2396         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
2397         Reported by Bruno Haible.
2399 2008-08-26  Stepan Kasal  <skasal@redhat.com>
2401         Check for case sensitive make.
2402         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
2403         * configure.ac: ... called here.
2404         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
2405         ($(srcdir)/INSTALL): ...this, but enclose the rule in
2406         "if MAKE_CASE_SENSITIVE".
2408 2008-08-26  Eric Blake  <ebb9@byu.net>
2410         Update invocation documentation.
2411         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
2412         (autoreconf Invocation): Mention -v.
2413         (autom4te Invocation): Tie --freeze to -F, not -f.
2414         (autoupdate Invocation): Mention --prepend-include.
2415         * doc/install.texi (configure Invocation): Mention --help=short,
2416         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
2417         * bin/autoscan.in ($help): Omit space before `...'.
2418         * bin/ifnames.in ($help): Likewise.
2419         * bin/autoconf.as (Usage): Likewise.
2420         * bin/autoreconf.in ($help): Likewise.
2421         * bin/autoheader.in ($help): Likewise.
2422         * bin/autom4te.in ($help): Likewise.
2423         * bin/autoupdate.in ($help): Likewise.
2424         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
2425         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
2426         --file correctly.
2428         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
2429         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
2430         (files_to_options): Avoid inheriting __m4_version__ from frozen
2431         file if current M4 does not support it.
2433 2008-08-25  Eric Blake  <ebb9@byu.net>
2435         Adjust to recent m4 1.6 change to support m4_debugmode(d).
2436         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
2437         freeze-time decision of using faster 1.6 implementation...
2438         (m4_init): ...to a runtime decision, and add use of new debugmode
2439         flag.
2441 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
2443         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
2444         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
2445         __APPLE_CC__ with possible -arch flags.
2446         * NEWS: Document it.
2448 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2450         * NEWS: Fix typo.
2452 2008-08-22  Eric Blake  <ebb9@byu.net>
2454         * TODO: Add an item for additional m4sugar looping constructs.
2455         Suggested by Ralf Wildenhues.
2457         Add reminder to keep dual implementations in sync.
2458         * lib/m4sugar/m4sugar.m4: Add comments.
2459         * lib/m4sugar/foreach.m4: Likewise.
2460         Suggested by Ralf Wildenhues.
2462 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
2464         Format warning and error messages to match GCS.
2465         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
2466         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
2467         messages with a lowercase letter, end them without punctuation.
2468         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
2469         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
2470         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
2471         Likewise.
2472         * tests/fortran.at (GNU Fortran): Likewise.
2473         * tests/torture.at (Deep Package): Likewise.
2475 2008-08-21  Eric Blake  <ebb9@byu.net>
2477         Avoid extra side effects in m4sugar list expansion.
2478         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
2479         around...
2480         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
2481         duplicate side effects.
2482         (m4_version_compare): Adjust caller.
2483         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
2484         (_m4_list_cmp_raw): ...to match m4sugar.
2485         * doc/autoconf.texi (Looping constructs): Document the behavior of
2486         side effects.
2487         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
2488         Ensure only one side effect.
2489         (recursion): Fix test typo.
2490         Reported by Ralf Wildenhues.
2492 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2494         * TODO: Add item for compiler default flags.
2495         Suggested by Bruno Haible.
2497         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
2498         back to 1000.
2500 2008-08-21  Eric Blake  <ebb9@byu.net>
2502         Formatting improvements.
2503         * doc/autoconf.texi: Use @file and @command, rather than @code,
2504         where appropriate.
2506         Document another make bug.
2507         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
2508         make, GNU make <= 3.80.
2510         Tweak wording about SHELL in Makefile.
2511         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
2512         the importance of proper SHELL settings.
2513         Reported by Bruno Haible, in
2514         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
2516 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2518         Avoid timestamp races for updated input.
2519         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
2520         second script.
2521         * tests/tools.at (autotools and whitespace in file names): Add
2522         --force for repeated invocations.
2524 2008-08-20  Bruno Haible  <bruno@clisp.org>
2526         Add section to INSTALL about particular systems.
2527         * doc/install.texi (Particular systems): New node.
2528         * doc/autoconf.texi: Adjust menus.
2530 2008-08-19  Bruno Haible  <bruno@clisp.org>
2531         and Peter O'Gorman  <peter@pogma.com>
2533         Mention universal binaries in INSTALL.
2534         * doc/install.texi (Compiling For Multiple Architectures): Explain
2535         how to create universal binaries on MacOS X.
2537 2008-08-19  Jim Meyering  <jim@meyering.net>
2538             Eric Blake  <ebb9@byu.net>
2539             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2541         Avoid shell parse errors after interrupt due to empty ``.
2542         * doc/autoconf.texi (Shell Substitutions): Document the issue.
2543         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
2544         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
2545         "test AS_VAR_GET([...]) = yes"
2546         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
2547         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
2548         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
2549         (_AC_CHECK_HEADER_DIRENT): Likewise.
2550         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
2551         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
2552         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
2553         temporary variable to work around the issue.
2554         * tests/foreign.at (Libtool): Quote result of command
2555         substitution.
2557 2008-08-18  Eric Blake  <ebb9@byu.net>
2559         Test m4_transform without tickling shell bugs.
2560         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
2561         something more manageable.
2562         * tests/m4sugar.at (recursion): Move stress test of
2563         m4_transform_pair here.
2564         Reported by Ralf Wildenhues.
2566         Let 'git diff' give better context for doc updates.
2567         * .gitattributes (*.texi*): Add new entry.
2568         * README-hacking: Mention how to use it.
2569         Inspired by a coreutils patch by Jim Meyering.
2571 2008-08-15  Eric Blake  <ebb9@byu.net>
2573         Fix m4_map regression from 2007-10-16.
2574         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
2575         (m4_map): Ignore empty sublists.  For a list consisting of only an
2576         empty sublist, this restores 2.61 behavior of being a no-op.
2577         (m4_map_sep): Likewise, and expand separator.
2578         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
2579         (_m4_map): Rewrite, to be common base for all four variants.
2580         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
2581         * tests/m4sugar.at (m4@&t@_map): Add tests.
2582         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
2583         macros, and mention ramifications of expanded separator.
2584         * NEWS: Mention the change.
2586 2008-08-14  Eric Blake  <ebb9@byu.net>
2588         Implement m4_transform_pair, to speed up AS_IF.
2589         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
2590         macros, undocumented for now.
2591         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
2592         the m4 1.4.x counterparts.
2593         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
2594         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
2596 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2598         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
2599         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
2600         warn about previous AC_CANONICAL_TARGET.
2601         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
2602         unusable in the non-cross-compiling case.
2603         * NEWS, THANKS: Update.
2604         Report by Dave Erickson.
2606 2008-08-12  Eric Blake  <ebb9@byu.net>
2608         Optimize m4_bmatch.
2609         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
2610         implementation for m4 1.4.x.
2611         * tests/m4sugar.at (m4@&t@_bmatch): New test.
2612         (recursion): Test the linear nature.
2613         * NEWS: Document the fix.
2615         Fix m4_cond corner case.
2616         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
2617         implementation allows concatenation with subsequent text.
2618         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
2620         Add test for m4_cond.
2621         * tests/m4sugar.at (m4@&t@_cond): New test.
2622         Reported by Ralf Wildenhues.
2624 2008-08-06  Eric Blake  <ebb9@byu.net>
2626         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
2627         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
2628         unique key for the AH_VERBATIM.
2629         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
2630         * NEWS: Mention the fix.
2631         Reported by Andreas Schwab, analyzed by Stepan Kasal.
2633         Add linear m4_cond for m4 1.4.x.
2634         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
2635         (_m4_cond): ...this, for fewer macros per iteration.
2636         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
2637         * tests/m4sugar.at (recursion): Test it.
2638         * NEWS: Document the linear guarantee.
2640         Speed up diversion handling.
2641         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
2642         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
2643         expansions.
2645         AC_C_CHAR_UNSIGNED is not strictly necessary.
2646         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
2647         portable alternative to this macro.
2648         * THANKS: Update.
2649         Reported by Hallvard B Furuseth.
2651         Update some files from upstream.
2652         * GNUmakefile: Update.
2653         * build-aux/announce-gen: Likewise.
2654         * build-aux/config.guess: Likewise.
2655         * build-aux/config.sub: Likewise.
2656         * build-aux/git-version-gen: Likewise.
2657         * build-aux/texinfo.tex: Likewise.
2658         * build-aux/vc-list-files: Likewise.
2659         * doc/make-stds.texi: Likewise.
2660         * doc/standards.texi: Likewise.
2662 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2664         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
2665         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
2666         whitespace in $ac_config_files and $ac_config_headers.
2667         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
2668         Report by Andreas Schwab and Per Ã˜yvind Karlsen.
2669         * THANKS: Update.
2671 2008-07-30  Eric Blake  <ebb9@byu.net>
2673         Fix bugs in previous version of m4_bpatsubsts.
2674         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
2675         allow concatenation with subsequent text.
2676         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
2678 2008-07-29  Eric Blake  <ebb9@byu.net>
2680         Add linear m4_bpatsubsts for m4 1.4.x.
2681         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
2682         about anchors, even for only one substitution.
2683         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
2684         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
2685         Clarify behavior with regard to quoting.
2686         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
2687         (m4@&t@_bpatsubsts): New test.
2688         * NEWS: Document the linear guarantee.
2690         Tweak m4_do semantics.
2691         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
2692         subsequent text.
2693         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
2694         arguments, and avoid infinite loop.
2695         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
2696         behavior.
2697         * tests/m4sugar.at (m4@&t@_do): New test.
2699         Optimize m4_for.
2700         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
2701         (_m4_for): Take additional parameter, for fewer m4_indir calls.
2702         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
2703         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
2704         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
2705         semantic change caused by the optimization.
2706         * tests/m4sugar.at (M4 loops): Test the new semantics.
2708         One more m4_list_cmp tweak.
2709         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
2710         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
2711         * tests/m4sugar.at (recursion): Test both directions of list
2712         disparity.
2714         Add m4_reverse, and improve m4_list_cmp.
2715         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
2716         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
2717         m4_reverse'd list.
2718         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
2719         counterpart.
2720         * tests/m4sugar.at (recursion): Test it.
2721         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
2722         it.
2723         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
2724         * NEWS: Mention new macro.
2726 2008-07-28  Eric Blake  <ebb9@byu.net>
2728         Avoid _m4_shiftn for m4 1.6 speedup.
2729         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
2730         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
2731         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
2733         Implement O(n) unique element set creation.
2734         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
2735         (m4_set_contains, m4_set_contents, m4_set_delete)
2736         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
2737         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
2738         (m4_set_size, m4_set_union): New macros.
2739         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
2740         m4 1.4.x.
2741         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
2742         new m4_set API for the set most likely to be large.
2743         * doc/autoconf.texi (Set manipulation Macros): New node.
2744         * NEWS: Mention new macros.
2745         * tests/m4sugar.at (m4@&t@_set): New test.
2747 2008-07-25  Eric Blake  <ebb9@byu.net>
2749         Avoid infinite aclocal loop.
2750         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
2751         that aclocal doesn't insist on finding m4sugar/foreach.m4.
2753         Provide O(n) replacement macros for M4 1.4.x.
2754         * lib/m4sugar/foreach.m4: New file.
2755         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
2756         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
2757         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
2758         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
2759         linear on 1.4.x].
2760         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
2761         older M4 is assumed.
2762         (m4_map_sep): Optimize.
2763         (m4_max, m4_min): Refactor, by adding...
2764         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
2765         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
2766         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
2767         file.
2768         * tests/m4sugar.at (M4 loops): Add a stress test that takes
2769         forever if m4_foreach and friends are quadratic.
2770         * NEWS: Mention this.
2772 2008-07-21  Eric Blake  <ebb9@byu.net>
2774         Ignore undefined macros, necessary with m4 1.6.
2775         * bin/autoupdate.in (_au___undefine): New macro,...
2776         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
2777         Reported by Ralf Wildenhues.
2779         Resync with gnulib.
2780         * GNUmakefile: Grab from upstream, to fix issue where 'make
2781         install' would allow installation of stale version string.
2783 2008-07-19  Eric Blake  <ebb9@byu.net>
2785         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
2786         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
2787         through all variables, per POSIX and newer m4.
2788         (_m4_text_wrap): Exploit the looping capabilities.
2789         * tests/m4sugar.at (m4@&t@_defn): Test this.
2790         * NEWS: Document it.
2791         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
2792         <m4_undefine>: Likewise.
2794         Reduce overhead of m4_builtin([defn]).
2795         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
2796         internal macros, which are slightly more efficient than
2797         m4_builtin([defn]) and company.
2798         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
2799         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
2800         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
2801         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
2802         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
2803         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
2804         (m4_version_prereq): Use them.
2806         Use warnings from m4 when available.
2807         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
2808         define slower wrapper if m4 will warn on our behalf; key off of
2809         __m4_version__, added alongside the new warnings in m4 1.6.
2810         * tests/m4sugar.at (m4@&t@_defn): New test.
2812 2008-07-18  Eric Blake  <ebb9@byu.net>
2814         Add m4_joinall.
2815         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
2816         * tests/m4sugar.at (m4@&t@_join): Test them.
2817         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
2818         m4_joinall.
2819         * NEWS: Likewise.
2821 2008-07-17  Stepan Kasal  <skasal@redhat.com>
2822         and Eric Blake  <ebb9@byu.net>
2824         Improve documentation of config.h.in template rules.
2825         * doc/autoconf.texi (Header Templates): Mention rules on comments
2826         and whitespace, and that the user cannot rely on #undef to survive
2827         through config.status.
2829 2008-07-16  Eric Blake  <ebb9@byu.net>
2831         Revert m4_prepend; it is less efficient, and unused by bison.
2832         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
2833         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
2834         (_m4_grow_uniq_1): Rename back...
2835         (_m4_append_uniq): ...to this.
2836         * NEWS: Revert NEWS blurb.
2837         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
2838         * tests/m4sugar.at (m4@&t@_prepend): Delete.
2840 2008-07-15  Eric Blake  <ebb9@byu.net>
2842         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
2843         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
2844         definition for non-Autoconf clients of m4sugar.
2846 2008-07-14  Eric Blake  <ebb9@byu.net>
2848         Tighten bound of potential speed of m4_append.
2849         * doc/autoconf.texi (Text processing Macros) <m4_append>
2850         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
2851         O(n log n).
2852         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
2853         Analysis by Bruno Haible.
2855 2008-07-11  Eric Blake  <ebb9@byu.net>
2857         Inherit improvements from bison's fork of m4sugar.
2858         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
2859         find version.texi, since bison does not provide it.
2860         (m4_prepend): Add new macro, from bison.
2861         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
2862         completeness.
2863         (_m4_append_uniq): Rename...
2864         (_m4_grow_uniq_1): ...to this to share implementation, and
2865         optimize initial assignment.
2866         (m4_append_uniq_w): Adjust caller.
2867         * NEWS: Document new macros.
2868         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
2869         speed consideration.
2870         <m4_prepend>: Document the new prepend variants.
2871         * tests/m4sugar.at (m4@&t@_prepend): New test.
2873         Work around M4 1.6 warning on undefined macros.
2874         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
2875         not already available as builtins.
2877 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2879         * doc/autoconf.texi (@dvar): Remove trailing newline.
2880         (@ovar): Likewise.  Fix macro documentation.
2882 2008-07-02  Stepan Kasal  <skasal@redhat.com>
2884         Add quotes to the header of autoscan-generated source.
2885         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
2887 2008-06-28  Andreas Schwab  <schwab@suse.de>
2889         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
2890         (autoconf Invocation): Likewise.
2891         (autoreconf Invocation): Likewise.
2892         (autoheader Invocation): Likewise.
2893         (autom4te Invocation): Likewise.
2895 2008-06-19  Eric Blake  <ebb9@byu.net>
2897         Add comment explaining recent patch.
2898         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
2899         of * vs. ? globbing.
2901 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2903         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
2904         linking a file to itself.
2905         Report by Bruno Haible.
2907 2008-06-19  Eric Blake  <ebb9@byu.net>
2909         Resync with gnulib.
2910         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
2911         Reported by Stepan Kasal.
2913 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2915         Reorganize autotest files, factorize for parallel execution.
2916         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
2917         earlier in the file.
2918         (AT_INIT): Create line number cache in
2919         $at_suite_dir/at-source-lines.
2920         <at_helper_dir>: New directory at-groups below $at_suite_dir.
2921         Add comment explaining the new directory structure.
2922         (at_func_group_prepare, at_func_group_postprocess): New shell
2923         functions to factorize per-test group work.  Keep the actual
2924         test execution outside of a shell function in order to avoid
2925         zsh 4.x exit status bugs.
2926         <at_check_line_file, at_status_file, at_stdout, at_stder1>
2927         <at_stderr, at_test_source>: Turn these into per-group files
2928         below $at_helper_dir.  Also store test results there in files
2929         named pass, fail, xpass, xfail, skip.  Let the parent collect
2930         results from $at_helper_dir.  Adjust summary statistics
2931         computation and result output.
2933 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2935         Fix '#undef variable /* comment */' transform in config headers.
2936         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
2937         undefined preprocessor macros that are followed by a comment
2938         in the header template, do not create nested comments in the
2939         output.
2940         * tests/torture.at (@%:@define header templates): Extend test.
2941         * NEWS: Update.
2942         Report by Karsten Hopp <karsten@redhat.com>.
2944 2008-06-09  Eric Blake  <ebb9@byu.net>
2946         Mark AC_TYPE_SIGNAL as obsolete.
2947         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
2948         * doc/autoconf.texi (Function Portability): Update documentation.
2949         (Particular Types): Move AC_TYPE_SIGNAL...
2950         (Obsolete Macros): ...here, and mention why.
2951         * NEWS: Mention the change.
2953         Allow lib64 as a default X library location.
2954         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
2955         * NEWS: Mention the change.
2956         * THANKS: Update.
2957         Reported by Brad Walker.
2959 2008-06-05  Eric Blake  <ebb9@byu.net>
2961         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
2962         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
2963         converting it to lower case.
2964         * tests/autotest.at (Keywords and ranges): Test this.
2965         * NEWS: Document the fix.
2966         * THANKS: Update.
2967         Reported via Karsten Hopp, by Jochen Schmitt in
2968         https://bugzilla.redhat.com/show_bug.cgi?id=449973
2970 2008-06-03  Eric Blake  <ebb9@byu.net>
2972         Fix 'make dist' regression from 2008-05-08.
2973         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
2974         GNUmakefile's _autoconf rule removes INSTALL.
2976 2008-05-27  Eric Blake  <ebb9@byu.net>
2978         Document Solaris /bin/sh redirection pitfall.
2979         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
2981 2008-05-14  Eric Blake  <ebb9@byu.net>
2983         Improve documentation of ! issues.
2984         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
2985         Reported by Noah Misch.
2987         Document some FreeBSD shell bugs.
2988         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
2989         in compound pipe commands.
2990         <export>: Mention difference of exporting an undefined variable.
2991         (Shell Functions): Mention loss of $? in entry to shell functions.
2992         Extracted from the git mailing list.
2994 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
2996         Work around MSYS and Cygwin bugs when dealing with trailing space.
2997         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
2998         even when platform bugs are tickled.
2999         Reported by Keith Marshall and Eric Blake.
3001 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3003         Let AC_MSG_FAILURE report pwd.
3004         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
3005         Output $ac_pwd along with fatal failure.
3006         * tests/torture.at (Deep Package): Extend test.
3007         Reported numerous times against GCC, and probably other packages.
3009 2008-05-12  Eric Blake  <ebb9@byu.net>
3011         Enforce --help and --version compliance.
3012         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
3014 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
3016         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
3017         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
3018         ($(abs_srcdir)/INSTALL): ...with this.
3020 2008-05-06  Eric Blake  <ebb9@byu.net>
3022         Fix typo.
3023         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
3025         Avoid overfull \hbox.
3026         * doc/autoconf.texi (Versioning): Reword to fit line size.
3028         Document $(( )) pitfalls.
3029         * doc/autoconf.texi (Shell Substitutions): Mention octal
3030         vs. decimal.  Mention autotest's at_func_arith.
3032         Improve behavior of './testsuite 01'.
3033         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
3034         Alter usage to eval its arguments, in order to normalize away
3035         leading zero.  All callers updated.
3036         * tests/autotest.at (Keywords and ranges): Test range
3037         normalization with leading 0.
3039 2008-04-26  Eric Blake  <ebb9@byu.net>
3041         Mention Solaris /usr/ucb/tr pitfall.
3042         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
3043         Reported by Bruno Haible and Jim Meyering.
3045 2008-04-24  Eric Blake  <ebb9@byu.net>
3047         Mention m4sugar's internal quote strings.
3048         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
3049         in m4sugar, and how to still output it literally.
3050         * tests/m4sugar.at (m4@&t@_split): And test it.
3051         Reported by Joel E. Denny.
3053 2008-04-23  Eric Blake  <ebb9@byu.net>
3055         Allow unbalanced () in m4_expand.
3056         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
3057         quotes.
3058         (m4_noquote, _m4_split): Use consistent complex quote.
3059         * tests/autotest.at (Left paren, Right paren): Test this.
3060         (Parentheses): Ensure new quadrigraphs still work.
3061         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
3062         * NEWS: Mention the fix.
3063         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
3064         require quadrigraphs for ().
3065         (Evaluation Macros) <m4_expand>: Relax the restriction against
3066         unbalanced ().
3067         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
3068         (Writing Testsuites) <AT_SETUP>: Likewise.
3069         Reported by Joel E. Denny, fix suggested by Noah Misch.
3071 2008-04-22  Eric Blake  <ebb9@byu.net>
3073         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
3074         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
3075         (handle_traces): Likewise.
3076         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
3077         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
3078         * doc/autoconf.texi (Quadrigraphs): Document them.
3079         (Evaluation Macros) <m4_expand>: Enhance documentation.
3080         (Text processing Macros) <m4_text_box>: Document cases where
3081         quadrigraphs can help for problemetic unbalanced parentheses.
3082         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
3083         (Writing Testsuites) <AT_SETUP>: Likewise.
3084         (Limitations of Builtins) <case>: Consolidate text on unbalanced
3085         parentheses, and add an example of creative comments.
3086         * NEWS: Document the addition.
3087         Reported by Joel E. Denny.
3089 2008-04-16  Eric Blake  <ebb9@byu.net>
3091         Document pdksh exec behavior.
3092         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
3093         subsection.
3094         Discovered by Jim Meyering.
3096 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3098         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
3099         arguments to the inner suite.
3100         (errexit, input from stdin): New tests.
3102 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3104         * NEWS: Post-release update.
3106 2008-04-10  Eric Blake  <ebb9@byu.net>
3108         AC_AUTOCONF_VERSION might contain arbitrary macro names.
3109         * doc/autoconf.texi (Versioning): Mention problem with expansion.
3110         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
3112 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
3114         Flush buffered output before exit.
3115         * bin/autom4te.in (handle_output): Explicitly close file.
3116         * THANKS: Update.
3117         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
3119 2008-04-08  Eric Blake  <ebb9@byu.net>
3121         Generate web docs for 2.62.
3122         * doc/autoconf.texi (Evaluation Macros): Fix typo.
3123         (Notices): Use recommended means to escape RCS keyword.
3124         * cfg.mk (gnulib_dir): New macro.
3125         (web-manual): New target.
3127 2008-04-05  Eric Blake  <ebb9@byu.net>
3129         Release Version 2.62.
3130         * NEWS: Mention the release.
3132 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
3133         and Eric Blake  <ebb9@byu.net>
3135         Return back to GPLv2+, until the text of the exceptions is
3136         finalized, reverting the change from 2007-07-03 and the first
3137         part of the change from 2007-07-20.
3138         * COPYING: Revert to GPLv2.
3139         * COPYINGv3: New file, since some auxiliary build tools, used for
3140         building autoconf and not installed, are GPLv3.
3141         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
3142         * NEWS: Remove mention of GPLv3.
3143         * README: Clarify situation regarding GPLv3.
3145 2008-04-05  Eric Blake  <ebb9@byu.net>
3147         Prepare for release.
3148         * maint.mk (announcement): Avoid deleted option.
3149         * cfg.mk (release_archive_dir): Use default.
3150         * build-aux/gnupload: New file, from automake/gnulib.
3151         * Makefile.am (EXTRA_DIST): Distribute it.
3152         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
3153         from syntax check.
3155 2008-04-05  Jim Meyering  <meyering@redhat.com>
3156         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3158         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
3159         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
3160         is the EOL marker, skip a step that would remove and translate
3161         carriage return bytes.
3162         * THANKS: Update.
3163         Reported by Elbert Pol.
3165 2008-04-05  Eric Blake  <ebb9@byu.net>
3167         Avoid some autoreconf -Wall warnings.
3168         * configure.ac: Use proper quoting, to be a good example.
3169         (PACKAGE_NAME): Remove setting covered by autoconf.
3170         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
3171         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
3172         automake.
3173         (html, autoconf_1.html, standards_1.html): Likewise.
3174         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
3175         * Makefile.am (html): Likewise.
3176         * doc/autoconf.texi (Quoting and Parameters): Add missing section
3177         name.
3178         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
3179         warning about our override, until Automake is fixed.
3180         * README-hacking: Document minimum requirements for bootstrap.
3182 2008-04-03  Eric Blake  <ebb9@byu.net>
3184         Fix version number generation in man pages.
3185         * Makefile.am (EXTRA_DIST): Distribute .version.
3186         (.version): New rule.
3187         * man/Makefile.am (common_dep): Depend on .version, not
3188         configure.ac.
3189         (.x.1): Use package name for version string.
3190         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
3191         * build-aux/git-version-gen: Sync from upstream.
3193         More maintainer tweaks: pass 'make maintainer-distcheck'.
3194         * GNUmakefile (_is-dist-target): Sync from upstream.
3195         * build-aux/vc-list-files: Sync from upstream, yet again.
3196         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
3197         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
3198         package.m4.
3199         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
3201         Fix VPATH 'make syntax-check'.
3202         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
3203         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
3204         (author_mark_check): Avoid error message.
3205         * build-aux/vc-list-files: Sync from upstream again.
3206         * build-aux/texinfo.tex: Likewise.
3208         Sync files from upstream, and pass 'make syntax-check'.
3209         * config/announce-gen: Move...
3210         * build-aux/announce-gen: ...here, and sync from gnulib.
3211         * Makefile.am (EXTRA_DIST): Adjust accordingly.
3212         * cfg.mk (announce_gen): Likewise.
3213         (prev_version_file): Delete, relying on default in maint.mk.
3214         (gpg_key_ID): New macro.
3215         (url_dir_list): Rewrite to match coreutils.
3216         * config/prev-version.txt: Move...
3217         * .prev-version: ...here, and adjust to 2.61.
3218         * build-aux/vc-list-files: Sync from coreutils.
3219         * maint.mk: Resynchronize with coreutils, where possible.
3220         (ME): Remove $(srcdir) from definition.
3221         (CVS): Delete.
3222         (GIT, VC, VC-tag): New macros.
3223         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
3224         (VC_LIST, VC_LIST_EXCEPT): ...to this.
3225         (cvs-tag-check): Delete.
3226         (cvs-diff-check): Rename...
3227         (vc-diff-check): ...to this.
3228         (sc_file_system): Allow FHS acronym.
3229         * doc/autoconf.texi (Particular Functions): Recommend
3230         unconditional <config.h>.
3231         * build-aux/config.guess: Sync from upstream (manually).
3232         * build-aux/config.sub: Likewise.
3233         * build-aux/texinfo.tex: Likewise.
3234         * doc/make-stds.texi: Likewise.
3235         * doc/standards.texi: Likewise.
3236         * .gitattributes: Ignore whitespace problems in upstream files.
3238 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3240         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
3241         bug on HP-UX/IA.
3242         Report by Peter O'Gorman.
3244 2008-04-02  Eric Blake  <ebb9@byu.net>
3246         Recommend the just-released M4 1.4.11.
3247         * NEWS: Update recommendation.
3248         * README: Likewise.
3249         * doc/autoconf.texi (Introduction): Likewise.
3250         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
3252 2008-04-01  Eric Blake  <ebb9@byu.net>
3254         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
3255         copyright year.
3257 2008-03-28  Peter O'Gorman  <peter@pogma.com>
3259         Find X11 on Mac OS X too.
3260         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
3261         Check for libX11 with extensions dylib la and dll too.
3262         * THANKS: Update.
3263         Reported by Martin Costabel.
3265 2008-03-28  Eric Blake  <ebb9@byu.net>
3267         Update TODO based on completed tasks.
3268         * TODO (AC_PROG_INSTALL takes multiple files): Done.
3269         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
3270         (AC_COMPILE_IFELSE documentation): Done.
3271         (Tracing builtins): Done, now that we require M4 1.4.5.
3272         (AC_PROG_CC_POSIX suggestion, providing header files)
3273         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
3274         (cache consistency): Done with precious variables.
3276 2008-03-26  Eric Blake  <ebb9@byu.net>
3278         Document --trace=macro:format in --help output.
3279         * bin/autom4te.in (help): Mention optional trace format.
3280         * bin/autoconf.as (usage): Likewise.
3282         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
3283         typos in last patch.
3284         Reported by Ralf Wildenhues.
3286 2008-03-26  Jim Meyering  <meyering@redhat.com>
3288         Fix texinfo syntax error.
3289         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
3291 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3293         Warn, not fail on whitespace-only precious variable differences.
3294         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
3295         precious variable differences less ambiguous with `ugly-quotes'.
3296         If their settings differ only in whitespace, do not fail, but
3297         reuse the old value.
3298         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
3299         an optional status and expected-warning argument.  Fix m4
3300         quotation for initial value.
3301         (AC_ARG_VAR): Also test for whitespace-only differences, and
3302         that the old value is retained in this case.
3303         * doc/autoconf.texi (Setting Output Variables): Document this.
3304         * NEWS: Update.
3305         Report and initial patch by Paolo Bonzini.
3307 2008-03-26  Eric Blake  <ebb9@byu.net>
3309         Document busybox sed bug.
3310         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
3311         restrictions when using back-references.
3312         Reported by Vincent Lefevre:
3313         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
3315         Document Automake interaction with AC_CONFIG_MACRO_DIR.
3316         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
3317         users.
3318         * THANKS: Update.
3319         Reported by Chris Pickett.
3321 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3323         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
3325         * tests/local.at (AT_CHECK_M4): Factorize warning output
3326         normalization.
3327         Suggested by Eric Blake.
3329 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3331         Fix .exe-related test failure on MinGW.
3332         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
3333         for comparing warning output.
3335         Fix Fortran testsuite failures with gfortran 4.3.
3336         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
3337         verbose compiler output, skip lines that set variables; gfortran
3338         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
3339         * THANKS: Update.
3340         Report by Vincent Lefèvre.
3342 2008-03-21  Eric Blake  <ebb9@byu.net>
3344         * GNUmakefile: Resynchronize with gnulib.
3346         Document more uses of $cross_compiling.
3347         * doc/autoconf.texi (Runtime): Document that a temporary override
3348         is permissible.
3349         * THANKS: Update.
3350         Reported by Ineiev, example by Ralf Wildenhues.
3352         Don't swallow $1 in textual local variables.
3353         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
3354         expansion of text arguments, as that swallows $1.
3355         (m4_text_wrap): Likewise, by splitting out...
3356         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
3357         expression for width.
3358         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
3359         (m4@&t@_combine): Likewise.
3361 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3363         Avoid leftover files on Leopard.
3364         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
3365         directory created on darwin.
3366         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
3367         left over from a broken link.
3368         * tests/c.at (AC_NO_EXECUTABLES (working linker))
3369         (AC_NO_EXECUTABLES (broken linker)): New tests.
3370         Report by Gary V. Vaughan.
3372         * lib/autom4te.in (Automake-preselections): Trace
3373         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
3375 2008-03-20  Eric Blake  <ebb9@byu.net>
3377         Kill more CVS references.
3378         * README-cvs: Delete.  See README-hacking instead.
3379         * README-hacking: Update wording, based on older file.
3380         * BUGS: Remove CVS mention.
3382 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3384         * tests/tools.at (autotools and whitespace in file names): Skip
3385         if aclocal is not present.
3387 2008-03-20  Eric Blake  <ebb9@byu.net>
3389         Sync GNUmakefile with gnulib.
3390         * GNUmakefile (Makefile.cfg): Rename...
3391         (cfg.mk): ...to this, and make optional.
3392         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
3393         (Makefile.maint): Rename...
3394         (maint.mk): ...to this.
3395         (all) [!_have-Makefile]: Rename...
3396         (abort-due-to-no-makefile): ...to this, and invoke via
3397         .DEFAULT_GOAL to pick up all targets.
3398         * Makefile.cfg: Rename...
3399         * cfg.mk: ...to this.
3400         * Makefile.maint: Rename...
3401         * maint.mk ...to this.
3402         (ME): Reflect name change.
3403         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
3404         rather than hard-coded name.
3405         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
3406         * Makefile.am (EXTRA_DIST): Reflect file name changes.
3407         * .x-sc_prohibit_atoi_atof: Likewise.
3408         * lib/freeze.mk: Likewise.
3410 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
3412         * doc/autoconf.texi (Introduction): Improve the paraphrase of
3413         Henry Spencer's quotation.
3415 2008-03-19  Eric Blake  <ebb9@byu.net>
3417         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
3418         * bin/autoscan.in (output): Avoid obsolete spelling.
3419         * tests/local.at (AC_STATE_SAVE): Update usage.
3420         * THANKS: Update.
3421         Reported by John Calcote.
3423         Emphasize that ease of configure triumphs over ease of autoconf.
3424         * doc/autoconf.texi (Introduction): Expand on primary
3425         vs. secondary goal of autoconf.
3426         * THANKS: Update.
3427         Inspired by Paul Smith.
3429 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3431         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
3432         $hint, show if the executing program does not exist.
3433         (xsystem_hint): New function, like xsystem but allows to pass
3434         a hint.
3435         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
3436         libtoolize.
3437         Report by Bruce Korb.
3439 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
3441         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
3442         tests/mktests.sh, tests/wrapper.as: Fix typos.
3444 2008-03-12  Eric Blake  <ebb9@byu.net>
3446         Fix yesterday's regression in m4_wrap([$1]).
3447         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
3448         text, since it may contain text that looks like parameters.
3449         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
3451 2008-03-11  Eric Blake  <ebb9@byu.net>
3453         Improve error messages for common testsuite bugs.
3454         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
3455         macros for defining order-enforced macros.
3456         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
3457         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
3458         messages when order violations are detected.
3459         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
3460         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
3461         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
3462         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
3463         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
3464         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
3465         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
3466         (Banner-only test suite): New tests.
3467         Reported by Christopher Hulbert.
3469         Tweak m4_wrap to force FIFO or LIFO semantics.
3470         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
3471         (m4_wrap_lifo, _m4_wrap): New macros.
3472         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
3473         order, prior to m4sugar's.
3474         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
3475         m4_wrap.
3476         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
3477         known order, prior to m4sh's.
3478         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
3479         argument.
3480         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
3481         new behavior.
3482         * tests/m4sh.at (AS_INIT cleanup): New test.
3483         * NEWS: Document the change.
3485 2008-03-10  Eric Blake  <ebb9@byu.net>
3487         Encode nested autotest data.
3488         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
3489         (unusual file names): Likewise.
3490         (m4_pattern_allow): Remove loophole, to make it easier to catch
3491         poorly written tests.
3493         Factor some autotest tests.
3494         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
3495         common initialization.
3496         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
3497         (whitespace in absolute testdir, unusual file names): Use it.
3499 2008-03-06  Eric Blake  <ebb9@byu.net>
3501         Minor documentation fix.
3502         * doc/autoconf.texi (Evaluation Macros): Fix typo.
3504 2008-03-04  Eric Blake  <ebb9@byu.net>
3506         Make AT_CHECK act like a simple command.
3507         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
3508         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
3510 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3512         On MinGW, substitution of CR and 0xFF fails.
3513         * tests/torture.at (Substitute and define special characters):
3514         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
3515         wrong thing for CR.
3517 2008-03-04  Eric Blake  <ebb9@byu.net>
3519         Pull in recent maintainer improvements from coreutils.
3520         * GNUmakefile (_is-dist-target): 'make distclean' should not
3521         trigger autoreconf.
3522         (_dummy): Change directories before removing autom4te.cache.
3523         (check dist distcheck install) [!_have-Makefile]: Provide nicer
3524         diagnostics.
3525         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
3526         builds, after initial bootstrap.
3527         * Makefile.am (distclean-local): Work around current automake bug.
3528         * Makefile.maint (ME): Allow VPATH usage.
3530         Use git-merge-changelog when available.
3531         * .gitattributes: New file.
3532         * README-hacking: Document use of git-merge-changelog.
3534         Work around cygwin bug.
3535         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
3536         "touch 't\'" creates regular file 't'.
3538         Ignore tests that require read-only directories under root.
3539         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
3540         no-write portion if user has root-like privileges.
3542 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3544         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
3546 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3548         autoreconf -m now honors $MAKE.
3549         * bin/autoreconf.in ($run_make): Renamed from ...
3550         ($make): ... this.  Use now as command to run `make',
3551         overridden by $MAKE.  Document this in --help output.
3552         * doc/autoconf.texi (autoreconf Invocation): Document
3553         all environment variables honored by autoreconf.
3554         * NEWS: Update.
3555         Report by Paul Eggert.
3557 2008-03-03  Eric Blake  <ebb9@byu.net>
3559         Documentation improvements.
3560         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
3561         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
3562         that preceeds @dots.  Improve wording.
3563         (Text processing Macros): Drop `1' suffix from metasyntax variable
3564         name that preceeds @dots.
3565         (Number processing Macros): Drop `1' suffix from metasyntax
3566         variable name that preceeds @dots.  Improve wording.
3567         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
3568         Suggested by Ralf Wildenhues.
3570 2008-03-02  Jim Meyering  <meyering@redhat.com>
3572         Don't infloop upon "make dist".
3573         * GNUmakefile: Merge from coreutils.
3574         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
3575         not .version.
3576         * configure.ac (AC_INIT): Use .tarball-version, not .version.
3577         * build-aux/git-version-gen: Update from gnulib.
3579 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3581         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3582         Before using /dev/full, check that it is a writable character
3583         special device.
3584         Report by Benoit Sigoure and Eric Blake.
3586         Actually test that @configure_input@ is expanded correctly.
3587         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3588         Actually check generated file contents for the name of the
3589         generated file, using AC_PROG_FGREP and $FGREP.
3591 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
3593         Be nice with file systems that don't handle unusual characters.
3594         * tests/atlocal.in (func_sanitize_file_name)
3595         (func_sanitize_dir_name): New shell functions.
3596         * tests/tools.at (autom4te and whitespace in file names)
3597         (autotools and whitespace in file names): Use them.
3598         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3599         Cover more potentially problemtic file names.  Use the new
3600         functions.
3602         Properly handle funny file names for headers in config.status.
3603         The test suite did not cover this bug because the code was not
3604         quoting properly the arguments of `rm -f' (which "fails" silently)
3605         as well as the arguments of `diff' (whose output was redirected to
3606         /dev/null so we couldn't see its error message).
3607         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
3608         file names passed to `rm' and `diff'.
3609         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3610         Add a regression test.
3612 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
3613         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3615         Properly expand @configure_input@ in config.status.
3616         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
3617         Escape the backslashes and ampersands in $configure_input before
3618         using it in the sed replacement string to expand @configure_input@.
3619         Report by Eric Blake and Patrick Welche.
3621 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3623         Ignore errors from ./run on w32.
3624         * tests/autotest.at (whitespace in absolute testdir):
3625         Ignore stderr for `./run' which fails to remove the
3626         busy test directory on w32.
3628 2008-02-22  Eric Blake  <ebb9@byu.net>
3630         Improve documentation for writing autotest suites.
3631         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
3632         checks must live inside a test group.
3633         Reported by Christopher Hulbert.
3635 2008-02-21  Eric Blake  <ebb9@byu.net>
3637         Sync git-version-gen from upstream.
3638         * build-aux/git-version-gen: Pull from gnulib.
3639         * configure.ac (AC_INIT): Adjust to new calling convention.
3641 2008-02-12  Eric Blake  <ebb9@byu.net>
3643         Avoid trailing space in config.h with AC_DEFINE([var], []).
3644         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
3645         defines with a comment.
3647 2008-02-08  Eric Blake  <ebb9@byu.net>
3649         Fix texinfo typos in previous patch.
3650         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
3651         Reported by Ralf Wildenhues.
3653         Describe a config.site that can be used for FHS compliance.
3654         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
3655         for FHS.
3656         * THANKS: Update.
3657         Reported by Jules Colding and Ralf Wildenhues.
3659 2008-02-02  Eric Blake  <ebb9@byu.net>
3661         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
3663 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3665         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
3666         again, broken since introduction of `-C dir'.
3667         * tests/autotest.at (Choosing where testsuite is run): Test it.
3669 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3671         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
3673 2008-01-29  Eric Blake  <ebb9@byu.net>
3675         Fix more autotest regressions.
3676         * lib/autotest/general.m4 (AT_LINE): Fix regression from
3677         2007-10-04 when file name is `dnl'.
3678         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
3679         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
3680         yesterday in libtool's testsuite.
3681         (_AT_ARG_OPTION): Detect write failure.
3682         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
3683         make libtool's use kosher.  Document m4_init.
3684         (Programming in M4sh): Document AS_INIT.
3685         (Writing Testsuites): Document limitation of AT_DATA file name.
3686         * tests/autotest.at (unusual file names): New test.
3687         (Banners, Keywords and ranges): Use correct shell.
3689         More corner cases in testsuite VAR=VALUE handling.
3690         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
3691         bug.
3692         <PARSE_ARGS_END>: Also detect leading digits in assignments.
3693         * tests/autotest.at (Using atlocal): Enhance test to catch last
3694         bug.
3696         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
3697         bug.
3699 2008-01-28  Eric Blake  <ebb9@byu.net>
3701         Fix regression in handling VAR=VALUE arguments to testsuite.
3702         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
3703         leading = as invalid.  Defer use of command-line variable
3704         assignments...
3705         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
3706         regression in sourcing files.
3707         * tests/autotest.at (Using atlocal): New test to catch this.
3708         (Debugging a successful test, Choosing where testsuite is run):
3709         Use correct shell.
3710         Reported by Ralf Wildenhues.
3712         Document grep peculiarity.
3713         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
3714         BSD behavior on binary input.
3716         Minor testsuite improvements.
3717         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
3718         forks when sanitizing PATH.  Always output machine information,
3719         not just when atconfig was located.
3721         Add 'testsuite -C dir'.
3722         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
3723         detection...
3724         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
3725         argument.
3726         <DEFAULTS>: Delay computation of variables based on $at_dir...
3727         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
3728         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
3729         <PARSE_ARGS>: Parse new option.
3730         <HELP_TUNING>: Document it.
3731         * tests/autotest.at (Choosing where testsuite is run): New test
3732         for this feature.
3733         (Keywords and ranges): Add test for missing -k argument.
3734         * NEWS: Document this.
3735         * doc/autoconf.texi (testsuite Invocation): Likewise.
3737 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3739         * build-aux/config.guess, build-aux/config.sub,
3740         build-aux/texinfo.tex: Sync from gnulib.
3741         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
3742         Likewise.
3744 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3746         * doc/autoconf.texi (Particular Programs): Do not mention the
3747         Autoconf version in which the AC_PROG_INSTALL change was done.
3748         Suggested by Paul Eggert.
3750 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3752         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
3753         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
3754         mode, we change to the source directory, also set $ac_pwd so we
3755         do not go back to the build tree for the next config subdir.
3756         * tests/torture.at (Deep Package): Extend test to contain two
3757         config subdirs on the top level.
3759         Fix parallel `maintainer-check'.
3760         * Makefile.am (maintainer-check-tests): Depend on `all'.
3761         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
3762         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
3763         Likewise.
3764         (maintainer-check): Serialize the testsuite runs.
3766         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
3767         in feature string for --enable/--with.  Convert to underscore
3768         for variable name.
3770         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
3771         `install -c file1 file2 dir' works.
3772         * doc/autoconf.texi (Particular Programs): Document this.
3773         * NEWS: Update.
3775 2008-01-21  Eric Blake  <ebb9@byu.net>
3777         Improve documentation about default include directives.
3778         * doc/autoconf.texi (Generic Headers, Generic Declarations)
3779         (Generic Structures, Generic Types)
3780         (Generic Compiler Characteristics): Add links to
3781         AC_INCLUDES_DEFAULT.
3782         Reported by Reuben Thomas.
3784 2008-01-15  Eric Blake  <ebb9@byu.net>
3786         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
3788 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3790         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
3791         check_SCRIPTS.  Building the wrappers for `all' allows help2man
3792         to use them for the manpages.
3793         Report by Benoit Sigoure.
3795         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
3797 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3799         Fix some write failure cases in Autotest.
3800         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
3801         upon write failures for --help, --version, --list.
3802         Guard against write failures for intermediate created scripts.
3803         <at_func_create_debugging_script>: Do not make the debugging
3804         script executable if it is not complete.
3806 2007-12-12  Eric Blake  <ebb9@byu.net>
3808         Fix thinko in earlier patch - m4_join isn't defined yet.
3809         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
3810         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
3811         (m4_require): Use m4_do, not m4_join.
3813         Fix some whitespace tests on cygwin.
3814         * tests/tools.at (autom4te and whitespace in file names): Restore
3815         font-lock.  Create $TMPDIR before it might be used.
3817         Fix spurious testsuite failure with M4 1.4.11.
3818         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
3820         Optimize AC_REQUIRE.
3821         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
3822         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
3823         (m4_require): Avoid extra macro calls.
3825 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3827         * tests/torture.at (srcdir): Fix quoting.
3829         Do not pass top_srcdir to configure scripts in testsuite.
3830         * tests/autotest.at (srcdir propagation): Copy install-sh to
3831         source tree.
3832         (my only test): Drop setting of `top_srcdir'.
3833         * tests/base.at (Input/Output): Likewise.
3834         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
3835         config.guess, and config.sub to test source tree.
3836         Drop AC_CONFIG_AUX_DIR setting.
3837         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
3838         * tests/torture.at (Substitute a 2000-byte string): Drop
3839         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
3840         (Substitute a newline, datarootdir workaround): Likewise.
3841         (Define a newline): Adjust for linenumber changes in configure.ac.
3842         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
3844         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
3845         if `pwd` contains whitespace.
3847         Quote $abs_top_srcdir in tests.
3848         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
3849         * tests/tools.at (Syntax of the shell scripts): Likewise.
3851         * tests/m4sh.at (LINENO): Quote $0.
3853         Fix testsuite program wrapper for whitespace in `pwd`.
3854         The problem here is that the usual mantra is that command
3855         variables can contain arguments, thus we cannot just escape
3856         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
3857         $top_builddir/tests directory early in $PATH, so that the
3858         wrappers are found by their plain name.
3859         * tests/wrapper.as: Put $testdir early in $PATH.
3860         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
3862         Proper config.status --file/--header and $srcdir escaping.
3863         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
3864         characters in $ac_file_inputs.
3865         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
3866         accordingly.
3867         * tests/torture.at (datarootdir workaround): Adjust.
3868         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
3870         Fix Autotest for whitespace in `pwd`.
3871         * lib/autotest/general.m4 (AT_INIT)
3872         <at_func_create_debugging_script, Driver Loop>:
3873         Quote $at_group_dir.
3874         * tests/autotest.at (whitespace in absolute testdir): New test.
3876         * lib/autom4te.in: Quote @datadir@.
3878         Proper file name escaping in Autoconf programs and Perl modules.
3879         This includes escaping of characters special to the shell
3880         as well as special to Perl, e.g., leading `<' or `>'.
3881         For example, when $file starts with `>', `open ">$file"'
3882         wrongly tries to append to a different file.
3883         * bin/autoconf.as: Fix quoting for autom4te options.
3884         * lib/Autom4te/General.pm (shell_quote): New function, taken
3885         from coreutils, written by Jim Meyering.
3886         (mktmpdir): Use it.
3887         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
3888         and open_quote.
3889         * bin/autoreconf.in (parse_args): Likewise.
3890         * bin/autoscan.in (main): Likewise.
3891         * bin/autoupdate.in (main): Likewise.
3892         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
3893         * bin/ifnames.in: Likewise, XFile usage fixes.
3894         * tests/tools.at (autom4te and whitespace in file names): Extend
3895         test.  Test twice, with special characters allowed on w32, and the
3896         rest.  Test leading and trailing whitespace, for `open_quote'.
3897         (autotools and whitespace in file names): New, analogous test.
3898         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
3899         by Russ Allbery and Eric Blake.
3901         Sync from Automake.
3902         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
3903         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
3904         * lib/Autom4te/FileUtils.pm (open_quote): New function.
3905         (update_file, contents): Use it.
3907         * Makefile.am (autom4te-update): Rewrite for git.
3909 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3911         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
3913         Fix copyright years.
3914         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
3915         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
3917 2007-12-04  Eric Blake  <ebb9@byu.net>
3919         Manually resync with gnulib, since 'make cvs-update' no longer works.
3920         * build-aux/config.guess: New upstream version.
3921         * build-aux/config.sub: Likewise.
3923         When using older automake, don't downgrade build-aux/texinfo.tex.
3924         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
3925         * doc/Makefile.am (TEXINFO_TEX): Add.
3927 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
3929         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
3930         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
3931         #undef as this runs afoul of our new way of creating config.h.
3932         Problem reported by Jim Meyering in
3933         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
3935 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3937         Fix autom4te for unusual characters in input file names.
3938         * bin/autom4te.in (files_to_options): Quote active characters
3939         for the shell.
3940         * tests/tools.at (autom4te and white space in file names):
3941         New test.
3943         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
3944         Document that Tru64 awk always splits $0.
3946 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
3948         * lib/autotest/general.m4 (AT_INIT): Do not extract the
3949         `#AT_STOP_...' line at the end of each test.
3951 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3953         * lib/autotest/general.m4 (AT_INIT): For awk line number
3954         extraction script, ensure `$at_group' has a defined value
3955         even for the empty set, and properly quote its usage inside
3956         the awk script.
3958 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3960         * doc/autoconf.texi (Shell Functions): New chapter.  Document
3961         IRIX sh $0 issue in functions, move content from ...
3962         (Portable Shell): ... here.
3963         (Shell Script Compiler): Note that shell functions are not
3964         totally unportable any more.
3966 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
3967         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3969         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
3970         extracting the line numbers of the last needed test.
3972 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3974         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
3975         Fix quoting.
3977 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3979         Fix IRIX testsuite debugging failures: $0 in functions.
3980         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
3981         Do not use $0 inside a function, as IRIX sh will set that to the
3982         function name rather than the script invocation name.
3984 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
3985         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3987         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
3988         to extract test scripts.
3989         (AT_INIT): Extract and cache test script line numbers.
3991 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3993         * lib/autotest/general.m4: Revert 2007-11-15 patch and
3994         subsequent fixups; the awk -> here-document conversion trashes
3995         performance too much with AIX sh.
3997 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3999         * tests/local.at: Do not test m4, perl with AT_TESTED.
4001         Diagnose and guard against write errors dealing with config.status.
4002         The general idea is this: all write failures from `configure'
4003         writing `config.status' are indicated by $ac_write_error, which
4004         is only checked at the end.  This is safe because config.status
4005         code is not executed before the file is complete.  Other write
4006         failures, be they inside config.status, or in sub shell/awk
4007         scripts spawned from configure or config.status, typically need
4008         earlier checking, as their results are used right afterwards.
4009         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
4010         before writing config.status, check afterwards.
4011         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
4012         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
4013         Set `ac_write_error' for write failures to config.status.  Barf
4014         upon write failures to temporary files.
4015         Adjust note about closing and reopening the here-document.
4016         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
4017         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
4018         reopening the here-document.
4019         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4020         Ensure `ac_write_error' does not escape into config.status.
4021         Also, add a couple of code paths not yet exercised in the test
4022         suite: a config file with input from stdin, and a config header
4023         output to stdout.
4024         Suggestion for catching write errors by Bruno Haible.
4026 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4028         Avoid error with Tru64 awk and testsuite lines with many words.
4029         * lib/autotest/general.m4 (AT_INIT): In the awk script that
4030         reads the testsuite, set the field separator to an unusual value,
4031         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
4032         even splits the input if $i, i>0, was never accessed in the script.
4034         Revert 2007-10-17 change.
4035         * TODO: Multiline args in config files and headers mean something
4036         different and are not fixed, see
4037         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
4038         Report by Stepan Kasal.
4040         * doc/autoconf.texi (Generic Programs): Fix typo.
4042 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
4044         AC_*_TOOL does not canonicalize the prefix
4045         * doc/autoconf.texi (Generic Programs): Do not say that
4046         the *_TOOL macros canonicalize, they simply use the `host_alias'.
4048 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4050         Diagnose write errors in config.status instantiations.
4051         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
4052         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
4053         on write errors.
4054         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4055         Extend test to also check for some write error failures, using...
4056         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
4057         Report by Bruno Haible.
4059         Indentation fixups.
4060         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
4061         indentation.
4062         (_AT_CHECK): Use less indentation, to save space.
4064 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4066         Add witness macro for @top_build_prefix@ substitution.
4067         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
4068         (_AC_OUTPUT_FILE): Mention it here.
4070 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
4071         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4073         * lib/autotest/general.m4 (at_func_test): Remove.
4074         (AT_INIT): Pre-extract test groups into separate files.
4075         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
4076         Remove at-test-source files together with the $at_group_dir.
4077         * tests/autotest.at (Long test source lines): New test.
4079 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4081         Shell functions and variables may share a namespace.
4082         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
4083         limitation.
4085 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
4087         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
4088         gnulib.
4090 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4092         * lib/autoconf/status.m4: Fix a couple of comment typos.
4094         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
4096 2007-11-13  Jim Meyering  <meyering@redhat.com>
4098         Clean up the rule to create "expr".
4099         * tests/Makefile.am (expr): Don't redirect directly to target.
4100         Redirect just once, not for each echo statement.
4101         Use $@, not literal "expr".
4103 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
4105         Don't worry about preprocessor when testing long long.
4106         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
4107         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
4108         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
4109         These no longer check for preprocessor flaws.
4110         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
4111         Do not check for preprocessor flaws.
4113 2007-11-13  Jim Meyering  <meyering@redhat.com>
4115         Adapt dependencies, now that a version change doesn't modify configure.ac
4116         * GNUmakefile: Remove "make clean" kludge.
4117         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
4118         configure.ac.
4119         Don't redirect directly to target.
4120         Use $@, not literal "version.m4".
4122 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4124         * doc/autoconf.texi (Making testsuite Scripts): Document
4125         ":;{" shorthand as in previous patch.
4127 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4129         * doc/autoconf.texi (Limitations of Builtins): Document problem
4130         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
4131         for the workaround.
4132         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
4133         Use ":;{" shorthand.
4134         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
4136 2007-11-12  Jim Meyering  <meyering@redhat.com>
4138         Add more non-srcdir build support.
4139         * GNUmakefile (dummy): Split a long line.
4140         Add -v option to autoreconf invocation.
4142         Remove the autoreconf-provided INSTALL, so that we regenerate it.
4143         * GNUmakefile (dummy): Remove INSTALL.
4145         Remove racy commands to build scripts in bin/ and tests/.
4146         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
4147         are guaranteed to be built, remove the rules that tried to build
4148         them.  Before, with a parallel build, these rules could lead to
4149         two processes writing tests/wrapper.in concurrently.
4151         Build in man/ only *after* building in bin/ and tests/.
4152         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
4153         in both bin/ and tests/.
4155         Accommodate non-srcdir build-from-checkout.
4156         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
4157         Use git's --git-dir=$srcdir/.git option.
4158         Add quotes, in case tarball_version_file contains shell meta-characters.
4159         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
4160         * configure.ac: Pass "." to git-version-gen.
4162         Avoid spurious test failures due to version skew.
4163         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
4165 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4167         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
4168         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
4169         Remove conftest.dSYM directory.
4170         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
4171         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
4172         Remove `conftest.*' recursively.
4173         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
4174         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4175         Likewise.
4176         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
4177         * THANKS: Update.
4178         Report and analysis by Jeff Squyres and Peter O'Gorman.
4180 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
4182         Fix typos in variable names.
4183         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
4185 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
4187         Document that $((expression)) is not portable.
4188         * doc/autoconf.texi (Shell Substitutions): Here.
4190 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4192         Ignore configure --help* errors due to LINENO-impaired shells.
4193         * tests/torture.at (Configuring subdirectories, Deep Package):
4194         In the --help* tests in read-only trees, make `.' temporarily
4195         writable again for the `stderr' file, and ignore errors due to
4196         the attempt to write configure.lineno.
4197         Report by Patrick Welche.
4199 2007-11-10  Jim Meyering  <meyering@redhat.com>
4201         Generate package.m4 in build-dir, not srcdir.
4202         * tests/Makefile.am (package.m4): Adjust target.
4203         Don't redirect directly to $@.
4204         (CLEANFILES): Add package.m4.
4205         ($(TESTSUITE)): Depend on just-built package.m4, not the one
4206         in $(srcdir).
4207         When running $(AUTOTEST), search "." before searching $(srcdir).
4209         Avoid a race condition that would make parallel "distclean" fail.
4210         * tests/Makefile.am (distclean-generic): Replace the default,
4211         automake-provided rule with an identical one, but with an additional
4212         dependency on distclean-local.  Simply adding the dependency would
4213         cause automake not to emit the rule at all.
4214         * BUGS: Building with -jN works, now.
4216         Distribute git-version-gen.
4217         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
4218         since GNUmakefile is distributed, and requires it for dist* rules.
4220         Remove two more generated files from version control.
4221         * INSTALL: Remove generated file.
4222         * lib/autoscan/autoscan.list: Remove generated file.
4224 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4226         * GNUmakefile (PATH): Remove stray apostrophes; they become
4227         part of PATH, which isn't wanted here.
4229 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4231         New config files output variable `top_build_prefix'.
4232         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
4233         `top_build_prefix'.
4234         * doc/autoconf.texi (Preset Output Variables): Document it.
4235         * NEWS: Update.
4236         Report by Bob Friesenhahn.
4238         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
4239         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
4240         function, to parametrize arithmetic with expr vs. the shell.
4241         Use it where possible.
4242         Suggestion by Benoit Sigoure.
4244 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
4246         Adjust the documentation of autotest WRT atlocal.
4247         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
4248         when using Automake, to write a rule to produce atlocal, since it's
4249         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
4250         distributed, not atconfig.in.
4252 2007-11-04  Eric Blake  <ebb9@byu.net>
4254         Update list information.
4255         * README: Mention new autoconf-commit list.
4256         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
4258 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4260         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
4262         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
4264         * build-aux/.gitignore: Ignore mkinstalldirs.
4266         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
4268 2007-11-03  Jim Meyering  <meyering@redhat.com>
4270         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
4271         * build-aux/git-version-gen: This syncs from coreutils.
4273         Adjust the build procedure so "make check" works reliably.
4274         * README-hacking: Include an extra step between "make" and
4275         "make check" to ensure that the latter passes.
4277         Use just-built tools, when possible.
4278         * GNUmakefile (PATH): Set and export here, ...
4279         (dummy): ... rather than here.
4281 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4282         and Andreas Schwab  <schwab@suse.de>
4284         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
4285         exit status bug.
4287 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4289         * configure.ac (AC_PREREQ): Require version 2.60, for
4290         AC_PROG_SED, AC_PROG_GREP.
4292 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
4293         and Jim Meyering  <meyering@redhat.com>
4294         and Andreas Schwab <schwab@suse.de>
4295         and Eric Blake  <ebb9@byu.net>
4297         Document a bug in GNU Bash with compound commands and redirections.
4298         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
4299         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
4300         workaround.
4302 2007-11-03  Eric Blake  <ebb9@byu.net>
4304         Support m4 1.4.5 in testsuite.
4305         * tests/torture.at (Define a newline): Exclude line numbers in
4306         error message.
4307         Reported by Ralf Wildenhues.
4309 2007-11-03  Jim Meyering  <meyering@redhat.com>
4311         Remove automake-provided files from version control.
4312         * build-aux/elisp-comp: Remove file.
4313         * build-aux/install-sh: Remove file.
4314         * build-aux/missing: Remove file.
4315         * build-aux/mdate-sh: Remove file.
4316         * build-aux/.gitignore: New file.
4317         Suggestion from Ralf Wildenhues.
4319 2007-11-03  Eric Blake  <ebb9@byu.net>
4321         Adjust version comparison to account for git snapshot numbers.
4322         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
4323         component separator.
4324         * doc/autoconf.texi (Number processing Macros)
4325         <m4_version_compare>: Document this change.
4326         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
4328 2007-10-30  Bruno Haible  <bruno@clisp.org>
4330         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
4331         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4332         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
4333         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
4334         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
4335         Suggested by Paul Eggert.
4337 2007-10-28  Jim Meyering  <meyering@redhat.com>
4339         * README-hacking: Autoconf, Automake, and Perl are required to build.
4340         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
4342 2007-10-28  Jim Meyering  <meyering@redhat.com>
4344         README-hacking: Recommend running autoreconf -vi.
4345         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
4346         so that we use just-built tools when they're available.
4347         Suggestions from Ralf Wildenhues.
4349 2007-10-28  Jim Meyering  <meyering@redhat.com>
4351         Make inter-release --version output more useful.
4353         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
4354         which indicates that it is built using the 19th change set
4355         (in _some_ repository) following the "v2.61a" tag, and that 58dd
4356         is a prefix of the commit SHA1.
4357         * build-aux/git-version-gen: New file.
4358         * configure.ac: Run it to set the version.
4359         (AM_INIT_AUTOMAKE): Don't check NEWS here.
4360         * Makefile.am (dist-hook): Arrange so that .version appears only
4361         in distribution tarballs, never in a checked-out repository.
4362         * .gitignore: Add .version here, too.  Just in case.
4363         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
4364         not configure.ac, now that the version number changes automatically.
4366         Ensure that $(VERSION) is up to date for dist-related targets.
4367         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
4368         git-version-gen doesn't match $(VERSION), but only for dist targets.
4370 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4372         Fix `Deep Package' failure with a configure script early in PATH
4373         * tests/torture.at (Deep Package): Add `.' early in PATH.
4374         Report by Jim Meyering.
4376 2007-10-27  Jim Meyering  <meyering@redhat.com>
4378         Remove all generated files from version control.
4379         * aclocal.m4: Remove.
4380         * configure: Remove.
4381         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
4382         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
4383         * README-hacking: New file: how to build from just-checked-out sources.
4385 2007-10-23  Eric Blake  <ebb9@byu.net>
4387         Improve corner case of m4_expand.
4388         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
4389         efficiently.
4390         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
4391         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
4392         documentation.
4394 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4396         * doc/make-stds.texi: Update from gnulib.
4398 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4399         and Eric Blake  <ebb9@byu.net>
4401         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
4402         problem reported by Bruno Haible in
4403         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
4405 2007-10-22  Eric Blake  <ebb9@byu.net>
4407         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
4408         preprocessor.
4410 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4412         Don't check for bug in HP-UX 11.00 cpp.
4413         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4414         Use -1ull rather than -1u, since that causes problems with gnulib; see
4415         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4417 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4419         * tests/autotest.at (Backquote command substitution)
4420         (Multiline backquote command substitution)
4421         (Parenthetical command substitution)
4422         (Multiline parenthetical command substitution): Fix typos in
4423         test names.
4425 2007-10-21  Eric Blake  <ebb9@byu.net>
4427         * configure: Regenerate.
4429 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4431         Fix config status generation with Tru64 ksh.
4432         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
4433         escaping of backslash in here-documents.
4435         Fix `Deep Package' test failure on FreeBSD.
4436         * tests/torture.at (Deep Package): Do not add `.' to $PATH
4437         unnecessarily.  Do not try running `/bin/sh configure' with a
4438         configure script to be found in $PATH, if the shell does not do
4439         this resolution.  Fixes test failure on FreeBSD.
4441         Fix config header generation with AIX awk.
4442         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
4443         script, use helper array D_is_set, as `" 0"' does not evaluate
4444         to true for AIX awk.
4446 2007-10-21  Eric Blake  <ebb9@byu.net>
4448         * tests/autotest.at (Banners): Reinstate test, with typo
4449         corrected.
4451 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4453         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
4454         <at_func_validate_ranges>: ... using this new function.
4455         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
4456         Test --list with ranges and keywords.
4457         (Banners): Remove one now-failing test.
4459 2007-10-20  Eric Blake  <ebb9@byu.net>
4461         Fix testsuite --list subset.
4462         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
4463         back to spaces, before listing subset of tests.
4464         Reported by Ralf Wildenhues.
4466 2007-10-19  Eric Blake  <ebb9@byu.net>
4468         s/parenthesis/parentheses/ where appropriate.
4469         * doc/autoconf.texi: Fix typos.
4470         * lib/m4sugar/m4sugar.m4: Likewise.
4471         Reported by Ralf Wildenhues.
4473         Document m4_expand limitation.
4474         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
4475         unbalanced parse.
4476         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
4477         (Writing Testsuites): Mention limitations inherited from
4478         m4_expand.
4480         Improve AT_BANNER handling.
4481         * lib/autotest/general.m4 (BANNERS): New named diversion.
4482         (TESTS_END): Diversion no longer used.
4483         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
4484         shell function, which prints only as needed, using an associative
4485         array of banner text from a special diversion.
4486         <PARSE_ARGS_END>: No longer need awk to find banners.
4487         <TESTS>: Banners are no longer processed by main driver loop, so
4488         we no longer need case statement.
4489         (AT_BANNER): Rewrite to populate new diversion.
4490         (AT_SETUP): Each test invokes its own banner.  No output is needed
4491         to the TESTS diversion.
4492         * doc/autoconf.texi (Writing Testsuites): Document slight
4493         semantics change.
4494         * tests/autotest.at (AT_BANNERS): Enhance test.
4495         * NEWS: Document AT_BANNER.
4497         Document and test AT_BANNER.
4498         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
4499         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
4500         (AT_CHECK_BANNERS): New test.
4502         Doc touchups.
4503         * doc/autoconf.texi (Text processing Macros) <m4_strip>
4504         <m4_text_wrap>: Clarify and fix typos.
4506 2007-10-18  Eric Blake  <ebb9@byu.net>
4508         Ignore `make dist' changelogs in testsuite.log.
4509         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
4510         directories matching AT_PACKAGE_TARNAME-*.
4512         Fix AT_TESTED, AT_KEYWORDS.
4513         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
4514         occurs in string, as duplicates may be added.
4515         (_m4_append_uniq): New helper macro.
4516         (m4_append_uniq_w): New macro.
4517         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
4518         duplication bug by using new macro.
4519         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
4520         programs with stdin redirected, so programs that don't
4521         understand --version won't try to behave interactively.
4522         * tests/autotest.at (Tested programs): Catch this bug.
4523         * tests/m4sugar.at (m4@&t@_append): Test new macro.
4524         * tests/local.at (AT_TESTED): Add m4, perl.
4525         * doc/autoconf.texi (Text processing Macros): Document
4526         m4_append_uniq_w, and update text on m4_append.
4527         * NEWS: Document the addition.
4529 2007-10-17  Eric Blake  <ebb9@byu.net>
4531         Function cleanup.
4532         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
4533         from m4 macro...
4534         (AT_INIT) <at_func_create_debugging_script>: ...to shell
4535         function.
4536         (AT_INIT): Defer function declarations until after --help,
4537         --version.  Format functions consistently, trying to fit in 80
4538         columns.
4539         (TEST_FUNCTIONS): Based on recent changes, rename...
4540         (TEST_GROUPS): ...to this.
4542         Reject FreeBSD m4.
4543         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
4544         * configure: Regenerate.
4545         Reported by Bob Friesenhahn.
4547         Test recent additions.
4548         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
4549         (m4@&t_max and m4@&t_min): New tests.
4550         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
4551         description.
4553 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4555         * TODO: multiline args in config files and headers work now.
4557         Autotest: do not use shell functions for individual tests.
4558         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
4559         extract the source test source, do not invoke it.
4560         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
4561         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
4562         expect exit status of 1.
4563         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
4565         * lib/autotest/general.m4 (at_func_test): Fix test extraction
4566         script.
4568 2007-10-17  Eric Blake  <ebb9@byu.net>
4570         Fix m4_combine for empty suffix list.
4571         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
4572         * doc/autoconf.texi (Text processing Macros): Document this.
4574         Add m4_combine, based on Libtool's lt_combine.
4575         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
4576         * doc/autoconf.texi (Text processing Macros): Document it.
4577         * NEWS: Likewise.
4579 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4581         Fix `configure --help=recursive' in unconfigured/read-only trees.
4582         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
4583         is not writable, use 'cp -p' in this case, in the hope that it
4584         will not actually be needed.  Still try removing files, in case
4585         of other write errors.
4586         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
4587         use $as_myself, not $0.
4588         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
4589         exist, try again in the the source tree.  This change assumes
4590         that the subpackage configure script is capable of running
4591         --help=recursive in the source tree.
4592         * tests/torture.at (Configuring subdirectories, Deep Package):
4593         Adjust tests to expose both issues, also try invocation as
4594         `sh configure ...' and plain `configure ...' with PATH adjusted.
4595         * NEWS, THANKS: Update.
4596         Report by Hans Ulrich Niedermann.
4598 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4600         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4601         Problem reported by H.Merijn Brand in
4602         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4603         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
4604         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4605         Check that preprocessor handles 64-bit ints, too.
4607 2007-10-16  Eric Blake  <ebb9@byu.net>
4609         m4_map is a looping construct.
4610         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
4612         Fix m4_map, and add some more utility macros.
4613         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
4614         (m4_echo, m4_make_list): New documented macros.
4615         (_m4_quote, _m4_shift2): New helper macros.
4616         (m4_map): Change semantics to allow calling macro without
4617         arguments.
4618         (m4_map_sep): Likewise.  Also change semantics to quote separator,
4619         to match m4_join and m4_append.
4620         (m4_version_unletter): Fix use of m4_map.
4621         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
4622         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
4623         (Text processing Macros): Mention m4_dquote as a faster
4624         alternative to joining with commas.
4625         (Looping constructs): Document m4_map, m4_map_sep.
4626         * NEWS: Mention new macros.
4628         A few more m4sugar improvements, to benefit libtool.
4629         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
4630         of expansion by avoiding extra uses of $@.
4631         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
4632         (_m4_cdr): New helper macro.
4633         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
4634         (_m4_shift3): New helper macro.
4635         (_m4_foreach): Swap argument order, and use new macro to reduce
4636         size of expansion.
4637         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
4638         count must be positive.
4640         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
4641         Reported by Ralf Wildenhues.
4643 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4645         * doc/autoconf.texi (Portable Shell): Improve description of zsh
4646         4.x function subshell bug with exit and trap.
4648 2007-10-15  Eric Blake  <ebb9@byu.net>
4650         Enhance AS_HELP_STRING.
4651         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
4652         and reduce number of expansions.
4653         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
4654         and to take indent and wrap column numbers.
4655         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
4656         * doc/autoconf.texi (Pretty Help Strings): Document details about
4657         arguments.
4658         (Text processing Macros): Minor tweaks.
4659         * NEWS: Document this change.
4661         Fix 2007-10-03 regression with AT_SETUP([a, b]).
4662         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
4663         (m4_text_box): Use it.
4664         * lib/autotest/general.m4 (AT_SETUP): Use it.
4665         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
4666         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
4667         * NEWS: Revert caveat about semantics change on comma.
4668         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
4670 2007-10-13  Eric Blake  <ebb9@byu.net>
4672         Change m4_join to match libtool's ltsugar semantics.
4673         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
4674         Ignore empty arguments, using...
4675         (_m4_join): ...this new helper.
4676         * tests/m4sugar.at (m4@&t@_join): New test.
4677         * doc/autoconf.texi (Text processing Macros): Document new
4678         semantics of m4_join.
4680         Make AC_PREREQ faster and more robust.
4681         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
4682         (m4_version_prereq): Inline constant expansions.
4683         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
4684         Rewrite in terms of [] list, not () list.
4685         (_m4_list_cmp, _m4_version_unletter): New helper macros.
4686         (m4_version_unletter): Write wrapper around new implementation to
4687         preserve old semantics.
4688         (m4_version_compare): Pass correct type of list, and avoid
4689         overhead of flattening expressions too early.
4690         (m4_do): Move to be near other quoting macros.
4691         (m4_max, m4_min): Always result in decimal output.
4692         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
4693         Move m4_do...
4694         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
4695         (Text processing Macros): Move m4_version_compare...
4696         (Number processing Macros): ...to this new node; document m4_cmp,
4697         m4_list_cmp, m4_sign, m4_max, m4_min.
4698         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
4699         up on bugs fixed by this patch.
4700         * NEWS: Document new macros.
4702 2007-10-12  Eric Blake  <ebb9@byu.net>
4704         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
4705         (Reporting Messages): Fix underfull hbox.
4707         Some more m4sugar documentation.
4708         * lib/m4sugar/m4sugar.m4: Clean up macro order.
4709         * doc/autoconf.texi (Programming in M4): Lighten the warning on
4710         using m4sugar; it is stabilizing and useful.
4711         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
4712         m4_divert, m4_undivert, __file__, __line__, __oline__.
4713         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
4714         m4_fatal, m4_location, m4_warn.
4715         (Diversion support): New node, documenting m4_divert_push,
4716         m4_divert_pop, m4_divert_text, m4_divert_once.
4717         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
4718         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
4719         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
4720         as obsolescent.
4721         (Printing Messages): Change cross-reference.
4723         Document interaction of recent m4_append change with Libtool HEAD.
4724         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
4725         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
4726         * tests/m4sugar.at (m4@&t@_append): New test.
4727         * NEWS: Document semantics change.
4728         * doc/autoconf.texi (Text processing Macros): Likewise.
4730         s/AC_VERSION/AC_AUTOCONF_VERSION/.
4731         * doc/autoconf.texi (Versioning): Change the name.
4732         * NEWS: Likewise.
4733         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
4734         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
4735         Suggested by Ralf Wildenhues.
4737         Namespace cleanup.
4738         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
4739         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
4740         autoconf namespace.
4741         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
4742         (Programming in M4sh, Macro Names): Beef up description of
4743         namespaces reserved for autoconf.
4744         * configure: Regenerate.
4746 2007-10-12  Eric Blake  <ebb9@byu.net>
4747         and Paolo Bonzini  <bonzini@gnu.org>
4749         Speed up execution of subset of testsuite.
4750         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
4751         (AT_INIT) <at_func_test>: New shell function.
4752         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
4753         (AT_INIT) <at_test_source> New variable, names file that holds
4754         current test function definition.
4755         (AT_SETUP): Start the shell function at_func_test_#, into the
4756         TEST_FUNCTIONS diversion.
4757         (AT_CLEANUP): End the shell function.  Simplify the TESTS
4758         diversion to invoke the function.
4760 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4762         * .gitignore: Ignore tags and TAGS files.
4764 2007-10-11  Eric Blake  <ebb9@byu.net>
4766         Config header generation followup.
4767         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
4768         which won't work with the preprocessor nor with the awk
4769         implementation.
4770         * tests/torture.at (Define a newline): Test raw newline detection,
4771         removing the XFAIL.
4772         * doc/autoconf.texi (Defining Symbols): Document recent change to
4773         allow backslash-newline.
4774         * THANKS: Update.
4776 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4778         * lib/autotest/general.m4: Put function braces in separate line.
4780 2007-10-10  Eric Blake  <ebb9@byu.net>
4782         Avoid some overhead from m4_defn and m4_popdef.
4783         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
4784         pass on first argument, since we are documented that way.
4785         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
4786         check where it is safe to do so.
4787         (m4_append): Likewise, and quote the separator.
4788         (m4_text_box): Likewise, and avoid regex, also be robust to
4789         expansion and quadrigraphs.
4791         Another AC_DEFINE speedup.
4792         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
4793         elision...
4794         (_AC_DEFINE_Q): ...here, and only do it once.
4795         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
4796         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
4797         introduced 2007-10-05.
4799         Whitespace cleanup.
4800         * lib/autoconf/general.m4: Use consistent indentation.
4801         * configure: Regenerate.
4803         * NEWS: Announce recent round of speed optimizations.
4805 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4807         * NEWS: Announce shell function usage in Autotest.
4809 2007-10-10  Eric Blake  <ebb9@byu.net>
4810         and Paul Eggert  <eggert@cs.ucla.edu>
4812         Reduce number of forks at startup.
4813         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
4814         sanitization.
4815         * configure: Regenerate.
4817 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4818         and Paul Eggert  <eggert@cs.ucla.edu>
4820         Use awk for config header generation.
4821         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
4822         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
4823         header machinery for use with awk and placement outside the main
4824         config.status instantiation loop.  Retain multi-line defines
4825         through backslash-newline combinations, do not split the script
4826         any more.
4827         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
4828         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
4829         needed.
4830         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
4831         from define values.
4832         * NEWS: Update.
4833         * tests/torture.at (#define header templates): Extend test by
4834         several more cases: white space before and after `#', macros
4835         with parameters in config.hin and as defines, multi-line macro
4836         values.
4837         (Torturing config.status): Use a define value twice the length
4838         in order to exercise the awk literal string limit.
4839         (Substitute and define special characters): Also try special
4840         delimiter, to exercise the special-case code.
4841         Suggestion by Eric Lemings.
4843 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4845         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
4847 2007-10-09  Eric Blake  <ebb9@byu.net>
4849         Improve header of bin/autoconf.
4850         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
4851         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
4852         from M4sh.
4853         * bin/autoconf.as: Put copyright up front in generated file.
4855         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
4857 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4859         * doc/install.texi (Basic Installation): Document `uninstall'.
4860         * INSTALL: Regenerate.
4861         Suggestion by Roberto Bagnara.
4863 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4865         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
4867         Adjust doc. to match latest gnulib.
4868         * build-aux/texinfo.tex: Sync from gnulib.
4869         * doc/standards.texi: Likewise.
4870         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
4871         Documentation License" and remove the subsection.  This simplifies
4872         the manual a bit and is more like what other GNU projects do
4873         nowadays.
4875 2007-10-08  Eric Blake  <ebb9@byu.net>
4877         Use recent changes.
4878         * configure: Regenerate.
4880         Fix regression in m4_text_wrap from 2007-10-05.
4881         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
4882         (m4_sign): Sort.
4883         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
4884         m4_format.
4885         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
4886         * tests/autotest.at (Long test title, Longer test title): Test
4887         this fix, beyond what AS_HELP_STRING already tests.
4889         Avoid m4 warnings on bad m4_format usage.
4890         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
4891         evaulates to 0.
4892         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
4893         enough arguments are provided.
4895 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
4897         * doc/autoconf.texi (Shell portability): Document shell function
4898         portability.
4900 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
4902         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
4903         at_func_check_skip, at_func_check_status, at_func_filter_trace,
4904         at_func_log_failure shell functions.  Use test -s to avoid
4905         useless diff invocations.
4906         (at_func_check_newline): Renamed from at_check_newline.
4907         (AT_SETUP): Define AT_captured_files to empty.
4908         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
4909         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
4910         the shell functions.
4912 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4914         Don't assume "." is writeable, for commands like "autoconf --version".
4915         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
4916         different heuristic instead, one that doesn't rely on creating
4917         files.
4919         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
4920         correctly.
4922 2007-10-05  Jim Meyering  <meyering@redhat.com>
4924         Avoid makeinfo warnings.
4925         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
4926         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
4928 2007-10-05  Eric Blake  <ebb9@byu.net>
4930         Resolve Python issue 1676135 regarding configure directory args.
4931         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
4932         slashes from directory arguments.
4933         * tests/base.at (configure directories): New test.
4934         * doc/autoconf.texi (Installation Directory Variables): Document
4935         the change.
4936         * NEWS: Likewise.
4937         * THANKS: Update.
4938         Reported by Björn Lindqvist.
4940         Provide better short-circuiting operation.
4941         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
4942         (m4_text_wrap): Use it.  Also avoid useless m4_for.
4943         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
4944         new macro.
4945         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
4946         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
4947         to avoid regexps.
4948         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
4949         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
4950         (Conditional constructs): ...here, to new section.  Also document
4951         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
4952         m4_bpatsubsts, and m4_default.
4953         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
4954         m4_do.
4956 2007-10-04  Eric Blake  <ebb9@byu.net>
4958         Fix recent testsuite failures.
4959         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
4960         that must not be re-expanded after AS_ESCAPE.
4961         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
4962         checking if it is an identifier.
4964         Whitespace cleanup.
4965         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
4966         leading whitespace, as it caused space-tab in testsuite.
4967         (AT_INIT): Avoid trailing newlines in testsuite.
4969         One more round of m4_foreach_w speedups.
4970         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
4971         is present.
4972         (_m4_split): Avoid useless expansions inside definition.  Move
4973         argument defaulting...
4974         (m4_split): ...here.  Change alternate quote to something less
4975         likely to appear in $1.  Also, special case space as regexp...
4976         (m4_foreach_w): ...to avoid regexp on single-term list.
4977         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
4978         useless expansions inside definition.
4979         * tests/m4sugar.at (m4@&t@_split): Add tests.
4981 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
4983         * general.m4 (AT_INIT): Add at_check_newline function.
4984         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
4985         (_AT_CHECK): Don't use at_trace_this.
4987 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
4989         Fix previous commit.
4990         * lib/autotest/general.m4 (AT_LINE): Fix regex.
4992 2007-10-04  Eric Blake  <ebb9@byu.net>
4994         Speed up building testsuites.
4995         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
4996         changed since last time.  Use simpler regex.
4998 2007-10-03  Eric Blake  <ebb9@byu.net>
5000         Optimize checking for identifiers.
5001         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
5002         macros, more efficient than regex on m4_re_word.
5003         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
5004         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
5005         now use @&t@.
5006         * configure: Regenerate.
5008         Remove some XFAILs, and make AT_SETUP output line up.
5009         * lib/autotest/general.m4 (AT_SETUP): Only expand description
5010         once; thereafter, use its expansion, properly quoted.
5011         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
5012         expansion with arguments, and check for aligned output.
5013         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
5014         Add a test for macros with parameters.
5015         * NEWS: Document the semantics change.
5016         * tests/base.at: Fix test titles containing commas.
5017         * tests/compile.at: Likewise.
5018         * tests/tools.at: Likewise.
5019         * tests/torture.at: Likewise.
5021         Another round of regex avoidance.
5022         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
5023         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
5024         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
5025         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
5026         character ranges useful in m4_translit.
5027         (m4_toupper, m4_tolower): Optimize the constant portion of
5028         definition.
5029         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
5030         creates $, and reject [] thanks to AS_TR_SH rewrite.
5031         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
5032         (AS_ESCAPE): Factor...
5033         (_AS_ESCAPE): ...into new macro, with second argument required.
5034         Avoid regex in common case.
5035         (_AS_QUOTE): Use new macro.
5037         Whitespace cleanup.
5038         * lib/autoconf/types.m4: Avoid space-tab.
5039         * lib/m4sugar/m4sh.m4: Use tab consistently.
5041 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5043         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
5044         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
5045         should remove m4_shiftn entirely?
5046         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
5047         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
5048         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
5049         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
5050         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
5052 2007-10-03  Eric Blake  <ebb9@byu.net>
5054         Comment touchups.
5055         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
5057 2007-10-02  Eric Blake  <ebb9@byu.net>
5059         Optimize appending text.
5060         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
5061         expressions.
5063         Optimize recursion.
5064         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
5065         lot of hot spots; optimize it for 2 and 3 shifts.
5067         Optimize AC_PREREQ and other m4sugar numerics.
5068         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
5069         (m4_cmp): Compare arbitrary expressions, without overflow.
5070         (m4_version_unletter): Also recognize capital letters.
5071         (m4_version_compare): Avoid regex when splitting version number
5072         string.
5074 2007-10-01  Eric Blake  <ebb9@byu.net>
5076         Once again, reject IRIX m4.
5077         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
5078         implementations that ignore --trace.
5079         * configure: Regenerate.
5080         Reported by Ralf Wildenhues.
5082         Fix regression in AC_DEFINE([macro(with_arg)]).
5083         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
5084         quotes with a careless m4_substr.
5086 2007-09-30  Eric Blake  <ebb9@byu.net>
5088         Allow nameless iteration.
5089         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
5090         indirectly.
5091         * tests/m4sugar.at (myvar): Test this.
5093 2007-09-29  Eric Blake  <ebb9@byu.net>
5095         Speed optimization: avoid m4 regex when other algorithms work.
5096         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
5097         (_AS_QUOTE_IFELSE): Likewise.
5098         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
5099         (m4_bpatsubsts): Split...
5100         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
5101         regex.
5102         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
5103         (m4_qlen): Optimize on short strings, to avoid regex.
5104         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
5105         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
5106         (AC_DEFINE_TRACE): Likewise.
5108 2007-09-28  Eric Blake  <ebb9@byu.net>
5110         Oops - my earlier 'optimization' caused a regression.
5111         * tests/local.at (AT_CHECK_M4): Fix typo.
5113 2007-09-27  Eric Blake  <ebb9@byu.net>
5114         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5116         Catch even more common AC_CACHE_VAL mistakes.
5117         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
5118         lacks '_cv_', or if AC_SUBST appears in body.
5119         * tests/base.at (AC_CACHE_CHECK): Test this change.
5121 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
5122         and Eric Blake  <ebb9@byu.net>
5124         Autotest no longer caters to Ultrix redirection limitation.
5125         * doc/autoconf.texi (Writing testsuite.at): Remove the
5126         limitation that the first parameter of AT_CHECK cannot
5127         contain redirection.
5128         (File Descriptors): Mention that Ultrix limitation is no longer a
5129         show-stopper in modern code.
5130         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
5131         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
5132         * lib/autotest/general.m4 (AT_CHECK): Update comment.
5134 2007-09-27  Eric Blake  <ebb9@byu.net>
5136         Squelch changeword in m4sugar.
5137         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
5138         feature of m4 1.4.x.
5140         Configure whitespace touchups.
5141         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
5142         installation directories, and avoid TAB, in configure --help
5143         output.
5144         * configure.ac: Avoid extra trailing newline.
5145         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
5146         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
5147         config.status --help output.
5148         * configure: Regenerate.
5150         Fix underquotation in AS_HELP_STRING.
5151         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
5152         argument.
5153         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
5154         first-prefix argument.
5155         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
5156         * NEWS: Document AS_HELP_STRING fix.
5158         Autotest formatting touchups.
5159         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
5160         output.
5161         (PATH): Simplify computation of new PATH.
5163 2007-09-26  Eric Blake  <ebb9@byu.net>
5165         Fix testsuite breakage in last patch.
5166         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
5167         font-lock fix.
5168         * tests/torture.at (@%:@define header templates): Rename, so that
5169         output lines up correctly.
5171         More font-lock happiness.
5172         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
5173         confusion.
5175 2007-09-25  Eric Blake  <ebb9@byu.net>
5177         Typo fixes.
5178         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
5179         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
5181         Improve documentation of M4 parameter expansion.
5182         * doc/autoconf.texi (Quoting and Parameters): New section.
5183         (Quotation and Nested Macros): Improve wording.
5185         Improve C99 detection.
5186         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
5187         avoid deprecation warning with icc.
5188         * THANKS: Update.
5189         Reported by Ted Bullock.
5191 2007-09-24  Jim Meyering  <jim@meyering.net>
5193         Whenever possible, use the vertical bar as sed delimiter.
5194         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
5195         Use "|", not "!".
5196         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
5197         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
5198         * tests/mktests.sh (as_me): Likewise.
5199         * lib/freeze.mk (check-forbidden-patterns): Likewise.
5200         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
5201         * configure: Regenerate.
5202         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
5203         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
5204         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
5205         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
5207 2007-09-22  Jim Meyering  <jim@meyering.net>
5209         Add a comment.
5210         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
5211         2004-05-31 change also with a comment in the code.
5213 2007-09-20  Eric Blake  <ebb9@byu.net>
5215         More contribution housekeeping.
5216         * THANKS: Sort.
5217         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
5219         Ignore additional files, when copying cross-repository.
5220         * .gitignore: Ignore CVS directories, emacs edits.
5221         * .cvsignore: Ignore .git directory, emacs edits.
5223 2007-09-15  Eric Blake  <ebb9@byu.net>
5225         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
5226         * doc/autoconf.texi (Text processing Macros): Remove mention of
5227         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
5228         once again.
5229         (Notices): Move AC_PREREQ...
5230         (Versioning): ...to this new section, alongside the new AC_VERSION
5231         alias for the undocumented m4_PACKAGE_VERSION.
5232         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
5233         * lib/autoconf/general.m4 (AC_VERSION): New macro.
5234         * NEWS: Update to match this rename.
5235         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
5236         m4_PACKAGE_VERSION.
5237         * tests/tools.at (autoconf: AC_VERSION): New test.
5238         Suggested by Paolo Bonzini and Benoit Sigoure.
5240 2007-09-14  Eric Blake  <ebb9@byu.net>
5242         Prepare for conversion to git.
5243         * doc/.cvsignore: Avoid multiple listings on one line.
5244         * bin/.cvsignore: Likewise.
5245         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
5246         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
5247         lib/autoscan/.gitignore, lib/autotest/.gitignore,
5248         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
5249         tests/.gitignore: New files, identical to .cvsignore counterpart.
5251 2007-09-13  Eric Blake  <ebb9@byu.net>
5253         Editing eye-candy.
5254         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
5255         font-lock balance.
5256         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
5257         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
5258         * configure: Regenerate.
5260         Clean up 'make dist' of previous patch.
5261         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
5262         (CLEANFILES): Don't clean the stamp, since we distribute the
5263         generated files pre-built.
5264         (MAINTAINERCLEANFILES): Clean it here instead.
5265         * tests/Makefile.in: Regenerate.
5267         Avoid parallel 'make check' issue.
5268         * tests/Makefile.am (mktests.stamp): New witness.
5269         (TESTSUITE_GENERATED_AT): Use it.
5270         (CLEANFILES): Clean the witness.
5271         * tests/.cvsignore (mktests.stamp): Ignore the witness.
5273         Document another awk pitfall.
5274         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
5275         limitation of field variables in END.
5276         Reported by Gary V. Vaughan.
5278         * AUTHORS: Add missing entries.
5280 2007-09-12  Eric Blake  <ebb9@byu.net>
5282         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
5283         * doc/autoconf.texi (Text processing Macros): Document
5284         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
5285         (Redefined M4 Macros): Document m4_ifndef.
5286         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
5287         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
5288         used it while it was undocumented.
5289         * NEWS: Document this change.
5290         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
5291         * lib/m4sugar/Makefile.in: Regenerate.
5292         * tests/m4sugar.at (m4@&t@_version_compare): New test.
5293         Reported by Bruno Haible.
5295         * doc/autoconf.texi (Generic Compiler Characteristics): Add
5296         missing index entries.
5298 2007-09-11  Eric Blake  <ebb9@byu.net>
5300         Centralize all system extensions checks.
5301         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
5302         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
5303         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
5304         AC_USE_SYSTEM_EXTENSIONS.
5305         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
5306         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
5307         * doc/autoconf.texi (Posix Variants): Reword this section,
5308         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
5309         rather than a series of system-specific checks.
5310         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
5311         AC_MINIX.
5312         * NEWS: Document this change.
5313         * THANKS: Update.
5314         Reported by Martin Koeppe.
5316 2007-09-08  Eric Blake  <ebb9@byu.net>
5318         Clean up obsolete macros references.
5319         * doc/autoconf.texi: Add anchors to support better
5320         cross-referencing.
5321         (Particular Structures): Move obsolete macros descriptions...
5322         (External Software): Likewise.
5323         (Package Options): Likewise.
5324         (Obsolete Macros): ...to here.  Add cross-references to
5325         documentation on replacements.
5326         * NEWS: Mention that these macros have been obsolete for a while
5327         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
5329         Improve M4 path searching during configure.
5330         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
5331         macro.
5332         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
5333         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
5334         parameter, and kill side effects.
5335         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
5336         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
5337         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
5338         is found.
5339         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
5340         allow bootstrapping with autoconf 2.61.
5341         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
5342         * configure: Regenerate.
5343         * doc/autoconf.texi (Generic Programs): Document new macro.
5344         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
5345         macro.
5346         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
5347         * NEWS: Document the change.
5348         * THANKS: Update.
5349         Reported by Hans Aberg.
5351         * doc/autoconf.texi (Generic Programs): Fix typo.
5353 2007-09-06  Eric Blake  <ebb9@byu.net>
5355         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
5356         :, and make it clear that optional @var{path} defaults to $PATH.
5357         (Erlang Compiler and Interpreter): Likewise.
5359         Texinfo cleanup.
5360         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
5361         Reword some paragraphs to avoid overfull, underfull hbox
5362         warnings.  Add index entries to avoid overfull vbox warnings.
5364 2007-09-05  Eric Blake  <ebb9@byu.net>
5366         * NEWS: Adjust wording for AC_CONFIG_LINKS.
5367         Reported by Ralf Wildenhues.
5369 2007-09-03  Eric Blake  <ebb9@byu.net>
5371         * NEWS: Document fixes that have been applied since 2.61a.
5373         Housekeeping.
5374         * THANKS: Update, and convert to UTF-8 encoding.
5375         * AUTHORS: Likewise.
5377 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5379         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
5380         names beginning with `-' again.
5382 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
5383             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5385         * doc/autoconf.texi (Defining Directories): Mention
5386         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
5388 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5390         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
5391         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
5392         * tests/base.at (configure arguments): New test.
5393         * THANKS: Update.
5394         Report by Olaf Lenz.
5396         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
5397         arguments in comment.
5398         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
5400 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
5402         * doc/autoconf.texi (File System Conventions): Index the proper
5403         way of detecting absolute file names.
5405 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5407         * build-aux/config.guess, build-aux/config.sub,
5408         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
5409         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
5410         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
5411         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
5412         sectioning change in fdl.texi.
5414         * bin/autoconf.as: Update --version output to match current GCS.
5415         * bin/autoheader.in: Likewise.
5416         * bin/autom4te.in: Likewise.
5417         * bin/autoreconf.in: Likewise.
5418         * bin/autoscan.in: Likewise.
5419         * bin/autoupdate.in: Likewise.
5420         * bin/ifnames.in: Likewise.
5422 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5424         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
5425         file to itself if source and build trees coincide.
5426         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
5427         test.
5428         Report by Sebastian Freundt <hroptatyr@gna.org>.
5430 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5432         Reword the copyright notices to match what's suggested in GPLv3.
5433         In ChangeLog files, use more-permissive notice rather than GPL, as
5434         per usual GNU standards these days.
5436 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
5438         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
5439         limitation reported by Leo Moisio in
5440         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
5442 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5444         * COPYING: Update to GPLv3.  All uses changed.
5446 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5447         and Paul Eggert  <eggert@cs.ucla.edu>
5449         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
5450         fails on AIX 5.3.
5452 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
5454         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
5455         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
5456         `srcdir' as subdirectory of `builddir'.
5458 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
5460         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
5461         * tests/autotest.at (srcdir propagation): New test.
5462         * THANKS: Update.
5463         Reported by Mike Frysinger.
5465 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5467         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
5468         Problem reported by Fred Kreek in
5469         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
5470         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
5471         (Macro Names, Defining Directories): Don't mention PATH as a name
5472         for a fully qualified file name, as this usage violates the GNU
5473         coding standards and we shouldn't recommend it.
5475         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
5476         string and then assume shell builtins like "test" will work.
5478 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
5480         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
5481         not a valid shell variable name.
5482         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
5483         * tests/torture.at (AC_SUBST: variable name validation): New test.
5484         Reported by Andreas Schwab.
5486 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
5488         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
5489         works with both C and C++.
5491 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
5492             Bruno Haible  <bruno@clisp.org>
5494         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
5495         brand tests.
5497 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5499         * doc/autoconf.texi (Particular Types): Give example of use for
5500         AC_TYPE_INT8_T etc.
5502 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
5504         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
5506 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5508         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
5509         define HAVE_INT8_T, and likewise for similar macros.
5510         Problem reported by Patrick Welche in
5511         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
5513 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
5515         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
5517 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5519         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
5520         choice, since that's what we do with --enable-largefile etc.
5521         Redo indenting and assignments to simplify things a bit, and make
5522         the parens work with Emacs.
5524         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
5525         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
5526         Haible.
5528 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
5530         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
5531         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
5533 2007-05-21  Bruno Haible  <bruno@clisp.org>
5535         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
5536         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
5537         * doc/autoconf.texi (Generic Compiler Characteristics): Move
5538         renamed AC_OPENMP documentation here, from "C compiler".
5539         Mention C++ and Fortran.
5541 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5543         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
5545 2007-05-21  Bruno Haible  <bruno@clisp.org>
5547         * NEWS: Mention AC_C_OPENMP.
5548         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
5549         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
5550         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
5551         macro in the Autoconf macro archive.
5553 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5555         * bin/autom4te.in: Fix typos.
5557 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
5559         * bin/autoconf.as: Handle `-' just like other input files.
5560         * bin/autom4te.in (parse_args): Pass `-' through.
5561         (handle_output): Skip the forbidden token search if we read from stdin.
5562         (up_to_date): Always treat stdin as out of date.
5563         * tests/tools.at (autoconf: input from stdin): New test.
5564         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
5566 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
5568         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
5569         parameters for AT_CLEANUP.
5570         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
5572 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5574         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
5575         * doc/autoconf.texi (C Compiler): Likewise.
5577 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
5579         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
5581 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
5583         * doc/autoconf.texi: Direntry for "autoconf Invocation"
5584         renamed to "autoconf-invocation"
5586         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
5587         in the examples should not use the internal "ac_" prefix.
5589 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
5591         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
5592         * doc/autoconf.texi ($@, case): Document Zsh limitations.
5594 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
5596         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
5597         Reorganize the comments before and in the macro.
5599 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
5601         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
5602         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
5603         section titles and other comments; no code change.
5605 2007-05-01  Kevin Ryde  <user42@zip.com.au>
5607         * doc/autoconf.texi (Particular Programs): Typo
5608         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
5610 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
5612         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
5613         'configure' will fail if the shell lacks proper support for shell
5614         functions.  Suggested by RMS.
5616 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5618         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
5619         about Solaris /bin/printf '%010000x' 123.  Problem reported by
5620         Bruno Haible.
5622 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
5624         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
5625         for a.* when searching for executables, as this prevents users
5626         from having files like a.c.  Problem reported by Ralf Wildenhues in:
5627         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
5628         This fixes a problem introduced on 2000-12-19.
5630 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5632         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
5633         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
5634         via Bruno Haible.
5636 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5638         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
5639         AC_CHECK_TYPE, AC_CHECK_TYPES.
5640         * doc/autoconf.texi (Generic types): C types must be type-names
5641         (the C terminology), not type-ids (the C++ term).  C++ types
5642         must not be anonymous.
5643         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
5644         for C++; this drops support for anonymous struct and union types,
5645         which were problematic anyway.
5646         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
5647         for C++.
5649 2007-04-12  Jim Meyering  <jim@meyering.net>
5651         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
5653 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5655         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
5656         to prefer a link source from the build tree, if it exists.
5657         Report by Pallav Gupta <pallavgupta@gmail.com>.
5659 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5661         * doc/autoconf.texi (Generic Types): Document the restrictions
5662         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
5663         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
5664         with objects too.  Document the restrictions on its use.
5665         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
5666         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
5667         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
5668         works but the latter doesn't, then it's a valid type.
5669         This lets people use function types and so forth.
5670         For C++ there doesn't seem to be a simple solution, so leave it alone.
5671         (AC_CHECK_SIZEOF): Allow argument to be a variable.
5672         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
5673         AC_CHECK_TYPE; that wasn't documented or necessary.
5675 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
5677         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
5678         when cross-compiling.
5680 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
5682         * doc/autoconf.texi (External Software): Fix a typo in the
5683         previous change.
5685 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5687         * doc/autoconf.texi (External Software, Package Options):
5688         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
5690 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5692         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
5693         obsolescent.  Suggested by Bruno Haible.
5694         * NEWS: Document this.
5696 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
5698         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
5699         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
5700         default still has the problem.  Problem reported by Bruce Korb.
5702 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
5703         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5705         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
5706         comment in the generated config.status.
5708 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
5710         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
5712 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
5714         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
5715         command and case statements to make it a bit clearer and describe
5716         more pitfalls.
5718 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
5720         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
5721         checks for unsigned long long int.
5723 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5725         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
5726         nonstandard grep R.E. escape sequences.
5728 2007-03-17  Jim Meyering  <jim@meyering.net>
5730         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
5731         (Limitations of Usual Tools): Also list \< and \>, and mention that
5732         HP-UX's grep, like the one from Solaris, does not support that syntax.
5734 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
5736         * doc/autoconf.texi (Specifying Names): `--host' does not
5737         change the build type.
5739 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
5741         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
5742         suggests AC_CONFIG_HEADERS.
5743         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
5744         AC_CONFIG_HEADERS.  Problem reported by
5745         Peter O'Gorman.
5747 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5749         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
5750         Problem reported by Paolo Bonzini in:
5751         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
5752         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
5753         universal binaries.  Problem reported by Elias Pipping.
5755 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
5757         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
5758         * doc/autoconf.texi (C Compiler): Document this.  There is a new
5759         extra argument ACTION-IF-UNIVERSAL.
5760         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
5761         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
5762         Reindent for sanity's sake.
5764 2007-02-24  Eric Blake  <ebb9@byu.net>
5766         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
5767         copyright.
5768         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
5769         * lib/autotest/general.m4 (AT_INIT): Likewise.
5770         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
5772 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5774         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
5775         status of rm so we know when it failed.
5776         If cleaning of test dir failed before running the test, warn.
5777         Output the line separator in verbose mode before the warning
5778         to make clear the warning belongs to the following test.
5780 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5782         * doc/autoconf.texi (Parentheses): Mention problem with (( in
5783         shells.
5785 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5786         and Paul Eggert  <eggert@cs.ucla.edu>
5788         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
5789         errors introduced in last change.
5791 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5793         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
5794         an actual carriage return.  Use "ac_cr" to contain the actual
5795         carriage return.
5796         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
5797         with traditional Awk and begin.
5798         * tests/torture.at (Limitations of Builtins): Document the problem
5799         with Bash 2.03 printf.
5800         (Substitute and define special characters):
5801         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
5803 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
5805         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
5806         input from /dev/null in awk test, so even Solaris /usr/bin/awk
5807         will not wait for input with a script containing only a BEGIN
5808         rule.
5810 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5812         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
5813         requirements.
5814         * README: Likewise.
5816 2007-02-02  Eric Blake  <ebb9@byu.net>
5818         * NEWS: Update copyright.
5820         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
5821         broken.
5822         * configure.ac: Update error message.
5823         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
5824         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
5825         by Stepan Kasal:
5826         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
5828 2007-01-31  Eric Blake  <ebb9@byu.net>
5830         * THANKS (people): Update.
5832 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5834         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
5835         latest version.
5836         (Shell Substitutions): Note problems with @{var:=value} etc.
5837         Add a new section for problems with @{#var} etc.  Problem noted
5838         by Ralf Wildenhues.  See:
5839         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
5841 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5843         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
5844         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
5845         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
5846         substitution will still be done by the special code.
5847         Report by Jim Meyering.
5849         * doc/autoconf.texi (File System Conventions): Mention that
5850         $PATH_SEPARATOR is for the build system only.
5851         Report by Keith Marshall.
5853 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5855         * doc/autoconf.texi (Setting Output Variables): Mention that
5856         all non-NUL characters are ok in substituted values.
5857         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
5858         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
5859         carriage return for $AWK, needed for BSD awk.
5860         * tests/torture.at (Substitute and define special characters):
5861         Test all 8 bit non-NUL characters.
5862         Report against Automake by Patrick Welche.
5864 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
5866         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
5868 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5870         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
5871         early on the reader side, drop stderr of the input to avoid
5872         `broken pipe' error output; this may happen even with shell
5873         builtin `echo' of some bash versions.  Reports by Ian Macdonald
5874         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
5876 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5878         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
5879         separate items of `ac_user_opts', to avoid long lines.
5880         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
5882 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5884         * doc/autoconf.texi: Fix some typos.
5886 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5888         Fix some wording problems noted by Paolo Bonzini in:
5889         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
5890         * doc/autoconf.texi (Signed Overflow Examples): Give more
5891         discussion about the allow_superuser_privileges example,
5892         and change it a bit to make things clearer.
5893         (Optimization and Wraparound): Clarify whether the compiler
5894         will generate an infinite loop for the example derived from
5895         Autoconf's mktime test.
5896         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
5897         Also, clarify unsigned multiplication overflow.
5899 2007-01-04  Eric Blake  <ebb9@byu.net>
5901         * bin/Makefile.am (RELEASE_YEAR): New macro.
5902         (edit): Use it to supply correct copyright year to scripts.
5903         * bin/autoconf.as (version): Use it.
5904         * bin/autoheader.in ($version): Likewise.
5905         * bin/autom4te.in ($version): Likewise.
5906         * bin/autoreconf.in ($version): Likewise.
5907         * bin/autoscan.in ($version): Likewise.
5908         * bin/autoupdate.in ($version): Likewise.
5909         * bin/ifnames.in ($version): Likewise.
5911 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5913         * doc/autoconf.texi (Integer Overflow): Revised based on today's
5914         feedback.  The most important changes document what happens when
5915         you convert an out-of-range value to a signed integer type, and
5916         say that (sum < a) != (b < 0) reliably detects overflow when sum =
5917         a + b.
5919         * doc/autoconf.texi (Integer Overflow): Greatly expand and
5920         rewrite, taking notions from the recent discussion on the gcc and
5921         autoconf mailing lists; please see
5922         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
5923         and follow the many links.
5924         (Integer Overflow Basics, Signed Overflow Examples):
5925         (Optimization and Wraparound, Signed Overflow Advice):
5926         (Signed Integer Division): New sections.
5928 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
5930         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
5931         preprocessor macro arguments in traced name.
5932         * doc/autoconf.texi (Defining symbols): Document longstanding
5933         support for AC_DEFINE-ing macros with arguments, and document
5934         behavior when the same variable has multiple AC_DEFINEs.
5935         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
5936         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
5937         macros directly, giving much shorter and simpler code.
5939 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
5941         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
5942         space before "$ac_configure_args" to prevent a 'config.status
5943         --recheck' failure if ac_configure_args doesn't contain a leading
5944         space.  This works around a problem with the XEmacs configure.ac,
5945         which uses the (undocumented) ac_configure_args variable
5946         inconsistently with Autoconf.
5948 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5950         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
5951         Include <limits.h>, and use its INT_MAX to rewrite the
5952         j loop so that it does not overflow 'int'.  Problem reported by
5953         Ralf Wildenhues in
5954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
5955         Play it safe by shifting left by 1 rather than multiplying by 2,
5956         as GCC is less likely to optimize this away when the value
5957         is signed (when it assumes overflow leads to undefined behavior).
5958         Also, don't assume time_t uses two's complement.
5960 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5962         * tests/torture.at (Substitute a 2000-byte string): Avoid using
5963         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
5964         dumps core on it.  Report by Tim Rice.
5966 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
5968         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
5969         --disable-option-checking to --help output even when
5970         AC_PRESERVE_HELP_ORDER is not used.
5971         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
5972         --with argument, rather than argument with [-.] replaced by
5973         underscores.
5974         * NEWS: Fix typo in previous change; the news was in the
5975         wrong section.
5977 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5979         * NEWS: Warnings are now generated by default for unknown
5980         --enable-* and --with-* options.
5981         * doc/autoconf.texi (Option Checking): Renamed from
5982         (Configure Option Checking).  Tighten up the wording a bit.
5983         (External Software, Package Options): Cross-reference to Option
5984         Checking, and use this to shorten our section.
5985         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
5986         "$x" to test "x$foo" != x.
5987         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
5988         Don't warn if $enable_option_checking is "no".
5989         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
5990         ac_unrecognized_opts to the empty string.
5991         Don't echo the unrecognized opts, as this might mishandle
5992         backslashes or leading -.
5993         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
5994         usage next to the other --disable-FEATURE options in the
5995         help string.
5997 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
5999         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
6000         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
6001         Print warning for unrecognized --with and --enable options
6002         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
6003         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
6004         Disable option checking when subdirs are configured.
6005         (AC_OUTPUT): If warnings are enabled, print warning about
6006         unrecognized --with and --enable options at the end of
6007         the configure output (as well as at the beginning).
6008         * doc/autoconf.texi (Option Checking): New node.
6009         Document new option warning functionality.
6011 2006-12-16  Eric Blake  <ebb9@byu.net>
6013         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
6014         * NEWS: Start news for current version.
6016 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6018         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
6019         Define HAVE_GETMNTENT to 1, not to the empty string.
6020         Problem originally reported by Jochen Friedrich in
6021         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
6023         This change prompted by a problem report by Andrey Simonenko in
6024         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
6025         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
6026         object-like macros only, in the traditional portable character
6027         set.
6028         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
6029         Warn about attempts to define things that are not identifiers.
6030         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
6031         awful hack that AC_DEFINEd macro names containing parentheses.
6033 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6035         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
6036         too drastic, even if Texinfo in theory requires it for info mode.
6038         (config.status Invocation): Renamed back from Recreating a
6039         Configuration).
6040         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
6041         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
6043 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6045         * NEWS: Version 2.61a.
6047 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6048         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6050         * NEWS: Document changes with echo and printf, and the lack
6051         of limits on the total size of multi-line values of substituted
6052         variables, and the AC_FUNC_FSEEKO fix.
6054 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6056         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
6057         Writing configure.ac.
6058         (Autoconf Input Layout): Renamed from configure.ac Layout.
6059         (Recreating a Configuration): Renamed from config.status Invocation.
6060         (Obsolete Recreation): Renamed from Obsolete config.status Use.
6061         (acconfig Header): Renamed from acconfig.h.
6062         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
6063         (Writing Testsuites): Renamed from Writing testsuite.at.
6064         (Autom4te Cache): Renamed from autom4te.cache.
6066         * BUGS: Remove mention of VPATH problem, since it's now documented
6067         not to be a bug in the Autoconf build procedure itself, but rather
6068         a problem with the proprietary `make' programs.
6070         * doc/autoconf.texi (Build Directories): Add a cross reference
6071         to VPATH and Make.
6073         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
6074         * doc/standards.texi: Sync from gnulib.
6076         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
6077         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
6078         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
6079         generated automatically.
6081 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6083         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
6084         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
6085         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
6087 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6089         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
6090         `CEOF$ac_eof' special marker, the awk script cannot contain a
6091         line matching `^CEOF', so this is not needed any more.
6092         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
6093         special marker in the test.
6095 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
6097         * tests/tools.at (autom4te preselections): Use `find -newer';
6098         remove one of the sleeps.
6100         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
6101         more readable, using ...
6102         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
6104         * doc/autoconf.texi (autoheader Invocation): Do not double-
6105         quote the parameter of `AH_BOTTOM' in the example.
6107 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
6109         * doc/autoconf.texi (Configuration Headers): Remove the
6110         example with multiple input files.
6111         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
6112         multiple input files.
6114 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6116         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
6117         creating the awk substitution script, handle one input line at a
6118         time, so that the maximum length of a substituted (multi-line)
6119         value is not limited by the size of the sed pattern space.
6120         The trade-off is a slightly repetitive sed script.
6121         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
6122         can only have up to 7 characters, due to Solaris 10 /bin/sed.
6123         * tests/torture.at (Substitute a 2000-byte string): Increase the
6124         test with several long lines, they should not be caught by sed
6125         limits any more.
6127         * tests/tools.at (autom4te preselections): New test, to flag
6128         entries missing from autom4te.cfg.
6129         Report by David Byron <dbyron@hheld.com>.
6131         * tests/torture.at (Substitute a 2000-byte string): Actually use
6132         AC_PROG_AWK, so the last change works as intended.
6133         (Substitute and define special characters): Likewise.
6134         (Substitute a newline): Likewise.
6136         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
6137         instead of `awk' consistently.
6138         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
6139         * tests/torture.at (Torturing config.status): Test both the
6140         result of AC_PROG_AWK and plain awk.
6141         (Substitute a 2000-byte string): Likewise.
6142         (Substitute and define special characters): Likewise.
6143         (Substitute a newline): Likewise.
6145 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6147         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
6148         can be assigned to a function pointer.  Problem reported by
6149         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
6150         part of a patch by Ralf Wildenhues in that same bug report.
6152 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6154         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
6155         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
6157 2006-12-01  Eric Blake  <ebb9@byu.net>
6159         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
6160         cross-compiling from cygwin to mingw.
6161         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
6162         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
6163         to lib/autoconf/c.m4.
6165 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6167         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
6168         string for more reliable failure.  Wrap the entire test that
6169         causes the broken Solaris printf to dump core, in a subshell,
6170         so the segmentation fault message is reliably suppressed.
6171         Fix shell expansion errors by using /usr/ucb/echo always;
6172         avoid an error on systems without it by another subshell.
6173         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
6174         subshell-$as_echo to `as_echo', for better error message.
6176 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6178         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
6179         `BASH_SOURCE' contain a newline, set them to empty, as they may
6180         not be unset.
6182 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
6184         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
6185         years and is too hard to maintain now.  The last straw was
6186         reported by Jerker Baeck in
6187         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
6188         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
6189         * doc/autoconf.texi (Particular Functions): Move
6190         AC_FUNC_SETVBUF_REVERSED from here...
6191         (Obsolete Macros): ... to here.  Say that it does nothing now.
6192         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
6193         Turn into (almost) a no-op.
6195         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
6196         (AC_C_VOLATILE):
6197         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
6198         These macros are obsolescent and new applications shouldn't need them.
6199         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
6200         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
6201         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
6202         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6203         (AC_FUNC_VPRINTF): Likewise.
6204         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
6205         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
6206         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
6208         * doc/autoconf.texi (Setting Output Variables): Mention that
6209         @VAR1@VAR2 has unspecified behavior.  Problem reported by
6210         Ralf Wildenhues.
6211         * NEWS: Mention this.
6213         * Makefile.am: Put only a single '#' into the copyright notice,
6214         so that it's also present in the output file.  Standardize wording
6215         in makefile copyright notices to match GNU coding standards.
6216         * bin/Makefile.am: Likewise.
6217         * doc/Makefile.am: Likewise.
6218         * lib/Makefile.am: Likewise.
6219         * lib/freeze.mk: Likewise.
6220         * lib/autoconf/Makefile.am: Likewise.
6221         * lib/autoscan/Makefile.am: Likewise.
6222         * lib/autotest/Makefile.am: Likewise.
6223         * lib/m4sugar/Makefile.am: Likewise.
6224         * man/Makefile.am: Likewise.
6225         * tests/Makefile.am: Likewise.
6226         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
6227         one-line file.
6229 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6231         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
6232         in the sed script that mangles the awk script: delete up to the
6233         first exclamation mark only.
6234         * tests/torture.at (Substitute and define special characters):
6235         Test '!' too.
6237 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6239         Rewrite config files generation: avoid quadratic growth in
6240         the number of substituted variables by using awk instead of sed
6241         for the bulk of the substitutions.
6242         * NEWS: Mention this.
6243         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
6244         forbidden in the output (and thus input) file.
6245         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
6246         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
6247         generate just one large awk script for substitutions,
6248         eliminating much of the earlier complexity, while adding some
6249         new complexity.  Only expand the substitution templates at
6250         configure time, for smaller configure script size.  If
6251         _AC_SUBST_FILES are used, test 'awk' for working getline support
6252         at config.status time.  If absent, interpolate through the
6253         shell.  The awk script was written with much help
6254         from Paolo Bonzini and Paul Eggert.
6255         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
6256         (_AC_SED_FRAG_NUM): Likewise.
6257         (_AC_SUBST_CMDS): Renamed from...
6258         (_AC_SED_CMDS): ...this.
6259         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
6260         * tests/torture.at (Substitute a 2000-byte string): Also
6261         substitute a line with 1000 words, and a variable with several
6262         long lines.
6263         (Substitute and define special characters): Test awk special
6264         characters, and put substitution input strings `@foo@' in the
6265         output, to test that no recursion happens; test several other
6266         combinations from Paolo Bonzini.
6268 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6270         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
6271         that replaced echo with AS_ECHO where this wasn't necessary.
6272         Problem reportd by Ralf Wildenhues.
6273         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
6274         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
6275         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
6277 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6279         * lib/freeze.mk (GREP): Removed, no need to initialize this.
6281 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
6283         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
6284         that traditional Awk lacks 3-arg "split".  It has it.
6285         Mention that FS must be a single character, and a few other
6286         99-byte limits of traditional Awk.
6287         Mention that if (i in a) doesn't work with traditional Awk.
6289 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6291         * tests/autotest.at (BSx641-newline in command):
6292         (BS-BS-newline in command, BSx640-newline in command):
6293         (Newline-CODE-BS-newline in command):
6294         (Single-quote-BS-newline in command):
6295         (Single-quote-newline-BS-newline in command):
6296         Use printf '%s\n' instead of echo, for portability to hosts
6297         where echo interprets backslashes.  This will break on hosts
6298         that lack printf, but for now let's assume all such hosts
6299         are dead (if not, we should get reports of test failures).
6301 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6303         'echo' has some portability problems, when given a first argument
6304         with a leading '-', or when given any argument containing '\'.
6305         Avoid using 'echo' in these cases.
6306         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
6307         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
6308         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6309         * lib/autotest/general.m4 (AT_INIT): Likewise.
6310         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
6311         argument might be unportable.
6312         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
6313         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
6314         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
6315         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
6316         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
6317         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
6318         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
6319         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
6320         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
6321         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
6322         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
6323         (AC_PROG_MAKE_SET): Likewise.
6324         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
6325         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
6326         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
6327         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
6328         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
6329         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
6330         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
6331         * bin/autoconf.as: Redo verbose flag implementation, as the old
6332         scheme wouldn't work with AS_ECHO.
6333         * lib/autotest/general.m4 (AT_INIT): Likewise.
6334         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
6335         Don't use ECHO_T, since ECHO_N is now reliable.
6336         * lib/autotest/general.m4 (AT_INIT): Likewise.
6337         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
6338         rather than using a here-document to put the script into a file.
6339         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
6340         use AS_ECHO.
6341         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
6342         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
6343         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
6344         bug, but we might as well stop using ECHO_N and ECHO_C internally.
6345         * lib/autotest/general.m4 (AT_SETUP): Likewise.
6346         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
6347         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6348         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
6349         operand, as AS_ECHO requires.  Avoid double file name expansion.
6350         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
6351         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
6352         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
6353         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
6354         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6355         Double-quote strings that would otherwise contain M4 comments.
6356         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
6358         * configure.ac (AC_INIT): Bump to 2.61a.
6359         * NEWS: Likewise.
6361 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6363         Version 2.61.
6365         * configure.ac (AC_INIT): Bump to 2.61.
6366         * NEWS: Likewise.
6368         * tests/autotest.at (Macro with backslash in a test title):
6369         Comment out for now, as this tests neither fails nor passes
6370         reliably.  Problem reported by Ralf Wildenhues.
6372 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6374         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
6375         in previous change, which caused test failures.
6377 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
6379         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
6380         code for --enable, --disable, --with, and --without to...
6381         (_AC_INIT_PARSE_ENABLE): ... a new macro.
6382         * doc/autoconf.texi (Package Options):
6383         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
6385 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6387         Import these changes from config via gnulib:
6389         2006-11-15  Ben Elliston  <bje@gnu.org>
6391         From Josselin Mouette <joss@debian.org>:
6392         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
6394         2006-11-08  Ben Elliston  <bje@gnu.org>
6396         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
6398         2006-11-07  Steve Woodford  <scw@NetBSD.org>
6399                     Ben Elliston  <bje@gnu.org>
6401         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
6402         * build-aux/config.sub (sh5el): New basic_machine.
6405         Import this change from coreutils:
6407         2006-02-13  Jim Meyering  <jim@meyering.net>
6409         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
6412         Import this change from gnustandards via gnulib:
6414         2006-11-15  Karl Berry  <karl@gnu.org>
6416         * standards.texi: core -> memory, throughout.
6417         (CPU Portability): show correct example of calling write
6418         on a char value; thanks to Paul Eggert for the code.
6419         Both of these suggestions from Eugene Y. Vasserman.
6422         Import these changes from texinfo via gnulib:
6424         2006-11-08  Karl Berry  <karl@gnu.org>
6426         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
6427           as well as pdf images, since they are supported in pdftex with
6428           no further ado.
6430         2006-11-05  Karl Berry  <karl@gnu.org>
6432         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
6434 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6436         * NEWS: Document the AC_ARG_WITH change.
6438 2006-11-13  Bruno Haible  <bruno@clisp.org>
6440         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
6441         options, transliterate also dots to underscores.
6442         (_AC_ENABLE_IF): Transliterate also dots to underscores.
6443         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
6444         first argument may also contain dots.
6446 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6448         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
6449         benefit of platforms like Solaris+GCC where it is common to have a
6450         non-working g++ installation.
6452 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6453         and Joel E. Denny  <jdenny@ces.clemson.edu>
6454         and Paul Eggert  <eggert@cs.ucla.edu>
6456         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
6457         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
6458         ./micro-suite.
6460 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6462         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
6463         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
6464         Imported from a similar patch to gnulib by Bruno Haible.
6466 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6468         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
6469         * doc/autoconf.texi (C Compiler): Document them.
6470         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
6471         New macros, taken from gnulib.
6473 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6475         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
6476         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
6477         Matthew Woehlke.
6479 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6481         * tests/torture.at (Configuring subdirectories): Do not skip
6482         Automake 1.10 nor future Automake 11.1 (sic).
6484 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
6485         and Stepan Kasal  <kasal@ucw.cz>
6487         Handle special characters in test case titles correctly.
6488         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
6489         properly.
6490         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
6491         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
6492         argument.  Extend to check titles printed by ./micro-suite and
6493         ./micro-suite -l and the title in micro-suite.log.
6494         (Backquote in a test title,
6495         Single-quote in a test title,
6496         Double-quote in a test title): Don't expect failure anymore.
6497         (Backslash in a test title): Put a non-whitespace character after the
6498         backslash so that Bourne shells might actually see it as an escape
6499         sequence.
6500         (Brackets in a test title,
6501         Pound in a test title,
6502         Comma in a test title,
6503         Quoted Macro in a test title,
6504         Macro in a test title,
6505         Macro with single-quote in a test title): New tests.
6506         (Macro with backquote in a test title,
6507         Macro with double-quote in a test title,
6508         Macro with backslash in a test title): New tests expected to fail.
6509         * tests/torture.at (#define header templates): M4-quote this title in
6510         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
6511         The visible effect was a stray [] in the testsuite output.
6513 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6515         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
6516         `trap ... 0' inside a function, for AIX sh.
6518 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6520         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
6521         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
6522         5363) simply issues a warning when dividing by zero at compile
6523         time.  Problem reported by Elias Pipping.
6525 2006-10-26  Eric Blake  <ebb9@byu.net>
6527         * THANKS: Update.
6528         * doc/autoconf.texi (Evaluation Macros): Improve the example to
6529         show effect on macros that expand with commas.
6530         Reported by Joel E. Denny.
6532         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6533         Also work with M4 1.4.8.
6535 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6537         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
6538         Jim Meyering.
6540 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
6542         * tests/tools.at (autom4te --force): New test, verifies that
6543         `--force' always rewrites the output file.
6545 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6547         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
6548         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
6550 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
6552         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
6554 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6556         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6557         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
6558         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
6559         reported by Nelson H. F. Beebe for Coreutils 6.4.
6561         * tests/tools.at (autoconf --trace: user macros): Remove test
6562         for tracing multiline macros, since m4 1.4.7a uses a different
6563         way to number lines.  Problem reported by Ralf Wildenhues.
6565 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
6567         * bin/autom4te.in (handle_m4): Do not redirect stdin to
6568         /dev/null since the heuristics for interactive behaviour was
6569         fixed in CVS m4.
6571         * bin/autom4te.in: With --force, always refresh the output
6572         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
6574         * bin/autoconf.as: Fix the verbose message at the end.
6576 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6578         * configure.ac (AC_INIT): Bump to 2.60c.
6579         * NEWS: Likewise.
6581 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6583         * NEWS: Version 2.60b.
6585         Import this change from Texinfo:
6586         2006-10-15  Karl Berry  <karl@gnu.org>
6587         * build-aux/texinfo.tex: automake 1.10
6589         * NEWS: Remove AC_CACHE_CHECK_INT.
6590         * doc/autoconf.texi (Caching Results): Likewise.
6591         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
6592         AC_CACHE_CHECK_INT, since it's no longer public.
6593         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
6594         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
6596 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6598         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
6600 2006-10-19  Eric Blake  <ebb9@byu.net>
6602         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
6603         (m4_maketemp): Avoid warnings with M4 1.9a.
6604         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
6605         m4_mkstemp.
6606         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
6607         * NEWS: Likewise.
6609 2006-10-16  Eric Blake  <ebb9@byu.net>
6611         * doc/autoconf.texi (Setting Output Variables): Fix typo.
6613         * bin/autoconf.as (version): Reword to match GNU Coding
6614         Standards.
6615         * bin/autoheader.in (version): Likewise.
6616         * bin/autom4te.in (version): Likewise.
6617         * bin/autoreconf.in (version): Likewise.
6618         * bin/autoscan.in (version): Likewise.
6619         * bin/autoupdate.in (version): Likewise.
6620         * bin/ifnames.in (version): Likewise.
6622 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
6624         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
6625         looking for special shell characters.
6626         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
6627         macro defined by AS_VAR_PUSHDEF before passing it as a
6628         parameter.
6629         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
6630         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
6631         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
6632         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
6633         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
6634         Likewise.
6635         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
6636         AS_VAR_* properly.
6637         * tests/m4sh.at (AS_LITERAL_IF): New test.
6639 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
6641         (Imported from Automake.)
6642         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
6643         which incorrectly sets the mode of an existing destination
6644         directory.  In some cases the unpatched install-sh could do the
6645         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
6646         system.  We hope this is rare in practice, but it's clearly worth
6647         fixing.  Problem reported by Alex Unleashed in
6648         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
6649         Also, don't bother to check for -m bugs unless we're using -m;
6650         suggested by Stepan Kasal.
6652 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
6654         Import this change from Automake:
6656         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
6657         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
6658         is enabled by default with gnu and gnits strictness.
6659         Report from Bruno Haible.
6661         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
6662         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
6663         gnu and gnits modes.
6665         Import this change from Config:
6667         2006-09-20  Ben Elliston  <bje@gnu.org>
6668         * build-aux/config.sub (score, score-*): New.
6670         Import this change from Gnulib:
6672         2006-09-16  Karl Berry  <karl@gnu.org>
6673         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
6674         to avoid sectioning errors.
6676         Import these changes from Texinfo:
6678         2006-10-04  Karl Berry  <karl@gnu.org>
6679         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
6680         (\quoteexpand): rename to \rquoteexpand.
6681         (\codequoteleft): new def, to look for @set codequotebacktick.
6682         (\lquoteexpand, \quoteexpand): new defs.
6683         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
6684         (\code): must use new \...Char values, since now ` is active.
6686         2006-08-26  Karl Berry  <karl@gnu.org>
6687         * build-aux/texinfo.tex (\textdegree): New command.
6689         2006-08-12  Karl Berry  <karl@gnu.org>
6690         * build-aux/texinfo.tex (error \box0): smaller font.
6692 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6694         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
6696 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
6698         * doc/autoconf.texi (Autoheader Macros): Warn that the text
6699         added to the template can get mangled.
6701 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6703         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
6704         include the default headers, and redefine obstack_chunk_alloc
6705         and obstack_chunk_free.  Fixes false failure with glibc.
6707 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6709         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
6710         for backward compatibility with Libtool 1.5.22.  Problem reported
6711         by Ralf Wildenhues.
6713 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6715         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
6716         AC_PROG_CC.
6717         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
6719 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6721         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
6722         the NonStop platform.
6723         * doc/autoconf.texi (Posix Variants): Likewise.
6724         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6726         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
6727         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
6728         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
6729         Use a better substitute, by inspecting the output of "ls"
6730         rather than just using ":".
6731         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
6732         rather than AS_EXECUTABLE_P, since we needn't worry about
6733         non-regular files here.
6735         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
6736         due to configuration hassles with this.  See Tonya Underwood's report
6737         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
6738         * doc/autoconf.texi (Special Shell Variables): Likewise.
6740 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6741             Stepan Kasal  <kasal@ucw.cz>
6743         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
6744         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
6746 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
6748         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
6749           initialization which is not inherited through the environment
6750         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
6751         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
6753 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
6755         * doc/autoconf.texi (Limitations of Usual Tools): Describe
6756         problems with mkdir -p -m.
6758 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
6760         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
6761         comment about ac_cpp_err; it was incorrect, and anyway
6762         ac_cpp_err is being removed below.
6763         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
6764         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
6765         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
6766         nobody uses it.
6767         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
6768         with werror_flag and conftest.err and so forth.  This is more
6769         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
6770         and anyway the user shouldn't normally want to see this gorp logged.
6771         Problem reported by Ralf Wildenhues.
6772         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
6773         empty, not 'no', since the rest of the code uses 'test -z'.
6775 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
6777         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
6778         Use a single call to AC_DO_TOKENS rather than multiple, for
6779         efficiency.
6780         (_AC_LINK_IFELSE): Test that resulting file is executable.
6781         Problem reported by mwoehlke in
6782         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
6784         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
6785         than creating a file to use with test -x; this is much faster.
6787 2006-10-02  Bruno Haible  <bruno@clisp.org>
6789         * lib/autom4te.in (Automake-preselections): Add
6790         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
6792 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
6794         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
6795         standard error, `experr' should be used, not `expout'.
6797 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6799         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
6800         fseeko testing program twice; just use the earlier result.
6801         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6802         Set cache var to 'unknown' (not 'no') if leaving the macro unset
6803         still doesn't let the program compile.
6804         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
6805         failed.
6807         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
6808         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
6809         include it, without including anything else.
6810         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
6811         expressions.
6812         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
6814 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6816         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
6817         `error.h', and include it, for a `error_at_line' prototype.
6818         Use a nonempty format string in the link test.
6819         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
6820         for a declaration of wait3.
6822 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6824         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
6825         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
6826         can apply to constants too, and that it checks for macro defns.
6827         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
6828         and simply cast the identifier to void.  This handles structure
6829         values.  Problem reported by Ralf Wildenhues.
6830         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
6832 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6834         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
6835         structure, and function symbols.
6837 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6839         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
6840         member.
6842 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6844         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
6845         * README: Likewise.
6846         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6848 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6849         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6851         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
6852         warnings (uninitialized value).
6853         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
6854         present.
6855         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
6856         parentheses.
6857         (AC_STRUCT_TM): Likewise, avoid unused variables.
6859 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6861         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
6862         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
6863         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
6864         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
6865         Report by Olly Betts.
6867 2006-09-19  Eric Blake  <ebb9@byu.net>
6869         * m4/m4.m4: Change copyright.
6870         * configure: Regenerate.
6871         * Makefile.in: Likewise.
6872         * bin/Makefile.in: Likewise.
6873         * doc/Makefile.in: Likewise.
6874         * lib/Makefile.in: Likewise.
6875         * lib/Autom4te/Makefile.in: Likewise.
6876         * lib/autoconf/Makefile.in: Likewise.
6877         * lib/autoscan/Makefile.in: Likewise.
6878         * lib/autotest/Makefile.in: Likewise.
6879         * lib/emacs/Makefile.in: Likewise.
6880         * lib/m4sugar/Makefile.in: Likewise.
6881         * man/Makefile.in: Likewise.
6882         * tests/Makefile.in: Likewise.
6884         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
6885         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
6886         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
6887         --error-output, to avoid warnings with M4 2.0.
6889 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
6891         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
6892           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
6893         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
6895 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
6897         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
6898         expansion of AC_CHECK_FUNCS.
6900 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
6902         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
6903         mistaken comment: the path has to be relative; do not use
6904         the path at runtime.
6906 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6908         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
6909         argument to `--prefix' for sub-configure scripts.
6910         Pass `--silent' to sub-configure scripts.
6911         * tests/torture.at (Configuring subdirectories): Add tests
6912         for both changes.
6913         * doc/autoconf.texi (Setting Output Variables): Fix example to
6914         not show `--silent' being passed to a `configure' re-run.
6916 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
6918         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
6919         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
6920         for the existence of the directory at configure-time.  That's
6921         too late, anyway.  Problem reported by Stefan Seefeld.
6923         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
6924         7.1.4 /usr/bin/posix/sh described by Tim Rice in
6925         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
6927 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
6929         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
6930         works with GNU M4 1.4.3 again; make the normalized form
6931         match the current m4 message; fix the description.
6932         * test/tools.at (autom4te cache): Adapt to the change.
6934 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
6936         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
6937         to catch glibc bug 2821
6938         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6940         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
6941         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
6942         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
6943         assume C89.
6945 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
6947         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
6948         preselections ...
6949         (Autoconf): ... here.
6950         (Autoscan-preselections): Delete.
6952 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
6954         * lib/autom4te.in (Automake-preselections): Preselect
6955         AM_ENABLE_MULTILIB.
6957 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6959         * doc/autoconf.texi (Preset Output Variables): srcdir and
6960         top_srcdir are not necessarily relative.  Problem reported
6961         by Dries Kimpe.
6963 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6965         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
6966         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
6967         accept files with extension `.f'.  For consistency, also prefer
6968         xlf over f77.
6969         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
6970         from last patch.
6972 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
6974         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
6975         of ERLANG_LIB_VER_* variables.
6976         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
6977         variables.
6979 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6980         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6982         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
6983         bugs of Bash 2.01 and 2.05a.
6984         (Fortran Compiler): Document that AC_PROG_CC should be called
6985         before AC_PROG_FC, due to a bug in Autoconf.
6987 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6989         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
6990         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
6991         except the first two arguments are reversed.
6992         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
6993         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
6994         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
6995         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
6996         equivalent to the old AC_COMPUTE_INT.
6997         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
6998         All uses changed to AC_CACHE_CHECK_INT.
6999         * tests/base.at (AC_CACHE_CHECK_INT): New test.
7000         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
7002 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
7004         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
7005         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
7006         programs should use their Gnulib counterparts.
7007         * doc/autoconf.texi (Particular Functions): Likewise.
7008         (Macro Names, testsuite Invocation): Replace uses of these
7009         obsolete macros with uses of non-obsolete macros.
7011 2006-08-29  Eric Blake  <ebb9@byu.net>
7013         * configure.ac (AC_INIT): Bump to 2.60b.
7014         * NEWS: Update.
7016 2006-08-28  Eric Blake  <ebb9@byu.net>
7018         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
7019         mistakenly swapped on 2006-08-15.
7021 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7023         * NEWS: Version 2.60a.
7025 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
7027         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
7028         file created by the PGI compiler.
7030 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
7032         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
7033         simplify the code.
7035 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7037         Fix Lex library problem reported to us by Julio Garvia.
7038         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
7039         for the default, which the user can override.
7040         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
7041         deal with LEXLIB.
7042         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
7043         didn't work if some values were cached but not others.  Test for
7044         broken lex libraries like native ia64-hp-hpux11.22; see
7045         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
7046         work around the problem by preferring an empty LEXLIB to -lfl or
7047         -ll.  Let the user set LEXLIB='' to indicate no library needed.
7049         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
7050         * README: Likewise.
7051         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7053 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7055         Rework to use more-modern build style.
7056         Many files are renamed; all uses of their names were changed.
7057         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
7058         * .x-sc_useless_cpp_parens: New file.
7059         * build-aux/config.guess: Renamed from config/config.guess.  Update.
7060         * build-aux/config.sub: Renamed from config/config.sub.  Update.
7061         * build-aux/elisp-comp: Renamed from config/elisp-comp.
7062         * build-aux/install-sh: Renamed from config/install-sh.  Update.
7063         * build-aux/mdate-sh: Renamed from config/mdate-sh.
7064         * build-aux/missing: Renamed from config/missing.
7065         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
7066         * build-aux/vc-list-files: Renamed from config/vc-list-files.
7067         * config/Makefile.am: Removed.
7068         * config/mkinstalldirs: Removed.
7069         * config/move-if-change: Removed.
7070         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
7071         * Makefile.am (SUBDIRS): Remove config.
7072         (ACLOCAL_AMFLAGS): Include from m4, not config.
7073         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
7074         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
7075         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
7076         Fail if there's an error.
7077         * Makefile.cfg (move_if_change): Remove.
7078         (wget_files): Remove.
7079         (cvs_executable_files): New macro.
7080         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
7081         (executable-update): Use $(cvs_executable_files).
7082         (local-checks-to-skip): Remove.
7083         * Makefile.maint: Merge from coreutils, plus add our own changes
7084         (gzip_rsyncable): New macro.
7085         (GZIP_ENV): Use it.
7086         (CVS_LIST): Use build-aux/vc-list-files.
7087         (VERSION_REGEXP): New macro.
7088         (local-checks-available): Add patch-check, $(syntax-check-rules),
7089         check-AUTHORS.
7090         (syntax-check-rules): Compute dynamically.
7091         (sc_cast_of_x_alloc_return_value): Work even if no source files.
7092         (sc_cast_of_alloca_return_value): Likewise.
7093         (sc_prohibit_atoi_atof): Simplify regexp.
7094         (sc_no_if_have_config_h, sc_require_config_h):
7095         (sc_prohibit_assert_without_use,
7096         (sc_obsolete_symbols): Check for O_NDELAY.
7097         (sc_texi_notab): Remove.
7098         (sc-changelog): Don't make an exception for '----' lines.
7099         (.re-list): Remove, so we don't have a junk file behind.
7100         (sc_system_h_headers): Remove the need for .re-list.
7101         (sc_the_the):  New rule.
7102         (sc_tight_scope): Simplify.
7103         (sc_trailing_blank): Renamed from sc_trailing_space.
7104         (longopt_re): New macro.
7105         (sc_two_space_separator_in_usage): New rule.
7106         (sc_unmarked_diagnostics): Look at all files under CVS.
7107         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
7108         (news-date-check, changelog-check): Version is OK.
7109         (po-check): Look for lib files even if not in CVS.
7110         (copyright-check): Use $() not ``.
7111         (maintainer-distcheck): Do not depend on changelog-check.
7112         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
7113         Also check for -Wpointer-arith.
7114         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
7115         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
7116         Remove.
7117         (announcement): Add --gpg-key-id arg.
7118         (cvs-sv): Remove.
7119         (move_if_change): Just use mv.
7120         (local_updates: Remove wget-update, po-update.
7121         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
7122         (config.guess-url_prefix, config.sub-url_prefix): Remove.
7123         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
7124         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
7125         ($(get-targets)): Remove.
7126         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
7127         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
7128         (cvs-update): Get from gnulib.
7129         (emut_upload_commands): gnupload is in build-aux now.
7130         (alpha beta major): Add changelog-check.  Check version.
7131         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
7132         (AC_CONFIG_FILES): Remove.
7133         * bin/autoconf.as: Add spaces to avoid distcheck warning.
7134         * config/announce-gen: Sync from coreutils.
7135         * doc/make-stds.texi: Sync from gnulib.
7136         * doc/standards.texi: Likewise.
7137         * man/Makefile.am: Adjust for config -> build-aux renaming.
7138         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
7139         * tests/local.at: Adjust from config -> build-aux renaming.
7140         * tests/tools.at: Likewise.
7141         * tests/torture.at: Likewise.
7143         * NEWS: The C99 check now tests for vararg macros and 64-bit
7144         preprocessor ints.
7145         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
7146         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
7147         64-bit preprocessor ints.  Check for static initialization of
7148         long long.  Remove unnecessary casts.
7150 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7152         * doc/autoconf.texi (Particular Programs): Mention that
7153         @INSTALL@ and @MKDIR_P@ may vary for different output files.
7154         Reported by Alexandre Duret-Lutz.
7156 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7158         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
7159         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
7160         Bill Northcott in
7161         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
7163 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
7165         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
7166         pacify insanely picky compilers.  Problem reported by Eric Blake.
7168         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
7169         longer supported by Sun.
7171 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7173         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
7174         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
7175         -Wundef -Werror".  Problem reported by David Fang in
7176         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
7177         * doc/autoconf.texi (Header Templates, Default Includes):
7178         (Particular Functions, Generic Functions, Header Portability):
7179         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
7180         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
7181         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
7182         Prefer #ifdef to #if.
7183         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
7184         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
7185         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
7186         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
7187         Likewise.
7188         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
7189         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
7190         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
7191         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7192         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
7193         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
7194         this.
7196 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7198         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
7199         problems with arg script text that doesn't end in newline, and
7200         with '-e a...'.  Problems reported by Ralf Wildenhues.
7202 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
7204         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
7205         check for libXt by a check for libX11.
7207 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7209         * doc/autoconf.texi (config.status Invocation): Adjust according
7210         to last change.
7212 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7214         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
7215         --help' should mention that `--version' outputs configuration
7216         settings.  Report by Bruno Haible.
7218 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
7220         Fix test suite failures reported by Pierre in
7221         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
7222         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
7223         the compiler created a file "b.out" when it didn't create anything
7224         at all.
7225         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
7226         Discard stderr too, when invoking the test script.
7228 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
7230         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
7231         in the restoring of the werror flag.
7233 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7235         * doc/autoconf.texi (Volatile Objects): Be even a little
7236         less skeptical about "volatile", after discussion with
7237         Bruno Haible on bug-gnulib.
7238         (Limitations of Usual Tools): Warn about sed stripping
7239         leading white space from text.  From Bruno Haible.
7241 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
7243         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
7244         compiler complains about it, even if things works after the
7245         complaint.  Problem reported by Peter O'Gorman.
7247         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
7248         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
7249         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
7251 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
7253         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
7254         after -R regardless of host.  Patrick Welche reports that this
7255         fixes things on NetBSD 3.99.
7257         * NEWS: Recommend M4 1.4.5.
7258         * README: Likewise.
7259         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7260         * tests/tools.at (autom4te cache): Update wording of diagnostic
7261         to match M4 1.4.5.
7263 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7265         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
7266         under AC_C_VOLATILE.
7267         (Volatile Objects): Be a little less skeptical about what
7268         "volatile" means.  Derived from thoughts by Ben Pfaff in
7269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
7271 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7273         * doc/autoconf.texi: Fix some typos.
7275 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7277         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7278         more globally, since the 2006-06-30 patch didn't suffice.  Problem
7279         reported by Keith Marshall.  Also, don't bother with builddir2,
7280         since it shouldn't be needed any more.
7282 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
7284         * doc/autoconf.texi (Generic compiler characteristics):
7285         Document AC_COMPUTE_INT.  Fix wrong statements on Default
7286         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
7288         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
7289         (_AC_COMPUTE_INT): Add obsoletion warnings.
7290         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
7291         AC_COMPUTE_INT.
7293         * NEWS: Document change.
7295 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7297         * doc/autoconf.texi (Volatile Objects): New section.
7299         * NEWS: Document previous change.
7301 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7303         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7304         Require that long long int be at least 64 bits wide.  C99 requires
7305         this and enough programs depend on it so we should check for it.
7306         Bruno Haible reports in
7307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
7308         that long long int is 32 bits wide with some nonstandard compilers.
7309         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7311 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7313         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7314         to a nonexistent file, so that we don't have to worry about
7315         a local site configuration that doesn't use /usr/local.
7316         Problem reported by Keith Marshall in
7317         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
7319 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
7321         * doc/autoconf.texi: Be more consistent about using @acronym with
7322         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
7323         quite right (it talked about "OSF/Tru64", even though the
7324         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
7325         and it even mentioned "OSF 4"!) and at this point there's little
7326         reason to talk about OSF any more, since it died in 1994.
7327         (Specific Compiler Characteristics): Simplify example of
7328         negative-size array.
7329         (File Descriptors): Reorder to make the text flow better.
7330         Remove joke about "appreciate the various levels"; I didn't get it.
7331         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
7332         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
7333         (File Descriptors, Limitations of Usual Tools):
7334         Tone down the advice against renaming or removing open files.
7335         (Limitations of Usual Tools): Add a new section, on 'rm'.
7337 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
7339         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
7340         -lXt in LIBS, idea from Karsten Hopp; this was due since
7341         this change:
7343         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7344         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
7345         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
7346         (which belong to Xt, not X itself).  See Debian bug 327655.
7348 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7350         * configure.ac (AC_INIT): Bump to 2.60a.
7351         * NEWS: Update.
7353 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7355         Version 2.60.
7357         * configure.ac, NEWS: Update.
7359 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7361         * config/texinfo.tex: Sync from upstream.
7363         * bin/autom4te.in (handle_traces): Transform the `@S|@'
7364         quadrigraph correctly in traces.
7366         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
7367         Fix typos.
7369         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
7370         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
7371         not defined.
7372         * doc/autoconf.texi (Changed Directory Variables): New node,
7373         to document the whole `datarootdir' business a bit better.
7374         * NEWS: Update.
7375         * tests/torture.at (datarootdir workaround): Extend test.
7376         Prompted by report by Alexandre Julliard.
7378 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7380         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
7381         when using default mode of IBM C 6 for AIX.  Problem and two-line
7382         fix reported by Larry Jones.
7384 2006-06-22  Alexandre Julliard <julliard@winehq.org>
7386         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
7387         about literal '${datarootdir}' if a definition is found in the
7388         output file.
7390 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7392         * NEWS: Use "M4" rather than "m4" when appropriate.
7393         Problem reported by Eric Blake.
7394         * doc/autoconf.texi: Likewise.
7395         Use @acronym around BSD, GCC, and GNU when appropriate.
7396         (Why GNU M4): Renamed from "Why GNU m4".
7397         (Redefined M4 Macros): Mention that Posix
7398         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
7399         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
7400         to int.
7402 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7404         * bin/autom4te.in (handle_output): Do not forbid the empty
7405         pattern.
7406         * tests/tools.at (autoconf: the empty token): New test.
7408 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
7410         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
7411         calls, so that we do not care whether they are LIFO or FIFO;
7412         in the m4_wrap, do not check which diversion is the topmost
7413         one, just check that the stack is balanced at the end.
7414         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
7415         base diversion forever--pop the previous diversion before
7416         opening the new one; consequently, remove the m4_wrap call.
7417         * lib/autotest/general.m4 (AT_INIT): Likewise.
7418         * tests/m4sugar.at: Do not use
7419         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
7421 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7422         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7424         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
7425         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
7426         Rework example of m4wrap token-pasting trouble so that it doesn't
7427         care whether it's LIFO or FIFO.
7428         Fix some "contrary to"s that are awkward in English.
7430 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7432         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
7433         to `yes' instead of `int$1_t' if the type is found, for more
7434         consistent configure output (where $1 is the number of bits).
7435         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
7436         Suggested by Bruno Haible.
7438         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
7439         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
7440         with system headers.  Report by Bruno Haible.
7442 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7444         * config/config.guess, config/config.sub: Sync from upstream.
7446         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
7447         in order to avoid picking up an older installed frozen m4sh.m4f.
7448         Besides an outdated shell startup, this could have been created
7449         by an earlier M4 version with incompatible frozen file format.
7451 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7453         * README: Recommend m4 1.4.4 instead of 1.4.3..
7454         * doc/autoconf.texi: Likewise.
7455         (Special Chars in Names): Say that $(.FOO) is portable, as
7456         suggested by Stepan Kasal.
7457         (Installation Directory Variables, Build Directories):
7458         (Automatic Remaking, Subdirectories, Fortran Compiler):
7459         (Making testsuite Scripts, Defining Directories):
7460         Quote variable usages better.
7461         (Making testsuite Scripts): Add clean-local rule to makefile
7462         snippet, by Eric Blake.
7463         (Installation Directory Variables): Fix table item font.
7464         Reword slightly to clarify.  Generalize advice about
7465         not using special characters to include all file-related
7466         vars, not just VPATH.
7467         (Special Chars in Variables): Warn about special characters in
7468         $(srcdir) too.
7469         (Assignments): Clarify default-value example as suggested by
7470         Ralf Wildenhues in
7471         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
7472         (Special Shell Variables): Note leading ./ or ../, as suggested
7473         by Eric Blake.
7474         (Limitations of Builtins): Under cd, warn about CDPATH.
7475         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
7476         Ralf Wildenhues.
7478 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7480         * doc/autoconf.texi (Configuration Actions): Remove duplicate
7481         `@var', for texi2html.
7482         (Systemology): Some more word wrapping, for DVI output.
7483         (autom4te Invocation): The short option for `--melt' is `-M',
7484         not `-m'.
7486 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7488         * doc/autoconf.texi: More formatting and English tweaks,
7489         many suggested by Ralf Wildenhues.
7490         Reword to avoid "@code{...}'s" and the like, since it's ugly
7491         with Emacs info mode.  discontents -> woes.
7492         Put a few "will"s back.  time stamp -> timestamp.
7493         side-effect -> side effect.
7495 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7497         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
7498         Warn about $@ not persisting.  Problem reported by Julien Danjou in
7499         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
7500         (Special Chars in Names): Renamed from Leading _ in Macro Names.
7501         Mention other special chars, too.
7503 2006-06-14  Eric Blake  <ebb9@byu.net>
7505         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
7507 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7509         * doc/autoconf.texi: Some systematic minor improvements, as
7510         follows.  Use "makefile" when talking about makefiles
7511         generally (which might be named "makefile" or "Makefile" or even
7512         "foo.mk"), "Makefile" when talking about a specific makefile
7513         called "Makefile".  This unclutters the text from weird quotes
7514         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
7515         values" rather than "@var{foo}s" and similar constructs containing
7516         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
7517         English-language improvements.  Change the prefix "sub-" to "sub"
7518         and "re-" to "re".
7519         Put blank lines around examples more consistently.
7520         Avoid "rather" and "very" as intensifiers.
7521         Avoid "will" as an auxiliary.
7522         (Limitations of Make): Split this node into....
7523         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
7524         (Leading _ in Macro Names, Backslash-Newline-Newline):
7525         (Backslash-Newline Comments, Long Lines in Makefiles):
7526         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
7527         (obj/ and Make, make -k Status, VPATH and Make):
7528         (VPATH and Double-colon, $< in Explicit Rules):
7529         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
7530         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
7531         New nodes, resulting from splitup of Limitations of Make.
7532         All cross-references changed.  Raise the top node from
7533         a section to a chapter, and all subnodes accordingly.
7534         Redo the introductory wording to match the new organization.
7535         (Installation Directory Variables): Use an example that is
7536         closer to what Autoconf actually does.  Mention that VPATH's
7537         value should not contain metacharacters or white space.
7538         (Fortran Compiler): Fix a VPATH bug in an example.
7539         (Leading _ in Macro Names): Mention that this problem is no longer
7540         of practical concern.
7541         (VPATH and Make): Reword the advice to make it clearer
7542         that Autoconf and Automake support VPATH in non-GNU make, but
7543         many packages have bugs in this area.
7544         ($< in Explicit Rules): Refer to Build Directories rather
7545         than using a (non-VPATH-safe) example.
7546         (Automatic Rule Rewriting): Mention the sort of disaster that
7547         can ensue with Solaris-style rule rewriting with VPATH.
7549 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7551         * doc/install.texi (Compilers and Options): Weaken the
7552         suggestion to use GNU make for VPATH builds.
7554         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
7555         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
7557         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
7558         in regular expression.
7560 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7562         * doc/autoconf.texi (Installation Directory Variables):
7563         Drop extra @samp from `@table @samp' item.
7564         (Limitations of Usual Tools): Comment fix.
7565         Do not nest @samp just to point to other table items.
7566         (Writing testsuite.at) <AT_CHECK>: The second argument to
7567         `@dvar' is already @samp'ed.
7568         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
7569         do not use @var in the second argument.
7571 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7573         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
7574         $as_shell.exe too.  Problem reported by Andreas Buening in
7575         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
7577 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7579         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
7580         `unused variable' compiler warning, for `-Wall -Werror'.
7581         Reported by Jaap Haitsma in
7582         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
7584 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
7586         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
7587         case the compiler dumps core.  Problem reported for
7588         OpenServer 5.0.7 by Tim Rice in
7589         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
7590         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
7591         Likewise.
7593 2006-06-06  Tim Rice <tim@multitalents.net>.
7595         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
7596         "ERROR" only shows up in "make check" output if there is an
7597         error.
7599 2006-06-06  Eric Blake  <ebb9@byu.net>
7601         * tests/tools.at (automatically allowed tokens): Fix typo.
7603 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7605         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
7607         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
7608         typically overflows on x86 CPUs, even though the C standard
7609         requires otherwise.
7611 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7613         * configure.ac (AC_INIT): Bump to 2.59e.
7614         * NEWS: Update.
7616 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7618         Version 2.59d.
7620         * config/texinfo.tex: Sync from upstream.
7622         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
7623         seen, invoke libtoolize with `--ltdl' argument.
7624         * lib/autom4te.in (Autoreconf-preselections): Adjust.
7625         * NEWS: Update.
7626         Suggested by Eric Blake.
7628 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7630         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
7631         reported by Ralf Wildenhues.
7632         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
7634 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7636         * THANKS: Update.
7638 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7640         * doc/autoconf.texi: Modernize some of the references to Solaris.
7642 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
7644         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
7645         message issued by AC_REQUIRE.
7646         * tests/m4sugar.at: Check m4_require's error message.
7647         * tests/base.at: Check AC_REQUIRE's error message.
7648         * tests/local.at (AT_CHECK_M4): New macro, almost identical
7649         to...
7650         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
7651         AT_CHECK_M4.
7652         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
7653         `expout' as the last parameter.
7654         * tests/tools.at: Adapt to the above change.
7656 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
7658         * doc/autoconf.texi (Limitations of Usual Tools): Correct
7659         information about race-free implementations of mkdir.
7661 2006-06-04  Eric Blake  <ebb9@byu.net>
7663         * bin/autoreconf.in (help): Document M4 environment variable.
7664         * bin/autoconf.as (Usage): Likewise.
7665         * bin/autom4te.in (help): Likewise.
7666         * doc/autoconf.texi (autom4te Invocation): Likewise.
7668 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7670         * NEWS: GNU make now recommended for VPATH builds.
7671         Mention that some macros are now documented to be obsolescent.
7672         * doc/autoconf.texi:
7673         Prefer "current" to "modern" to describe
7674         currently-used (albeit perhaps old-fashioned) hosts.
7675         Mention which ancient features no longer need to be worried about.
7676         setgid -> set-group-ID
7677         setuid -> set-user-ID (these are the Posix terms)
7678         Fix some misuses of "only".
7679         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
7680         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
7681         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
7682         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
7683         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
7684         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
7685         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
7686         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
7687         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
7688         Mention that these macros are obsolescent.
7689         (Installation Directory Variables): shall -> should
7690         (File Descriptors): Mention that 0, 1, 2 might get reopened.
7691         Mention that it's now safe to use 3 and 4.
7692         (Limitations of Usual Tools): cp -r is now specified by Posix.
7693         Omit longwinded and obsolescent discussion of cp -f.
7694         Modernize discussion of expr, ls.
7695         (Limitations of Make): Modernize discussion of VPATH builds.
7696         Mention $? as a workaround in some cases.
7697         * doc/install.texi (Basic Installation):
7698         Mention "./configure; make; make install" first.  Be more
7699         specific about why this file is generic.  Remove unnecessary
7700         parens.  Remove misleading "only".  Remove obsolete advice
7701         about csh.  Don't say "configure" takes awhile; say it
7702         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
7703         and CC=c99 rather than CC=c89, as these are blessed by current
7704         Posix.  Recommend GNU make if doing a VPATH build.
7706 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
7708         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
7709         examples involving shell prompts.
7711 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
7712         and Paul Eggert  <eggert@cs.ucla.edu>
7714         * doc/autoconf.texi (Here-Documents): Add details about the
7715         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
7716         use "here-documents" instead of "here documents".
7718 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7720         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
7722 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7724         * doc/autoconf.texi (File System Conventions): Warn about ":"
7725         anywhere in directory names.
7727 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7729         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
7730         about quoting the case statement, just in case.
7731         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
7732         was fixed in ksh93g; reported by Ralf Wildenhues.
7734 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
7736         * doc/autoconf.texi (System Services): Do not document
7737         overriding EXEEXT via ac_cv_exeext=ext.
7738         (Particular Programs) <AC_PROG_MKDIR_P>:
7739         Document that ${MKDIR_P} understands --.
7740         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
7741         comment.
7743 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7745         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
7746         argument with leading hyphen.  Problem reported by Paul Eggert.
7748 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
7750         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
7751         about quoting ac_try: quote all of it, if any of it seems suspicious.
7752         This means we don't have to worry about ${ or sed any more.
7753         Also, double-quote the case statement, to work around misuses via
7754         underquoting as reported by Ralf Wildenhues in
7755         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
7756         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
7757         undocumented and dangerous macro.
7758         Problem reported by Ralf Wildenhues in
7759         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
7761 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7763         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
7764         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
7765         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
7767 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
7769         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
7770         since evidently some packages rely on the old, broken behavior.
7771         Problem reported by Ralf Wildenhues in
7772         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
7773         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
7774         pre-2006-05-26 definitions, but leave in the comments that
7775         these macros are dangerous and should not be used.
7776         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
7777         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
7778         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
7779         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
7780         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
7782 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7784         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
7785         the use of 'tr', since this is our only use of 'tr'.
7787 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7788         and Paul Eggert  <eggert@cs.ucla.edu>
7790         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
7791         Don't assume 'grep' works on long lines, since AIX grep doesn't.
7793 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7795         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
7796         the output file in the `${datarootdir}' test.
7798 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
7799         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7801         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
7802         mention of `datarootdir' in the input file(s), but literal
7803         `${datarootdir}' in the output file, and we haven't warned yet,
7804         then warn as well: the user may have (erroneously) used
7805         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
7806         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
7807         * tests/torture.at (datarootdir workaround): Extend this test.
7808         * NEWS: Update.
7810 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7811         and Paul Eggert  <eggert@cs.ucla.edu>
7813         * doc/autoconf.texi (autoheader Invocation): The first argument to
7814         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
7815         alternatives and clear up the language a bit.
7817 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
7819         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
7820         ac_config_guess, ac_config_sub, ac_configure.
7821         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
7822         Fix typo that prevented an unnecessary space from being removed.
7823         Problems reported by Ralf Wildenhues in:
7824         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
7826 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
7828         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
7829         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
7830         Don't use the term "thread-safe" to talk about mkdir race
7831         conditions, since the problem is more a process than a thread
7832         issue.  Problem reported by Stepan Kasal in:
7833         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
7834         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
7835         the test for 'install' more closely.  Look at MKDIR_P first.
7836         Look in the PATH, and at /opt/sfw/bin.
7837         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
7838         Don't bother to try mkdir -p, since we already check mkdir --version;
7839         just look at the version number.  (There's no easy way to check
7840         for race-free implementations.)
7841         * tests/tools.at (autoconf: subdirectories): Adjust to above
7842         changes, since MKDIR_P now might end in "/mkdir -p".
7844         * doc/autoconf.texi (autoheader Invocation): Mention that the
7845         first arg of AC_DEFINE_UNQUOTED must be a literal.
7846         Problem reported by Ben Pfaff in
7847         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
7849         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
7850         * doc/autoconf.texi (Special Chars in Variables): New section.
7851         (Preset Output Variables): Warn about special chars in CPPFLAGS.
7852         (Installation Directory Variables): Quote $(datadir) better.
7853         (Limitations of Builtins): Describe some of eval's trickiness.
7855         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
7856         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
7857         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
7858         in front of every arg, not just trailing args.  Quote apostrophes.
7859         (_AC_EVAL_ECHO): New macro.
7860         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
7861         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
7862         removed.
7863         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
7864         exposed by quoting of eval argument.  Put the command on line line
7865         so it logs better.
7866         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
7867         (_AC_PATH_X, AC_PATH_X): Quote more safely.
7868         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
7869         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
7870         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
7871         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
7872         Use eval more safely.
7873         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
7874         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
7875         to be replaced.
7876         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
7877         lines, exposed by quoting of eval argument.
7879 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
7880         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7882         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
7883         initialization of `ac_cv_exeext', do not override it if it was
7884         already set, unless it was set to `no', for compatibility with
7885         Autoconf-2.13, and comment this.
7886         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
7887         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
7888         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
7889         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
7890         Document that this test may be overridden by setting
7891         `ac_cv_exeext'.
7893 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7895         Revert these two patches:
7897         2006-04-06  Eric Blake  <ebb9@byu.net>
7898         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
7899         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
7900         2006-04-01.
7902         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7903         Clean up _AC_COMPILER_EXEEXT* macros.
7904         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7905           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7906           ac_file to the name of the default output file and call
7907           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
7908           initial `rm' of the candidate files...
7909         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
7910           the same list in subsequent `rm' calls, and for the temporary
7911           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7912           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7913         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7914         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7915           no longer needed) by libtool.  Make it a cache check.
7916         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7917           copied here by mistake.
7918         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7919           _AC_COMPILER_EXEEXT.
7920         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7921           _AC_COMPILER_OBJEXT directly.
7922         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7924 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7926         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
7927         Fix description of how the buggy `sed' works.
7929 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
7931         Sync from Automake:
7933         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
7934         ENOLCK.  Only mention `make -j' when applicable.  Only raise
7935         fatal errors when `make -j' is involved.  Improve error message.
7937 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7939         * doc/autoconf.texi (Here-Documents): We now know more about
7940         the variable expansion in here documents bug.
7941         Thanks to Tim Rice and Stepan Kasal.
7943         * doc/autoconf.texi (Making testsuite Scripts): Add an example
7944         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
7946 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7948         * tests/autotest.at (Multiline command from M4 expansion):
7949         No failure to be expected if the shell quotes newlines in
7950         commands in the `set -x' output.  Report by Tim Rice.
7951         * THANKS: Update.
7953 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7955         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
7956         expansion in the here-documents used by config.status, as that
7957         runs afoul of the Korn shell version M-12/28/93d bug described in
7958         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
7959         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
7960         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
7962 2006-05-23  Jim Meyering  <jim@meyering.net>
7964         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7965         Fix typo introduced with 2006-04-02 change.  It reversed the sense
7966         of the test.
7968 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7970         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
7971         ac_dB slightly, to save bytes in the script.
7972         Max out at 50 lines, rather than 96; this is more likely
7973         (though not guaranteed) to avoid obscure 'sed' failures.
7975 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7977         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
7978         `tr -d -' as bad option argument.  Work around this by deleting
7979         an unrelated character.
7980         Report by Tim Rice <tim@multitalents.net>.
7982 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
7983             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
7984             Stepan Kasal  <kasal@ucw.cz>
7986         * doc/autoconf.texi (Particular Programs): Do not promise that
7987         we always prefer the GNU version of the program, and that we
7988         search according to PATH; both rules can have exceptions.
7989         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
7990         AC_PROG_SED.  Move descriptions of limitations
7991         to the Limitations of Usual Tools section.
7992         (Limitations of Usual Tools) <sed>: Mention script length
7993         limitations with Solaris /usr/ucb/sed.
7994         <grep>: Fix wording for empty alternative.  Mention that -c and
7995         -l should not be combined, and that -E and -F should not be
7996         combined.
7998 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7999         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8001         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
8002         limits in Solaris 8 /usr/ucb/sed by testing a long script.
8004 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
8006         * doc/autoconf.texi (Defining Symbols): Literal parameter of
8007         AC_DEFINE is now passed to m4_pattern_allow.
8008         * NEWS: Mention that; likewise for AC_SUBST.
8009         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
8010         the parameter to m4_pattern_allow.
8011         * tests/tools.at: Add a check for that.
8013 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
8015         * lib/autoconf/status.m4: Fix typos.
8017 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8019         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
8020         only the files that this macro generates.
8022 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8024         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
8025         the HP-UX sed limitation of 99 commands, labels do not count.
8026         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
8027         in the comment.
8028         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
8030 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8032         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
8033         Import the following fix from coreutils:
8035         2006-01-13  Jim Meyering  <jim@meyering.net>
8037         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8038         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
8039         not double-quote uses of that variable, to accommodate the rare
8040         case in which getmntent is available in none of the libraries
8041         checked.  This happens at least on FreeBSD 5.0.
8043 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8045         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
8046         ac_config_guess, ac_config_sub, and ac_configure, since evidently
8047         some other programs unwisely rely on these undocumented vars.
8048         But put in warning comments about them.
8049         Problem reported by Ralf Wildenhues in
8050         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
8051         * NEWS: Document that these variables are intended to go away.
8053 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8055         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
8056         and set the language to C++ (analogous to the equivalent Fortran
8057         tests).
8059         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
8060         * doc/autoconf.texi (C++ Compiler): Document it.
8061         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
8062         * NEWS: Update.
8064 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8066         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
8067         that caused config.status to generate 100-command sed scripts; the
8068         portable limit is 99.
8070 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8072         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
8073         variable `ac_d' instead of `d' to avoid infringing namespace.
8074         Report by Ralf Menzel.
8076 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
8078         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
8079         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
8080         * tests/tools.at (autoconf: subdirectories): New test, taken from
8081         the corresponding problem report by Ralf Wildenhues in:
8082         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
8084         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
8085         Quote some uses of shell variables if they might suffer unexpected
8086         globbing.  This doesn't fix all instances of quoting problems that
8087         I found, just the easy ones that look safe.
8088         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
8089         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
8090         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
8091         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
8092         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
8093         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
8094         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
8095         Likewise.
8096         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
8097         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
8099 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8101         * bin/autoreconf.in ($help): Reword according to the manual.
8102         Suggested by Olly Betts.
8104 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
8105         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8107         * bin/autoreconf.in: Pass the directory argument to
8108         `require_configure_ac'.  Fix comment.
8109         * tests/torture.at (Configuring subdirectories): Expose this.
8110         Reported by Olly Betts.
8112 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8114         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
8115         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
8116         Automake as follows:
8118         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
8119         `$configure_in' instead of `configure.in', to preserve
8120         directory component.
8122 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8124         * config/config.guess, config/config.sub, config/texinfo.tex,
8125         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
8127 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8129         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8130         test for C99 conformance; (bool) 0.5 is an integer constant
8131         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8132         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8134 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8136         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
8137         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
8138         Warn about obsolete install-sh files.  Remove stray sentence
8139         fragment and fix cross reference.
8140         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
8141         install -d; this undoes the 2006-05-10 change.
8142         (MKDIR_P): Mark with AN_MAKEVAR.
8143         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
8144         that we don't require $INSTALL to be thread-safe.  Move comments
8145         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
8146         of AC_PROG_INSTALL.  Output a message saying that we're checking
8147         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
8148         MKDIR_P instead of AC_SUBST.
8149         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
8150         Special magic for MKDIR_P, too.
8151         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
8152         a dnl.
8153         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
8155 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8157         Sync from Automake, as follows:
8159         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8160         * config/install-sh: Initialize IFS, so field splitting isn't
8161         turned off later.
8162         * config/mkinstalldirs: Likewise.
8163         * config/missing: Remove superfluous quotes.  Replace all uses of
8164         `[' by `test', for consistency, and for..
8165         * config/missing (sed_minuso, sed_output): New variables.
8166         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
8167         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
8168         Fixes `missing' to detect `--output' for help2man.  Fixes
8169         PR automake/483.  Report by Dennis J. Linse.
8170         (autom4te): Document in `missing --help'.
8172 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8174         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
8175         * config/install-sh: Don't use 'path' to talk about file names,
8176         as per GNU coding standards.  Close a race condition reported by Ralf
8177         Wildenhues and Stepan Kasal.  There is still a race condition
8178         on hosts that predate Posix 1003.1-1992, but we can't help this.
8179         Don't mishandle weird characters like space on pre-Posix hosts.
8180         Invoke mkdir at most once per dir arg on pre-Posix hosts.
8181         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
8182         AC_PROG_MKDIR_P from AS_MKDIR_P.
8183         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
8184         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
8185         earlier editions are not (including Automake 1.8.3).
8186         Do not suggest mkinstalldirs for thread-safety.
8187         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
8188         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
8189         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
8190         presence of special characters and race conditions.
8191         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
8192         in Autoconf's name space.
8194 2006-05-10  Bruno Haible  <bruno@clisp.org>
8195         and Paul Eggert  <eggert@cs.ucla.edu>
8197         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
8198         from Automake with minor changes.
8199         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
8201 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8203         * config/install-sh: Update to Automake CVS version, as follows:
8204         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
8205         * lib/install-sh: Simplify the expr implementation of dirname.
8206         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8207         * lib/install-sh: Handle --, and diagnose unknown options.
8209 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8211         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
8212         `./autom4te' to create `./testsuite', since the `all' target
8213         will ensure its presence, but `installcheck' should not create
8214         the uninstalled wrappers.
8216         * tests/torture.at (Unusual Automake input files): Skip if we
8217         detect automake < 1.8.
8219 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8221         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
8222         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
8223         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
8224         * NEWS: Update.
8226 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8228         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
8229         munge (multiple) white space and other oddities.
8230         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
8231         single quotes in variable assignment.
8232         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
8233         and similar failures by adding multiple spaces, tabs, and other
8234         special characters.
8235         Report and different test suggested by Francesco Romani
8236         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
8238         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
8239         single quotes, we only need to search for single quotes; this
8240         both simplifies the search pattern, and makes us less
8241         susceptible to `echo' variations for arguments not containing
8242         single quotes.
8243         (_AC_ARG_VAR_VALIDATE): Likewise.
8245 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8247         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
8248         `$*' and IFS concatenation issue with traditional shells and
8249         bash-2.04.  Report by Seanster@Seanster.com.
8251 2006-05-03  Bruno Haible  <bruno@clisp.org>
8253         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
8254         precisely which Mac OS X versions have the od problem.
8256 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8258         * doc/autoconf.texi: Use @option systematically.
8260 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8261         and Bruno Haible  <bruno@clisp.org>
8263         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
8264         about 'od'.
8265         (Integer Overflow): Mention the special case of integer division
8266         overflow.
8268 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8270         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
8271         traditional shells like the Solaris one that do not use the
8272         first IFS character for assembling `$*'.
8273         Prompted by a related report from autoconf_bug@nro.ca.
8275 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8276         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8278         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
8279         Mention more problems with the -e option.
8281 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8283         * NEWS: Typo.
8284         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
8286         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
8287         in URLs to improve DVI formatted output (requires texinfo 4.6).
8288         (System Services, Systemology, Shellology): Likewise.
8289         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
8290         output.
8292         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
8293         continuous text.
8294         (Runtime): Fix macro argument names to match description:
8295         `action-if-found' -> `action-if-true' and similarly.
8296         (Obsolete Macros): Likewise.
8297         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
8298         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
8299         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
8301 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8303         * doc/autoconf.texi (Limitations of Make): Clean up markup.
8305         * ChangeLog: Typo.
8306         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
8307         DVI output.
8309 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8311         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
8312         /bin/sh set unsorted output.
8313         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
8314         * tests/local.at: Likewise.
8316 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8318         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
8319         (Integer Overflow, Null Pointers, Buffer Overruns):
8320         (Floating Point Portability, Exiting Portably): New sections.
8321         (Writing Test Programs): Fix some langauge.  Recommend exiting
8322         with status 1, not merely nonzero.  Clarify exit declaration.
8323         (Run Time): Move C exit status stuff to new Exiting Portably section.
8324         (Systemology): Mention Posix and levenez.  Update v7 reference.
8325         (Portable Shell): Mention the Posix shell.
8327 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
8329         * bin/autoconf.as (me): Replace by as_me.
8331 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8333         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
8334         since as_me isn't set yet.
8336 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8338         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
8339         a few minor bugs in this area.
8341         * doc/autoconf.texi (Programming in M4sh): Comment out the
8342         documentation of AS_BASENAME, for now.
8343         (Shell Substitutions): Do not use AS_DIRNAME in an example.
8344         (Limitations of Builtins) <basename>: Do not refer to
8345         AS_BASENAME.
8346         * bin/autoconf.as (me): Don't use AS_BASENAME.
8347         (dir): Remove the unused variable.
8348         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
8349         AS_DETECT_REQUIRED.  All uses changed.
8350         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
8351         All uses changed.
8352         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
8353         (AS_BASENAME): Use "basename --" to protect against leading "-".
8354         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
8355         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
8356         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
8357         (_AS_DIRNAME_PREPARE): Likewise.
8358         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
8359         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
8360         (AS_DIRNAME): Use "dirname --".
8362 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8364         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
8365         of "run time" and "run-time" changed to "runtime", for consistency.
8366         * lib/autoconf/fortran.m4: Likewise (in comment).
8367         * lib/autoconf/functions.m4: Likewise.
8368         * lib/autoconf/general.m4: Likewise.
8369         * lib/autoconf/headers.m4: Likewise.
8371         * doc/autoconf.texi (Run Time): Document the exit status situation
8372         with more accuracy and detail.
8374 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8376         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
8377         Archive is not officially `GNU' any more.  Update URL.
8378         (Defining Directories): Likewise
8379         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
8381 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8383         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
8384         newline from the `trap' code to finish `config.log'; the NetBSD
8385         /bin/sh resets the exit status after an empty command, as
8386         documented in doc/autoconf.texi.
8387         Reported by Dalibor Topic <robilad@kaffe.org>.
8389 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8391         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
8392         Suggested by Bruno Haible.
8394 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
8396         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
8397         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
8398         Instead, just list the shells that we know work.
8399         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
8400         changed.  Be more cautious about the _cv_ variable.
8401         * tests/tools.at (Syntax of the shell scripts): Check the
8402         _cv_ variable once, at first, to avoid an internal autoconf error
8403         when sh -n does not work.
8405 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8407         * lib/Autom4te/FileUtils.pm: Sync from Automake.
8409 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8411         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
8412         use ">&-" since we're only 99.999% sure that this is portable,
8413         and since the MinGW bug is fixed in a different way.
8414         * lib/autotest/general.m4 (AT_INIT): Likewise.
8416 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
8418         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
8419         before opening config.log, to avoid hitting a bug on MinGW.
8421 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
8423         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
8424         AS_MESSAGE_LOG_FD before reopening it onto the log file.
8425         This works around a MinGW bug reported by Eric Paire.
8426         Make sure that all writes to the log file append to it,
8427         rather than possibly losing data.
8428         * lib/autotest/general.m4 (AT_INIT): Likewise.
8430 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
8432         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
8433         description.
8435 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8437         * NEWS: Update.
8439         * configure.ac (AC_INIT): Bump to 2.59d.
8441 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8443         Version 2.59c.
8445         * Makefile.maint (news-date-check): Do not require a leading `*'
8446         before the release date in NEWS.
8448 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
8449         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8451         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
8452         the instantiated file do not contain the string 'datarootdir'
8453         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
8454         @mandir@, replace the reference '${datarootdir}' by the value.
8455         * tests/torture.at (datarootdir workaround): New test.
8456         * NEWS: Advertise this temporary fixup.
8457         Based on a patch by Bruno Haible, reported and analyzed by
8458         Paul Eggert and Noah Misch.
8460 2006-04-12  Eric Blake  <ebb9@byu.net>
8462         * tests/autotest.at (Debugging a failed test): Fix comment.
8464 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
8466         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
8467         all the changes since 2006-04-07.
8469 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8471         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
8472         succeeded, but `ln -s file dir' failed, take care to remove the
8473         leftover target before the next test, to prevent its spurious
8474         failure; also make sure `ln file dir' works before selecting it.
8475         Thanks to Keith Marshall for pointing this out.
8476         * THANKS: Update.
8478         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
8479         assignments in `at_debug_args', so that we put them correctly
8480         in the `run' script.
8481         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
8482         Reported by Eric Blake.
8484 2006-04-11  Eric Blake  <ebb9@byu.net>
8486         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
8487         top-level tests after micro-suite has been run.   Used in...
8488         (Debugging a successful test, Debugging script and environment),
8489         (Debugging a failed test): ...these new tests.  The first of these
8490         is fixed by...
8491         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
8492         macro, split out from...
8493         (AT_INIT): ...here, so that using -d also generates a run script.
8494         Document that -d inhibits top-level logging.
8495         * doc/autoconf.texi (testsuite Invocation): Document that -d only
8496         inhibits top-level logging; debug scripts are created.
8498         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
8499         check.
8500         * tests/autotest.at (Empty test, Empty check): New test to check it.
8502         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
8503         from gcc.
8505 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
8507         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
8508         the files if a problem appears.  Make the empty *.at files
8509         read-only, too.  Proposed by Ralf Wildenhues.
8511 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8513         * config/Makefile.am: Add comment to force updated Makefile.in.
8515         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
8516         space only patch to this file, this patch causes the Makefile.in
8517         files that include freeze.mk to be updated, and thus have a
8518         newer time stamp again, which in turn makes a pristine CVS
8519         checkout have correct time stamps.
8521         * Makefile.maint (cvs-sv): New macro, to be used..
8522         (config.guess-url_prefix, config.sub-url_prefix)
8523         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
8524         point to CVS text checkout of Gnulib files.
8525         (copyright-check): Bump current year.
8526         (announcement): Do not hard-wire `./announce-gen'.
8527         (cvs-update): Propagate failures of `cvs' and `move-if-change'
8528         correctly.
8529         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
8530         `chmod +x'.
8531         (wget_files): Update config.guess, config.sub, texinfo.tex by
8532         `wget-update', now that their URLs work again.
8534 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8536         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
8537         Problem noted by Paul D. Smith.
8539 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8541         * doc/autoconf.texi: Remove unused words from word list.
8542         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
8543         .x-sc_trailing_space: New files.
8545         * doc/standards.texi: Sync from gnulib.
8547         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
8548         `LIBOBJDIR' as experimental.
8550         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
8551         with a target directory; it's internally implemented as `cp'
8552         anyway, but since Autoconf advertises the possibility to use
8553         a target directory when LN_S is `ln -s', we need to find out.
8554         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
8555         analyzed by Keith Marshall <keith.marshall@total.com>.
8557         * THANKS: Update.
8559 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8561         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
8562         confdefs.h as-is.  In general, if it has backslash-newline or the
8563         like, then it doesn't work either to sort or to remove empty
8564         lines.
8566 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
8568         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
8570 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
8572         * lib/autom4te.in (Automake-preselections): Preselect
8573         _AM_SUBST_NOTMAKE.
8575 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8577         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
8578         apostrophe within a single-quoted string, as this is the usual
8579         tradition and is easier to read than '"'"'.  Don't rely on the
8580         shell treating "$/" like '$/'.  Use a more-consistent indenting
8581         style for the trap.
8583 2006-04-09  Eric Blake  <ebb9@byu.net>
8585         * tests/autotest.at (Backquote command substitution),
8586         (Multiline backquote command substitution): Remove mistaken
8587         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
8588         applied...
8589         (Parenthetical command substitution, Multiline parenthetical
8590         command substitution): here.
8592 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8594         Import macros from gnulib (often changing their name).
8596         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
8597         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
8598         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
8599         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
8600         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
8601         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
8602         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
8603         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
8604         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
8605         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
8606         The manual mentions Gnulib more prominently.
8607         * doc/autoconf.texi (Gnulib): New node.
8608         (Pointers): Add Gnulib URL.
8609         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
8610         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
8611         Gnulib section.
8612         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
8613         suggest a #define rather than a typedef for _Bool, and mention
8614         Gnulib rather than trying to substitute stdbool code.
8615         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
8616         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
8617         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
8618         AC_STRUCT_DIRENT_D_TYPE.
8619         (Particular Types): Mention stdint.h and inttypes.h as standard
8620         headers too.
8621         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
8622         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
8623         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
8624         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
8625         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
8626         (C Compiler): Move AC_C_LONG_DOUBLE to ...
8627         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
8628         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
8629         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
8630         (Coding Style).  Don't mention m4_expand_once.
8631         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
8632         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
8633         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
8634         (AC_CHECK_FUNCS): Use it.
8635         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
8636         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
8637         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
8638         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
8639         (AC_HEADER_ASSERT): New macro.
8640         (AC_HEADER_STDBOOL): Don't assume "#error" works.
8641         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
8642         Catch a bug in an HP-UX C compiler.
8643         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
8644         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
8645         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
8646         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
8647         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
8648         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
8649         New macros.
8651         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
8652         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
8654 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
8656         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
8657         of the warning introduced by the 2001-08-28 change.
8659 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
8660             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8662         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
8663         variables shall be overriden by the cache.
8664         * tests/torture.at (AC_ARG_VAR): Test also with a first value
8665         that contains braces.
8667 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
8669         Revert the patch from 2006-04-01 and only improve
8670         _AS_DETECT_BETTER_SHELL:
8672         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
8673         skip nonexistent directories.
8674         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
8675         only shell candidates which exist.
8676         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
8677         * lib/autotest/general.m4 (AT_INIT): No need to give three
8678         parameters to _AS_PATH_WALK.
8680 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
8681             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8683         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
8684         distinguish m4sugar macros.
8685         * tests/tools.at (autoupdating with aclocal and m4_include):
8686         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
8687         test case by Noah Misch <noah@cs.caltech.edu>.
8689 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
8691         Revert my change from 2006-03-17, in other words:
8692         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
8693           and DUALCASE=1.
8694         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
8695         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
8696           it is set.
8698 2006-04-07  Eric Blake  <ebb9@byu.net>
8700         * doc/autoconf.texi (Programming in M4sh): Document that
8701         AS_MKDIR_P exits the script on failure.
8702         * lib/autotest/general.m4: Remove redundant AS_ERROR.
8704 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8706         * config/elisp-comp, config/install-sh, config/mdate-sh,
8707         config/missing, config/mkinstalldirs: Sync from Automake.
8709         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
8710         from Automake.
8712         * doc/make-stds.texi: Sync from gnulib.
8714 2006-04-06  Eric Blake  <ebb9@byu.net>
8716         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
8717         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
8718         2006-04-01.
8720 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
8721             Eric Blake  <ebb9@byu.net>,
8722             Paul Eggert  <eggert@cs.ucla.edu>,
8723             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8725         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
8726         whether `set' quotes correctly: redirect stderr of the tested
8727         `set', and use a subshell, for Ultrix; use `sed' instead of
8728         `grep' for zsh `set' which may write binary output; match only
8729         at the beginning of a line, to avoid false positives.
8730         In order to avoid false positives by unrelated variables with
8731         multiline content, put the dump algorithm in a subshell and
8732         unset all variables containing newlines (except some which are
8733         special to the shell).  Warn about cache variables that are
8734         unset.
8736 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8738         * config/config.guess, config/config.sub, config/texinfo.tex:
8739         Sync from upstream.
8741         * tests/mktests.sh: Reword comments.
8743         * tests/mktests.sh: Only skip internal macros starting with
8744         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
8745         Update exclusion lists for the test suite to this end:
8746         (AC_ARG_VAR): Do test this now.
8747         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
8748         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
8749         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
8750         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
8752         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
8753         shell issue with double-quoted command substitutions of native
8754         commands.
8755         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
8756         Marshall.
8758         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
8759         no file matches the glob, discard the warning, set `nullglob'.
8760         (syntax-check): Likewise.
8761         (sc_cast_of_x_alloc_return_value): Likewise.
8762         (sc_cast_of_alloca_return_value, sc_error_exit_success)
8763         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
8764         (m4-check): Likewise.
8765         (sc_system_h_headers): Do not print rule on execution.
8766         (sc_tight_scope): Do not fail for non-existing `src' directory.
8767         (sc_changelog): Skip the Copyright footer.
8768         * lib/autoconf/lang.m4: Remove trailing space.
8770         * lib/autoconf/status.m4: More replacements to
8771         <tab><space> where this makes sense.
8773 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
8775         * tests/Makefile.am (maintainer-check-posix):
8776           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
8778         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
8779           ac_config_<foo>s again, sometimes normalized, sometimes not.
8780         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
8781         (AC_CONFIG_COMMANDS): Do not do so here.
8782         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
8783           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
8784           2005-07-25 rewrite.  Noticed by Noah Misch.
8786         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
8787           _AC_PRESERVE_HELP_ORDER, ...
8788         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
8790         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
8791           inside m4_expand_once; it is redundant.
8793         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
8794           for --help from Cygnus `configure.'
8796 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8798         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
8799         on a patch proposed by Ralf Wildenhues.
8801 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8803         * lib/autoconf/status.m4: Replace <space>''<tab> with
8804         <tab><space> where this makes sense.
8806 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
8807             Noah Misch  <noah@cs.caltech.edu>
8809         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
8810         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
8811         * doc/autoconf.texi (Help Formatting): New node.
8812         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
8814 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8816         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
8817         lib/autoconf/specific.m4, lib/autoconf/status.m4,
8818         lib/autoconf/types.m4, lib/autotest/general.m4,
8819         tests/mktests.sh, tests/torture.at: White space cleanup:
8820         remove some SPACE before TAB, or add quoting ('' or @&t@).
8822         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
8824         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
8826 2006-04-05  Eric Blake  <ebb9@byu.net>
8828         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
8829         empty test suite works.
8830         * tests/autotest.at (Empty test suite): Remove xfail.
8832 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
8834         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
8835         TAGS to ac_config_<foo>s.
8836         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
8837         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
8838         normalizing it, consistent it with previous releases.
8839         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
8841 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8843         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
8844         Use simplified args that Eric Blake originally suggested.
8846 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
8848         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
8849         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
8850         Use 'comm' rather than N instances of grep; this also fixes a bug
8851         whereby substrings were incorrectly matched, causing us to not
8852         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
8853         (exclude_list): Exclude empty macros.
8854         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
8856         Use awk rather than grep -E or egrep, to avoid
8857         portability problems with regular expressions containing newlines.
8858         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
8859         Switch from grep to awk syntax.
8860         (ac_exclude_script): Renamed from ac_exclude_egrep.
8861         (au_exclude_script): Renamed from au_exclude_egrep.
8863 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
8865         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
8866         a subdirectory subject to Cygnus `configure'.
8867         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
8869         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
8870         report request when we have no AC_PACKAGE_BUGREPORT.
8872 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8874         * THANKS: Update.
8876         * tests/mktests.sh: Update copyright year in the header of the
8877         generated files.
8879         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
8880         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
8881         typedef'ed restricted pointer, to catch a compiler bug on
8882         HP-UX 11.x, and fix warnings so it passes with -Werror.
8883         (_AC_PROG_CC_C99): Likewise.
8884         Reported by Albert Chin <china@thewrittenword.com>.
8885         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
8887 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
8889         * bin/autoscan.in (subdirs): New global.
8890         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
8891         (output): Emit AC_CONFIG_SUBDIRS as needed.
8892         * tests/autoscan.at (autoscan): Remove XFAIL.
8894 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
8896         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
8898 2006-04-03  Eric Blake  <ebb9@byu.net>
8900         * THANKS: Add myself.
8902 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8904         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
8905         to log, point to testsuite output tree.
8907 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
8909         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
8910         * doc/autoconf.texi (Function Portability): Mention that C++
8911         has trouble with 'exit'.
8912         (Guidelines): Test programs shouldn't use 'exit'.
8913         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
8914         Remove; all uses removed.
8915         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
8916         Return from 'main' instead of calling 'exit'.
8917         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
8918         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
8919         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
8920         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
8921         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
8922         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8923         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
8924         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
8925         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8926         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
8927         * tests/compile.at: Likewise.
8929 2006-04-02  Pavel Roskin  <proski@gnu.org>
8931         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
8933 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
8935         Clean up _AC_COMPILER_EXEEXT* macros.
8937         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
8938           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
8939           ac_file to the name of the default output file and call
8940           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
8941           initial `rm' of the candidate files...
8942         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
8943           the same list in subsequent `rm' calls, and for the temporary
8944           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
8945           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
8946         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
8947         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
8948           no longer needed) by libtool.  Make it a cache check.
8949         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
8950           copied here by mistake.
8951         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
8952           _AC_COMPILER_EXEEXT.
8953         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
8954           _AC_COMPILER_OBJEXT directly.
8955         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8957 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
8959         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
8960         (AS_DIRNAME): Use it.
8961         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
8963         * tests/*.at: Remove the generated ones.
8965 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
8967         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
8969 2006-04-01  Eric Blake  <ebb9@byu.net>
8971         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
8972         directories, unless optional third argument supplied.
8973         (AS_UNAME): Don't optimize PATH walk.
8975         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
8977 2006-04-01  Eric Blake  <ebb9@byu.net>
8978         and Stepan Kasal  <kasal@ucw.cz>
8980         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
8981         and fix some typos.
8983 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
8985         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
8986         Autoconf version number despite a zero- or one-argument AC_INIT.
8988         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
8989         subordinate tools.
8990         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
8991         * doc/autoconf.texi (autoreconf Invocation): Document it.
8993         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
8994         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
8996 2006-04-01  Eric Blake  <ebb9@byu.net>
8998         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
8999         * lib/autotest/general.m4: Be tolerant of existing directory when
9000           rm failed to remove it.
9002 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9004         * bin/autoupdate.in: Redefine m4_location so that warnings print
9005         the correct lines of the input file by subtracting..
9006         (_au__first_line): ..this new definition.
9008         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
9009         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
9010         Remove stray newline in output.
9011         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
9012         AC_DEFUN this for autoconf, including the obsoletion diagnose.
9013         Fixes autoupdating of code where the replacement output contains
9014         m4sugar macros.
9015         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
9016         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
9017          (au_exclude_list): Add AC_LANG_SAVE.
9018         * tests/tools.at: Several new tests for all of this.
9019         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
9020         hairy details.
9021         The AC_LANG_SAVE issue was reported against Libtool by
9022         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
9023         Kristian Kvilekval <kris@cs.ucsb.edu>.
9025 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9027         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
9028           switch all of them on and of when necessary.  Fixes the bug when
9029           m4sugar macros (e.g., m4_define) were expanded after the first
9030           automatic update (e.g., after AC_PREREQ or AC_INIT).
9032 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
9034         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
9035         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
9037         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
9038         correctly.  Problem reported by Eric Blake.
9039         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
9040         Ralf Wildenhues.
9042 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
9044         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
9045         Tighten up the basename/dirname wording.
9047 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9049         * Makefile.maint (sc_texi_notab): New check: do not use TABs
9050         in texinfo files outside of verbatim environments.
9051         (syntax-check-rules): Update.
9052         * doc/autoconf.texi (Configuration Headers): Conform to it.
9054 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
9056         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
9057           aclocal cannot be given on the command line.
9059 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
9061         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
9062         Give an example for AS_DIRNAME instead of referring to Posix..
9063         (File System Conventions): Put discussion of // versus / here, and
9064         modernize it a bit.
9065         (Limitations of Usual Tools): Add basename.  Remove verbiage
9066         after dirname, since it got moved to the above sections.
9067         All this was inspired by a patch proposed earlier by Eric Blake.
9069 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9071         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
9072         `$0' to protect against spaces.
9073         * lib/autotest/general.m4 (AT_INIT): Likewise.
9074         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
9075         `$0', $as_me.
9077 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9079         * bin/autoscan.in: The value of find_configure_ac should be
9080         checked for existence, so we don't barf over a nonexisting
9081         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
9083 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9085         * bin/autoupdate.in: Fix some typos.
9087 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
9089         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
9091         * lib/autoscan/autoscan.list: Refreshed.
9093 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9095         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
9096         and Erlang related variables.
9098         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
9099         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
9100         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
9101         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
9102         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
9103         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
9104         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
9105         (_AC_PROG_OBJC_G): New macros.
9106         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
9107         * doc/autoconf.texi (Objective C Compiler): New node.
9108         (Preset Output Variables): Document OBJCFLAGS.
9109         (Language Choice): Document `Objective C' language.
9110         (Fortran Compiler): Fix typo.
9111         * NEWS: Updated.
9112         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
9114 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
9116         * doc/autoconf.texi (Default Includes): Fix typo
9117           s/AC_HEADERS_STDC/AC_HEADER_STDC/
9118         (Limitations of Usual Tools): s/unwriteable/unwritable/
9119         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
9120           Fix typos in the comments.
9122 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
9124         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
9125           Factor out the warning to...
9126         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
9127         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
9128         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
9130         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
9131           case `ac_delim' when writing the sed script.
9133         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
9134           moved DUALCASE=1 ...
9135         (AS_SHELL_SANITIZE): ... here.
9136         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
9137           that it is set.
9139         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
9140           AC_SUBST.
9141         (_AC_PATH_PROG): Store the result to VARIABLE.
9142         (AC_PATH_PROG): No need to set VARIABLE again.
9144         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
9145           the first one is usual AT_CHECK_MACRO test, the second one checks
9146           that the same works when cross-compiling.
9147         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
9148         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
9150 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9152         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
9153         the directory `/usr/bin/posix' in the shell search, to prefer
9154         the Posix shell not only in subsequent spawns as with `$BIN_SH'
9155         on Tru64.
9157         * doc/autoconf.texi (contents): To fix texi2html output, hide
9158         `@setcontentsaftertitlepage' for HTML.
9159         (Writing Autoconf Macros): Likewise, insert space after `@c'.
9160         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
9161         `@,{c}'.
9163 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
9165         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
9166           sanitizing...
9167         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
9168         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
9169           why IFS is restored so late; thank you, Ralf, for reminding us.
9171 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
9173         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
9174           variables in the examples.
9176 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9178         * doc/autoconf.texi (several sections): Cleaned up documentation for
9179         macros in erlang.m4.
9181 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9183         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
9184         failure condition for `$(cmd)' style command substitutions.
9185         (Parenthetical command substitution, Multiline parenthetical
9186         command substitution): Use it.
9188         * doc/autoconf.texi (Special Shell Variables): Missing word.
9189         Reported by Keith Marshall <keith.marshall@total.com>.
9191         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
9192         IFS even in case of empty `$PATH'.
9194 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9196         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
9197         `expr' away if there is nothing to do.
9198         < --keywords >: Simplify and robustify argument handling.
9199         Revert erroneous comment from 2005-08-23.  Extend to allow
9200         keyword negation with `!'.
9201         Update help message.  Remove broken code to prevent running
9202         tests multiple times.
9203         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
9204         Update and fix the documentation accordingly.
9205         * tests/autotest.at (Keywords): Renamed to..
9206         (Keywords and ranges): .. this.  Extended to make sure negated
9207         keywords, keywords taken from AT_SETUP arguments, and numeric
9208         test ranges work, and that matching is case-insensitive.
9210 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9212         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
9213         allow to pass unnamed structs even in C++.
9214         (AC_CHECK_SIZEOF):  Likewise.
9215         Also fix quoting error in `AC_MSG_FAILURE' arguments.
9216         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
9217         struct): New tests for unnamed structs, each both native and
9218         cross-compiling.
9220         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
9221         a structure inside a cast, for C++ conformance.
9222         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
9223         Also fix quoting error in `AC_MSG_FAILURE' arguments.
9225         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
9226         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
9227         trying to execute the command `no'.
9229         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
9230         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
9231         expanded outside.
9233         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
9234         example.  Do not emphasize `$%', it is hardly new and special.
9235         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
9237         * doc/autoconf.texi (Limitations of Usual Tools): Document
9238         OpenBSD and traditional `grep' failure to handle multiple
9239         patterns separated by newlines.
9241 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9243         * doc/autoconf.texi (several sections): Add documentation for macros
9244         in erlang.m4.
9246 2006-03-10  Eric Blake  <ebb9@byu.net>
9248         * doc/autoconf.texi (Obsolete Macros): Fix wording of
9249         AC_TRY_LINK_FUNC.
9251 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
9253         * doc/autoconf.texi: Use @acronym more consistently for acronyms
9254         like BSD, GPL, LGPL.  Fix minor English typos.
9255         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
9256         Mention that these macros are becoming obsolete.
9257         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
9258         Use more modern terminology for which standard is what.
9259         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
9260         and to ansi2knr.
9261         (AC_PROG_CXX): Likewise.
9262         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
9263         Remove obsolete discussion about how to port to K&R.
9264         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
9265         the obsolescent AC_HEADER_STDC.
9266         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
9267         can't rely on it.
9269 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9271         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9272         Remove stdin redirection from /dev/null to allow pipe to work.
9274 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9276         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9277         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
9278         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
9279         Ralf Wildenhues.
9281 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9283         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
9284         HP-UX sed is 99 commands, not 100.
9285         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
9286         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
9287         newline for portability.
9288         * tests/torture.at (Torturing config.status): Also test 100
9289         AC_SUBST_FILE invocations.  Fix test to actually verify the
9290         AC_CONFIG_FILES output.
9291         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
9292         command, label, and read-file `r' limits.  Unify HP-UX spelling.
9294         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
9295         non-suffix rule.
9296         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
9297         non-GNU make.
9298         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
9299         * tests/mktests.sh: Small shell portability fixes.
9301 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9303         * doc/autoconf.texi (Caching Results): Fix the examples to use a
9304         recommended quoting style and discard unwanted output.
9306 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9308         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
9309         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
9310         cases, and to work around Tru64 expr bug.
9312 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9314         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
9315         expr bug that turns the result of a regex match into a number if
9316         possible.
9318 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9320         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
9321         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
9322         in section `Specific Compiler Characteristics'.
9324 2006-03-04  Eric Blake  <ebb9@byu.net>
9326         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
9327         variable warning.
9329 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9331         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
9332         order of variable initialization, so even the Solaris 2.6 shell
9333         can create a config header correctly.  Fixes lots of test suite
9334         failures.
9336 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9338         * doc/autoconf.texi (Text processing Macros): New node to
9339         document the m4sugar macros m4_re_escape, m4_tolower,
9340         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
9342 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9344         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
9345         XrmInitialize (0) -> XrmInitialize ().
9346         Reported by Toshio Kuratomi.
9348 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9350         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
9351         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
9352         * doc/autoconf.texi (Programming in M4sh): Adjusted.
9353         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
9354         both macros are defun'ed so that required macros are evaluated
9355         outside.
9357         * doc/autoconf.texi (Prerequisite Macros): State more precisely
9358         where a required macro will be expanded.
9359         (Coding Style): Another reason not to use `m4_define'.
9361 2006-02-21  Eric Blake  <ebb9@byu.net>
9363         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
9365 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9367         * doc/autoconf.texi (Looping constructs): New node, to
9368         document m4_for, m4_foreach, m4_foreach_w, and mention
9369         obsolete AC_FOREACH.
9370         (Obsolete Macros): Document AC_FOREACH.
9371         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
9372         (m4_for): Fix to never loop (almost) endlessly, work correctly
9373         with arithmetic expressions in arguments, a step of zero or
9374         non-integer multiple of the interval, and avoid integer
9375         overflow.
9376         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
9377         m4_foreach_w.
9379 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9381         Add basic support for Erlang, both for configuring Erlang/OTP
9382         tools, and Erlang as a conf test language.
9383         * lib/autoconf/erlang.m4: New file.
9384         * lib/autoconf/autoconf.m4: Add erlang.m4.
9385         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
9386         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
9387         * NEWS: Add short description of new macros.
9388         * THANKS: Add Romain Lenglet.
9390 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9392         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
9393         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
9395 2006-02-15  Eric Blake  <ebb9@byu.net>
9397         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
9398         warning.
9400 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9402         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
9403         (_AS_CASE): Private helper macro.
9404         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
9405         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
9406         Fix syntax of AS_IF description
9407         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
9408         for the AC_REQUIRE mess.
9409         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
9410         AS_SHELL_SANITIZE.
9412 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9414         * doc/autoconf.texi: Minor style cleanup.
9415         Be consistent about spaces after commas.
9416         Insert [] where empty args look a bit funny.
9417         Fix some "i.e." and "e.g." usages.
9418         Try to avoid "X/Y" usages.
9419         Don't be pedantic about "ISO C99"; just say C99.
9420         Prefer GNU style for spaces in front of parens.
9421         (Function Portability): Comment about C89 versus C99
9422         signed integer division.
9423         (Particular Headers): Use current gnulib style for dirent
9424         includes.
9426 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
9427         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9429         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
9430         macros without parameters.
9431         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
9432         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
9433         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
9434         `$#' bug.
9435         (autoupdate): Updated to match AU_ALIAS fix.
9437 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9438         and Paul Eggert  <eggert@cs.ucla.edu>
9440         * doc/autoconf.texi (Programming in M4sh): Document
9441         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
9443 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9445         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
9446         (AS_BOURNE_COMPATIBLE): ..this.
9447         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
9449 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9451         * doc/install.texi (Defining Variables): Tighten up the
9452         CONFIG_SHELL wording.
9454 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
9455         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9457         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
9458         of (set -o) rather than testing whether (set -o posix) succeeds,
9459         to work around a bug in the AIX 5.3 shell.  Problem originally
9460         reportd by Howard Chu for libtool.
9462 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
9464         * doc/autoconf.texi (Running the Compiler, Running the Linker):
9465         Changes the macro arguments in summaries to match the
9466         descriptions.
9468 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
9470         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
9471         hint as ``a workaround for a bug.''
9473 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9475         * bin/autoreconf.in: New option `--no-recursive'.
9476         Improve wording for subpackages a bit.
9477         * doc/autoconf.texi (autoreconf Invocation): Updated.
9478         * NEWS: Updated.
9480         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
9481         in environment of `configure', not the command line.
9482         Reported by Howard Chu <hyc@highlandsun.com>.
9484 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9486         * doc/autoconf.texi (Limitations of Builtins): Document the
9487         problem with "trap -".
9489 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
9491         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
9492         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
9493         messages to differentiate Fortran and Fortran 77 tests.
9494         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
9495         AC_LANG_ASSERT, to allow use in mixed-language projects.
9497 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9499         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
9500         FOO" to "defined (FOO)".
9501         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
9502         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
9503         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
9504         * tests/tools.at (ifnames): Likewise.
9506 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9508         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
9509         * lib/Autom4te/General.pm (mktmpdir): Likewise.
9510         (END): Improve error message a bit.
9511         Reported by Bruce Korb <bkorb@gnu.org>.
9513 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9515         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
9516         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
9518 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
9520         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
9521         requires sys/stream.h.  Reported by Oliver Kiddle.
9523 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9524             Stepan Kasal  <kasal@ucw.cz>
9526         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
9527         before the removals of test dirs, use `find' to avoid modification
9528         of symlinked directories.
9530 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
9532         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
9533         Don't ignore the macro arguments.
9535 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
9537         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
9538         declaration that works for MSVC.
9540 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9542         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
9543         Add `*.map' and `.inf' for Green Hills compiler.
9544         Reported by Stefan Seefeld <stefan@codesourcery.com>.
9546         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
9547         correctly: pad with spaces after FIRST_PREFIX if necessary,
9548         and compute string lenghts with `m4_qlen' instead of `m4_len'.
9549         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
9550         * tests/m4sh.at (AS_HELP_STRING): Test extended.
9551         * NEWS: Updated.
9552         Reported by numerous people, numerous times.
9554 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9556         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
9557         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
9558         * lib/autoconf/general.m4, lib/autoconf/status.m4:
9559         * lib/autotest/general.m4, tests/local.at:
9560         Update copyright year to 2006.
9562         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
9563         sed substitutions.
9564         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
9565         for file names, again.  Reported by Noah Misch.
9566         (Coding Style): Explain that s|a|b| is preferred for file names.
9567         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
9568         (AC_OUTPUT_MAKE_DEFS): Likewise.
9569         * lib/autotest/general.m4 (AT_INIT): Likewise.
9570         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
9571         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
9573         Fix Posix-conformance bugs re use of { command in sed scripts,
9574         and improve the sed-related documentation a bit.
9575         * doc/autoconf.texi (Installation Directory Variables): Use
9576         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
9577         rather than "sed" when talking about Sed in general.
9578         (Particular Programs): Likewise.
9579         (Coding Style): y is like s with respect to / and ,.
9580         (Limitations of Usual Tools): Document the weird restrictions
9581         that Posix has about { }.  Use better quoting.
9582         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
9583         Rewrite to conform to Posix rules about { } in sed scripts.
9584         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
9585         * tests/foreign.at (Libtool): Likewise.
9586         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
9587         Use our own style advice re 's,a,b,' versus 's|a|b|'.
9589 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9591         * lib/autoconf/status.m4: Fix typo.
9593         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
9594         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
9595         `-def', for the benefit of Portland `pgf90 -Mipa'.
9596         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
9598 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9600         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
9601         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
9602         shell from zsh to bash.
9604 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
9606         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
9607           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
9609 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9611         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
9612         parentheses in $(...).  Problem reported by Eric Blake.
9614 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9616         * doc/autoconf.texi (Limitations of Usual Tools):
9617         Mention which characters can be escaped with \ in portable regular
9618         expressions used in grep, sed, expr.  Mention the leading ^ problem
9619         with expr.  Clean up some confusing wording.  Mention which
9620         grep options are portable.
9622 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
9624         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
9626 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9628         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
9629         patch, noted by Ralf Wildenhues.
9631 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9633         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
9634         posix' unconditionally, for pdksh in `native sh' emulation.
9636 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9638         * doc/autoconf.texi (Shellology): Document eval $? problem
9639         with ash.
9640         (Limitations of Builtins): Likewise.
9642 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9644         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
9645         CONFIG_SHELL in the environment of the configure rerun.
9646         * doc/autoconf.texi (Here-Documents, config.status Invocation):
9647         Suggest passing CONFIG_SHELL absolute, and in the environment
9648         rather than as option.
9650 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9652         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
9653         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
9654         Fix macro quoting.  Fix output for n * 98 substituted variables.
9656 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9658         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
9659         `tmp' to avoid file removal race.
9661 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9663         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
9664         ac_clean_files and LIBOBJS.
9666 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9668         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
9669         Factor functionality to..
9670         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
9671         `AC_SUBST($1)' in the public version.
9672         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
9673         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
9674         ac_pt_* variables.
9676 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
9678         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
9679         filesystems.
9681 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9683         * NEWS: Move AH_HEADER mention to right place.
9685 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
9687         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
9688         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9690 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
9692         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
9693         conftst2.$ac_objext.
9694         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9696 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
9698         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
9699         conftest.o, to see whether the compiler really obeys; rm the object
9700         file before and after the test and register it with ac_clean_files.
9701         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9703 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
9705         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
9706         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
9707         code so that the most common case requires less forks.
9709 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
9711         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
9712         not portable; thanks to Paul Eggert and Alexandre.
9714         * NEWS: Fix an old typo.
9716 2005-10-20  Jim Meyering  <jim@meyering.net>
9718         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
9719         the latter'', in two places.
9721 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
9723         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
9724         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
9725         the inner workings of AC_LANG_FUNC_LINK_TRY.
9726         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
9727         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
9728         by the function rather than ignoring it.
9729         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
9730         comparing its address.  Intel's interprocedural optimization was
9731         outsmarting the old heuristic.  Problem reported by
9732         Mikulas Patocka.
9734 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
9736         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
9738 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9740         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
9741         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
9743 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
9745         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
9746         before removing it (chmod -R u+rwx); there are three instances of this.
9748 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9749             Stepan Kasal  <kasal@ucw.cz>
9751         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
9752         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
9753         make its content writable before removing it.  Remove an errorneous
9754         comment from the end, where the logs of the failed tests are copied
9755         to the main log file.
9757 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
9759         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
9760           in case the computer is too quick.  Double quote the configure.ac
9761           snippets.
9763         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
9764           problems if the testsuite were running too fast.
9766 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9768         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
9769         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
9770         (which belong to Xt, not X itself).  See Debian bug 327655.
9771         * NEWS: Mention this.
9773 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
9775         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
9777 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9779         * config/move-if-change: Don't output "$2 is unchanged";
9780         suggested by Ben Elliston.  Handle weird characters correctly.
9782 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
9784         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
9785           calls, so that the final expansion of this macro is shorter.
9786           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
9787           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
9788           the cleanup there.  Use AS_VAR_* macros, to be more general.
9789         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
9791         * lib/autoconf/general.m4: Use AS_IF where appropriate.
9793         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
9795 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
9797         * doc/autoconf.texi (Configuration Headers): Add an index entry
9798           for AH_HEADER.
9800 2005-08-26  Pavel Roskin  <proski@gnu.org>
9802         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
9803         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
9804         running xmkmf.
9806 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
9808         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
9809         The previous patch didn't work, so try a better one.
9811 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
9813         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
9814         in the example.  Reported by Bruno Haible.
9815         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
9816         "if $undefined_var;" succeeds with my shell.
9818         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
9819         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
9820         but change the m4_divert_text to m4_divert_once.
9822 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9824         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
9825         Work around bug in Solaris /usr/xpg4/bin/awk.
9826         The bug is present in at least Solaris 8 through 10.
9828 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
9830         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
9831         some evil values and relying on the fact that $* concatenates the
9832         parameters by the first character from IFS.
9834 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
9835             Stepan Kasal  <kasal@ucw.cz>
9837         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
9838         first header appears, define AH_HEADER.
9839         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
9840         Update limitations about when to call AC_CONFIG_HEADERS.
9841         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
9842         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
9843         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
9844         ``Configuration Actions''; fix their index entries.
9846         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
9847         options correctly.  Process N-M as M-N if M is smaller than N.
9848         Process ranges correctly so that N-N will run only N.
9849         Sort and uniquify the tests that will be run.  If there is more
9850         than one test, reinsert the banners for the tests.
9851         * tests/autotest.at (Keywords): Unmark XFAIL.
9853 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
9855         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
9856           before passing the macro name to AH_TEMPLATE.
9858         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
9859           now opens log after option processing; in particular, --version
9860           and --help do not touch config.log.
9862         * Makefile.maint: Revert the change from 2005-08-12.
9864 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
9866         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
9867           common code to...
9868         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
9870 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9872         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
9873         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
9874         Language cleanup.
9876         * doc/autoconf.texi (Defining Symbols, Changed Results):
9877         Prepend to LIBS, not append, in examples.
9879 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
9881         When building in place, set srcdir="."; suggested by Tim Van Holder.
9883         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
9884           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
9885         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
9886         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
9887           does not mean "no --srcdir option".
9889 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9891         * tests/autoscan.at (autoscan): New file.
9892         * tests/suite.at: Use it.
9893         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
9894         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
9896         * tests/autotest.at (Keywords): Test keywords combinations.
9898 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
9900         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
9901           add "2>&1"; gzip 1.2.4 prints help on stderr.
9903 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
9905         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
9906         was pushdef'ed twice while popped only once.  Push it only once.
9907         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
9909 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
9911         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
9912         prefixed by mere "===", not "configure: === ".
9914 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9916         * Makefile.maint: Update from Bison.
9918         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
9919         "<tab>" in comment, so that the point is understandable.
9921 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
9923         Rewrite substantial part of lib/autoconf/status.m4.
9924         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
9925         and CONFIG_COMMANDS are not processed in four separate loops.
9926         Instead, there is one main loop.  This alows that the common code
9927         is expanded only once, thus config.status (and configure) is smaller.
9929         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
9930         the AC_LIST_FILES and cousins macros are no longer used.
9932         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
9933         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
9934         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
9935         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
9936         contain the initialization, nor the for loop, nor the associated
9937         commands; all these go to ...
9938         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
9939         _AC_OUTPUT_CONFIG_STATUS.
9940         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
9941         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
9942         (_AC_OUTPUT_FILE): The creation of the sed script ...
9943         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
9944         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
9945         _AC_OUTPUT_MAIN_LOOP.
9946         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
9947         _AC_CONFIG_COMMANDS): Use ...
9948         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
9949         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
9950         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
9951         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
9952         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
9953         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
9954         ... new macros.
9955         (_AC_CONFIG_UNIQUE): Update.
9956         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
9957         Replaced by this ...
9958         (_AC_LIST_TAGS): ... new common macro.
9959         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
9960         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
9961         (_AC_LIST_TAG_COMMANDS): ... new common macro.
9962         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
9963         this didn't belong to the `config commands' section.
9964         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
9965         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
9966         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
9967         to the `config commands' section either.
9968         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
9969         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
9971         ... and many changes to the comments nearby.
9973         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
9974         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
9975         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
9976         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
9977         (#define header templates): The comment at the top of the generated
9978         header now includes the name(s) of the source file(s).
9980         Several unrelated small changes:
9982         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
9983         parameter to AC_DIAGNOSE.
9984         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
9985         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
9986         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
9987         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
9988         with AU::AC_OUTPUT.
9989         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
9990         in AC_OUTPUT doesn't double-quote it either.
9991         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
9992         parameters.
9994 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
9996         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
9997         versions of Portland Group compiler produce single- and double-quoted
9998         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
9999         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
10001 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10003         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
10004         This is a corrected version of yesterday's patch.
10006 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
10008         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
10009         path, too; insert a "===" to emphasize the line.
10011         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
10012           ac_cv_build_alias to ac_build_alias.
10013         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
10015         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
10016         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
10017         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
10018         (AC_ARG_VAR): ... here.
10019         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
10020           target_alias.
10022         Keep a list of all precious variables and process them with one simple
10023         for loop, instead of expanding all commands, or, OTOH, complicated
10024         processing of output of "set".
10025         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
10026         variable names in new macro...
10027         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
10028         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
10029           a loop to assign all ac_env_* and ac_cv_env_* variables.
10030         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
10031           to INIT_PREPARE.
10032         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
10033           its value to shell variable ac_precious_vars and call
10034           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
10035         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
10036           _AC_ARG_VAR_VALIDATE.
10038         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
10039           and the AC_SUBSTs ...
10040         (AC_INIT): ... here.
10042         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
10043           the ac_subst_files section in config.log.
10045         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
10047 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10049         * NEWS: New macro AC_C_TYPEOF.
10050         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
10051         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
10052         * tests/c.at (C keywords): Test AC_C_TYPEOF.
10054         Fix problems reported by Nicolas Joly.
10055         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
10056         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
10057         They are generated by the Tru64 v5.1B shell.
10059 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
10061         Fix my changes from 2005-07-01; reported by Noah Misch.
10062         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
10063         description, the macro now accepts only a single tag.
10064         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
10066         Fix cases when the varsions of Autoconf and Autotest don't match.
10067         Reported by Noah Misch.
10068         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
10069         at_top_builddir, for compatibility with older autotest.
10070         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
10071         is not set, use at_top_builddir, for compatibility with older
10072         versions of autoconf.
10074 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10076         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
10077         Problem reported by Patrick Welche.
10079 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10081         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
10082         sed substitution command, so that we allow | in program prefixes
10083         and program suffixes.  (& is a problem anyway; we're not fixing
10084         that here.)
10085         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
10086         configure_input, top_builddir, srcdir, etc.
10087         * lib/autotest/general.m4 (AT_INIT): Likewise, for
10088         PATH_SEPARATOR in AUTOTEST_PATH.
10090 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
10092         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
10093         for loop over config.site files using `set', to allow
10094         directory names containing IFS characters.
10096 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10098         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
10099         directories with weird names.  Apparently some people like living
10100         on the edge.  However, improve the test that "pwd" actually does
10101         report a name for the working directory.
10102         * NEWS: Remove the claim that we test for funny chars in dir names.
10104 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
10106         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
10107         replaced ...
10108         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
10109         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
10110         Now accept a single tag, not whitespace separated list.
10111         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
10113 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
10115         * doc/autoconf.texi (Configuration Headers): Change the explanation
10116         about #include <config.h>.
10117         (Generic Functions): Mention the Gnulib project.
10118         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
10120         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
10121         document to output the default config_* lists to config.status.
10122         Don't recognize option --file, if the functionality is not there.
10123         Likewise for --header; moreover, recognize --he and --h as shortcuts
10124         for --help in that case.
10126         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
10127         matches the order of execution.  No code changed.
10129 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10131         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
10132         single-quoted -cmdline argument in Portland Group compiler.
10133         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
10135 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
10137         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
10139 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
10141         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
10142         descriptors to child processes; reported by Norman Gray.
10144 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
10146         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
10148         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
10149         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
10150         (AC_SUBST): Call it.
10151         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
10152         the directory specific variables; but don't call it for configure_input.
10154 2005-06-28  Derek Price  <derek@ximbiot.com>
10156         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
10157         addition.
10159 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10161         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
10162         directory have inherent problems with special characters like spaces,
10163         due to limitations in Make syntax.  Problem reported by Alexandre
10164         Duret-Lutz.
10165         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
10166         Also, fix Tru64 porting problem with shell patterns,
10167         reported by Ralf Wildenhues.
10169 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10171         * doc/autoconf.texi (Subdirectories): Fix markup typos.
10173 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10175         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
10177         Fix some more shell quoting problems.  Prompted by a bug report
10178         from Justace Clutter.
10179         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
10180         variable into diagnostic.  Make the diagnostic an error, not a warning,
10181         because we really don't support spaces and suchlike in dir names.
10182         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
10183         Don't worry about backslashes in srcdir; it can't happen now.
10184         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
10185         Simplify ac_optarg handling.
10186         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
10188 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
10190         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
10191         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
10192         * tests/atlocal.in: Propagate $EGREP and $SED.
10193         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
10194         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
10196         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
10197         that '\|' is not allowed in BREs; recommend using newline separated
10198         list of patterns instead of multiple -e options.
10200         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
10202         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
10204 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10206         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
10208 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
10210         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
10211         b, t, r, w commands require single space, while : cannot have any.
10212         (Special Shell Variables): Fix sed code this in the example.
10213         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
10214         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
10216         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
10217         expand to the empty list.  Don't use two pairs of m4_changequote,
10218         it's not necessary.
10220 2005-06-20  Derek Price  <derek@ximbiot.com>
10222         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
10224 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10226         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
10227         * doc/autoconf.texi:
10228         Don't mention Solaris versions so much, if a
10229         problem is common to all extant versions of Solaris.  Say "SunOS
10230         4" instead of "SunOS" for SunOS 4.
10231         (awk): Mention more of the limitations of traditional Awk.
10232         (cat): Don't talk about cat -v.
10234 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10236         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
10237         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
10238         but the implementation is entirely different and is designed
10239         to be compatible with glibc strverscmp.
10240         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
10242         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
10243         on Mac OS X 10.4 reported by Peter O'Gorman in:
10244         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
10245         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
10246         Use shell builtins rather than 'expr', to work around expr bug.
10248 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
10250         * doc/autoconf.texi: "filesystem" -> "file system".
10251         "behaviour" -> "behavior".
10252         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
10253         * lib/autoconf/general.m4: Omit blank after ":" sed command,
10254         as per POSIX.
10255         * lib/m4sugar/m4sh.m4: Likewise.
10256         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
10257         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
10259         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
10260         (.x.1): Ignore the time stamp in the .TH line when deciding whether
10261         to update the man page.  That way, we don't have to check in new
10262         man pages every month.
10264         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
10265         quotes and backslashes.  Patch from Derek Price.
10267 2005-06-10  Derek Price  <derek@ximbiot.com>
10269         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
10270         AS_TR_SH.
10272 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
10274         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
10275         -u, since it outputs chatter if the input files are the same.
10276         Problem reported by Ralf Menzel.
10278 2005-06-08  Derek Price  <derek@ximbiot.com>
10280         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
10281         renaming them since they are about to be redefined anyhow.
10283 2005-06-08  Derek Price  <derek@ximbiot.com>
10285         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
10286         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
10287         Move m4_undefine to alphabetical order.
10289 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10291         * README: Recommend GNU M4 1.4.3 or later.
10292         * doc/autoconf.texi (Introduction): Likewise.
10293         Reword to avoid some formatting glitches.
10294         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
10295         Clarify explanation of HP compiler bug.
10296         Redo example output tp match current CVS snapshot.
10297         Use @example.org in email addresses when the examples
10298         might get inadvertently cut-and-pasted into user code.
10299         Remove example of autom4te usage that doesn't seem to work now.
10300         Use modern AC_INIT (except when the example is meant to be
10301         shown with Autoconf 2.13).
10302         Update ksh info for Solaris 9 and later.
10303         KB -> kB.
10304         Modernize description of Automake versions a bit.
10305         Don't claim a future version of Autoconf is near.
10306         * doc/install.texi: Reword to avoid some formatting glitches.
10308 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10310         * doc/autoconf.texi: Add [] to examples, so that the manual
10311         follows its own advice about quoting better.
10312         Reword to avoid some formatting glitches.
10313         * doc/installt.exi: Reword to avoid some formatting glitches.
10315         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
10316         Tru64 ksh pattern matching bug.  Reported against Libtool by
10317         Albert Chin <libtool@mlists.thewrittenword.com> and
10318         Nicolas Joly <njoly@pasteur.fr>.
10320 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
10322         m4_cdr of one-member list was [[]] (one-member list containing an
10323         empty string) instead of [] (an empty list.  Callers were skewed to
10324         match this misbehaviour.  As a consequence of this:
10325          - m4_foreach([x], [], [foo]) expanded to `foo', while
10326          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
10327         This bug has been fixed:
10329         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
10330           expand to an empty string; print error msg if called without
10331           an argument list.
10332         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
10333           misbehaviour; handle [] and [[]] correctly.
10335 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
10337         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
10338         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
10339           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
10341 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
10343         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
10344           swallow records with more than 99 fields.
10345         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
10346           parse the long line.
10348 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
10350         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
10351           swallow literals longer than 399.  Reported by Ralf Wildenhues.
10352         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
10353           to workaround this limitation.
10355 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10357         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
10358         to gfortran, and make these the first two compiler names
10359         checked (following the general autoconf preference for gcc).
10361 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
10363         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
10364         (DISTCLEANFILES): Remove $(check_SCRIPTS).
10365         (testsuite): Make sure autotest.m4f is up-to-date before using it.
10367 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10369         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
10370         expression of unbounded size when processing the --list
10371         option.  This runs afoul of a limit of 399 bytes per regular
10372         expression on AIX.  Problem reported by Ralf Wildenhues.
10374 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10376         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
10377         * doc/autoconf.texi (Particular Headers): Reword example
10378         for multiline stdbool replacement.
10379         (Setting Output Variables): Reword text a bit.  Don't
10380         give all the details about |#_!!_#|.
10381         Reword description of line replacement.
10383 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
10385         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
10386         now contain newlines, and substituted files must be referenced on
10387         a line alone; the sed scripts to substitute them are now very
10388         different.
10389         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
10390         commands can be put in a sed script portably.
10391         * doc/autoconf.texi (Setting Output Variables): Document above
10392         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
10393         use of multiline substitution.
10394         * tests/torture.at: No longer expect substitution of newline to fail.
10396 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10398         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
10399         From Ralf Menzel (trivial change).
10401 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
10403         * tests/local.at: Don't attempt to check for negated character
10404         classes in shell scripts.  The test was too brittle.
10406 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
10408         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
10409         * doc/autoconf.texi (Limitations of Builtins): Document this
10410           limitation.
10412 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
10414         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
10415           common code; used in many places in the tree.
10416         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
10417         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
10419         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
10421         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
10422           messages when ac_unique_file is not found.
10423         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
10424         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
10425           commands, for consistency with AC_MSG_ERROR and such.
10427         * bin/autoconf.as: Make more use of "shift 2" in option processing.
10429         * bin/Makefile.am: Merge the two rules for creating scripts.
10431 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
10433         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
10434         obsolete; it was never documented.
10435         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
10437 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
10439         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
10440         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
10441         (ac_top_builddir): ... this ...
10442         (ac_top_build_prefix): ... to this; the old name is also kept, for
10443           backward compatibility.
10444         (ac_top_builddir_sub): New variable, without the trailing slash,
10445           always nonempty.
10446         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
10447         * doc/autoconf.texi (Configuration Actions): Rename
10448           ac_top_builddir to ac_top_build_prefix.
10449         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
10450           at_top_builddir to at_top_build_prefix.
10451         * lib/autotest/general.m4 (AT_INIT): Likewise.
10453 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
10455         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
10456           of confdefs.h .
10458 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
10460         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
10461           argument to m4_foreach.  I guess it was necessary in the past,
10462           but I think it's a no-op now.
10464 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
10466         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
10467           ``cat <<_ACEOF'' commands to one.
10468         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
10469         * lib/autoconf/status.m4: On various places, use expr instead of
10470           ``echo|sed.''
10471         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
10472         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
10473         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
10474           a range.
10475         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
10476           the wrong patterns between ``case'' and ``esac.''  The previous
10477           code had false positives.
10479 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
10481         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
10482         as on 2005-05-02.
10483         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
10484         Mention LIBOBJDIR.
10486 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10488         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
10489         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
10490         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
10491         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
10492         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
10493         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
10494         config/config.guess, config/config.sub, config/elisp-comp,
10495         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
10496         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
10497         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
10498         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
10499         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
10500         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
10501         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
10502         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
10503         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
10504         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
10505         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
10506         lib/autoconf/general.m4, lib/autoconf/headers.m4,
10507         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
10508         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
10509         lib/autoconf/specific.m4, lib/autoconf/status.m4,
10510         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
10511         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
10512         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
10513         lib/autotest/general.m4, lib/emacs/Makefile.am,
10514         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
10515         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
10516         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
10517         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
10518         tests/compile.at, tests/foreign.at, tests/fortran.at,
10519         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
10520         tests/semantics.at, tests/suite.at, tests/tools.at,
10521         tests/torture.at, tests/wrapper.as:
10522         Update FSF postal mail address.
10524 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
10526         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
10527           check.
10528         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
10529           enough arguments, similarly as in m4_bpatsubsts.
10531 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
10533         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
10534           of absolute paths.
10536 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
10538         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
10539           for absolute directory names in one loop.
10540         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
10541           abbreviations of --version and --debug.
10543 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
10545         * doc/autoconf.texi (Autoconf Language): Be more precise about
10546         quoting rules.  Problems noted by Stepan Kasal.
10547         Also, throughout this document, be more careful about white space.
10548         "blank", "white space", and "space" all have different meanings
10549         and we should be careful to say what we mean.
10551 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10553         Fix C++ related problems reported by Werner Lemberg.
10554         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
10555         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
10556         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
10557         avoid problems with C++ and throw.
10558         * tests/compile.at: .cpp, not .cc.
10560         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
10562 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10564         * doc/autoconf.texi (Generic Functions): Typos.
10566 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
10568         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
10569         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
10570         set by latest automake.
10572 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
10574         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
10575         outputs 0 on GNU/Linux these days.
10577 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
10579         * doc/autoconf.texi (Autoconf Language): Add more description
10580         about quoting heuristics.
10581         (Limitations of Builtins): Describe "set -" problems.
10583 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10585         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
10586         not newline.
10588         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
10589         by AC_DEFINE; it was a mistake.
10590         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
10592 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
10594         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
10596 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
10598         * doc/autoconf.texi (External Software): Quadrigraphs are not
10599           processed correctly in AS_HELP_STRING; avoid this in the examples.
10600         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
10601         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
10602           comment and reduce m4_default([foo], []) to [foo].
10603         (m4_strip): Update the explanation.
10605 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
10607         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
10608         Remove core.conftest.* too; it's generated by Tru64 5.1.
10609         Problem reported by Jennis Pruett.
10610         * lib/autoconf/functions.m4
10611         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
10612         Don't bother to remove core files; AC_RUN_IFELSE should do that
10613         for you.
10615 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
10617         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
10619 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
10621         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
10622         Report from Horst Wente.
10624 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
10626         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
10627           the comment.
10629 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
10631         * doc/autoconf.texi (External Software, Package Options): Add
10632           examples showing how to implement --with-* and --enable-* options.
10634 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10636         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
10637         as well as configure.in.  Problem reported by Gregorio Guidi.
10639 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
10641         * doc/autoconf.texi (Particular Functions): Use gnulib's current
10642         pattern for alloca snippet.
10644 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
10646         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
10648 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
10650         * doc/autoconf.texi (Generic Programs): Fix a typo.
10652 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
10654         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
10655         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
10657 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10659         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
10660         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
10661         whole-archive (-zallextract, -zdefaultextract) options in the hope of
10662         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
10663         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
10665 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10667         * NEWS: The configure command now warns you if you attempt to use
10668         a directory whose name contains a special character like space,
10669         newline, or "\".
10670         * doc/autoconf.texi (Installation Directory Variables): Allow
10671         "," in file names.  Do not use \@; it's not a portable regexp.
10672         * bin/Makefile.am (edit): Likewise.
10673         * lib/Makefile.am (edit): Likewise.
10674         * tests/Makefile.am (edit): Likewise.
10675         * tests/semantics.at: Likewise.
10676         * tests/torture.at: Likewise.
10677         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
10678         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
10679         * doc/autoconf.texi (File System Conventions): Warn about
10680         unportable file names.
10681         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
10682         (AC_INIT): Use it.
10683         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
10684         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
10685         ac_pwd, and quote srcdir.
10686         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
10688         * doc/autoconf.texi: Fix some systematic formatting problems.
10689         ".)"  needs a following @: if not at the end of a sentence, and
10690         similarly for "!)".  "etc." should be preceded by a comma.
10691         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
10693 2005-03-22  Bruno Haible  <bruno@clisp.org>
10695         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
10696         argument is often called 'build-aux'.
10698 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
10700         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
10701           macro AC_TRY_LINK is obsolete.
10702         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
10703           `AC_CONFIG_FILES'.
10705 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
10707         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
10708           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
10709           from a Common Lisp's `cl'.
10710         (AC_PROG_CXX): Behave according to the documentation: don't
10711           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
10712           make the variable CCC precious; use `cl.exe', not `cl'.
10714 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10715             Alexandre Duret-Lutz  <adl@gnu.org>
10717         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
10718         /dev/null, as "configure" shouldn't read stdin, and this insulates
10719         us from problems (e.g., when testing for "cl").  Also, do this
10720         redirection before invoking "hostname" or "uname", and keep the
10721         original input stream available via...
10722         (AS_ORIGINAL_STDIN_FD): ... this new macro.
10723         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
10724         bother with "</dev/null" since it's now done at the top of
10725         'configure'.
10726         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
10727         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10728         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
10729         * doc/autoconf.texi (File Descriptor Macros): New section.
10730         (Printing Messages): Mention it.
10731         * tests/base.at (Input/Output): New test.
10733 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10735         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
10736         newline if neither \c nor -n work, as that would output two
10737         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
10739 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
10741         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
10742         This causes that any required macros inside will get before the if.
10743         * doc/autoconf.texi (autom4te.cache): A typo.
10745 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10747         Undo previous change, except keep the change to
10748         lib/autoconf/programs.m4 that replaced grep with shell
10749         pattern-matching.  This is because net-snmp configure reads stdin.
10750         Reported by Noah Misch.
10752 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
10754         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
10755         from /dev/null, as "configure" shouldn't read stdin, and this
10756         insulates us from problems (e.g., when testing for "cl").
10757         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
10758         before invoking "hostname" or "uname".
10759         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
10760         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
10761         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
10762         "</dev/null" since it's now done at the top of 'configure'.
10763         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10764         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
10765         Also, replace grep with shell pattern-matching, to save a process.
10767 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
10769         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
10770         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
10771         avoid thinking that Allegro Common Lisp's "cl" command is a C++
10772         compiler.
10774 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10776         * doc/autoconf.texi (Limitations of Usual Tools): Document that
10777         grep -q isn't portable.  Improve grep -s explanation.
10778         Problem reported by Dan Manthey.
10780 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10782         * doc/autoconf.texi (Special Shell Variables): Clarify
10783         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
10785 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10787         * doc/autoconf.texi: Use @acronym for DJGPP.
10788         Fix some @code's that should have been @env's, and vice versa.
10789         Sort environment variable names.
10790         Mention that shells no longer inherit IFS.
10791         Don't recommend PATH_SEPARATOR=';' so strongly.
10792         Mention that $RANDOM might expand to the empty string.
10793         "symlink" and "soft link" -> "symbolic link".
10794         Improve mktemp description (reported by Bruno Haible).
10796 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
10798         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
10799         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
10800         Likewise.
10801         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
10802         Likewise.
10804 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10806         * NEWS: Mention AT_COPYRIGHT.
10808         * tests/local.at (AT_CMP): Use diff directly on input files rather
10809         than copying them.
10811         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
10812         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
10814 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
10815         and Paul Eggert  <eggert@cs.ucla.edu>
10817         * tests/autotest.at (Empty test suite): New test.
10818         * tests/torture.at (Substitute and define special characters)
10819         (Substitute a 2000-byte string, Define to a 2000-byte string)
10820         (Substitute a newline, Define a newline): New tests.
10822 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
10824         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
10825         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
10826         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
10827         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
10828         (Standard regular expressions): New test.
10829         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
10830         excess test name quoting.
10831         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
10832         CPPFLAGS to `configure' instead of setting it in `configure'.
10834         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
10835         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
10836         on some platforms.
10838         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
10839         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
10841         * tests/local.at (AT_CMP): New macro.
10842         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
10843         (AC_SAVE_STATE): Move environment grep...
10844         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
10845         (AT_CONFIG_CMP): New macro.
10846         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
10847         * tests/c.at (Extensions): Do not exit early.
10848         * tests/atlocal.in: Inherit $GREP.
10850         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
10851         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
10853         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
10854         (AC_COPYRIGHT): Factor header comment portion out and move into...
10855         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
10856         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
10857         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
10858         --version output.
10859         * tests/local.at: Add Autoconf test suite copyright notice.
10860         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
10862 2005-02-04  Bruno Haible  <bruno@clisp.org>
10863         and Paul Eggert  <eggert@cs.ucla.edu>
10865         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
10867 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
10869         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
10870         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
10872         Try not to generated lines of unlimited length, as POSIX places a
10873         2047-byte limit on line length of portable text files.
10874         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
10875         Use newline as a separator, not space.
10876         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
10877         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
10878         space.
10880 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10882         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
10883         as_func_*.  Add test to check whether positional parameters
10884         are restored after function return.
10886 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10888         * doc/autoconf.texi (Special Shell Variables): Mention _,
10889         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
10890         if they contain a lower-case letter.  The DUALCASE problem was
10891         reported by Ralf Wildenhues.
10893         * bin/autoconf.as: Don't exit with status 0 after write failure
10894         with --help or --version.
10895         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
10896         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
10898 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10900         * doc/autoconf.texi (Limitations of Usual Tools):
10901         Unicos 9 sed limitations.
10902         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
10903         to get the option-enhanced interface on older Crays.  Try ftn for
10904         Fortran 95 (newer Crays).
10906 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
10908         * man/Makefile.am (.x.1): Go back to the simple solution, but take
10909         care to echo the commands, so the user knows what's going on.
10910         Modified from a suggestion by Stepan Kasal.
10912         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
10913         with a cross reference.  Derived from a suggestion by Bruce Korb.
10915 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
10917         * doc/autoconf.texi (config.status Invocation): Warn about
10918         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
10919         * doc/install.texi (Defining Variables): Likewise.
10920         Based on a proposed patch by Ralf Wildenhues.
10922         * man/Makefile.am (.x.1): Make sure the required generated files
10923         are up to date.  Problem and original solution proposed by Stepan Kasal.
10924         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
10925         implicit-man-prerequisites): New rules, used by the above.
10927         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
10928         * config/config.guess, config/config.sub, config/install-sh: Likewise.
10929         * config/missing, config/texinfo.tex: Likewise.
10931 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
10933         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
10934         Update the long comment explaining it.
10936         m4_require no longer writes an ``is required by'' line to the
10937         execution stack.  It contains only one bit of non-redundant
10938         information: that the macro was required, not called.  And even
10939         this bit is useless in most situations: have you ever met a macro
10940         which both calls and requires the same macro?
10942         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
10943         (_m4_defun_pro_outer): ... only via this macro, for the outermost
10944           macro.
10945         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
10946         (m4_expansion_stack_pop): Remove the misplaced comment.
10947         (m4_require): Don't put the ``is required by'' line to the
10948           execution stack; slightly improve the out-of-a-defun error message.
10949         (_m4_divert_grow): New macro, counter for the temporary diversions.
10950         (_m4_require_call): Use it.
10951         * tests/m4sugar.at (m4_require): Expect output without the
10952           ``is required by'' messages.
10954 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10956         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
10957         rather than x for expr.
10959         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
10960         this is safe.
10961         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
10962         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10963         * lib/autotest/general.m4 (AT_INIT): Likewise.
10964         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
10965         * tests/mktests.sh: Likewise.
10967 2005-01-27  Akim Demaille  <akim@epita.fr>
10969         Have autoheader honor --force.
10971         * doc/make-stds.texi, doc/standards.texi: Update from masters.
10972         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
10973         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
10974         from masters, so that FileUtils.pm's update_file provide --force
10975         support.
10976         * bin/autoheader.in: Pass $force to update_file so that
10977         config.h.in is always recreated when --force.
10979 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
10981         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
10983 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10985         * doc/autoconf.texi (Limitations of Builtins): Clarify that
10986         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
10988 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
10990         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
10991         Warn about newline stripping in `` and $().  Update Solaris
10992         version to 9.
10993         (Limitations of Builtins): Use expr "X...", not expr "x...", as
10994         X insulates us from future changes to Posix.
10995         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
10996         stripping.
10998 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
11000         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
11001           you cannot use AC_DEFINE to define macros containing `[' or `]'.
11003 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
11005         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
11006         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
11007         bug-tar mailing list.
11009 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
11011         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
11013 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11015         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
11016         ulongval to be static, to avoid unwanted GCC warning.  Problem
11017         reported by Michael Jennings via Daniel Reed; see
11018         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
11020 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
11022         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
11023         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
11024         datadir, infodir, and mandir.  Adjust argument parsing code.
11025         (_AC_INIT_HELP): Update help text.
11026         * doc/autoconf.texi (Installation Directory Variables): Document
11027         new variables.
11029 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
11031         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
11032         not seem to work, assume it does set $(MAKE).
11033         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
11035 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
11037         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
11039 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
11041         A cleanup of the diversion support in m4sugar.
11043         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
11044         (_m4_divert_n_stack): New macro; the expansion is
11045           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
11046           otherwise.
11047         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
11048         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
11049           stored in _m4_divert_diversion or _m4_divert_dump.
11050         (m4_divert_pop): When the parameter is given, compare the symbolic
11051           name with the last diversion pushed on the stack.  Previously, the
11052           current diversion was compared with the numeric value of the
11053           diversion given as the parameter.
11054         (m4_require): If the macro hasn't been expanded yet, call ...
11055         (_m4_require_call): this new macro.
11057 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11059         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
11060         Workarounds for documented `case' limitations.
11062 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11064         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
11065         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
11067 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
11069         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
11070         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
11071         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
11073         Patch from Roger Leigh (with some minor changes) as follows:
11074         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
11075         Resurrect AC_PROG_CC_STDC.
11076         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
11077         AC_PROG_CC_C89, AC_PROG_CC_C99.
11078         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
11079         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
11080         AC_PROG_CC_C99): New macros.
11081         (AC_PROG_CC_STDC): Use them.
11082         (_AC_PROG_CC_STDC): Remove.
11083         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
11084         * THANKS: Add Roger Leigh.
11086 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
11088         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
11089         signals that the package uses Automake; a `Makefile.am' is typical but
11090         not essential.  Reported by Magnus Therning.
11091         * tests/torture.at (autoreconf.): New banner.
11092         (autoreconf and non-AC configure): Rename to `Non-Autoconf
11093         AC_CONFIG_SUBDIRS'.
11094         (autoreconf an empty directory): Rename to `Empty directory'.
11095         (Unusual Automake input files): New test.
11097 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
11099         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
11100         (AT_SETUP): Clear AT_capture_files.
11101         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
11102         (AT_KEYWORDS): Fix comment typo.
11103         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
11104         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
11105         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
11107 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
11109         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
11110         If the variable to set is already set, set ac_cv_path_$1
11111         to the preset value so caller can assume ac_cv_path_$1
11112         is available.  (trivial change)
11114 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
11116         * BUGS (Minor Problems): Warn about makefile limitations.
11117         * Makefile.am: Find and update `INSTALL' in $(srcdir).
11118         * man/Makefile.am: Find and update manual pages in $(srcdir).
11120 2004-12-24  Eric Blake  <ebb9@byu.net>
11122         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
11123         shells in subshell, to avoid noise from ash.  (trivial change)
11125 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11127         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
11128         problems with SunOS ksh and backslash escaping, Bourne shells and
11129         closing brackets (both within character classes).  Bug reported
11130         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
11131         <read>: New entry.  Mention non-availability of -r.
11133 2004-12-21  Akim Demaille  <akim@epita.fr>
11135         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
11136         avoid cluttering displayed messages.  Rather, prepend srcdir where
11137         AT_LINE is used for log files.
11139 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
11141         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
11142         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
11143           no longer part of the macro, quote the occurrence of ``$tmp''.
11144         * doc/autoconf.texi (Forbidden Patterns): Typo.
11146 2004-12-21  Akim Demaille  <akim@epita.fr>
11148         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
11149         separated from the test title by forcing a white space.
11151 2004-12-21  Akim Demaille  <akim@epita.fr>
11153         Enable Emacs navigation within testsuite.log files.
11155         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
11156         use the compilation mode.
11157         (AT_LINE): Point to the srcdir.
11159 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
11161         * tests/Makefile.am (installcheck-local): Use $(bindir).
11162         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
11163         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
11164         Makefile.am scheme Autoconf now uses.
11166 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
11168         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
11169         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
11171 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
11173         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
11174         (_AT_CHECK): Use it.
11175         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
11176         (AS_ESCAPE): Fix comment.
11177         * tests/autotest.at: Adjust section banner comments.
11178         (AT_CHECK_AT): Accept STATUS and STDERR.
11179         (AT_CHECK_AT_TEST): Likewise.
11180         (Invalid brace-enclosed parameter expansion)
11181         (Multiline command from M4 expansion)
11182         (Double-M4-quoted command): New tests.
11184 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11186         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
11188 2004-12-17  Akim Demaille  <akim@epita.fr>
11190         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
11191         m4_pattern_allow.
11192         Suggested by Alexandre Duret-Lutz.
11193         * doc/autoconf.texi (Setting Output Variables): Catch up.
11195 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11197         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
11199 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11201         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
11202           remove the comment which said we cannot.
11204 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11206         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
11207         Reini Urban and Paul Eggert for reporting the dependencies.
11209         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
11210         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
11211         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
11213 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11215         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
11216           so that eg. ``autoscan --help'' doesn't truncate it.
11218 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
11220         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11221         generated conftest files.
11223 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
11225         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
11226         tracing on commands with possibly-escaped newlines.
11227         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
11228         discontinued behavior and its implications.
11229         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
11230         (BSx641-newline in command, BS-BS-newline in command)
11231         (BSx640-newline in command, Newline-CODE-BS-newline in command)
11232         (Single-quote-BS-newline in command)
11233         (Single-quote-newline-BS-newline in command): New tests.
11235 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
11237         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
11238           on platforms where it works.
11239         (_AS_TEST_PREPARE): Test for ``test -x''.
11240         (_AS_BROKEN_TEST_PREPARE): Nuke.
11242 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
11244         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
11245         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
11246           give only 4-letter prefix to AS_TMPDIR, comment fixed.
11247         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
11248           create the temporary directory.
11249         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
11251 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
11253         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
11254         (trivial change)
11256 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
11258         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
11260 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
11262         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
11263         to avoid using a negated character class.  Reported by Nicolas Joly.
11264         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
11266 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
11268         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
11269         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
11270         Don't depend on .x file explicitly, since "make" does that for us.
11271         Suggested by Stepan Kasal.
11273         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
11274         Add *.tmp.
11275         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
11276         ifnames): Factor common code.  And they said it couldn't be done!
11278 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11280         * bin/.cvsignore: Add autoconf.in.
11281         * tests/.cvsignore: Add wrapper.in.
11282         * lib/autotest/general.m4: Escape '$' in case pattern.
11284 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
11286         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
11288         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
11290         * tests/autotest.at: New file.
11291         * tests/suite.at: Include it.
11292         * tests/Makefile.am: Distribute it.
11294         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
11295           shell tracing on a command that could contain multiple lines.
11296         * doc/autoconf.text: Document that fact and its implications.
11297         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
11298         * tests/autotest.at (Multiline backquote command substitution,
11299           Multiline parameter expansion, Literal multiline command,
11300           Multiline parenthetical command substitution): Remove XFAIL.
11302 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11304         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
11305         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
11307 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
11309         * configure.ac (test suite): Cease to generate wrapper scripts.
11310         * configure: Regenerate.
11311         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
11312         (m4f_dependencies): Adjust accordingly.
11313         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
11314         (wrapper.in): Generate it in the build directory.
11315         (MAINTAINERCLEANFILES): Delete wrapper.in.
11316         (CLEANFILES): Add wrapper.in.
11317         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
11318         the output.  Replace each $as_me with a @wrap_program@.
11319         * tests/wrapper.in: Delete it; we always build it.
11321         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
11322         (EXTRA_DIST): Remove autoconf.in.
11323         (CLEANFILES): Add autoconf.in.
11324         (autoconf): Find autoconf.in in the build directory.
11325         * bin/autoconf.in: Delete it; we always build it.
11327 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
11329         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
11330         PATH members so as to not prepend an empty element.  Move a comment.
11331         * Makefile.am (SUBDIRS): Build in `tests' last.
11332         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
11334 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
11336         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
11337         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
11338         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
11339         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
11341 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
11343         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
11344         patch: extra "-l"s.
11346 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11348         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
11349         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
11350         * doc/autoconf.texi (Particular Functions): Mention new behavior.
11352 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
11354         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
11355           out the common code to ...
11356         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
11357           value of the #define--default to 1, iff the macro was called
11358           with exactly one parameter.
11360 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
11362         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
11363         "char c = '\200';" rather than "char c = 0x80;" as the
11364         latter doesn't conform to the strict C standard due to
11365         overflow on signed char hosts.
11367         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
11368         to -qlanglvl=ansi.  We don't want to disable extensions.
11370 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
11372         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
11373         (Using Autotest, testsuite Scripts, Writing testsuite.at):
11374         Reword slightly to avoid some English-language problems noted
11375         by Ralf Wildenhues in:
11376         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
11378 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
11380         * NEWS: Add ^L above each release.
11382 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
11384         Fix documentation problems reported by Russ Boylan in
11385         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
11386         along with some nearby cruft.
11387         * doc/autoconf.texi (Libtool): Libtool can be used without
11388         Automake (not without Autoconf).
11389         (Introduction): Mention lists.gnu.org.
11390         * BUGS: Don't mention bugs.gnu.org.
11391         Remove mention of ancient libtool compatibility problem.
11392         * NEWS: Mention that bugs.gnu.org is kaput.
11393         * README: Likewise.  Mention where mailing list archives can be found.
11395 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
11397         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
11399 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
11401         * doc/autoconf.texi (Pretty Help Strings): Go back to
11402         single-quoting assignments to cache variables.
11404 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
11406         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
11407         with the examples; fix the bug in MY_ARG_WITH example reported
11408         by Alexandre Duret-Lutz.
11409         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
11410         expansion of $1 in the comment emitted to configure.
11412 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
11414         * doc/autoconf.texi (Pretty Help Strings): Fix typo
11415         in my editing of the previous patch.  Problem reported
11416         by Alexandre Duret-Lutz.
11418 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
11420         * doc/autoconf.texi (Autoconf Language): Explain that
11421         ``descriptions'' may not be double quotes.
11422         (Quotation Rule Of Thumb): Likewise.
11423         (Pretty Help Strings): Likewise; remove the wrong comment;
11424         simplify the examples and improve their quoting.
11426 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
11428         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
11429         the $1_found variable, don't test whether the file is executable;
11430         Both things are checked ...
11431         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
11432         the former ``test -f''.
11433         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
11435 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11437         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
11438         use cp -R instead.
11440 2004-11-10  Derek R. Price  <derek@ximbiot.com>
11442         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
11443         limitations.  Reorder paragraphs for clarity.
11445 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11447         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
11448         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
11449         variants", "Unix", and some related minor wording fixups.
11451         (Shellology, Special Shell Variables): Document that the Zsh
11452         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
11453         to Alexandre Duret-Lutz for this info.
11455 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
11457         * doc/autoconf.texi (One-Shot Macros): New node.
11459 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
11461         * doc/autoconf.texi (Function Portability): Fix misdescription
11462         of putenv.  Problem reported by Michael Wardle.
11464 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11466         * doc/autoconf.texi (auindex): New macro.
11467         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
11468         Problem reported by Stepan Kasal.
11470 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11472         Fix problems reported by Andreas Buening in:
11473         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
11474         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
11475         in test makefile.
11476         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
11477         readable; it's not true in OS/2-emx.
11479 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
11481         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
11482         "/usr/include", clear ac_x_includes instead of leaving it as "no"
11483         (trivial change).  Problem and patch reported by Andrew Church in:
11484         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
11486 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11488         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
11489         three args in examples.  Problem reported by Frederik Fouvry in:
11490         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
11491         Also, fix some minor spacing and punctuation bugs.
11493 2004-09-02  Akim Demaille  <akim@epita.fr>
11495         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
11496         "case" to restore ordering.
11497         Reported by Stepan Kasal.
11499 2004-08-26  Akim Demaille  <akim@epita.fr>
11501         * doc/autoconf.texi: Minor typos and stylos.
11503 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11505         * configure.ac (AC_INIT): Bump to 2.59c.
11507 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11509         Version 2.59b.
11511         * README: Add advice about m4 1.4.2.
11513         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
11514         texinfo.tex for now (done by hand now).
11515         * Makefile.maint (wget_files, cvs_files):
11516         Remove ansi2knr.c; nobody uses it.
11517         (ansi2knr.c-url_prefix): Remove.
11518         (cvs-update): Fix test for failure.  I don't know why it ever
11519         worked...
11521         * doc/autoconf.texi: Update URLs, some of which went stale.
11522         Use @uref rather than @href.
11524         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
11525         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
11527         * config/config.guess, config/config.sub, config/elisp-comp,
11528         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
11529         doc/fdl.texi, doc/standards.texi: Sync with master copy.
11531         * NEWS, TODO, configure.ac, bin/autoscan.in,
11532         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
11533         doc/install.texi, lib/Autom4te/Configure_ac.pm,
11534         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
11535         lib/autoconf/programs.m4, lib/autoconf/status.m4,
11536         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
11537         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
11538         tests/tools.at, tests/torture.at:
11539         Use "file name" rather than "filename" or "path",
11540         to be consistent with the terminology of the GNU coding standards.
11542 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11544         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
11545         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
11546         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
11547         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
11549         More fixes to support spaces in the name of the build directory.
11550         This isn't a complete fix but it's an improvement.
11552         * bin/autoconf.as (autom4te_options): New var.
11553         Use it instead of appending to AUTOM4TE, so that we can allow
11554         spaces in the build directory's absolute name.
11555         * bin/autoheader.in ($autoconf): Allow spaces in file names.
11556         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
11557         AT_CHECK_NOESCAPE): Likewise.
11558         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
11559         main program): Likewise.
11561 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11563         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
11564         From Ralf Corsepius in:
11565         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
11567 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11569         * doc/autoconf.texi (Function Portability): Document isinf and
11570         and isnan.  From a suggestion by Kevin Ryde.
11572         * lib/Autom4te/General.pm (END): Return correct exit status even
11573         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
11575 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11577         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
11578         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
11579         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
11581 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
11583         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
11584         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
11585         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
11586         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
11587         * lib/autom4te.in (Automake-preselections): Preselect
11588         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
11590 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
11592         * lib/autom4te.in (Automake-preselections): Preselect
11593         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
11594         trace them.
11596 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11598         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
11599         Tru64.
11600         * doc/autoconf.texi (Shellology): Mention BIN_SH.
11601         Document problem with "`""`" in pdksh POSIX mode.
11603 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11605         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
11606         with pdksh, too.  Problem reported by Patrick Welche via
11607         Gary V. Vaughan.
11608         * doc/autoconf.texi (Shellology): Note that set -o posix is
11609         useful for pkdsh, too.
11611 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11613         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
11614         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
11615         Don't fail if ENV or BASH_ENV is readonly.
11616         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
11617         etc. are read only.  Problem reported by Ludovic Courtes.
11619 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
11621         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
11622         zsh, disable GLOB_SUBST to avoid backslash handling problems.
11623         (trivial change)
11625 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11627         * doc/autoconf.texi (File System Conventions): Warn about
11628         names like "aux".  Problem reported by Eric Blake.
11630         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
11631         by zero instead of array size, so that we can use any arithmetic
11632         constant expression (instead of requiring an integer constant
11633         expression).  This allows us to test expressions like DBL_MAX <
11634         LDBL_MAX, which didn't conform to the C standard using the old
11635         method.
11636         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
11637         now that we can do floating-point tests at compile time.
11639 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11641         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
11642         and LDBL_EPSILON, as the resulting expression isn't an
11643         integer constant expression and violates the C standard.
11644         Problem reported by Nelson H. F. Beebe.  Also, check
11645         for "L" suffix, and check that long double doesn't have
11646         worse range or precision than double, that mixed-mode
11647         arithmetic doesn't generate a diagnostic, that double
11648         constants fit in long double.
11650 2004-06-03  Kevin Ryde  <user42@zip.com.au>
11652         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
11653         malloc(0) and realloc(NULL,size).
11655         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
11656         Bob Proulx.
11658 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11660         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
11661         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
11662         by Jim Meyering.
11664 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
11666         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
11667         can be rewritten using if-then-else.  Suggested by Bruno Haible.
11669 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
11671         * doc/autoconf.texi (testsuite Scripts): Fix typo.
11672         Problem reported by Stepan Kasal.
11674 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11676         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
11677         change).  Patch reported by Ralf Wildenhues in
11678         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
11680         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
11681         function F exists if the compiler and linker let you compile an
11682         expression like (F != 0).  Recent versions of GCC optimize away
11683         the reference to F in that case, since every function address must
11684         be nonzero, so the link succeeds even if F does not exist.
11685         Problem reported by Manu in
11686         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
11688         * doc/autoconf.texi (Systemology): Standardize on the spelling of
11689         "Unix".  Many uses changed.
11690         (Limitations of Builtins): Explain better why the ! command isn't
11691         portable.
11693 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
11695         * lib/autom4te.in (Automake-preselections): Preselect
11696         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
11698 2004-05-19  Kevin Ryde  <user42@zip.com.au>
11700         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
11701         referencing AC_FUNC_STRERROR_R.
11703         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
11704         note pessimistic assumption when cross compiling.
11706 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11708         * doc/autoconf.texi (Limitations of Make): Note that BSD make
11709         (until 2004) invoked subcommands with sh -e, contra POSIX.
11710         Reported by Kevin Ryde.
11712 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
11714         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
11715         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
11716         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
11717         `test -f "        /usr/bin/grep"', which _always_ failed.
11718         (AC_PROG_SED): Ditto bogus PATH fix.
11719         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
11720         requires that grep correctly supports _multiple_ `-e' options, rather
11721         than stating only that grep should accept `-e'.
11723 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11725         Port to C99, which requires that 'exit' be declared.
11727         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
11728         to ensure that stdlib.h is included.
11729         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
11730         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
11731         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
11732         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11733         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
11734         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
11735         when using 'exit' in a test; C99 requires that 'exit' be declared.
11737 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11739         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
11740         now prefers 'grep' implementations that accept -e.
11741         (Limitations of Usual Tools): Describe problems of traditional
11742         egrep and fgrep with long input lines, and of traditional grep
11743         with -e.
11744         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
11745         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
11746         All callers changed.  Append /usr/xpg4/bin to the PATH, for
11747         Solaris.
11748         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
11749         the user with complaints about multiple -e options.
11750         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
11751         Define it with AC_PROG_GREP.
11752         * configure.ac (AC_PROG_GREP): Add.
11753         * lib/freeze.mk (GREP): New macro.
11755 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
11757         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
11758         a possible candidate only after all others fail, rather than
11759         consulting it first.  This improves backward compatibility by
11760         better reflecting the way shell selection occurred in previous
11761         versions of Autoconf, and should help to avoid triggering latent
11762         problems in other packages, such as the one in Automake where zsh
11763         is not handled robustly:
11764         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
11765         Although it is not Autoconf's responsibility to work around
11766         problems in Automake, it nevertheless makes sense to avoid
11767         introducing unnecessary incompatibilites.
11769 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
11770             Gary V. Vaughan  <gary@gnu.org>
11772         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
11773         how deeply nested we are when a suitable tool is found, set the
11774         ac_path_TOOL_found flag.
11775         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
11776         nested we are in this macro.  Break out of all 3 nested loops if
11777         ac_path_TOOL_found is set.
11779 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
11781         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
11782         of the _AS_PATH_WALK loop too if GNU flavor is found.
11784 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
11786         * doc/autoconf.texi (Limitations of Make): Update documentation
11787         for `$<'.  New entry `Long lines', based on a report from Simon
11788         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
11789         paragraph about DJGPP, based on a mail from Richard Dawe.
11791 2004-04-20  Paul Eggert  <eggert@twinsun.com>
11793         * tests/c.at (C keywords): Don't assume that GCC supports
11794         "restrict" and "inline", as sufficiently-old GCC versions do not
11795         (also, GCC configured to be in pedantic C89 mode does not).
11796         Problem reported by Sumit Pandya in:
11797         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
11799         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
11800         consider -g to work if it generates warnings when plain compiles
11801         don't.  Problem reported by Braden McDaniel in:
11802         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
11804         * doc/autoconf.texi (Slashes): New section, to document a problem
11805         reported by Jim Meyering in:
11806         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
11808         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
11809         linker output files before linking, to work around IRIX 6 linker bug.
11810         Problem reported by Rainer Orth in:
11811         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
11813 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
11815         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
11816         best tool so far counter rely on the tool path variable name to
11817         avoid checks for one tool being affected by the results of running
11818         the length check on a previous tool.
11820         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
11821         match expression argument, as different greps have different
11822         regular expression flavours.
11823         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
11824         literals.
11825         (AC_PROG_EGREP): Pass 'EGREP$'.
11826         (AC_PROG_GREP): Pass 'GREP$'.
11828 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
11830         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
11831         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
11833 2004-03-29  Paul Eggert  <eggert@twinsun.com>
11835         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
11836         Types, Specific Compiler Characteristics, System Services,
11837         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
11838         etc. consistently instead of 'long', 'short', 'unsigned' etc.
11839         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
11840         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
11841         Likewise.
11842         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
11843         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
11844         AC_TYPE_OFF_T): Likewise.
11845         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
11846         Likewise.
11848         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
11849         pacify libtool 1.5.2.  Fix quoting problems in sed command.
11851 2004-03-28  Paul Eggert  <eggert@twinsun.com>
11853         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
11854         now defines HAVE_DECL_TZNAME if it is declared, when
11855         HAVE_STRUCT_TM_TM_ZONE is not defined.
11856         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
11857         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
11858         for HAVE_TZNAME.
11860 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
11862         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
11863         superfluous backslashing of quotes (") in sed expressions;
11864         thanks to Paul Eggert.
11866 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
11868         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
11869         Fortran compiler is ifort, also added pghpf; thanks to Nelson
11870         H. F. Beebe for the bug report.
11872 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
11874         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
11875         quoted -cmdline argument in Portland Group compiler (bug
11876         reported by Jeffrey J. Barteet).
11878 2004-03-25  Kevin Ryde  <user42@zip.com.au>
11880         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
11881         (Run Time): ... here, where it's now mentioned.
11883 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
11885         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
11886         inherits from language Autoconf-without-aclocal-m4.
11887         (Customizing autom4te): Adjust example; the cache must now be
11888         disabled for language Autoconf-without-aclocal-m4.
11890 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
11891             Nathanael Nerode  <neroden@twcny.rr.com>
11893         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
11894         AC_CHECK_TOOLS): Warn if a cross-tool is found without
11895         a prefix.
11896         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11897         AC_CHECK_TARGET_TOOLS): New macros.
11898         * doc/autoconf.texi (Generic Programs): Document
11899         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11900         AC_CHECK_TARGET_TOOLS, and warn for future changes
11901         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
11902         AC_CHECK_TOOLS.
11903         (Specifying Names): Document the reason for these future
11904         behavioral changes.
11905         * tests/mktests.sh: Do not generate tests for the
11906         new macros.
11907         * NEWS: Document these changes.
11909         * doc/autoconf.texi: Avoid macros with unbraced arguments,
11910         they make TeX hang up.
11912 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
11914         * NEWS: New macro AC_CHECK_ALIGNOF.
11915         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
11916         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
11917         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
11918         vowel.
11919         (AC_CHECK_ALIGNOF): New macro.
11920         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
11921         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
11922         those for sizeof.
11924 2004-03-03  Paul Eggert  <eggert@twinsun.com>
11926         * bin/Makefile.am (edit): Don't use $< in a context where
11927         POSIX doesn't require support for it.  Use $@.in instead.
11928         Problem reported by Anthony N. Frasso in
11929         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
11930         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
11932 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
11934         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
11935         from the next generation of Libtool.
11936         * lib/autom4te.in (Autoreconf-preselections): Ditto.
11938 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
11940         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
11941         is not always thread-safe.  Report from Nathanael Nerode.
11943 2004-02-18  Paul Eggert  <eggert@twinsun.com>
11945         Fix a dependencies problem, stemming from a Autoconf 2.59 build
11946         problem on QNX reported by Stephen Rasku in
11947         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
11949         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
11950         $(m4sh_m4f_dependencies); this removes a FIXME.
11951         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
11952         (MAINTAINERCLEANFILES): Split into pieces,
11953         one per related section.  Add $(srcdir)/wrapper.in.
11955 2004-02-09  Paul Eggert  <eggert@twinsun.com>
11957         * doc/autoconf.texi (Setting Output Variables): Emphasize that
11958         AC_SUBST provides no portable way to escape literal newlines.
11960         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
11961         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
11962         Darwin uses -lcrt2.o and there's little point to cataloging all
11963         the system variants.  Partial fix reported by Andreas Waechter in:
11964         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
11965         for bug reported by Nelson H. F. Beebe in:
11966         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
11968 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
11970         * doc/autoconf.texi (AU_DEFUN): Fix English,
11971         suggested by Paul Eggert.
11972         * lib/autoconf/autoupdate.m4: Correct reference to
11973         acobsolete.m4, suggested by Alexandre Duret-Lutz.
11975 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
11977         * bin/autoupdate.in: Define __file__ so that warnings
11978         refer to the correct file.
11979         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
11980         the behavior of the third argument.
11981         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
11982         correctly the behavior of the third argument.  Document
11983         what the three macros that AU_DEFUN defines do.  Fix
11984         warning message when the third argument includes $0
11985         (reported by Alexandre Duret-Lutz).
11987 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
11988             Eric Sunshine  <sunshine@sunshineco.com>
11989             Paul Eggert  <eggert@twinsun.com>
11991         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
11992         (AS_INIT): Output shell initialization there. Removed optional
11993         parameter. Expand _AS_SHELL_FN_SPY.
11994         (AS_INIT_WITH_SHELL_FN): Removed.
11995         (_AS_SHELL_FN_SPY): New macro.
11996         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
11997         macros.
11998         (AS_SHELL_SANITIZE): Remove loop to find better shell
11999         and documentation for the parameter.
12000         (_AS_DETECT_BETTER_SHELL): Move it here.
12001         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
12002         (_AS_RUN): Move it here, support testing with eval.
12003         (AS_REQUIRE_SHELL_FN): Require shell functions when
12004         it is used.
12005         (_AS_LINENO_WORKS): Put around braces, we do not
12006         trigger the bash bug anymore.
12007         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
12008         use AS_INIT_WITH_SHELL_FN.
12009         * bin/autoconf.in, tests/wrapper.in: Regenerated.
12011 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
12013         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
12014         * doc/autoconf.texi: Don't say that the third parameter
12015         is broken.
12016         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
12017         (AU_DEFUN): Honor the third parameter, create autoupdate
12018         macros with AU_DEFINE.
12019         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
12020         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
12021         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
12022         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
12023         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
12024         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
12025         AC_XENIX_DIR): Likewise.
12026         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
12027         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
12028         * lib/autoconf/status.m4: Remove FIXME.
12029         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
12030         that the macro is not present anymore in the updated
12031         configure.ac.
12032         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
12033         of autoupdate.
12035 2004-01-28  Paul Eggert  <eggert@twinsun.com>
12037         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
12038         copyright years.
12039         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
12040         2003 (except 1997) to the list of copyright years.  This undoes
12041         the 2003-05-22 change, which removed the older years from the list.
12042         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
12044 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
12045             Albert Chin-A-Young  <china@thewrittenword.com>
12047         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
12048         grep or ggrep program in PATH that accepts as long lines as
12049         possible.
12050         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
12051         AC_PROG_GREP.
12052         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
12053         egrep and fgrep respectively if $GREP -E/-F don't work.
12054         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
12055         _AC_PROG_GREP, and AC_PROG_SED.
12056         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
12057         longest input length accepted by a command.
12058         (AC_PROG_SED): Use it.
12059         * doc/autoconf.texi (Particular Programs): Document the changes.
12060         * NEWS: Updated.
12062 2004-01-27  Paul Eggert  <eggert@twinsun.com>
12064         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
12065         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12066         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
12067         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
12069         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
12070         bin/autoconf.in, config/Makefile.in, config/config.guess,
12071         config/config.sub, config/install-sh, config/mdate-sh,
12072         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
12073         lib/Makefile.in, lib/Autom4te/Makefile.in,
12074         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
12075         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
12076         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
12077         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
12078         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
12079         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
12080         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
12081         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
12082         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
12083         tests/actypes.at: Regenerate and/or sync with original
12084         sources.
12086 2004-01-26  Paul Eggert  <eggert@twinsun.com>
12088         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
12089         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
12090         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
12091         not <inttypes.h>.  Problem reported by Tim Mooney in
12092         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
12093         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
12094         Likewise.
12096         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
12097         otherwise "make check" fails because it forbids cmp (I guess
12098         because cmp treats files as binary on DOS-like systems).
12100         * tests/mktests.sh: Update copyright date to 2004, since some tests
12101         have changed in 2004.
12103 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
12105         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
12106         non-truncating sed or gsed program in PATH.
12107         * tests/acprograms.at: Add it.
12108         * doc/autoconf.texi (Particular Programs): Document it.
12109         * NEWS: Updated.
12111 2004-01-15  Paul Eggert  <eggert@twinsun.com>
12113         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
12114         -std1 disables some useful extensions on Tru64.  Problem reported
12115         by N. Lichtmaier in
12116         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
12118 2004-01-14  Paul Eggert  <eggert@twinsun.com>
12120         * doc/autoconf.texi (Programming in M4sh): Document that
12121         AS_MKDIR_P succeeds if the destination is a symbolic link
12122         to an existing directory.
12123         (Limitations of Usual Tools): Note that mkdir -p might not
12124         succeed on symlinks to directories.
12126 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
12128         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
12129         * bin/autoheader.in: Grammar fix in message.
12130         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
12131         Test for dir before calling mkdir -p.  (trivial changes)
12133 2004-01-13  Eric Blake  <ebb9@byu.net>
12135         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
12136         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
12138 2004-01-10  Jim Meyering  <jim@meyering.net>
12140         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
12142 2004-01-09  Paul Eggert  <eggert@twinsun.com>
12144         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
12145         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
12146         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
12147         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
12148         AC_COMPILE_IFELSE, since we now assume our caller invokes
12149         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
12150         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
12151         of AC_RUN_IFELSE; this avoids the warning mentioned above.
12152         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
12154 2004-01-07  Paul Eggert  <eggert@twinsun.com>
12156         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
12157         `"'...'"`, as it's confusing (and I suspect it may not work on
12158         some platforms).  The code was incorrect anyway, as it assumed
12159         that \$ evaluated to itself in that context.  Reported by
12160         Alexandre Duret-Lutz.
12162 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
12164         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
12165         and _LT_AC_TAGCONFIG.
12167 2004-01-06  Paul Eggert  <eggert@twinsun.com>
12169         * doc/autoconf.texi (One Macro Call): Fix an incorrect
12170         example, and add more examples.  Reported by Eric Sunshine.
12172 2004-01-05  Paul Eggert  <eggert@twinsun.com>
12174         * doc/autoconf.texi (Limitations of Usual Tools):
12175         Remove warning against "rm -fr" introduced yesterday; it
12176         was a false alarm.
12178         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
12179         autoscan, autoupdate, ifnames): Don't use chmod -w.
12180         * lib/Makefile.am (autom4te.cfg): Likewise.
12181         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
12182         "chmod -w".
12184 2004-01-04  Paul Eggert  <eggert@twinsun.com>
12185             Paolo Bonzini  <bonzini@gnu.org>
12187         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
12188         by doing lineno substitution only on lines containing "$LINENO".
12190 2004-01-04  Paul Eggert  <eggert@twinsun.com>
12192         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
12193         Use "rm -f" to remove conftest.sed, not plain "rm".
12194         Bug reported by David Relson in
12195         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
12197         * Makefile.am (autom4te-update):
12198         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
12199         * Makefile.maint (my-distcheck, do-po-update): Likewise.
12200         * doc/autoconf.texi (Guidelines): Likewise.
12201         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
12202         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
12203         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
12204         * lib/autotest/general.m4 (AT_INIT): Likewise.
12205         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
12206         * tests/Makefile.am (clean-local): Likewise.
12207         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
12208         srcdir): Likewise.
12209         * doc/autoconf.texi (Limitations of Usual Tools):
12210         Warn against "rm -fr".
12212 2004-01-03  Paul Eggert  <eggert@twinsun.com>
12214         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
12215         -c -o might not work.  From a suggestion by Kevin Ryde.
12216         (C Compiler, Generating Sources, Limitations
12217         of Usual Tools, Limitations of Make, Making testsuite Scripts):
12218         Don't put '-o' after non-options, as POSIX doesn't allow this.
12219         Mention that cc's name might be gcc or c89 or whatever.
12221 2004-01-04  Kevin Ryde  <user42@zip.com.au>
12223         * doc/autoconf.texi: Add various further index entries.
12225 2003-12-29  Paul Eggert  <eggert@twinsun.com>
12227         * bin/autoreconf.in (autoreconf_current_directory):
12228         Fix typo: mkdir without umask arg.
12230 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
12232         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
12233         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
12234         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
12235         explanation clearer.
12237 2003-12-24  Andreas Schwab  <schwab@suse.de>
12239         * doc/autoconf.texi (Default Includes): Fix misspelling of
12240         AC_INCLUDES_DEFAULT.
12242 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
12244         * configure.ac: Test if sh -n works.
12245         * configure: Regenerate.
12246         * tests/atlocal.in: Store the result here.
12247         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
12248         tools.at, looking in atlocal's ac_cv_sh_n_works instead
12249         of explicitly testing.
12250         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
12251         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
12252         * tests/tools.at (Syntax of the shell scripts): Simplify
12253         using AT_CHECK_SHELL_SYNTAX.
12254         (Syntax of the Perl scripts): Remove definition of
12255         AT_CHECK_PERL_SYNTAX.
12257 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
12259         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
12260         stderr to /dev/null.
12261         * bin/autoconf.in: Regenerate.
12262         * bin/wrapper.in: Regenerate.
12264 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
12266         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
12267         Extracted from AS_SHELL_SANITIZE.
12268         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
12269         macros.
12270         (AS_SHELL_SANITIZE): Move reinvocation code from
12271         _AS_LINENO_WORKS, use it to find out if shell
12272         functions work.
12273         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
12274         does not work.
12275         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
12276         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
12277         was called.
12278         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
12279         * bin/autoconf.in: Regenerate.
12280         * tests/wrapper.in: Regenerate.
12281         * tests/tools.at: Test the syntax of tests/autoconf
12282         and tests/testsuite.
12284 2003-11-24  Akim Demaille  <akim@epita.fr>
12286         * config/announce-gen (&print_locations, &print_signatures)
12287         (&sizes): New.
12288         Use them.
12289         No longer rely on Gnus to inline the list of signatures: compute
12290         them on the fly.
12292 2003-11-24  Akim Demaille  <akim@epita.fr>
12294         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
12295         override some files.
12296         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
12297         From Debian Autoconf 2.58.
12299 2003-11-24  Akim Demaille  <akim@epita.fr>
12301         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
12302         uses.
12303         From Debian Autoconf 2.58.
12305 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12307         * TODO: Remove already done things.  Update the part about finding
12308         tools for the target.
12310 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12312         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
12313         Make wording more consistent.
12314         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
12315         Explain the transition better.
12316         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
12317         the transition better.
12319 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12321         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
12322         parameter of AU_DEFUN.
12323         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
12324         (AU_DEFUN): Remove the third parameter, it was not used.
12325         Use AC_DEFUN directly, not AU_DEFINE.
12326         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
12327         the expanded body, consistently with other macros such as AC_USG.
12329 2003-11-17  Paul Eggert  <eggert@twinsun.com>
12331         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
12332         into the initial confdefs.h, to work around a bug in NextStep 3.3
12333         patch 3 reported by Eric Sunshine.
12335 2003-11-15  Kevin Ryde  <user42@zip.com.au>
12337         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
12338         than $target since the latter is not usual, add guidelines on when to
12339         use or not use the system type.
12341 2003-11-12  Derek Price  <derek@ximbiot.com>
12343         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
12344         typo misrepaired by an auto-spellcheck.
12346 2003-11-12  Akim Demaille  <akim@epita.fr>
12348         * bin/autoreconf.in (&parse_args): Don't call automake with
12349         --force-missing unless it actually supports it.
12350         From Debian #219336.
12352 2003-11-12  Akim Demaille  <akim@epita.fr>
12354         * configure.ac: Bump to 2.59a.
12355         Require 2.59.
12357 2003-11-06  Akim Demaille  <akim@epita.fr>
12359         Version 2.59.
12361 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
12363         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
12364         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
12365         and ac_abs_top_srcdir are absolute paths.
12366         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
12368 2003-11-05  Akim Demaille  <akim@epita.fr>
12370         * configure.ac: Bump to 2.58a.
12372 2003-11-05  Kevin Ryde  <user42@zip.com.au>
12374         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
12375         it provokes a warning from makeinfo about looking like a cross
12376         reference in info output.
12378         * doc/autoconf.texi (Function Portability): Add notes on signal
12379         handler return type, as per AC_TYPE_SIGNAL.
12381 2003-11-04  Akim Demaille  <akim@epita.fr>
12383         Version 2.58.
12384         * doc/standards.texi: Update from master.
12386         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
12388 2003-11-04  Akim Demaille  <akim@epita.fr>
12390         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
12391         computing the absolute path to d1 in the source hierarchy: it may
12392         not exist at all.  So don't cd into it.
12393         From Alexandre Duret-Lutz.
12394         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
12396         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
12397         From Paul Eggert, but named after Perl's IO::Spec->catfile.
12398         * doc/autoconf.texi (Programming in M4sh): Document.
12399         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
12401 2003-11-03  Pavel Roskin  <proski@gnu.org>
12403         * doc/autoconf.texi (Generic Structure Checks): Describe
12404         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
12406 2003-10-31  Akim Demaille  <akim@epita.fr>
12408         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
12409         (GNU Fortran): New.
12410         * doc/autoconf.texi (Language Choice): Document.
12411         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
12412         the current language is Fortran.
12414 2003-10-31  Akim Demaille  <akim@epita.fr>
12416         * bin/autom4te.in (&freeze): Use a less likely warning separator
12417         than `\n\n', so that `\n\n\n' is valid in warnings.
12418         Reported by Steve Huston.
12420 2003-10-28  Akim Demaille  <akim@epita.fr>
12422         * Makefile.cfg (local_updates, executable-update): Tweak to be
12423         robust to parallel makes.
12424         Suggested by Alexandre Duret-Lutz.
12426 2003-10-27  Akim Demaille  <akim@epita.fr>
12428         * Makefile.cfg (executable-update): New.
12429         (local_updates): Call it.
12431 2003-10-27  Akim Demaille  <akim@epita.fr>
12433         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
12434         Don't remove core.* as it may remove valid user files.
12435         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
12436         (AC_FUNC_UTIME_NULL): Likewise.
12438 2003-10-23  Akim Demaille  <akim@epita.fr>
12440         Version 2.57g.
12441         * config/config.guess, config/config.sub: Upgrade from masters.
12443 2003-10-23  Akim Demaille  <akim@epita.fr>
12445         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
12446         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
12447         hand...
12449 2003-10-23  Akim Demaille  <akim@epita.fr>
12451         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
12452         Don't forget to remove conftest.err.
12454 2003-10-23  Akim Demaille  <akim@epita.fr>
12456         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
12457         same object file in $LIBOBJS.
12458         Reported by Alexandre Duret-Lutz & Derek Robert Price.
12459         * doc/autoconf.texi (Generic Functions): Adjust.
12461 2003-10-20  Paul Eggert  <eggert@twinsun.com>
12463         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
12464         Use 'eval', so that the resulting configure scripts work even if
12465         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
12467 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
12469         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
12470         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
12471         (_AC_LINK_IFELSE): Check the werror flag.
12472         * doc/autoconf.texi (Generic Compiler Characteristics): Document
12473         AC_LANG_WERROR.
12474         * NEWS: Mention it.
12476 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
12478         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
12479         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
12480         override AC_LINK_IFELSE.
12482 2003-10-15  Paul Eggert  <eggert@twinsun.com>
12484         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
12485         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
12486         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
12487         Mention /usr/dt/bin/dtksh on Solaris.
12488         (Shell Substitutions): Warn about $((...)).
12489         (Parentheses): New section.
12491 2003-10-15  Kevin Ryde  <user42@zip.com.au>
12493         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
12494         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
12496 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12498         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
12499         cross test.
12501 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
12503         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
12504         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
12506 2003-10-10  Andreas Schwab  <schwab@suse.de>
12508         * bin/autoheader.in: Avoid empty first line in --version and
12509         --help output.
12510         * bin/ifnames.in: Likewise.
12512 2003-10-09  Paul Eggert  <eggert@twinsun.com>
12514         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
12515         Issue a more-informative diagnostic.
12516         Problems reported by Eric Sunshine.
12518 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
12520         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
12521         -mGLOB_options_string stuff for Intel ifc, which can cause
12522         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
12523         pattern-matching instead of grep.
12525 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
12527         * doc/autoconf.texi: Document new FC Fortran macros.
12529 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
12531         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
12532         that future autopoint/aclocal/automake/autoreconf will be able
12533         to trace to find where to install local m4 macros.
12534         * doc/autoconf.texi (Input): Document it.
12535         * NEWS: Updated.
12537 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
12539         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
12540         -lcrtbegin.o to list of ignored flags and fix underquoting of
12541         -lcrt[01].o.
12543 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
12545         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
12546         cache variable instead of $G77 to decide whether to include -O2,
12547         since $G77 is specific to Fortran 77.
12549 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
12551         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
12552         free" flag.  Re-order flags tested into rough order of popularity.
12554 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
12556         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
12557         arguments so that it can be used with syntax identical to
12558         AC_PROG_F77, and so that we can more easily decide to
12559         remove/deprecate the DIALECT optional argument in the future if it
12560         proves troublesome.
12561         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
12562         non-freeform-supporting compilers.  Document freeform flags.
12564 2003-10-03  Akim Demaille  <akim@epita.fr>
12566         * configure.ac: Look for emacs, not macs.
12567         Reported by Eric Sunshine.
12569 2003-10-03  Akim Demaille  <akim@epita.fr>
12571         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
12572         * bin/autoreconf.in (autoreconf_current_directory): Create the
12573         AUX_DIR if needed, for sake of automake --add-missing etc.
12574         Suggested by Alexandre Duret-Lutz.
12576 2003-10-03  Akim Demaille  <akim@epita.fr>
12578         * configure.ac: Quotation and formatting changes.
12579         (EMACS): Don't set it if it is not recent enough to support
12580         autoconf-mode.el.
12581         From Eric Sunshine.
12583 2003-10-02  Akim Demaille  <akim@epita.fr>
12585         * bin/ifnames.in (&scan_file): Skip C++ comments.
12586         From Jeremy Yallop.
12588 2003-10-01  Pavel Roskin  <proski@gnu.org>
12590         * doc/autoconf.texi (Particular Structure Checks):
12591         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
12593 2003-10-01  Akim Demaille  <akim@epita.fr>
12595         Version 2.57f.
12597 2003-09-30  Paul Eggert  <eggert@twinsun.com>
12599         * lib/Autom4te/XFile.pm: Use Errno.
12600         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
12601         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
12603 2003-09-30  Akim Demaille  <akim@epita.fr>
12605         * config/announce-gen (&print_news_deltas): Extracted from...
12606         (&print_changelog_deltas): here.
12607         (&news_file): Rename as...
12608         (@news_file): this.
12610 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
12612         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
12613         have been created when invoking the compiler.
12614         * tests/fortran.at (GNU Fortran 77): Quote $G77.
12616 2003-09-29  Akim Demaille  <akim@epita.fr>
12618         Version 2.57e.
12620         * config/mkinstalldirs: Upgrade.
12622 2003-09-28  Paul Eggert  <eggert@twinsun.com>
12624         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
12625         Problem reported by Lars J. Aas in
12626         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
12627         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
12628         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
12629         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
12631 2003-09-26  Akim Demaille  <akim@epita.fr>
12633         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
12634         directory for AC_CONFIG_COMMANDS' first argument exists.
12635         This makes valid the invocation of _AC_SRCPATH that follows.
12636         Reported by Eric Sunshine.
12637         * doc/autoconf.texi (Configuration Commands): Adjust.
12639 2003-09-26  Akim Demaille  <akim@epita.fr>
12641         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
12642         Reported by Ralf Corsepius.
12644 2003-09-26  Akim Demaille  <akim@epita.fr>
12646         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
12647         arguments.
12648         Actually, use AU_ALIAS.
12649         From Bruno Haible.
12651 2003-09-26  Paul Eggert  <eggert@twinsun.com>
12653         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
12654         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
12655         Problem reported by Eric Sunshine in:
12656         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
12658 2003-09-26  Akim Demaille  <akim@epita.fr>
12660         The test suite are sometimes assigning timings incorrectly.
12661         Reported by Henk Krus.
12662         Diagnosed by Nicolas Joly.
12664         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
12665         AT_help_all.
12666         Instead of making AT_help a sequence of assignments to grow
12667         $at_help_all, just make AT_help_all be the growing contents of
12668         $at_help_all, and make a single assignment in...
12669         (AT_INIT): here.
12670         (at_times_skip): Flip the meaning and rename as...
12671         (at_times_p): this.
12672         (AT_INIT): When summarizing the test that ran, remove
12673         $at_times_file after use, and check it is present before trying to
12674         use it.
12676 2003-09-25  Akim Demaille  <akim@epita.fr>
12678         Version 2.57d.
12680         * bin/Makefile.am (edit): Handle '@configure_input@'.
12681         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
12682         (ifnames): chmod -w.
12683         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
12684         executables, not bin/ executables!  Otherwise all the magic needed
12685         to find non installed files is turned off.  This caused a failure
12686         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
12687         as found in its environment (sent by tests/autoreconf): pointing
12688         to bin/autom4te that could not find its files.
12689         * tests/mktests.sh: Force the replacement of generated files, for
12690         the sake of "mv" program that are interactive when overwriting a
12691         -w file.
12692         * config/install-sh: Upgrade from CVS Automake.
12694 2003-09-23  Paul Eggert  <eggert@twinsun.com>
12696         * doc/autoconf.texi (Limitations of Builtins): Document test -h
12697         versus test -L issues.
12699 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
12700             Paul Eggert  <eggert@twinsun.com>
12702         Trivial change to support GCC's configuration procedure.
12703         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
12704         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
12705         about inconsistency if the preprocessor is set to give errors for
12706         any warning.
12707         * doc/autoconf.texi (C Compiler Characteristics): Document this.
12709 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
12711         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
12712         and XFile.pm from Automake.
12713         * lib/Autom4te/XFile.pm: Update from Automake.
12715 2003-09-12  Akim Demaille  <akim@epita.fr>
12717         Version 2.57c.
12719 2003-09-12  Akim Demaille  <akim@epita.fr>
12721         * config/config.guess, config/config.sub, config/missing,
12722         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
12723         from masters.
12725 2003-09-12  Akim Demaille  <akim@epita.fr>
12727         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
12728         not asm/types.h.
12730 2003-09-11  Akim Demaille  <akim@epita.fr>
12732         * doc/autoconf.texi (Header Portability): linux/random.h.
12733         From Peter Hendrickson.
12735 2003-09-10  Akim Demaille  <akim@epita.fr>
12737         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
12738         willing to edit the output files.
12740 2003-09-10  Akim Demaille  <akim@epita.fr>
12742         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
12743         and AC_FC_FREEFORM.
12744         * tests/mktests.sh: Skip AC_FC_SRCEXT.
12745         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
12747 2003-09-09  Akim Demaille  <akim@epita.fr>
12749         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
12750         Reported by Gary Vaughan.
12751         * bin/autom4te.in (handle_m4): Likewise.
12753 2003-09-09  Akim Demaille  <akim@epita.fr>
12755         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
12756         trailing files.
12758 2003-09-07  Paul Eggert  <eggert@twinsun.com>
12760         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
12761         Improve the accuracy of the wording about obsolescence.
12762         From a suggestion by Ian Lance Taylor in
12763         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
12765 2003-09-05  Paul Eggert  <eggert@twinsun.com>
12767         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
12768         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
12770 2003-09-04  Akim Demaille  <akim@epita.fr>
12772         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
12773         AC_FUNC_WAIT3.
12775 2003-09-04  Akim Demaille  <akim@epita.fr>
12777         * bin/autom4te.in: Use &fatal where more appropriate than &error.
12778         (freeze): When exiting, use $exit_code.
12779         * lib/autoconf/fortran.m4: Comment changes.
12781 2003-09-04  Akim Demaille  <akim@epita.fr>
12783         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
12785 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
12787         Add support for newer Fortran dialects.  The F77 interface is
12788         unchanged, and continues to support Fortran 77.  New FC macros
12789         correspond to all the old F77 macros, with output variables FC,
12790         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
12791         available dialect, but older dialects can be specified.  There are
12792         new macros AC_FC_SRCEXT to set the source extension, and
12793         AC_FC_FREEFORM to accept free-form source files.
12795         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
12796         New macros.
12797         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
12798         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
12799         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
12800         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
12801         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
12802         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
12803         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
12804         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
12805         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
12806         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
12807         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
12808         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
12809         AC_FC_SRCEXT, AC_FC_FREEFORM):
12810         New macros.
12811         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
12812         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
12813         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
12814         Rewrite in terms of the above.
12815         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
12816         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
12817         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
12818         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
12820 2003-09-02  Paul Eggert  <eggert@twinsun.com>
12822         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
12823         Document problems with timestamp resolution that 'make', 'cp -p', and
12824         'touch -r' have.
12826 2003-08-27  Akim Demaille  <akim@epita.fr>
12828         * tests/m4sugar.at (cross_warning): Make sure to enable the
12829         output, so that we can track spurious m4sugar output.
12830         * tests/local.at: Require 2.57.
12831         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
12832         are defaulted by AT_CHECK anyway.
12833         Use AT_CHECK_AUTOM4TE.
12834         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
12835         missing dnl.
12837 2003-08-27  Akim Demaille  <akim@epita.fr>
12839         * bin/autoheader.in: Issue the "Using auxiliary..." message only
12840         when -Wobsolete is set.
12841         Set it on by default.
12842         Suggested by Klee Dienes.
12844 2003-08-27  Akim Demaille  <akim@epita.fr>
12846         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
12847         documentation.
12848         From Guido Draheim.
12850 2003-08-26  Akim Demaille  <akim@epita.fr>
12852         * doc/autoconf.texi (Output): Make clear that one can run code
12853         after AC_OUTPUT.
12855 2003-08-25  Akim Demaille  <akim@epita.fr>
12857         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
12858         CVS Bison.
12860 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
12862         * bin/autoreconf.in (parse_args): Do not pass --no-force to
12863         Automake versions prior to 1.8.
12865 2003-08-25  Akim Demaille  <akim@epita.fr>
12867         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
12868         From Ville Karaila.
12870 2003-08-24  Akim Demaille  <akim@epita.fr>
12872         * configure.ac: Bump to 2.57c.
12874 2003-08-22  Akim Demaille  <akim@epita.fr>
12876         Version 2.57b.
12878         * Makefile.cfg (local-checks-to-skip): New.
12879         * Makefile.maint (local-check): Rename as...
12880         (local-checks-available): this.
12881         (local-check): New.
12883         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
12884         * configure.ac: Require Automake 1.7.6.
12886 2003-08-22  Akim Demaille  <akim@epita.fr>
12888         Output stack traces in warnings.
12890         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
12891         Replace the former...
12892         (m4_warn): Pass the call stack to _m4_warn.
12893         * bin/autom4te.in: Adjust to output the call stack.
12894         * tests/m4sugar.at (m4@&t@_warn): Adjust.
12896 2003-08-22  Akim Demaille  <akim@epita.fr>
12898         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
12899         * bin/autom4te.in: Adjust.
12901 2003-08-21  Akim Demaille  <akim@epita.fr>
12903         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
12904         (&verbose): Remove.
12905         (&getopt): Adjust the note and verb channels, depending upon
12906         --verbose.
12907         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
12908         * bin/autoupdate.in: Adjust.
12909         Use &verb, not &verbose.
12911 2003-08-21  Akim Demaille  <akim@epita.fr>
12913         * bin/autoheader.in (&parse_args): Use &parse_warnings and
12914         &parse_WARNINGS.
12915         ($help): Use Autom4te::ChannelDefs::usage.
12916         * bin/autoscan.in: Use Autom4te::ChannelDefs.
12917         * lib/Autom4te/General.pm: Don't export error: you don't own it.
12919 2003-08-21  Akim Demaille  <akim@epita.fr>
12921         First stab at preserving warnings between calls to autom4te,
12922         including when the cache is used.
12924         There are still several issues: (i) there are too many runs of m4
12925         (one for include, one for warnings, and some more), (ii) warnings
12926         spreading on several lines are not handled gracefully, (iii) the
12927         code meant to have the call stack display for errors does not work
12928         (its handling should move from m4 to autom4te).
12930         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
12931         Use them.
12932         (@preselect): Add m4_warn.
12933         ($exit_status): Remove, use $exit_code.
12934         ($help): Use Autom4te::ChannelDefs::usage.
12935         (&handle_m4): No longer define the m4_warnings.
12936         At each run, extract and report the warnings.
12937         Always cache the result, including if the exit status is on
12938         failure, since if nothing changes, we should result in the same
12939         failure, hence we can use the cache.
12940         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
12941         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
12942         Remove.
12943         (m4_warn): Redefine as a do-nothing: it is its invocation that
12944         matters, as warnings are now reported via traces.
12945         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
12946         the contents of m4_warn: make it _call_ m4_warn, so that tracing
12947         the latter reveals calls to the former.
12949         Adjust the tests.
12951         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
12953 2003-08-21  Akim Demaille  <akim@epita.fr>
12955         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
12956         Use them.
12958 2003-08-21  Akim Demaille  <akim@epita.fr>
12960         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
12961         forward order.
12962         * lib/Autom4te/ChannelDefs.pm: Doc typos.
12963         (&parse_warnings): Accept a list of warning requests.
12964         (&usage): Return a string, not a side effect.
12965         (cross): New warning category.
12967 2003-08-21  Akim Demaille  <akim@epita.fr>
12969         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
12970         (&require_configure_ac): Accept an optional directory argument.
12971         ($configure_ac): Remove.
12972         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
12973         (&catfile): Remove.
12974         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
12975         * bin/autoscan.in: Adjust.
12977 2003-08-20  Akim Demaille  <akim@epita.fr>
12979         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
12980         Reported by Alexandre Duret-Lutz.
12982 2003-08-20  Akim Demaille  <akim@epita.fr>
12984         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
12985         * bin/autom4te: Adjust.
12986         In particular, be Autoconf tools are really silent when properly
12987         working, bind the verbosity of the 'note' channel to $verbose.
12988         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
12989         (&xsystem, &contents): Remove, since they are exported by...
12990         * lib/Autom4te/FileUtils.pm: this.
12991         More perldoc.
12992         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
12993         * lib/Autom4te/FileUtils.pm: here.
12995 2003-08-20  Akim Demaille  <akim@epita.fr>
12997         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
12998         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
12999         from CVS Automake.
13001 2003-08-20  Akim Demaille  <akim@epita.fr>
13003         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
13004         (autom4te-update): New.
13005         * Makefile.cfg (update): Bind autom4te-update.
13007 2003-08-19  Derek Price  <derek@ximbiot.com>
13009         * lib/autotest/general.m4: Comment various HELP_* diversions.
13010         (PARSE_ARGS_BEGIN): New section for option parsing related
13011         initialization.
13012         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
13013         package specific options and associated help.
13015 2003-08-19  Akim Demaille  <akim@epita.fr>
13017         * config/announce-gen, Makefile.cfg: New.
13018         * Makefile.am: Adjust.
13019         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
13021 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
13023         * lib/autom4te.in (Automake-preselections): Preselect
13024         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
13025         and m4_sinclude.
13027 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
13029         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
13030         (Autoconf-without-aclocal-m4): ... this new language.
13031         * doc/autoconf.texi (autom4te Invocation): Mention
13032         Autoconf-without-aclocal-m4.
13034 2003-08-18  Derek Price  <derek@ximbiot.com>
13036         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
13037         RUN-IF-PASS optional arguments.
13039 2003-08-18  Derek Price  <derek@ximbiot.com>
13041         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
13043 2003-08-16  Derek Price  <derek@ximbiot.com>
13045         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
13046         STDOUT & STDERR arguments.
13048 2003-08-14  Derek Price  <derek@ximbiot.com>
13050         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
13051         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
13052         shorter column three.  Add DESCRIPTION to log file content.
13054 2003-08-13  Derek Price  <derek@ximbiot.com>
13056         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
13057         output.
13059 2003-08-12  Derek Price  <derek@ximbiot.com>
13061         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
13062         (AT_CHECK_NOESCAPE): Move core functionality to...
13063         (_AT_CHECK): ...this new macro.
13065 2003-08-07  Derek Price  <derek@ximbiot.com>
13067         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
13068         (AT_CHECK_NOESCAPE): ...to this new macro.
13070 2003-07-31  Paul Eggert  <eggert@twinsun.com>
13072         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
13073         in Bash 2.01.  Problem reported by Brian Gough in
13074         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
13076 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
13078         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
13079         -lcrt1.o, for OS X.  (trivial change)
13081 2003-07-07  Paul Eggert  <eggert@twinsun.com>
13083         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
13084         inside '#ifndef __cplusplus'.  Problem reported by
13085         Bob Friesenhahn.
13087 2003-07-06  Bill Clarke  <llib@computer.org>
13089         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
13090         'long', not 'int', for benefit of Sun's recent C++ compilers
13091         (trivial change).  See:
13092         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
13093         (This really should be 'intptr_t', not 'long', but that would
13094         take more work.)
13096 2003-06-25  Akim Demaille  <akim@epita.fr>
13098         * lib/Makefile.am (autom4te.cfg): Make it read only.
13099         Depend on Makefile since it contains substitutions.
13100         From Paolo Bonzini.
13101         * lib/autom4te.in (args): Add local.at? for Autotest args.
13102         This change was made on autom4te.cfg which is generated.
13103         Reported by Raja R. Harinath.
13105 2003-06-25  Akim Demaille  <akim@epita.fr>
13107         * doc/autoconf.texi (Header Portability): sys/mount.h.
13108         From Gareth McCaughan.
13110 2003-06-23  Akim Demaille  <akim@epita.fr>
13112         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
13113         not all of them.  This fixes 1. the fact that when testing
13114         Autoconf there are many many config.log, 2. the incorrect use of
13115         top_srcdir to find config.log.
13116         Don't mix the detailed output of failed test with the summary of
13117         failures.  Rather, append detailed log afterwards.
13119 2003-06-23  Akim Demaille  <akim@epita.fr>
13121         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
13122         always run: output config.log on $at_group_log.
13124 2003-06-23  Akim Demaille  <akim@epita.fr>
13126         * tests/torture.at (#define header templates): Don't use quotes in
13127         C++ comments as it puzzles Emacs' sh font-lock-mode.
13129 2003-06-23  Akim Demaille  <akim@epita.fr>
13131         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
13132         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
13133         * tests/atspecific.m4: Rename as...
13134         * tests/local.at: This.
13135         * tests/suite.at: Move the globals into...
13136         * tests/local.at: here.
13137         * tests/Makefile.am: Adjust.
13138         * doc/autoconf.texi (testsuite Scripts): Adjust.
13140 2003-06-21  Kevin Ryde  <user42@zip.com.au>
13142         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
13143         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
13144         ensuring we add -std1 for full-ANSI.
13146         * doc/autoconf.texi (hdrindex): New macro.
13147         Add index entries for portability of various standard header files.
13149 2003-06-20  Akim Demaille  <akim@epita.fr>
13151         * configure.ac: Bump to 2.57b.
13153 2003-06-20  Akim Demaille  <akim@epita.fr>
13155         Version 2.57a.
13157 2003-06-20  Akim Demaille  <akim@epita.fr>
13159         * bin/autom4te.in: Don't rely on $HOME being defined.
13160         Reported by Marc Espie as PR/233.
13162 2003-06-20  Akim Demaille  <akim@epita.fr>
13164         * lib/autotest/general.m4: Use at_times_file only if used.
13165         From Nicolas Joly.
13167 2003-06-20  Akim Demaille  <akim@epita.fr>
13169         * config/config.guess, config/config.sub, config/elisp-comp,
13170         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
13171         Update from masters.
13173 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
13175         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
13176         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
13177         (TEST_SCRIPT): New diversion.
13178         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
13179         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
13180         (AT_INIT): Support for expected failures.
13182 2003-06-02  Akim Demaille  <akim@epita.fr>
13184         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
13185         changes.
13186         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
13187         Autoconf nor Automake.
13188         (&contents): New, from Automake.
13189         PODify.
13191 2003-05-28  Paul Eggert  <eggert@twinsun.com>
13193         * NEWS, doc/autoconf.texi (Particular Functions),
13194         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
13195         is the inverse of localtime.
13197 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
13199         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
13200         (handle_exec_errors): New function.  Work around $! being
13201         altered by WEXITSTATUS.
13202         (xqx, xsystem): Use handle_exec_errors.
13204 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
13206         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
13207         Do not call `_exit()', simply modify `$?'.
13208         (xsystem): Reset $! before running system, and check it afterward.
13209         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
13210         63 for version mismatches.
13212 2003-05-23  Akim Demaille  <akim@epita.fr>
13214         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
13215         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
13216         the middle of a line).
13217         * lib/m4sugar/m4sugar.m4: Likewise.
13218         Remove useless spaces in comments.
13220 2003-05-23  Akim Demaille  <akim@epita.fr>
13222         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
13223         exit 63, so that we (or Automake's "missing") can tell the
13224         difference with a plain failure.
13225         * doc/autoconf.texi (Notices): Adjust.
13227 2003-05-23  Akim Demaille  <akim@epita.fr>
13229         * Makefile.am, bin/Makefile.am, config/Makefile.am,
13230         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
13231         White spaces cleanup.
13233 2003-05-22  Jim Meyering  <jim@meyering.net>
13234             Paul Eggert  <eggert@twinsun.com>
13236         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
13237         Remove `#include <stdlib.h>' from the list; we should never
13238         make confdefs.h include <stdlib.h> or <cstdlib>, because the
13239         resulting namespace pollution would cause other tests to fail.
13240         Configure scripts run with some older versions of g++ and HP's
13241         aCC would fail due to such an #include.  Problems reported by
13242         Matthew Mueller in <http://bugs.debian.org/120704> and by
13243         Keith Bostic in
13244         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
13245         In the test, use the test declaration before including <stdlib.h>,
13246         as that's closer to how it'll be used.
13248 2003-05-23  Akim Demaille  <akim@epita.fr>
13250         * doc/autoconf.texi (Header Portability): ucred.h.
13251         From Ian Redfern.
13253 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
13255         Overhaul Autotest's logging: generate separate log files
13256         in testsuite.dir/NNN/testsuite.log, and append them to
13257         testsuite.log instead of re-running the test verbosely.
13259         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
13260         file descriptor, write 0 to at_status_file instead of setting
13261         at_status=0, initialize some new variables (at_status_file,
13262         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
13263         to rerun the tests, instead append the at_group_log to the
13264         at_suite_log when a test fails.
13265         (AT_SETUP): pipe the test case's output into at_tee_pipe,
13266         with the AS_MESSAGE_LOG_FD redirected to stdout.
13267         (AT_CLEANUP): save the output status in $at_status_file
13268         and restore it, redirect the AS_MESSAGE_LOG_FD back to
13269         its original place.
13270         (AT_CHECK): since tests are run with a redirected stdout,
13271         and used to be re-run in verbose mode, turn some $at_verbose
13272         into echo, and don't redirect the output of testing stdout
13273         and stderr.
13275         * lib/autotest/autoconf.texi (testsuite Scripts): Update
13276         the name of the debugging directory and information about
13277         its contents.
13279 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
13281         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
13282         parameter.
13284 2003-05-22  Akim Demaille  <akim@epita.fr>
13286         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
13287         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
13288         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
13289         * lib/autoconf/status.m4: Fix and adjust copyright notices.
13291 2003-05-22  Akim Demaille  <akim@epita.fr>
13293         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
13294         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
13295         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13296         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
13297         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
13298         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
13299         * lib/autoconf/status.m4, lib/autoconf/types.m4,
13300         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
13301         * tests/atspecific.m4, tests/base.at, tests/compile.at,
13302         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
13303         * tests/tools.at, tests/torture.at:
13304         Whitespace clean up.
13305         Suggested by Jim Meyering.
13307 2003-05-22  Akim Demaille  <akim@epita.fr>
13309         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
13310         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
13311         Reported by Jim Meyering.
13313 2003-05-22  Akim Demaille  <akim@epita.fr>
13315         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
13316         Add AC_HELP_STRING  to the obsolete macros section.
13317         Typos.
13318         Use '@.' for sentences that ended in a capital letter.
13319         From Art Haas.
13321 2003-05-22  Akim Demaille  <akim@epita.fr>
13323         * config/config.guess, config/config.sub, config/elisp-comp,
13324         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
13325         * config/texinfo.tex, doc/standards.texi: Update from masters.
13327 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
13329         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
13330         it to eval.
13332 2003-05-21  Akim Demaille  <akim@epita.fr>
13334         * bin/autoupdate.in ($m4): Fix quotation.
13335         Reported by Martin Mokrejs.
13337 2003-05-19  Paul Eggert  <eggert@twinsun.com>
13339         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
13340         Remove non-ASCII characters.
13342 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
13344         * tests/semantics.at (AC_SEARCH_LIBS): New test.
13345         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
13346         AC_CHECK_HEADERS_NEW): New tests.
13348 2003-05-17  Akim Demaille  <akim@epita.fr>
13350         * lib/autoconf/functions.m4: Use the default includes so that
13351         memcmp be declared before being tested.
13352         Reported by Sander Niemeijer.
13353         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
13354         * doc/autoconf.texi (Default Includes): Document
13355         AC_INCLUDES_DEFAULT.
13357 2003-05-17  Akim Demaille  <akim@epita.fr>
13359         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
13360         * doc/autoconf.texi (Obsolete Macros): Adjust.
13361         Reported by Werner LEMBERG and Debian Bug 190886.
13363 2003-05-16  Akim Demaille  <akim@epita.fr>
13365         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
13366         user name space clashes.
13367         Reported by Bruno Haible.
13369 2003-05-16  Akim Demaille  <akim@epita.fr>
13371         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13372         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
13373         them uniform, and more robust to Perl special characters.
13374         Reported by Martin Mokrejs.
13376 2003-05-14  Akim Demaille  <akim@epita.fr>
13378         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
13380 2003-05-14  Akim Demaille  <akim@epita.fr>
13382         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
13383         linux/irda.h.
13385 2003-05-12  Akim Demaille  <akim@epita.fr>
13387         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
13388         message.
13389         From Matthias Andree.
13391 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
13393         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
13394         and truncate.
13396 2003-05-06  Akim Demaille  <akim@epita.fr>
13398         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
13399         longer updates aclocal.m4 if useless, (ii) if a file m4_included
13400         by aclocal.m4 is changed it might require the importing of another
13401         m4 extension file, i.e., aclocal must be run.
13403         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
13404         (&parse_args): Use --force with aclocal if required and supported.
13405         (&autoreconf_current_directory): Use &run_aclocal.
13407 2003-05-06  Akim Demaille  <akim@epita.fr>
13409         Lock autom4te's cache.
13411         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
13412         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
13413         argument instead of a file name, so that the request file remains
13414         open during the whole autom4te run.
13415         ($icache_file): New.
13416         (&freeze): Lock the $icache_file.
13418 2003-04-29  Derek Price  <derek@ximbiot.com>
13420         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
13421         seperator with m4_append_uniq().  It doesn't work.
13422         (AT_CLEANUP): Add `;' to end of at_help_all.
13423         (AT_INIT): Allow --keywords to be specified more than once.  When
13424         grepping $at_help_all for keywords, use the field and keyword
13425         seperators to ensure a complete keyword match.  Alter at_prev handling
13426         to support the new --keywords behavior.
13428 2003-04-27  Karl Berry  <karl@freefriends.org>
13430         * doc/autoconf.texi: Make the dir entries in the autoconf manual
13431         align better with others.  I also made some of the individual
13432         entries on one line, for brevity and to make it easier for me to
13433         sort my dir-example file in the Texinfo distribution :).
13435 2003-04-12  Jim Meyering  <jim@meyering.net>
13437         * NEWS: Mention the new macro.
13438         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
13439         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
13440         * tests/c.at: Test AC_C_RESTRICT.
13441         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
13443 2003-04-08  Akim Demaille  <akim@epita.fr>
13445         * bin/ifnames.in: Skip C++ comments.
13446         From Jeremy Yallop.
13448 2003-04-08  Akim Demaille  <akim@epita.fr>
13450         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
13451         From Ilya Zakharevich.
13453 2003-04-08  Akim Demaille  <akim@epita.fr>
13455         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
13456         net/if.h, stdlib.h.
13458 2003-04-01  Derek Price  <derek@ximbiot.com>
13460         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
13461         from Akim's checkin of 2003-03-29.
13463 2003-04-01  Derek Price  <derek@ximbiot.com>
13465         * tests/torture.at (Configuring subdirectories): Add missing
13466         close-quote for Akim's change from 2003-03-28.
13468 2003-04-01  Akim Demaille  <akim@epita.fr>
13470         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
13471         (AC, AT, MS): these.
13472         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
13473         New.
13474         Use them.
13475         * doc/Makefile.am (CLEANFILES): Adjust.
13476         (TEXI2DVI): Make it --batch.
13478 2003-03-31  Derek Price  <derek@ximbiot.com>
13480         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
13481         which removed the main loop.
13482         Thanks to Akim Demaille.
13484 2003-03-29  Akim Demaille  <akim@epita.fr>
13486         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
13487         that starts a GUI.
13488         From Ilya Zakharevich.
13490 2003-03-29  Akim Demaille  <akim@epita.fr>
13492         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
13493         documentation to read is Autoconf's.
13494         Suggested by Paul Eggert.
13496 2003-03-28  Akim Demaille  <akim@epita.fr>
13498         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
13499         reading the section "Present But Cannot Be Compiled" when the
13500         header causes problems.
13502 2003-03-28  Akim Demaille  <akim@epita.fr>
13504         * tests/torture.at (Configuring subdirectories): Require aclocal
13505         1.4, otherwise the test fails, as it does support configure.ac.
13506         This fixes the "test 40 failed" bug reports.
13508 2003-03-28  Akim Demaille  <akim@epita.fr>
13510         * doc/autoconf.texi (C Compiler): `#line' portability.
13511         From Paul Eggert and Nelson H. F. Beebe.
13513 2003-03-27  Derek Price  <derek@ximbiot.com>
13515         * lib/autotest/general.m4: Eliminate main loop and reorganize test
13516         layout in order to allow scripting around test groups.
13518 2003-03-27  Derek Price  <derek@ximbiot.com>
13520         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
13521         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
13522         use new diversions in preparation for accepting new arguments and
13523         allowing scripting around tests.
13524         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
13526 2003-03-26  Derek Price  <derek@ximbiot.com>
13528         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
13529         obsolete AC_HELP_STRING.
13530         (AC_HELP_STRING): AU_DEFUN to...
13531         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
13532         * tests/m4sh.at (AS_HELP_STRING): New test.
13534         * tests/acgeneral.at: Regenerated.
13536 2003-03-26  Derek Price  <derek@ximbiot.com>
13538         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
13539         sense.  Verbosify the diversion definitions comment.
13541 2003-03-26  Derek Price  <derek@ximbiot.com>
13543         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
13544         AS_PREPARE.
13546 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
13548         * doc/autoconf.texi (Present But Cannot Be Compiled):
13549         Grammar fixes and minor rewording. (trivial change)
13551 2003-03-06  Paul Eggert  <eggert@twinsun.com>
13553         Work around a problem noted by Nelson H. F. Beebe with coreutils
13554         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
13555         2002/05/09) rejects '#line 32768 "configure"' because the line
13556         number overflows.
13557         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
13558         #line directives.
13559         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
13560         * doc/autoconf.texi (Generating Sources): Document this.
13562 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
13564         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
13565         file name for the m4 program, when it has an "exe" file extension.
13566         DJGPP's error messages include the error code in brackets -
13567         remove the error code during normalization.
13569 2003-02-28  Akim Demaille  <akim@epita.fr>
13571         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
13573 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
13575         * doc/autoconf.texi (Limitations of Make): Remove the section
13576         about `$<' in inference rules, it was a bogus interpretation of
13577         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
13578         Tru64 make in the "target lookup" section.
13579         (Automake): Automake 1.5+ no longer requires special tools to be
13580         present on the developer's host.
13582 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
13584         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
13585         to a shell that can handle redirection or quoting correctly.
13586         Override SHELL with the shell detected by configure.
13587         Use of $^O suggested by Tim van Holder.
13588         * bin/autom4te.in (BEGIN): Likewise.
13589         * bin/autoreconf.in (BEGIN): Likewise.
13590         * bin/autoscan.in (BEGIN): Likewise.
13591         * bin/autoupdate.in (BEGIN): Likewise.
13592         * bin/ifnames.in (BEGIN): Likewise.
13594         * bin/ifnames.in: Add final newline to help and version messages.
13596         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
13597         to cope with DOS-style absolute paths, when constructing
13598         ${ac_make}.
13600         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
13601         When constructing paths with IFS=:, quote the path. If we're
13602         constructing a DOS-style absolute path, we don't want to split it
13603         on the colon.
13605         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
13606         in description.
13608 2003-02-25  Pavel Roskin  <proski@gnu.org>
13610         * bin/autoheader.in: Add missing newline when printing
13611         suggestion how change AC_DEFINE call.
13613 2003-02-24  Paul Eggert  <eggert@twinsun.com>
13615         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
13616         2002-09-01 patch by replacing "test -n" with "test -z".
13617         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
13618         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
13620         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
13621         to fix a mismatch between example and discussion.
13623 2003-02-24  Kevin Ryde  <user42@zip.com.au>
13625         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
13626         format starting with "-".
13628 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
13630         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
13631         is not portable inside Makefile.
13633 2003-02-20  Akim Demaille  <akim@epita.fr>
13635         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
13636         compiler says yeah, but preproc says nope, compiler is right.
13637         Conversely, prompt the reader to send a bug report to the
13638         maintainers of the package, not of Autoconf.
13640 2003-02-20  Klee Dienes  <kdienes@apple.com>
13642         * bin/autoreconf.in (autoreconf_current_directory): Properly
13643         handle an empty aclocal.m4.
13645 2003-02-20  Akim Demaille  <akim@epita.fr>
13647         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
13648         $ac_prefix_program.
13649         From Larry Jones.
13651 2002-12-23  Paul Eggert  <eggert@twinsun.com>
13653         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
13654         innocuous variant befor including <limits.h> or <assert.h>.  This
13655         works around a bug reported by Albert Chin: HP-UX 11i
13656         (and earlier versions) have a <limits.h> that declares
13657         gettimeofday and many other functions.
13659 2002-12-03  Paul Eggert  <eggert@twinsun.com>
13661         Version 2.57.
13663         * NEWS, configure.ac: Update version.
13665         * doc/fdl.texi: Upgrade to FDL version 1.2.
13667         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
13668         nontrivially in main's body, so that f's external declaration is
13669         not optimized away in AIX.  This should fix the bug reported by
13670         Martin Frydl in
13671         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
13673         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
13674         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
13675         defined, to support freestanding compilers.  This should fix the
13676         bug reported by Momchil Velkov in
13677         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
13679         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
13680         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
13681         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
13682         by Simon Josefsson in
13683         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
13685         * Makefile.maint (www-gnu): New macro.
13686         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
13687         the location has moved.
13689 2002-12-02  Martin Frydl  <martin@systinet.com>
13691         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
13692         \(.*\) match is too long and there is something more to be checked.
13693         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
13695 2002-11-15  Akim Demaille  <akim@epita.fr>
13697         Version 2.56.
13699         * config/install-sh: chmod +x.
13700         From Paul Eggert.
13701         * config/move-if-change: Indenting changes.
13702         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
13703         * configure.ac (AM_INIT_AUTOMAKE): here.
13704         Require 1.7.1.
13706 2002-11-14  Akim Demaille  <akim@epita.fr>
13708         Version 2.55.
13710         * config/config.guess, config/config.sub, config/install-sh:
13711         Update from masters.
13713 2002-11-14  Akim Demaille  <akim@epita.fr>
13715         * Makefile.maint: Sync with Bison, i.e.:
13716         (po-check): Scan .l and .y files instead of the
13717         .c and the .h files that they generate.  This fixes the bug
13718         reported by Tim Van Holder in:
13719         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
13720         Look for N_ as well as for _.  Try to avoid matching #define for
13721         N_ and _.
13722         From Paul Eggert.
13724 2002-11-14  Akim Demaille  <akim@epita.fr>
13726         * doc/autoconf.texi (C Compiler): Compiling several files at once.
13727         From Paul Eggert and Albert Chin-A-Young.
13729 2002-11-14  Akim Demaille  <akim@epita.fr>
13731         * doc/autoconf.texi (C Compiler): Solitary backslashes.
13732         From Paul Eggert and Albert Chin-A-Young.
13734 2002-11-14  Kevin Ryde  <user42@zip.com.au>
13736         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
13737         than assigning in main, to avoid HP cc +O3 optimizing it away.
13739 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
13741         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
13742         option.  Process --recheck after parsing all options.  Pass -q
13743         option to configure on --recheck.
13744         (AC_OUTPUT): Pass -q from configure to config.status.
13745         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
13746         arguments to record.
13747         * doc/autoconf.texi (config.status Invocation): Document
13748         config.status -q option.
13750 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
13752         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
13753         Makefile.in if Makefile.am exists.
13754         (output): Strip `.am' from Makefiles.  Don't
13755         output AC_CONFIG_FILES if no Makefiles were found.
13757 2002-11-07  Akim Demaille  <akim@epita.fr>
13759         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
13760         (local_updates): New.
13761         * Makefile.maint: Update, from CVS Bison.
13762         (local_updates): New.
13764 2002-11-06  Akim Demaille  <akim@epita.fr>
13766         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
13767         declaration in extern "C" too.
13768         Reported by Roberto Bagnara.
13770 2002-11-06  Akim Demaille  <akim@epita.fr>
13772         * tests/torture.at (Configuring subdirectories): Don't use grep
13773         -w.
13774         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
13775         Reported by Ezra Peisach.
13777 2002-11-05  Akim Demaille  <akim@epita.fr>
13779         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
13780         Remove.
13781         We _have_ to stop using the old compatibility scheme that tried to
13782         avoid useless backslashes because Libtool 1.4.3 contains a
13783         AC_DEFINE([error_t], [int],
13784         [Define to a type to use for \`error_t' if it is not
13785         otherwise available.])
13786         We _have_ to quote the single quote and backslashes with \.  The
13787         old compatibility scheme saw that ` was backslashed, and therefore
13788         did not quote the single quote.  Hence before this patch, Autoconf
13789         was not compatible with Libtool.
13791 2002-11-04  Paul Eggert  <eggert@twinsun.com>
13793         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
13794         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
13795         LC_NAME, LC_PAPER, LC_TELEPHONE.
13796         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
13798 2002-11-04  Akim Demaille  <akim@epita.fr>
13800         Version 2.54c.
13802         * Makefile.maint (update, cvs-update, po-update, do-po-update):
13803         New.
13804         * config/texinfo.tex: Update.
13806 2002-11-03  Akim Demaille  <akim@epita.fr>
13808         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
13809         from...
13810         (&autoreconf): here.
13811         ($help, $make, &parse_args, &autoreconf_current_directory):
13812         Support -m/--make.
13813         * doc/autoconf.texi (autoreconf Invocation): Adjust.
13815 2002-10-31  Bruno Haible  <bruno@clisp.org>
13817         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
13818         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
13819         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
13820         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
13821         to ac_cv_func_realloc_0_nonnull.
13822         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
13824 2002-10-31  Akim Demaille  <akim@epita.fr>
13826         The test suite was no longer checking for trailing envvars and files.
13828         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
13829         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
13831 2002-10-31  Akim Demaille  <akim@epita.fr>
13833         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
13834         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
13835         Make variable, not a shell variable.
13836         Suggested by Bruno Haible.
13838 2002-10-31  Akim Demaille  <akim@epita.fr>
13840         * bin/autom4te.in (load_configuration): Reject #args out of any
13841         language.
13843 2002-10-31  Akim Demaille  <akim@epita.fr>
13845         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
13846         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
13847         (_AC_RUN_IFELSE): Use it.
13848         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
13849         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
13850         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
13851         inline it.
13853 2002-10-30  Akim Demaille  <akim@epita.fr>
13855         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
13856         * doc/autoconf.texi (autom4te Invocation): Adjust.
13857         Suggested by Tim van Holder.
13859 2002-10-29  Paul Eggert  <eggert@twinsun.com>
13861         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
13862         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
13863         Problem reported by Bruno Haible.
13865 2002-10-29  Akim Demaille  <akim@epita.fr>
13867         * doc/autoconf.texi (Header Templates): Put also in words what the
13868         pictures says to assist free style readers.
13869         (Customizing autom4te): s/--cache=/--cache /.
13871 2002-10-29  Akim Demaille  <akim@epita.fr>
13873         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
13874         sys/wait.h.
13875         sparc_address_test returns void.
13876         Use it with an argument, as prototyped.
13877         From Bruno Haible.
13879 2002-10-29  Akim Demaille  <akim@epita.fr>
13881         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
13882         configure.in, not configure.ac.
13883         Reported by Bruno Haible.
13885 2002-10-29  Akim Demaille  <akim@epita.fr>
13887         * tests/torture.at (Deep Package): New test.
13888         (Configuring subdirectories): Don't use a testSubDir as Autotest
13889         now does it itself.
13891 2002-10-29  Akim Demaille  <akim@epita.fr>
13893         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
13894         * doc/autoconf.texi (Invoking autom4te): Rename as...
13895         (autom4te Invocation): this, for consistency with the other nodes.
13897 2002-10-29  Akim Demaille  <akim@epita.fr>
13899         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
13900         Reported by Ralf Corsepius.
13902 2002-10-29  Akim Demaille  <akim@epita.fr>
13904         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
13905         characters is a back as an `obsolete' warning now.
13906         Reported by Ralf Corsepius.
13908 2002-10-28  Akim Demaille  <akim@epita.fr>
13910         * configure.ac: Bump to 2.54c.
13912 2002-10-28  Akim Demaille  <akim@epita.fr>
13914         Version 2.54b.
13916         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
13918 2002-10-28  Akim Demaille  <akim@epita.fr>
13920         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
13921         m4 executable names, and different GNU M4 version.
13922         Reported by Ezra Peisach and Paul Jarc.
13924 2002-10-27  Akim Demaille  <akim@epita.fr>
13926         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
13927         AC_RUN_IFELSE.
13929 2002-10-27  Akim Demaille  <akim@epita.fr>
13931         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
13932         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
13933         Die when a simple Fortran program cannot be compiled.
13934         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
13935         Issue a warning if no function is given.
13937 2002-10-27  Akim Demaille  <akim@epita.fr>
13939         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
13940         Move the documentation of AC_TRY_RUN to...
13941         (Obsolete Macros): here.
13942         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
13943         (autoconf Invocation): Remove the duplicates with `invoking
13944         autom4te'.
13945         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
13946         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
13948 2002-10-27  Akim Demaille  <akim@epita.fr>
13950         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
13951         and AC_LANG_FUNC_LINK_TRY.
13952         (Examining Libraries): Rename as...
13953         (Running the Linker): this.
13954         Document AC_LINK_IFELSE.
13955         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
13956         (Obsolete Macros): here.
13957         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
13958         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
13959         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
13960         * lib/autoconf/headers.m4 (AC_USG): Likewise.
13962 2002-10-27  Akim Demaille  <akim@epita.fr>
13964         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
13966         More `check config.log' messages.
13968         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
13969         * doc/autoconf.texi (Printing Messages): Document it.
13970         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
13971         appropriate.
13972         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
13973         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
13974         (_AC_COMPILER_OBJEXT): Likewise.
13975         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
13976         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
13977         Likewise.
13978         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
13979         Likewise.
13981         Deprecate macros with unusual interfaces.
13983         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
13984         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
13986         Document the new ones, and proper style.
13988         * doc/autoconf.texi (Generating Sources): New.
13989         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
13990         (Examining Declarations): Rename as...
13991         (Running the Preprocessor): this.
13992         Document AC_PREPROC_IFELSE.
13993         (Examining Syntax): Rename as...
13994         (Running the Compiler): this.
13995         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
13996         (Obsolete Macros): Move the definition of AC_TRY_CPP and
13997         AC_TRY_COMPILE here.
13999 2002-10-27  Akim Demaille  <akim@epita.fr>
14001         Move sections around.
14003         * doc/autoconf.texi (Customizing autom4te): Remove a lost
14004         sentence.
14005         Reported by Burno Haible.
14006         (Language Choice): Now the first section of...
14007         (Writing Tests): this section.
14008         Make the introduction less C-centric.
14009         (Guidelines, Test Functions): Move to...
14010         (Writing Test Programs): this new section.
14011         (Test Programs): Merge into...
14012         (Run Time): this.
14014 2002-10-27  Akim Demaille  <akim@epita.fr>
14016         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
14017         autom4te.in that resulted in the need for two `make' runs.
14019 2002-10-27  Akim Demaille  <akim@epita.fr>
14021         * configure.ac: Bump to 2.54b.
14023 2002-10-25  Akim Demaille  <akim@epita.fr>
14025         Version 2.54a.
14027         * Makefile.maint: Update from the Coreutils.
14028         (AMTAR): Remove, obsolete.
14029         (automake_repo): Update to redhat.com.
14030         (cvs_file): New.
14031         Adjust to the fact that ansi2knr is now hosted by Automake.
14032         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
14033         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
14034         Update from masters.
14035         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
14036         autoscan.pre is not to be installed, and autoscan.list is not to
14037         be shipped.
14038         (CLEANFILES): Add autoscan.list.
14039         (autoscan.list): Disable the cache.
14040         * bin/Makefile.am: Include freeze.mk.
14042 2002-10-25  Akim Demaille  <akim@epita.fr>
14044         * bin/autom4te.in (&load_configuration): Take the file as
14045         argument.
14046         (&parse_args): Handle -C, --cache.
14047         ($help): Adjust.
14048         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
14049         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
14050         * doc/autoconf.texi (Invoking autom4te): Document --cache.
14051         Now a subsection of...
14052         (Using autom4te): This new section.
14053         (Customizing autom4te): New.
14054         (autom4te.cache): Adjust.
14056 2002-10-25  Akim Demaille  <akim@epita.fr>
14058         * doc/autoconf.texi (Generic Headers): More information on how to
14059         use AC_CHECK_HEADERS.
14061 2002-10-25  Akim Demaille  <akim@epita.fr>
14063         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
14064         Space changes.
14066 2002-10-25  Akim Demaille  <akim@epita.fr>
14068         * bin/autoscan.in (output): Output AC_PREREQ.
14069         (%needed_macros): Add AC_PREREQ so that configure.ac without one
14070         be reported.
14072 2002-10-23  Akim Demaille  <akim@epita.fr>
14074         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
14075         document _Bool.
14077 2002-10-23  Akim Demaille  <akim@epita.fr>
14079         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
14080         Reported by Peter Eisentraut.
14082 2002-10-23  Akim Demaille  <akim@epita.fr>
14084         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
14085         type _Bool.
14086         Fix a typo.
14087         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
14088         Eggert's recommandations.
14090 2002-10-22  Akim Demaille  <akim@epita.fr>
14092         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
14093         Bison, by Paul Eggert.
14094         * doc/autoconf.texi (Particular Headers): Document it.
14096 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
14098         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
14099         `$ac_configure_args'.
14101 2002-10-22  Akim Demaille  <akim@epita.fr>
14103         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
14104         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
14105         From Art Haas.
14107 2002-10-22  Akim Demaille  <akim@epita.fr>
14109         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
14111         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14112         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
14113         (_AC_CHECK_HEADER_NEW): Rename as...
14114         (AC_CHECK_HEADER): this.
14116 2002-10-22  Akim Demaille  <akim@epita.fr>
14118         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
14119         words about HP-UX cmp: it was actually a user-written cmp.
14121 2002-10-22  Akim Demaille  <akim@epita.fr>
14123         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
14124         are a few warnings.
14125         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14126         Quote for Perl '' strings, not "".
14127         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
14128         strings.
14130 2002-10-22  Akim Demaille  <akim@epita.fr>
14132         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
14133         characters is a syntax warning now.
14134         (_AS_QUOTE): Accept $2 as list of characters to quote.
14135         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14136         Quote for Perl, not sh.
14137         * bin/autoheader.in: When $debug, report the file which is
14138         `do'ne.
14139         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
14140         `@', to tickle Perl's lists.
14141         Reported by Carlos Velasco.
14143 2002-10-18  Akim Demaille  <akim@epita.fr>
14145         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
14146         missing included files _are_ errors.
14147         Thanks to Alexandre Duret-Lutz.
14148         * tests/tools.at (autom4te cache): Adjust.
14149         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
14150         (AT_CHECK_M4SUGAR): Use it.
14151         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
14152         Adjust.
14153         * tests/tools.at (autom4te): Now it does exit 1.
14155 2002-10-17  Akim Demaille  <akim@epita.fr>
14157         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
14158         Fixes the `AC_ARG_VAR' test failures.
14159         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
14160         * lib/freeze.mk (check-forbidden-patterns): New.
14161         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
14162         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
14163         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
14164         /dev/null.
14165         Reported months ago by H. Merijn Brand.
14167 2002-10-17  Akim Demaille  <akim@epita.fr>
14169         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
14171 2002-10-16  Paul Eggert  <eggert@twinsun.com>
14173         * Makefile.maint (wget_files): Remove ansi2knr.c.
14174         (ansi2knr.c-url_prefix): Remove.
14176 2002-10-16  Akim Demaille  <akim@epita.fr>
14178         Because of caching, some files that no longer exist and are no
14179         longer required can still cause errors.
14180         Reported by Alexandre Duret-Lutz.
14182         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
14183         to frozen files in @ARGV, as @ARGV must remain being a list of
14184         files.  Rather, at M4 call sites, use this...
14185         (&files_to_options): New function.
14186         (&freeze): Use &error.
14187         (&up_to_date): If a file that was included according to the cache
14188         is no longer there, then the output is out dated.
14189         (&main): Don't even check whether a file is up to date is anyway
14190         --force is given.
14191         * tests/tools.at (autom4te cache): New.
14193 2002-10-16  Akim Demaille  <akim@epita.fr>
14195         * bin/autoconf.as: Kill dead options.
14196         * bin/autoupdate.in (&parse_args): Kill old options.
14197         * bin/autoreconf.in (&parse_args): Remove dead options.
14198         Factor some code.
14199         (&autoreconf): Report the directories we enter *and leave*, so
14200         that error messages can be easily located, and use GNU Make
14201         format, so that Emacs' compile mode understands us.
14202         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
14203         if some file was changed instead of `print'.
14204         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
14205         (&parse_args): Remove the dead options.
14206         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
14207         autoheader's quiet mode.
14208         (AT_CHECK_AUTOUPDATE): Likewise.
14209         * tests/tools.at (autoupdate): Adjust.
14210         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
14212 2002-10-11  Akim Demaille  <akim@epita.fr>
14214         No longer use CPP to check for the existing of headers: use CC to
14215         check for compilability.
14217         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14218         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
14219         (_AC_CHECK_HEADER_NEW): Rename as...
14220         (AC_CHECK_HEADER): this.
14222         * lib/autotest/general.m4 (AT_INIT): Include the failed test
14223         numbers in the Subject suggestion.
14225 2002-10-11  Akim Demaille  <akim@epita.fr>
14227         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
14228         Suggest using AC_CHECK_DECLS instead.
14230 2002-10-11  Akim Demaille  <akim@epita.fr>
14232         * tests/torture.at (AC_ARG_VAR): Have configure report the value
14233         of `precious'.
14235 2002-10-11  Akim Demaille  <akim@epita.fr>
14237         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
14238         file name to enable parallel executions.
14239         From Sam Varshavchik.
14241 2002-10-08  Akim Demaille  <akim@epita.fr>
14243         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
14244         aclocal invocation, as Gettext macros might not be visible to
14245         aclocal.
14246         Instead of blindly running autopoint, scan configure.ac (not the
14247         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
14248         Reported by Paul D. Smith.
14250 2002-10-08  Paul Eggert  <eggert@twinsun.com>
14252         Work around problems found when POSIXLY_CORRECT=1 is set.
14253         None of this seems to have anything to do with POSIX, really,
14254         but it's how Perl getopt works.
14255         * bin/autom4te.in (parse_args): Configure GetOpt with
14256         "permute", too.
14257         * doc/autoconf.texi (Invoking autom4te):
14258         --warning -> --warnings.
14259         * lib/autom4te.in: --warning -> --warnings.
14261 2002-09-28  Akim Demaille  <akim@epita.fr>
14263         * doc/autoconf.texi (autom4te.cache): New section.
14265 2002-09-28  Akim Demaille  <akim@epita.fr>
14267         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
14268         (Automake-preselections): Update.
14269         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
14271 2002-09-28  Akim Demaille  <akim@epita.fr>
14273         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
14274         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
14275         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
14276         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
14278 2002-09-28  Akim Demaille  <akim@epita.fr>
14280         * tests/torture.at (Configuring subdirectories): Be robust to
14281         users who use config.site to require for a cache: in this case,
14282         the two last configure runs, using two different sets of
14283         arguments, trigger a legitimate error.
14285 2002-09-28  Akim Demaille  <akim@epita.fr>
14287         * tests/m4sh.at (Functions Support, Functions and return Support):
14288         New.
14290 2002-09-28  Akim Demaille  <akim@epita.fr>
14292         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
14293         autoheader are Perl programs.
14294         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
14295         (autom4te): Specify that the sources are in the $srcdir.
14296         * doc/autoconf.texi (Installation Directory Variables): Adjust.
14298 2002-09-28  Akim Demaille  <akim@epita.fr>
14300         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
14301         (tm_zone): Move their rules to...
14302         * lib/autoconf/types.m4: here, using AN_ macros.
14303         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
14304         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
14305         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
14306         * lib/autoconf/programs.m4: here.
14307         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
14308         (ETAGS_FOR_AUTOCONF): New.
14309         Use it.
14311 2002-09-28  Akim Demaille  <akim@epita.fr>
14313         * lib/autoconf/autoscan.m4: New file.
14314         * lib/autoconf/autoconf.m4: Include it.
14315         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
14316         that were listed in the original autoscan.list.
14317         * lib/autoconf/headers.m4: Similarly with headers.
14318         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
14319         (.m4.m4f): Don't pass --prepend-include, since that's done by
14320         tests/autom4te itself.
14321         * lib/autoscan/Makefile.am: Include freeze.mk.
14322         (autoscan.list): New target --this file is no longer a source.
14323         (autoscan.pre): New file.
14325 2002-09-28  Akim Demaille  <akim@epita.fr>
14327         * bin/autoscan.in (@kinds): Make them singular.
14328         Adjust all uses.
14329         (&init_tables): When --debug, report the list of rules to ease
14330         tracking changes in autoscan.list.
14331         * lib/autoscan/autoscan.list (function): Strip comments, sort.
14333 2002-09-28  Akim Demaille  <akim@epita.fr>
14335         * lib/autoscan/functions, lib/autoscan/headers,
14336         * lib/autoscan/identifiers, lib/autoscan/makevars,
14337         * lib/autoscan/programs: Merge into...
14338         * lib/autoscan/autoscan.list: this.
14339         * bin/autoscan.in (&init_tables): Adjust.
14341 2002-09-28  Akim Demaille  <akim@epita.fr>
14343         * lib/autoscan/functions, lib/autoscan/headers,
14344         * lib/autoscan/identifiers, lib/autoscan/makevars,
14345         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
14346         `functions' line is now prefixed with `function:'.
14347         * bin/autoscan.in (&init_tables): Adjust.
14349 2002-09-28  Akim Demaille  <akim@epita.fr>
14351         From now on, autoscan files must always map a macro name to a
14352         word: there is no `default' macro for autoscan.
14354         * bin/autoscan.in (&init_tables): Reject entries with no macro at
14355         all.
14356         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
14357         explicit.
14359 2002-09-28  Akim Demaille  <akim@epita.fr>
14361         * bin/autoscan.in (%c_keywords): Remove.
14362         (&used): Keep only track of the words we might be interested in.
14363         (&output_kind): It is no longer needed to look for non active
14364         checks.
14366 2002-09-27  Akim Demaille  <akim@epita.fr>
14368         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
14369         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
14370         * lib/autoscan/functions: Adjust.
14371         * doc/autoconf.texi (Particular Functions): Adjust.
14373 2002-09-27  Akim Demaille  <akim@epita.fr>
14375         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
14376         from /tmp.
14377         Thanks to Bill Moseley and Paul Eggert.
14378         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
14379         the tmpdir must be created.
14380         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
14381         dir be in the build tree, instead of $TMPDIR.
14383 2002-09-27  Akim Demaille  <akim@epita.fr>
14385         * bin/autoscan.in: Improve the comments.
14386         (&parse_args): Drop obsolete undocumented options.
14387         (&output_kind): Output warnings.
14388         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
14389         (getwd): Trigger a warning.
14391 2002-09-26  Akim Demaille  <akim@epita.fr>
14393         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
14394         Reported by Ralf Corsepius.
14395         * doc/autoconf.texi (autoreconf Invocation): Likewise.
14397 2002-09-26  Akim Demaille  <akim@epita.fr>
14399         Single suffix rules and seperated dependencies are not portable.
14401         * doc/autoconf.texi (Installation Directory Variables): Update.
14402         (Limitations of Make): Some about `Single Suffix Rules and
14403         Separated Dependencies'.
14404         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14405         (ifnames, autoscan, autom4te): Un-factor into several rules.
14407 2002-09-25  Paul Eggert  <eggert@twinsun.com>
14409         * BUGS (Interoperability bugs): New section.  Mention libtool
14410         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
14412 2002-09-24  Paul Eggert  <eggert@twinsun.com>
14414         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
14415         make handles suffix-rules differently from GNU make.
14417         * bin/Makefile.am (SUFFIXES, .in): Remove.
14418         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
14419         Move the body of the old .in rule here.
14421 2002-09-16  Akim Demaille  <akim@epita.fr>
14423         i960 compilers create `b.out' files by default.
14424         Reported by Ralf Corsepius.
14426         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
14427         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
14429 2002-09-13  Paul Eggert  <eggert@twinsun.com>
14431         * doc/autoconf.texi (Particular Headers): Remove obsolete
14432         reference to `struct timezone' in the description of
14433         AC_HEADER_TIME.
14435 2002-09-13  Akim Demaille  <akim@epita.fr>
14437         Version 2.54.
14439         * config/config.sub, config/config.guess: Update.
14440         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
14441         * Makefile.am: Adjust.
14443 2002-09-13  Akim Demaille  <akim@epita.fr>
14445         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
14446         reading config.log when the compiler is rejected.
14447         Suggested by Guido Draheim.
14449 2002-09-13  Akim Demaille  <akim@epita.fr>
14451         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
14452         (chdir_init) might hang when stat'ing mounted directories.
14453         Reported by Vance Shipley.
14455 2002-09-12  Akim Demaille  <akim@epita.fr>
14457         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
14458         the lists.
14460 2002-09-12  Akim Demaille  <akim@epita.fr>
14462         * doc/autoconf.texi (Defining Symbols): Present two different
14463         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
14464         difference between 1 argument calls, and 2-3 argument calls.
14466 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
14468         * doc/autoconf.texi: Review grammar and punctuation.
14470 2002-09-11  Paul Eggert  <eggert@twinsun.com>
14472         * doc/autoconf.texi: Fix minor formatting, spelling, and
14473         grammatical typos.
14474         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
14475         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
14476         is obsolescent.
14478 2002-09-11  Akim Demaille  <akim@epita.fr>
14480         * doc/autoconf.texi (Questions): Rename as...
14481         (FAQ): this.
14482         (Defining Directories): New.
14484 2002-09-09  Akim Demaille  <akim@epita.fr>
14486         * doc/autoconf.texi (Making testsuite Scripts): Update.
14487         Suggested by Nishio Futoshi.
14489 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
14491         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
14492         plain `@' is wanted.
14494 2002-09-09  Akim Demaille  <akim@epita.fr>
14496         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
14497         `duplicates', since the algorithm was too naive and could keep
14498         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
14499         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
14500         Reported by Ralf Corsepius.
14501         * tests/torture.at (Configuring subdirectories): Exercise these
14502         cases.
14504 2002-09-09  Akim Demaille  <akim@epita.fr>
14506         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
14507         looking for a replacement file.
14508         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
14509         directory is relative.
14510         * doc/autoconf.texi (Generic Functions): Clarify the replacement
14511         directory definition.
14512         Reported by Andreas Schwab and Jim Meyering.
14514 2002-09-06  Akim Demaille  <akim@epita.fr>
14516         * doc/autoconf.texi (Setting Output Variables): Clarify what
14517         precious variables are.
14518         Suggested by Pontus Skoeld.
14520 2002-09-05  Akim Demaille  <akim@epita.fr>
14522         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14523         (ifnames, autoscan, autom4te): Since we don't only depend on
14524         configure.ac variables (such as VERSION etc.), but also on prefix
14525         and so forth, depend on Makefile, not configure.ac.
14526         Reported by Alexandre Duret-Lutz.
14527         * doc/autoconf.texi (Installation Directory Variables): Adjust.
14529 2002-09-05  Kevin Ryde  <user42@zip.com.au>
14531         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
14532         doesn't seem to be confined to ia64, just say "some versions".
14534 2002-09-04  Akim Demaille  <akim@epita.fr>
14536         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
14537         Automake 1.6c.
14538         * Makefile.am (maintainer-clean-local): Remove.
14539         (MAINTAINERCLEANFILES): Remove COPYING.
14541 2002-09-03  Paul Eggert  <eggert@twinsun.com>
14543         * doc/autoconf.texi (Configuration Commands): Remove obsolete
14544         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
14545         Brinkmann.
14547 2002-09-03  Akim Demaille  <akim@epita.fr>
14549         * configure.ac: Bump to 2.53d.
14550         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
14551         as of today, on Automake's team suggestion.
14553 2002-09-03  Akim Demaille  <akim@epita.fr>
14555         Version 2.53c.
14557 2002-09-02  Akim Demaille  <akim@epita.fr>
14559         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
14560         SITE_MACRO_DIR.
14561         * configure.ac: Disable SITE_MACRO_DIR.
14563 2002-09-02  Jim Meyering  <meyering@lucent.com>
14565         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
14566         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
14567         Also, tweak grammar: s/make sure to/be sure to/.
14569 2002-09-02  Paul Eggert  <eggert@twinsun.com>
14571         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
14572         directory names are generally preferable to physical names.
14574 2002-09-02  Akim Demaille  <akim@epita.fr>
14576         * lib/Autom4te/General.pm (&update_file): s/die/error/.
14577         Reported by Raja R. Harinath.
14578         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
14579         * bin/autoupdate.in: Use error instead of die.
14581 2002-09-01  Paul Eggert  <eggert@twinsun.com>
14583         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
14584         ordinary shell concatenation rather than echo+tr+sed command that
14585         runs afoul of a long-line-related sed bug in Solaris 8.
14587         * bin/autoheader.in (parse_args): --warning -> --warnings.
14589         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
14590         stdout, as traditional "ls" does.
14591         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
14592         _AC_COMPILER_EXEEXT_O): Likewise.
14593         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
14595         * bin/autoconf.as: Add --prepend-include option.  This patch was
14596         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
14597         but bin/autoconf.in is generated automatically from bin/autoconf.as.
14599         * bin/autoconf.in, configure: Regenerate.
14601         * doc/autoconf.texi (Special Shell Variables): Mention
14602         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
14604         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
14605         MAILPATH and set PS1, PS2, PS4 to default values, to work
14606         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
14607         For LC_ALL etc, first try to set to "C" as POSIX requires and as
14608         the Autoconf documentation specifies; fall back to "unset" only if
14609         this fails.  Use a shell for-loop for this rather than an m4 loop,
14610         to shorten the output script.
14612 2002-08-30  Paul Eggert  <eggert@twinsun.com>
14614         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
14615         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
14616         for the CDPATH problem.  Document PWD.
14617         (Limitations of Builtins): Document the problem that "cd $foo" and
14618         "ls $foo" may refer to different directories in shells conforming
14619         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
14620         example, since the old example is now out of date.
14622         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
14623         FOO" and "ls FOO" talk about different directories; this catches
14624         problems when POSIX 1003.1-2001 "cd" fails due to symlink
14625         spaghetti.
14627         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
14628         of rolling our own unset.
14629         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
14630         in practice we needn't worry about CDPATH if unset doesn't work.
14632         * Makefile.in, aclocal.m4, bin/Makefile.in,
14633         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
14634         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
14635         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
14636         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
14637         tests/Makefile.in: Regenerate with Automake 1.6.3.
14639         * config/config.guess, config/config.sub, config/mkinstalldirs:
14640         Update.
14642         * configure: Regenerate with self.
14644 2002-08-30  Kevin Ryde  <user42@zip.com.au>
14646         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
14647         default output.
14649 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14651         * bin/autom4te.in (Request::load): Correctly test for "do" read
14652         failure.
14654 2002-08-29  Akim Demaille  <akim@epita.fr>
14656         * lib/Autom4te/General.pm (&xqx): New.
14657         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
14658         hand, which is not portable.
14659         (&error): New.
14660         * bin/autom4te.in: Use them.
14661         Use &error instead of die.
14662         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
14663         Adjust.
14665 2002-08-17  Paul Eggert  <eggert@twinsun.com>
14667         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
14668         default list of compilers to try, since it was long ago superseded
14669         by the ksh fc builtin.  Suggested by Steven G. Johnson.
14671 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
14673         * doc/autoconf.texi (Invoking autom4te): End the option table,
14674         fixing a bug introduced by the previous patch.
14675         (Limitations of Make): Add a 'target lookup' subentry in the
14676         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
14678 2002-07-29  Mark D. Roth  <roth@feep.net>
14680         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
14681         options and use $AUTOM4TE_PATH.
14682         * doc/autoconf.texi: Remove documentation of autom4te
14683         --include-envvar and --site-macro-subdir options and document
14684         use of $AUTOM4TE_PATH.
14685         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
14686         arguments from each language section.
14688 2002-07-29  Paul Eggert  <eggert@twinsun.com>
14690         * doc/install.texi: Include copyright symbol in copyright notice.
14692         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
14693         Replace with:
14694         (AM_MAKEINFOFLAGS): New macro.
14695         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
14696         * Makefile.am (INSTALL): Use the new macros.
14697         Use -o rather than --output, since "missing" does not grok --output.
14699 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
14701         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
14702         comments do not always work. Never trust the exit status of
14703         `make -k'.
14705 2002-07-24  Kevin Ryde  <user42@zip.com.au>
14707         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
14708         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
14710 2002-07-23  Paul Eggert  <eggert@twinsun.com>
14712         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
14713         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
14714         apparently treats PATH="nonexistent" as if it contained ".".
14715         Bug reported by Stefan `Sec' Zehl.
14717 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
14719         * doc/autoconf.texi (Limitations of Make): Mention the special
14720         handling of the obj/ directory by BSD make.
14722 2002-07-20  Kevin Ryde  <user42@zip.com.au>
14724         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
14725         backslashes.
14727 2002-07-19  Akim Demaille  <akim@epita.fr>
14729         * doc/autoconf.texi (Function Portability): `exit'.
14730         (Programming in M4sh): Ethymology of M4sh.
14732 2002-07-19  Akim Demaille  <akim@epita.fr>
14734         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
14736 2002-07-18  Akim Demaille  <akim@epita.fr>
14738         Version 2.53b.
14740 2002-07-18  Akim Demaille  <akim@epita.fr>
14742         * config/config.guess, config/config.sub: Update.
14744 2002-07-18  Akim Demaille  <akim@epita.fr>
14746         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
14747         Automake's parts.
14749         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
14750         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
14751         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
14753 2002-07-18  Akim Demaille  <akim@epita.fr>,
14754             Alexandre Duret-Lutz  <duret_g@epita.fr>
14756         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
14757         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
14759 2002-07-17  Russ Allbery  <rra@stanford.edu>
14761         * doc/autoconf.texi (Initializing configure): Clarify the
14762         description of the tarname default.
14764 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
14766         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
14767         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
14768         latter was not run.
14770 2002-07-17  Akim Demaille  <akim@epita.fr>
14772         * lib/Autom4te/General.pm (find_file): Browse the directories in
14773         the order they are given.
14775 2002-07-17  Akim Demaille  <akim@epita.fr>
14777         * tests/wrapsh.as, tests/wrappl.as: Merge into...
14778         * tests/wrapper.as: this.
14779         * tests/Makefile.am, configure.ac: Adjust.
14781 2002-07-17  Mark D. Roth  <roth@feep.net>
14783         * configure.ac: Add --enable-site-macro-dir option.
14784         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
14785         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
14786         --site-macro-subdir options.
14787         * bin/autoconf.in: Add --prepend-include option.
14788         * bin/autoheader.in: Add --prepend-include option.
14789         * bin/autoreconf.in: Add --prepend-include option.
14790         * bin/autoscan.in: Add --prepend-include option.
14791         * bin/autoupdate.in: Add --prepend-include option.
14792         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
14793         macro directory, remove note that include path directories are
14794         used in reverse order, and document --prepend-include option.
14795         * lib/autom4te.in: Use --prepend-include instead of --include.
14796         * tests/wrapsh.in: Use --prepend-include instead of --include.
14798 2002-07-17  Akim Demaille  <akim@epita.fr>
14800         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
14801         tarnames.
14802         * doc/autoconf.texi (Initializing configure): Adjust.
14804 2002-07-17  Akim Demaille  <akim@epita.fr>
14806         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
14807         (_AC_FUNC_MALLOC): New.
14808         (AC_FUNC_MALLOC): Use the latter.
14809         Define HAVE_MALLOC to 0 if broken.
14810         * doc/autoconf.texi (Particular Functions): Adjust.
14812 2002-07-16  Akim Demaille  <akim@epita.fr>
14814         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
14815         * doc/autoconf.texi (C Compiler): Adjust.
14817 2002-07-09  Akim Demaille  <akim@epita.fr>
14819         * doc/autoconf.texi: Properly set the ``header'' part.
14821 2002-07-09  Akim Demaille  <akim@epita.fr>
14823         * doc/autoconf.texi (Systemology): Some about Darwin.
14825 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
14827         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
14828         Don't use AC_REQUIRE in AU_DEFUN.
14830 2002-07-09  Art Haas  <ahaas@neosoft.com>
14832         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
14834 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
14836         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14837         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
14838         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
14839         so that Emacs setups GNU style for perl-mode and cperl-mode.
14841 2002-06-27  Paul Eggert  <eggert@twinsun.com>
14843         * config/install-sh: Quote $src.  Prefer || to test's -o option,
14844         as per "Limitations of Builtins".
14845         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
14846         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
14848         * tests/mktests.sh: Use grep instead of fgrep, as per
14849         "Limitations of Builtins".
14851 2002-06-15  Paul Eggert  <eggert@twinsun.com>
14853         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
14854         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
14855         so that we consistently test the just-built programs.
14856         * tests/wrappl.as: Likewise.
14858 2002-06-12  Paul Eggert  <eggert@twinsun.com>
14860         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
14861         name, so that symlinks to 'autoconf' work properly.  Bug reported
14862         by Bruno Haible.
14863         * bin/autoheader.in (AUTOM4TE): Likewise.
14864         * bin/autoreconf.in (autoconf, autoheader): Likewise.
14865         * bin/autoscan.in (autom4te): Likewise.
14866         * bin/autoupdate.in (autom4te): Likewise.
14868         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
14869         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
14870         on Solaris 2.5.1.
14872 2002-06-11  Andreas Schwab  <schwab@suse.de>
14874         * doc/autoconf.texi: Add more dir entries.
14876 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
14878         * bin/autom4te.in ($cache): Don't define using `$me', the name
14879         of the cache should not depend on the name under which autom4te
14880         was installed.
14882 2002-06-07  Akim Demaille  <akim@epita.fr>
14884         * tests/tools.at (autoconf: forbidden tokens, basic)
14885         (autoconf: forbidden tokens, exceptions): Adjust to the change of
14886         words in autom4te.in.
14888 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
14890         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
14891         _AC_LANG_PROGRAM_C_F77_HOOKS.
14893 2002-06-07  Akim Demaille  <akim@epita.fr>
14895         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
14896         rename as...
14897         (AC_REPLACE_FNMATCH): this.
14898         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
14899         AC_FUNC_FNMATCH_GNU.
14901 2002-06-07  Akim Demaille  <akim@epita.fr>
14903         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
14904         Rosetta Stone for Unix.
14906 2002-06-07  Akim Demaille  <akim@epita.fr>
14908         * bin/autom4te.in (warn_forbidden): When rejecting a token,
14909         suggest m4_pattern_allow.
14910         Suggested by Adam J. Richter.
14912 2002-06-07  Akim Demaille  <akim@epita.fr>
14914         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
14915         ac_config_libobj_dir.
14916         (AC_CONFIG_LIBOBJ_DIR): New.
14917         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
14918         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
14919         Use ac_config_libobj_dir to find the replacement files.
14920         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
14921         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
14922         (AC_REPLACE_FNMATCH_GNU): these.
14923         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
14924         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
14925         * tests/mktests.sh (ac_exclude_list): Don't check
14926         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
14928 2002-06-06  Paul Eggert  <eggert@twinsun.com>
14930         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
14931         if ln doesn't work.
14932         * NEWS: Likewise.
14933         * doc/autoconf.texi (Configuration Links): Likewise.
14934         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
14936 2002-06-05  Paul Eggert  <eggert@twinsun.com>
14938         * config/config.guess, config/config.sub, config/texinfo.tex:
14939         Update from masters.
14941 2002-05-29  Paul Eggert  <eggert@twinsun.com>
14943         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
14944         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
14945         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
14946         Likewise.
14947         * lib/autoconf/Makefile.am (check-local): Likewise.
14948         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
14949         * lib/autoconf/types.m4 (commentary only): Likewise.
14950         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
14951         * lib/autotest/Makefile.am (check-local): Likewise.
14952         * lib/m4sugar/Makefile.am (check-local): Likewise.
14953         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
14954         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
14956         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
14957         * doc/autoconf.texi (Particular Programs): Document them.
14958         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
14959         * NEWS: Likewise.
14961 2002-05-27  Paul Eggert  <eggert@twinsun.com>
14963         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
14964         * NEWS, doc/autoconf.texi (Particular Types): Document it.
14965         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
14966         instead of AC_MBSTATE_T, which never existed.
14968 2002-05-23  Akim Demaille  <akim@epita.fr>
14970         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
14971         version of Autoconf that is discussed.
14973 2002-05-22  Paul Eggert  <eggert@twinsun.com>
14975         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
14976         from the default list of compilers to try.  Suggested by
14977         Kate Hedstrom.
14978         * NEWS: Document the above.
14979         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
14981 2002-05-17  Paul Eggert  <eggert@twinsun.com>
14983         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
14984         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
14985         This improves on an earlier suggestion by H. Peter Anvin.
14987 2002-05-16  Paul Eggert  <eggert@twinsun.com>
14989         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
14990         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
14991         Both macros now accept an optional source-dir arg.
14992         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
14994         * NEWS: Document this.
14995         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
14997         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
14998         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
14999         not for GNU extensions; this undoes part of the 2000-11-03 change,
15000         reverting to 2.13-compatible behavior.
15001         Add new optional argument DIR.
15002         (AC_FUNC_FNMATCH_GNU): New macro.
15004         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
15006 2002-05-08  Paul Eggert  <eggert@twinsun.com>
15008         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
15009         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
15010         and it causes a 'test' syntax error if it fails.
15011         Bug reported by Stephen Gildea.
15013         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
15014         If prototypes are supported, use them to check this at compile-time,
15015         instead of trying to check it at run-time.  If we must do a run-time
15016         check, assume that setvbuf is standard when cross-compiling, as
15017         nonstandard setvbuf occurs only on ancient and unlikely hosts.
15018         Bug reported by Paul D. Smith.
15020         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
15021         argument specifying location of getloadavg.c.  This removes a
15022         FIXME.  This idea was taken from Jim Meyering's implementation in
15023         textutils.
15024         * doc/autoconf.texi (Particular Functions): Document this.
15025         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
15026         that's what the code does; this fixes a bug reported by
15027         Paul D. Smith.
15029 2002-05-03  Akim Demaille  <akim@epita.fr>
15031         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
15032         autopoint instead of gettextize.
15033         ($uses_alocal): Rename as...
15034         ($uses_aclocal): this.
15035         * doc/autoconf.texi (autoreconf Invocation): Adjust.
15036         Suggested by Bruno Haible.
15038 2002-05-03  Akim Demaille  <akim@epita.fr>
15040         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
15042 2002-04-29  Paul Eggert  <eggert@twinsun.com>
15044         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
15045         files to be 1 second older; just set them to be the same time.
15046         Also, sleep 1 second after the first aclocal, to work around
15047         problems with sub-second time stamps on the input files.
15049 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
15051         * doc/autoconf.texi: Mention "set -e -x" lossage
15052         under node "Limitations of Builtins".
15054 2002-04-29  Akim Demaille  <akim@epita.fr>
15056         * doc/install.texi: Better wording for setting variables when
15057         running configure.
15058         From Christian Cornelssen.
15060 2002-04-29  Akim Demaille  <akim@epita.fr>
15062         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
15063         of lack of $LINENO support, then the test will compare the $LINENO
15064         in testsuite vs. the lineno in the test file.  This is wrong, of
15065         course.
15066         Be sure to protect it.
15067         Reported by Patrick Welche.
15069 2002-04-25  Akim Demaille  <akim@epita.fr>
15071         * doc/autoconf.texi (Obsolete Macros): Typo.
15072         Reported by Vladimir Volovich.
15074 2002-04-25  Akim Demaille  <akim@epita.fr>
15076         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
15077         than some of the input files, hence, on the second run of aclocal,
15078         if some of its input are younger, make them older.
15079         Suggested by Paul Eggert.
15081 2002-04-25  Akim Demaille  <akim@epita.fr>
15083         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
15084         Thanks to Paul Eggert.
15086 2002-04-25  Akim Demaille  <akim@epita.fr>
15088         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
15089         and ac_subst_vars be sh variables containing the list of
15090         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
15091         DEFAULT diversion.
15092         (_AC_INIT_PREPARE): Use them to log them.
15093         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
15094         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
15095         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
15096         _AC_SUBST_FILES and _AC_SUBST_VARS.
15097         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
15099 2002-04-24  Akim Demaille  <akim@epita.fr>
15101         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
15102         autoheader, so that automake does not complain about a missing
15103         config.h.in that was to be created.
15105 2002-04-23  Akim Demaille  <akim@epita.fr>
15107         * bin/autoheader.in (parse_args): --warning takes an argument.
15108         Fixes PR/220.
15110 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
15112         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
15113         and bb.out when cleaning up.
15115 2002-04-22  Akim Demaille  <akim@epita.fr>
15117         Version 2.53a.
15119 2002-04-22  Akim Demaille  <akim@epita.fr>
15121         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
15123 2002-04-22  Akim Demaille  <akim@epita.fr>
15125         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
15126         comma.
15127         Reported by Gregory Giannoni.
15129 2002-04-22  Akim Demaille  <akim@epita.fr>
15131         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
15132         Fixes false failures on Darwin.
15134 2002-04-21  Paul Eggert  <eggert@twinsun.com>
15136         * TODO, bin/autoupdate.in, doc/autoconf.texi,
15137         lib/autoconf/general.m4, lib/autoconf/libs.m4,
15138         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
15139         tests/tools.at: Minor spelling and grammar fixes.
15141 2002-04-20  Paul Eggert  <eggert@twinsun.com>
15143         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
15144         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
15145         * lib/autotest/general.m4 (AT_INIT): Likewise.
15146         * tests/atgeneral.m4 (AT_INIT): Likewise.
15148 2002-04-19  Paul Eggert  <eggert@twinsun.com>
15150         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
15151         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
15152         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
15153         lib/autoconf/functions.m4, lib/autoconf/general.m4,
15154         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
15155         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
15156         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
15157         Minor spelling and grammar fixes.
15159         * doc/autoconf.texi: Follow the outline suggested in the GNU
15160         Sample Texts sections of the Texinfo 4.2 manual.  Most
15161         importantly, this makes sure that the copyright notices appear in
15162         all output formats.  You probably need Texinfo 4.2 to generate
15163         the manual now.
15165         Fix some bugs when using "$@" when there might be zero positional
15166         arguments in cases where this matters.
15168         * bin/autoconf.as: Rewrite so that the problem does not come up.
15169         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
15170         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
15171         * lib/autotest/general.m4 (AT_INIT): Likewise.
15173         * bin/autoheader.in: Use 'case' statement to work around problem.
15174         * bin/auto4mte.in: Likewise.
15175         * bin/autoreconf.in: Likewise.
15176         * bin/autoscan.in: Likewise.
15177         * bin/autoupdate.in: Likewise.
15178         * bin/ifnames.in: Likewise.
15180         * doc/autoconf.texi (Shell Substitutions): Document the problem.
15182         * lib/autotest/general.m4 (AT_INIT):
15183         Use Zsh alias to work around problem.
15184         * tests/atgeneral.m4 (AT_INIT): Likewise.
15186         * tests/c.at: We can't have zero arguments, so remove workaround
15187         that is not portable to Zsh.
15189 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
15191         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
15192         from aclocal.m4 too.
15194 2002-04-12  Akim Demaille  <akim@epita.fr>
15196         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
15198 2002-04-10  Akim Demaille  <akim@epita.fr>
15200         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
15201         workaround for ${1+"$@"}.
15202         * doc/autoconf.texi (Shell Substitutions): Explain it.
15203         From Oliver Kiddle and Peter Stephenson.
15205         Have M4sh perform minimal shell sanitizing.
15207         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
15208         part into...
15209         (_AS_PREPARE): this new macro.
15210         (AS_PREPARE): New.
15211         (AS_INIT): Invoke AS_SHELL_SANITIZE.
15212         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
15214         Adjust Autoconf and Autotest.
15216         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
15217         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
15218         * lib/autotest/general.m4 (AT_INIT): Likewise.
15219         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
15220         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
15221         AS_SHELL_SANITIZE.
15223         Use this M4sh to generate Autoconf's shell scripts.
15225         * tests/wrapsh.as: New, precursor of wrapsh.in.
15226         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
15227         on Autotest and M4sh.
15228         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
15229         (wrapsh.in): New target.
15230         * bin/autoconf.as: New, precursor of autoconf.in.
15231         (autoconf.in): New target.
15233 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
15235         * doc/autoconf.texi (Limitations of Make): Mention the issue
15236         with indented comments in rules.
15238 2002-04-09  Andreas Schwab  <schwab@suse.de>
15240         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
15241         ac_top_builddir when setting ac_abs_top_builddir.
15243 2002-04-06  Kevin Ryde  <user42@zip.com.au>
15245         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
15246         (Portable Shell): Cross reference to Systemology.
15248 2002-04-05  Akim Demaille  <akim@epita.fr>
15250         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
15251         directories when descending in a SUBDIRS.
15252         Reported by Ezra Peisach.
15254 2002-04-04  Andreas Schwab  <schwab@suse.de>
15256         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
15257         contains no literal separators.
15259 2002-04-03  Akim Demaille  <akim@epita.fr>
15261         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
15262         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
15263         Use dnl, not the KILL diversion.
15264         Extracted from...
15265         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
15266         (AC_CONFIG_LINKS): here.
15267         Adjust.
15268         Don't use the KILL diversion, as it kills spurious output, which
15269         results in failures being hidden.
15270         Use m4_defn where appropriate.
15271         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
15272         after the second argument.
15273         Use m4_defn.
15274         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
15275         syntax, as it is provided by M4sugar.
15276         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
15278 2002-04-03  Andreas Schwab  <schwab@suse.de>
15280         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
15281         expanded if $# <= 2.
15283         * bin/autoreconf.in (autoreconf): Run automake after rerunning
15284         aclocal.
15286 2002-04-03  Akim Demaille  <akim@epita.fr>
15288         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
15289         (_AC_COMPILER_EXEEXT_REJECT): New.
15290         Also recognize *.bb and *.bbg as compilation byproducts.
15291         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
15292         (_AC_COMPILER_OBJEXT): Use them.
15293         Fixes Debian #138666.
15295 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
15297         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
15299         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
15300         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
15301         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
15302         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
15303         (AC_C_CONST): Same.
15304         (AC_C_INLINE): Same.
15305         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
15306         * doc/autoconf.texi, NEWS: Document.
15307         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
15308         AC_C_CROSS.
15310 2002-04-02  Akim Demaille  <akim@epita.fr>
15312         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
15313         _AS_MKDIR_P_PREPARE.
15315 2002-03-28  Kevin Ryde  <user42@zip.com.au>
15317         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
15318         to avoid versions of HP C which don't allow that.
15320 2002-03-27  Paul Eggert  <eggert@twinsun.com>
15322         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
15323         (AS_SHELL_SANITIZE): Invoke it.
15324         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
15326 2002-03-26  Akim Demaille  <akim@epita.fr>
15328         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
15330 2002-03-26  Akim Demaille  <akim@epita.fr>
15332         * doc/autoconf.texi (Introduction): The GNATS base moved.
15334 2002-03-25  Paul Eggert  <eggert@twinsun.com>
15336         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
15337         as POSIX requires, as it doesn't work with Zsh.
15338         * doc/autoconf.texi (Assignments): Document the problem.
15340 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
15342         * doc/autoconf.texi (Limitations of Make): Mention more issue
15343         about VPATH, overriding of macros in sub-makes, and handling of
15344         SHELL.
15346 2002-03-21  Paul Eggert  <eggert@twinsun.com>
15348         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
15349         problem with here-document buffer boundaries.
15351         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
15352         when reinvoking the shell, to work around problems with installers
15353         who put strange things like "cd" commands in their environments.
15355 2002-03-19  Akim Demaille  <akim@epita.fr>
15357         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
15358         From Aaron Ucko.
15360 2002-03-19  Akim Demaille  <akim@epita.fr>
15362         * bin/autoscan.in (scan_file): Specify the location in `&used'
15363         invocations.
15364         From Nicolas Joly.
15366 2002-03-19  Akim Demaille  <akim@epita.fr>
15368         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
15369         From Nishio Futoshi.
15371 2002-03-19  Akim Demaille  <akim@epita.fr>
15373         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
15375 2002-03-18  Paul Eggert  <eggert@twinsun.com>
15377         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
15378         (Limitations of Usual Tools): Add mkdir section.
15380         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
15381         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
15382         back on AS_DIRNAME to compute prefixes otherwise; this is
15383         roughly what mkinstalldirs does.  That way, we need not have
15384         our own filename disassembler.  The old disassembler did not
15385         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
15387         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
15388         Create at_test_all by a series of assignments,
15389         not by a single assignment of a long string.  The latter causes ksh
15390         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
15391         presumably because of a buffer overrun.
15393 2002-03-14  Paul Eggert  <eggert@twinsun.com>
15395         * lib/autotest/general.m4 (at_times_skip):
15396         Renamed from at_times.  Now a boolean.
15397         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
15398         says 'times: not found'.
15400 2002-03-14  Akim Demaille  <akim@epita.fr>
15402         * bin/autoreconf.in (&study_gettextize): New.
15403         (&autoreconf): Handle newest gettextize.
15404         Rerun aclocal if needed.
15405         Suggested by Andreas Schwab.
15407 2002-03-13  Akim Demaille  <akim@epita.fr>
15409         * doc/autoconf.texi (Special Shell Variables): More about IFS.
15411 2002-03-13  Akim Demaille  <akim@epita.fr>
15413         * doc/autoconf.texi (Header Portability): New.
15414         Add information about stdint.h and inttypes.h from Paul Eggert.
15416 2002-03-13  Akim Demaille  <akim@epita.fr>
15418         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
15419         -p'.
15420         From Bob Proulx.
15422 2002-03-12  Akim Demaille  <akim@epita.fr>
15424         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
15425         m4_require.
15427 2002-03-11  Andreas Schwab  <schwab@suse.de>
15429         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
15430         does not do it if --with-lispdir is given.
15432 2002-03-08  Akim Demaille  <akim@epita.fr>
15434         Version 2.53.
15436 2002-03-08  Akim Demaille  <akim@epita.fr>
15438         * doc/autoconf.texi (Subdirectories): Clarify that the
15439         subdirectory should exist.
15441 2002-03-08  Akim Demaille  <akim@epita.fr>
15443         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
15445 2002-03-08  Akim Demaille  <akim@epita.fr>
15447         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
15448         aliases the actual variables, and modifications of the former
15449         affect the latter.
15451 2002-03-08  Akim Demaille  <akim@epita.fr>
15453         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
15454         because of C-c: have m4 output in tmp files, then mv them.
15456 2002-03-08  Akim Demaille  <akim@epita.fr>
15458         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
15459         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
15460         * bin/ifnames.in: Copyright update.
15462 2002-03-08  Akim Demaille  <akim@epita.fr>
15464         * doc/autoconf.texi (Invoking autom4te): New.
15466 2002-03-05  Akim Demaille  <akim@epita.fr>
15468         * doc/autoconf.texi (Specifying Names): Clarification suggested by
15469         Kevin Ryde.
15471 2002-03-05  Akim Demaille  <akim@epita.fr>
15473         Version 2.52i.
15475 2002-03-04  Akim Demaille  <akim@epita.fr>
15477         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
15478         * lib/autoconf/general.m4 (AC_INIT): More informative error
15479         message for LIBOBJ.
15481 2002-03-04  Akim Demaille  <akim@epita.fr>
15483         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
15484         parallel builds.
15486 2002-03-04  Akim Demaille  <akim@epita.fr>
15488         * doc/autoconf.texi (Transforming Names): Equality between target
15489         and host is irrelevant.
15490         (Specifying Names, Canonicalizing): Remove all references to the
15491         backward compatibility hooks.  Rather, collect them all into...
15492         (Hosts and Cross-Compilation): this new section.
15493         * doc/install.texi (System Type): Ditto.
15494         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
15495         that `--host' implies cross-compilation.
15497 2002-03-04  Akim Demaille  <akim@epita.fr>
15499         * doc/autoconf.texi (Evaluation Macros): New.
15500         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
15501         useless.
15502         (_m4_foreach): Define the variant with immediate evaluation so
15503         that it contains exactly the items, not an expression which
15504         evaluation is the current item.
15505         (m4_re_string, m4_re_word): Don't over quote them.
15507 2002-03-04  Akim Demaille  <akim@epita.fr>
15509         Instead of having stacking `shift's evaluated at the end, let
15510         `foreach' loops immediately evaluate them.
15512         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
15513         $*.  This is the n-th time I change my mind, but hopefully this is
15514         the last...
15515         (m4_lquote): New.
15516         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
15517         efficient.
15518         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
15519         it was only a hack for m4_text_wrap.
15520         (m4_car2): Remove, replaced by...
15521         (m4_cdr): New.
15522         (_m4_foreach): Adjust.
15523         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
15524         m4_bpatsubst for clarification.
15526 2002-03-04  Akim Demaille  <akim@epita.fr>
15528         * doc/autoconf.texi (Changequote is Evil): New.
15530 2002-03-03  Kevin Ryde  <user42@zip.com.au>
15532         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
15533         on old systems like SunOS.
15535 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
15537         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15538         lib/autoconf/functions.m4, lib/autoconf/general.m4,
15539         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
15540         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
15541         of messages.
15543 2002-02-28  Akim Demaille  <akim@epita.fr>
15545         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
15546         message to be sent.
15548 2002-02-28  Kevin Ryde  <user42@zip.com.au>
15550         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
15552 2002-02-25  Akim Demaille  <akim@epita.fr>
15554         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
15555         From Akinori Musha.
15557 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
15559         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
15560         translate \r\n to \n.
15562 2002-02-07  Akim Demaille  <akim@epita.fr>
15564         Version 2.52h.
15566 2002-02-07  Akim Demaille  <akim@epita.fr>
15568         Fix Autoconf PR/209.
15569         Also reported by Frank Denis.
15571         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
15573 2002-02-07  Akim Demaille  <akim@epita.fr>
15575         Fix Autoconf PR/207:
15576         AC_PREFIX_PROGRAM fails with dashed program names
15578         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
15579         variable when looking for the prefix program.
15580         Now it also works for shell variables.
15582 2002-02-07  Akim Demaille  <akim@epita.fr>
15584         * doc/autoconf.texi (Limitations of Builtins): More about
15585         case/esac.
15587 2002-02-06  Akim Demaille  <akim@epita.fr>
15589         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
15590         case/esac, some shells don't support it.
15591         Reported by Zack Weinberg.
15592         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
15594 2002-02-06  Akim Demaille  <akim@epita.fr>
15596         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
15597         sure not to introduce newlines in at_groups.
15598         * lib/autotest/Makefile.am (autotest.m4f): Typo.
15600 2002-02-06  Akim Demaille  <akim@epita.fr>
15602         * tests/torture.at (Configuring subdirectories): Skip if aclocal
15603         is not available.
15605 2002-02-05  Paul Eggert  <eggert@twinsun.com>
15607         * doc/autoconf.texi (Specific Compiler Characteristics):
15608         Describe HP-UX cc bug workaround more accurately.
15609         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
15610         not unsigned long.
15611         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
15612         cross-compilers, too.  This undoes some of the most recent change
15613         to this file.
15615 2002-02-05  Akim Demaille  <akim@epita.fr>
15617         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
15618         to make sure they are up to date when `check' is run.
15620 2002-02-05  Akim Demaille  <akim@epita.fr>
15622         * doc/autoconf.texi (Making testsuite Scripts): Document
15623         package.m4.
15625 2002-02-05  Akim Demaille  <akim@epita.fr>
15627         * lib/freeze.mk: New.
15629 2002-02-05  Akim Demaille  <akim@epita.fr>
15631         Implement `autom4te --freeze'.
15633         * bin/autom4te.in (&freeze): New.
15634         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
15635         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
15637 2002-02-05  Akim Demaille  <akim@epita.fr>
15639         * bin/autom4te.in (&parse_args): Implement `frozen files are
15640         optional are the sum of the previous files on the command line'.
15641         Also, pass `--reload-state=' on them, so...
15642         (handle_m4): don't.
15643         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
15644         (M4sh): Rely on M4sugar.
15645         (Autotest, M4sh, M4sugar): Use frozen files.
15647 2002-01-31  Akim Demaille  <akim@epita.fr>
15649         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
15650         * doc/autoconf.texi (Initializing configure): Adjust.
15652 2002-01-30  Akim Demaille  <akim@epita.fr>
15654         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
15655         alphanumeric to `-' instead of `_'.
15657 2002-01-30  Akim Demaille  <akim@epita.fr>
15659         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
15660         for plain code, the other for cross-compilation code.  The latter
15661         is now run with GCC only.
15662         * doc/autoconf.texi (Compilers and Preprocessors): New.
15664 2002-01-30  Akim Demaille  <akim@epita.fr>
15666         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
15667         values.
15668         * doc/autoconf.texi (Initializing configure): Explain how to
15669         change AC_INIT default values.
15671 2002-01-29  Akim Demaille  <akim@epita.fr>
15673         * tests/torture.at (Configuring subdirectories): Use configure.in,
15674         so that aclocal 1.4 works.
15675         Reported by Alexandre Duret-Lutz and Larry Schmitt.
15677 2002-01-28  Akim Demaille  <akim@epita.fr>
15679         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
15680         needs an argument.
15682 2002-01-28  Akim Demaille  <akim@epita.fr>
15684         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
15685         AUTOTEST_PATH *after* it was set.
15686         Don't put `.' in the PATH: the user should be precise and `./' if
15687         needed.  In addition, given that the test suite does some `cd', if
15688         `.' is in the path, the `tested programs' sections will report
15689         programs found in the test suite's directory, while during the
15690         tests (performed in their own directory), these programs are no
15691         longer visible.  In other words, the results is confusing and
15692         useless.
15693         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
15695 2002-01-24  Akim Demaille  <akim@epita.fr>
15697         Version 2.52g.
15699 2002-01-24  Akim Demaille  <akim@epita.fr>
15701         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
15702         * doc/autoconf.texi: Finally add Akim as an author.
15704 2002-01-24  Akim Demaille  <akim@epita.fr>
15706         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
15707         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
15708         Bourne. Use /bin/sh.
15709         From Andreas Buening.
15711 2002-01-24  Akim Demaille  <akim@epita.fr>
15713         * config/config.guess, config/config.sub, config/texinfo.tex:
15714         Update from masters.
15716 2002-01-24  Akim Demaille  <akim@epita.fr>
15718         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
15719         * config/auxdir.m4, config/cond.m4, config/depend.m4,
15720         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
15721         * config/missing.m4, config/sanity.m4, config/select.m4,
15722         * config/strip.m4: Remove, to ease sync'ing with any version of
15723         Automake.
15725 2002-01-24  Akim Demaille  <akim@epita.fr>
15727         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
15728         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
15729         Reported by Geir Ove Myhr.
15731 2002-01-21  Akim Demaille  <akim@epita.fr>
15733         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
15735 2002-01-21  Akim Demaille  <akim@epita.fr>
15737         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
15738         message on invalid options.
15739         * bin/autom4te.in (parse_args): Don't use
15740         Autoconf::General::getopt with non valid options.
15742 2002-01-17  Jim Meyering  <meyering@lucent.com>
15744         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
15745         $ac_cv_exeext so we don't use an old, invalid, cached value.
15747 2002-01-11  Akim Demaille  <akim@epita.fr>
15749         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
15750         Meyering.
15751         * doc/autoconf.texi (Function Portability): Document the strnlen
15752         limitation.
15753         (Particular Functions): Document AC_FUNC_STRNLEN.
15754         * lib/autoscan/functions: Adjust.
15756 2002-01-06  Akim Demaille  <akim@epita.fr>
15758         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
15759         package.m4, since is really depends upon configure.ac, not
15760         configure.
15761         * doc/autoconf.texi (testsuite Scripts): Adjust.
15762         * tests/Makefile.am (package.m4): New.
15763         EXTRA_DIST it since its a source.
15765 2002-01-06  Akim Demaille  <akim@epita.fr>
15767         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
15768         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
15769         and PACKAGE_BUGREPORT from here...
15770         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
15771         arguments.
15772         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
15773         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
15774         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
15775         * tests/tools.at (autoheader): Adjust.
15776         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
15778 2002-01-06  Akim Demaille  <akim@epita.fr>
15780         * bin/autoscan.in (scan_file): Use `&used'.
15782 2002-01-03  Akim Demaille  <akim@epita.fr>
15784         * doc/autoconf.texi (Output): Improved wording regarding use of
15785         AC_OUTPUT.
15786         From Olly Betts.
15788 2001-12-18  Kevin Ryde  <user42@zip.com.au>
15790         * doc/autoconf.texi (Function Portability): Add notes on sscanf
15791         sometimes needing writable input.
15793 2001-12-17  Jim Meyering  <meyering@lucent.com>
15795         * doc/autoconf.texi (New Macros): Tweak wording.
15797 2001-12-14  Akim Demaille  <akim@epita.fr>
15799         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
15800         trailing files, don't apply `-rf' to files which might not be
15801         created by configure (core, core.*, and *.core), but just `rm -f'.
15802         Suggested by Jonathan Kamens.
15804 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
15806         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
15808 2001-12-14  Akim Demaille  <akim@epita.fr>
15810         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
15812 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
15814         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
15815         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
15816         abs_srcdir, top_srcpath to abs_top_srcdir.
15817         (_AC_OUTPUT_FILES): Adjust.
15818         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
15819         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
15820         * tests/wrappl.in, tests/wrapsh.in: Adjust.
15822 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
15824         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
15825         C/Fortran linking on HP/UX, by extracting the Fortran library
15826         search path from the LPATH line in the $F77 -v output.
15828 2001-12-12  Kevin Ryde  <user42@zip.com.au>
15830         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
15831         forbidden file descriptors table.
15833 2001-11-26  Akim Demaille  <akim@epita.fr>
15835         * bin/autoscan.in (%c_keywords): Build it at top level.
15836         Map to 1 in order to simplify its uses.
15838 2001-11-26  Akim Demaille  <akim@epita.fr>
15840         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
15841         Remove $filepath, useless.
15842         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
15843         variables, they are really part of the tokens.
15844         Split the input line on spaces and then look for tokens.
15845         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
15846         because of `lex$U.$(OBJEXT)'.
15847         (&scan_files): Use "@list" instead of join.
15848         * doc/Makefile.am (CLEANFILES): Add *.fns.
15850 2001-11-26  Akim Demaille  <akim@epita.fr>
15852         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
15853         Remove, replaced by...
15854         * tests/wrappl.in: Be common for all the Perl executables.
15855         In particular autoscan and autoheader want -I.
15856         * configure.ac: Adjust.
15857         * lib/autoscan/headers: errno.h is portable.
15859 2001-11-26  Akim Demaille  <akim@epita.fr>
15861         * bin/autoscan.in (used): New.
15862         Use it.
15864 2001-11-26  Akim Demaille  <akim@epita.fr>
15866         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
15867         directives.
15868         (&scan_sh_file): Remove a duplicate pattern.
15869         (&check_configure_ac): Use long options.
15870         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
15872 2001-11-26  Akim Demaille  <akim@epita.fr>
15874         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
15875         Before, having a line containing the opening of a multi line
15876         comment made the whole line be ignored.
15878 2001-11-26  Akim Demaille  <akim@epita.fr>
15880         * doc/autoconf.texi (Using an Autotest Test Suite): New.
15881         (testsuite Scripts): Be one of its subsection.
15882         (Autotest Logs): New.
15884 2001-11-26  Akim Demaille  <akim@epita.fr>
15886         Test groups are now run two directories deeper.
15888         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
15889         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
15890         at_top_builddir.
15891         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
15892         top_srcdir, builddir and top_builddir.
15893         Use `at_*dir' relatively to the directory containing the
15894         suite, use `*dir' when relatively to the current group dir.
15896 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
15898         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
15899         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
15900         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
15901         spelling errors.
15903 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
15905         * doc/autoconf.texi (Using System Type): Add an example of `case
15906         $host' usage so people quit using `case $target' everywhere.
15908 2001-11-22  Akim Demaille  <akim@epita.fr>
15910         * doc/autoconf.texi (Installation Directory Variables): Englishoes
15911         spotted by Jim Meyering.
15913 2001-11-16  Paul Eggert  <eggert@twinsun.com>
15915         This patch implements a `long double' suggestion by Oliver Kiddle.
15917         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
15918         static, to catch errors if the value isn't known at compile-time
15919         and the compiler supports dynamic arrays.  Change its name from
15920         `_array_' to `test_array' to avoid potential name clashes.
15921         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
15922         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
15923         better than double.  Catch a bug in GCC 2.95.2 x86.
15924         * doc/autoconf.texi (C Compiler): Document the above.
15925         * NEWS: Likewise.
15927 2001-11-13  Akim Demaille  <akim@epita.fr>
15929         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
15930         hand.
15931         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
15933 2001-11-13  Akim Demaille  <akim@epita.fr>
15935         * lib/autotest/general.m4 (AT_INIT): After having run the test
15936         group, go back to the initial directory, not to at_suite_dir.
15938 2001-11-13  Akim Demaille  <akim@epita.fr>
15940         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
15941         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
15942         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
15943         option.
15944         (AT_CHECK_CONFIGURE): Use absolute paths.
15945         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
15946         The problem is still the old one: there is no means in M4 (that I
15947         know about) to create a defining macro, because there is no means
15948         to create `$1' etc., therefore, the defining macro ``swallows''
15949         all the arguments meant to the defined macro.
15951 2001-11-13  Akim Demaille  <akim@epita.fr>
15953         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
15954         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
15955         configure.ac.
15956         * tests/aclocal.m4: Remove, as it is no longer used.
15958 2001-11-13  Akim Demaille  <akim@epita.fr>
15960         * lib/autotest/general.m4: Change `tests?' into `groups?' in
15961         variable names when referring to a single test group, or to
15962         `suite' when referring to the whole test suite.
15963         `at_last_test' is removed: m4 compute at_format itself.
15964         (at_stdout, at_stder1, at_stderr): New variables.
15965         (AT_CHECK): Use them.
15967 2001-11-13  Akim Demaille  <akim@epita.fr>
15969         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
15970         in PATH.
15971         Create `testsuite.dir/003/run' instead of `testsuite.003'.
15972         Do it as soon as a test fails, don't wait till the end of the test
15973         suite.
15974         Don't remove $as_me.[0-9]*, since these files no longer exist.
15976 2001-11-13  Akim Demaille  <akim@epita.fr>
15978         * tests/tools.at: Use absolute paths, since we are no longer run
15979         in place.
15981 2001-11-13  Akim Demaille  <akim@epita.fr>
15983         Now that tests are running in their own private dir, there is no
15984         need to list the files to remove at the end of tests groups.
15986         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
15987         (AT_data_files, at_data_files): Remove.
15988         (AT_CLEANUP, AT_DATA): Simplify.
15989         (AT_INIT): Adjust.
15990         Remove the group dir if !debug && !failed.
15991         * tests/atspecific.m4: Adjust.
15993 2001-11-13  Akim Demaille  <akim@epita.fr>
15995         Start a new layout for Autotest: `testsuite' creates
15996         `testsuite.dir' in which the at-check-line etc. files are to be
15997         found, and `testsuite.dir/003' where the test group 3 is run.
15999         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
16000         at_check_line_file, at_format, at_test_normalized, at_group_dir
16001         are new variables.
16002         Create the directories.
16003         Use absolute paths for at- files.
16004         (AT_CHECK): Adjust.
16006 2001-11-11  Michael Matz  <matz@kde.org>
16008         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
16009         (m4_car2): New.
16010         (m4_car): Properly quote arguments.
16012 2001-11-13  Akim Demaille  <akim@epita.fr>
16014         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
16015         with stricter rules on LIBOBJS.
16017 2001-11-12  Paul Eggert  <eggert@twinsun.com>
16019         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
16020         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
16021         __PROTOTYPES too.
16023 2001-11-12  Akim Demaille  <akim@epita.fr>
16025         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
16027 2001-11-12  Akim Demaille  <akim@epita.fr>
16029         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16030         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
16031         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
16032         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
16033         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
16034         specify to what the macro should be defined (typically to 1).
16036 2001-11-12  Akim Demaille  <akim@epita.fr>
16038         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
16039         From Jim Meyering.
16041 2001-11-12  Akim Demaille  <akim@epita.fr>
16043         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
16044         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
16045         definition used by Automake where LEX is +/- "${missing} lex" and
16046         `missing' itself contains variables.
16048 2001-11-12  Akim Demaille  <akim@epita.fr>
16050         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
16051         Now that M4sh pushes BODY, the comments were output at the end of
16052         the test suites.
16054 2001-11-08  Akim Demaille  <akim@epita.fr>
16056         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
16057         that we can trace macros from aclocal.m4.
16058         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
16059         obsoleted, and redirect to the former anyway.
16060         Reported by Ralf Corsepius.
16062 2001-11-08  Akim Demaille  <akim@epita.fr>
16064         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
16065         processed only if present.
16066         * tests/torture.at (Configuring subdirectories): Use autoreconf
16067         instead of successive calls to autoconf.
16068         Add a nonexistent subdirectory to exercise the patch above.
16069         Reported by Ralf Corsepius.
16071 2001-11-08  Kevin Ryde  <user42@zip.com.au>
16073         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
16074         doesn't accept .S files.
16076 2001-11-07  Akim Demaille  <akim@epita.fr>
16078         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
16079         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
16080         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
16081         * bin/autom4te.in (warn_forbidden): New.
16082         (handle_output): Use it.
16083         Read m4_pattern_forbid with messages.
16085 2001-11-05  Akim Demaille  <akim@epita.fr>
16087         * bin/autom4te.in (--normalize): Remove.
16088         * lib/autom4te.in: Adjust.
16090 2001-11-05  Akim Demaille  <akim@epita.fr>
16092         * tests/Makefile.am (testsuite): Rename this target as...
16093         ($(TESTSUITE)): this.
16094         From Nicolas Joly.
16096 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
16098         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
16099         the --prefix option, also remove it's argument.
16101 2001-11-05  Akim Demaille  <akim@epita.fr>
16103         * doc/autoconf.texi (testsuite Invocation): Update.
16104         (Writing testsuite.at): Update.
16106 2001-11-03  Akim Demaille  <akim@epita.fr>
16108         * doc/autoconf.texi: s/@code/@command/ where appropriate.
16110 2001-11-03  Akim Demaille  <akim@epita.fr>
16112         * lib/Autom4te/General.pm: (&catfile, &canonfile)
16113         (&file_name_is_absolute): New, wrappers around routines from
16114         File::Spec.
16115         Use and export them.
16116         (&find_configure_ac): Optionally take a directory where to look at.
16117         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
16118         the arguments.
16119         Default @ARGV to `.', not find_configure_ac.
16120         (&autoreconf): Argument is a directory.
16121         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
16122         * doc/autoconf.texi (autoreconf Invocation): Update.
16124 2001-11-03  Akim Demaille  <akim@epita.fr>
16126         * lib/Autom4te/General.pm (@export_vars, @export_subs)
16127         (@export_forward_subs): New.
16128         Add basename, dirname, and fileparse.
16129         (@EXPORT): Adjust.
16130         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
16131         Don't look for aclocal flags if we already know aclocal is not
16132         used.
16133         Move aclocal.m4t only if it exists.
16134         Reported by Ezra Peisach.
16136 2001-11-03  Akim Demaille  <akim@epita.fr>
16138         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
16139         passed on command line, defaulting to ./configure.ac if present.
16140         (&maybe_autoreconf, File::Find): Remove, unused.
16141         (&autoreconf): If autoconf is not used, don't try to trace.
16143 2001-11-02  Akim Demaille  <akim@epita.fr>
16145         * configure.ac: Bump to 2.52g.
16147 2001-11-02  Akim Demaille  <akim@epita.fr>
16149         Version 2.52f.
16151 2001-11-02  Akim Demaille  <akim@epita.fr>
16153         * config/config.guess, config/config.sub, doc/standards.texi:
16154         * config/lispdir.m4: Update from masters.
16155         * configure.ac: Bump to 2.52f.
16157 2001-11-02  Akim Demaille  <akim@epita.fr>
16159         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
16160         Don't run aclocal when aclocal.m4 is not from aclocal.
16161         From Ezra Peisach.
16162         Don't run libtoolize and gettextize if --install is not given.
16164 2001-11-01  Paul Eggert  <eggert@twinsun.com>
16166         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
16167         be invoked before _AS_LINENO_PREPARE.
16168         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
16169         than character ranges.
16171         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
16172         invoking AS_BASENAME.  Set the locale variables to 'C' if
16173         possible, as POSIX requires this to get the traditional
16174         behavior.
16175         * doc/autoconf.texi (Special Shell Variables): Describe the above.
16177 2001-10-31  Paul Eggert  <eggert@twinsun.com>
16179         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
16180         with {}, as that triggers a bug in Bash 2.05.
16182         (_AS_LINENO_PREPARE): Use Sed rather than
16183         Awk.  Fix the sed prepass to work even if there are multiple
16184         instances of $LINENO on the same line.  Do not substitute for
16185         other variables like $LINENOT.  Do not check file dates; such a
16186         check is unreliable on sufficiently fast machines, and removing
16187         the check makes the code simpler and more reliable.  Check for
16188         output and chmod failures.
16190         * doc/autoconf.texi (Special Shell Variables): Document
16191         the above.
16193 2001-10-31  Akim Demaille  <akim@epita.fr>
16195         * tests/Makefile.am (atconfig): Remove this target, Automake
16196         handles it now.
16198 2001-10-31  Akim Demaille  <akim@epita.fr>
16200         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
16201         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
16202         provided, while it is optional.
16203         * configure.ac: Adjust.
16205 2001-10-26  Paul Eggert  <eggert@twinsun.com>
16207         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
16208           lib/Autom4te/Struct.pm:
16209         Require Perl 5.005_03 instead of just 5.005, as some tests fail
16210         with 5.005_02.
16212         * doc/autoconf.texi (Special Shell Variables): Document some
16213         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
16215         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
16216         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
16217         eval $LINENO is not portable in practice.
16219 2001-10-24  Akim Demaille  <akim@epita.fr>
16221         * lib/Autom4te/General.pm (backname): New.
16223 2001-10-24  Akim Demaille  <akim@epita.fr>
16225         * m4/: Remove, merged into...
16226         * config/: here.
16228 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
16230         * doc/autoconf.texi (Shellology): Mention the problems with bash
16231         2.05's use of ANSI quoting in its `set' builtin.
16233 2001-10-22  Paul Eggert  <eggert@twinsun.com>
16235         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
16236         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
16237         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
16238         POSIX decided to standardize on the int flavor of strerror_r.
16239         Always do char* test, as there's no reason not to.
16240         Assign to a char* var, to catch strerror_r that returns int*.
16242         * doc/autoconf.texi (Particular Functions):
16243         Document the above changes.  Also, document the fact that
16244         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
16246         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
16248 2001-10-20  Akim Demaille  <akim@epita.fr>
16250         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
16251         the executable was missing from the log.
16253 2001-10-20  Akim Demaille  <akim@epita.fr>
16255         * lib/Autom4te/General.pm (&update_file): If destination is
16256         unchanged, remove the source.
16257         (&up_to_date_p): Don't be verbose, be debug.
16258         * bin/autoreconf.in: No longer support --m4dir.
16259         (&autoreconf): Display the full path of the configure.ac we are
16260         studying.
16261         Trace it only once.
16262         Be sure to honor --force with gettextize.
16263         Always run aclocal.
16264         * doc/autoconf.texi: Adjust.
16266 2001-10-20  Akim Demaille  <akim@epita.fr>
16268         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
16269         Remove, dead.
16270         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
16271         `intl' is already present, as it refuses unless --force.
16272         (&parse_args): Use -I, --include instead of the old Autoconf
16273         options.
16274         ($localdir, $autoconf_dir): Remove.
16275         (@include): New.
16276         (&maybe_autoreconf): New, to preserve $_ for File::Find.
16278 2001-10-19  Jens Petersen  <petersen@redhat.com>
16280         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
16281         * doc/autoconf.texi (Particular Programs): Likewise.
16283 2001-10-19  Akim Demaille  <akim@epita.fr>
16285         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
16286         file in @configure_input@.
16287         Don't mention `automatically' in addition to `generated'.
16288         * tests/torture.at (#define header templates): Adjust.
16290 2001-10-19  Akim Demaille  <akim@epita.fr>
16292         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
16293         comment, explain how to install automatic mode selection.
16294         From Russ Allbery.
16296 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
16298         * bin/autoreconf.in (autoreconf): Display the path to the
16299         configure.ac being studied.
16301 2001-10-18  Paul Eggert  <eggert@twinsun.com>
16303         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
16304         long, to work around a bug in the HP C compiler version HP92453-01
16305         B.11.11.23709.GP.
16307         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
16308         (AS_BASENAME_EXPR): New macro.
16309         (AS_BASENAME_SED): Do not assume GNU sed semantics.
16310         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
16311         and fall back on 'sed' only if the other two fail.  This makes
16312         AS_BASENAME act more like AS_DIRNAME.
16313         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
16314         contains white space.
16315         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
16316         Use AS_DIRNAME, since I think it's now DOS-friendly.
16317         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
16318         Allow "dirname //FOO" to return either / or //, as POSIX allows
16319         either behavior.
16321 2001-10-10  Akim Demaille  <akim@epita.fr>
16323         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
16324         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
16325         From Eric Sharkey.
16327 2001-10-10  Akim Demaille  <akim@epita.fr>
16329         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
16330         m4_define, since...
16331         (_AS_ECHO_N): AS_REQUIREs it.
16333 2001-10-10  Akim Demaille  <akim@epita.fr>
16335         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
16336         (AC_INCLUDES_DEFAULT): Move to...
16337         * lib/autoconf/headers.m4: here.
16338         * lib/autoconf/types.m4: Comment changes.
16339         * doc/autoconf.texi: Specify where the default includes are used
16340         in the macro prototypes.
16342 2001-10-09  Akim Demaille  <akim@epita.fr>
16344         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
16345         transition code.
16347 2001-10-08  Akim Demaille  <akim@epita.fr>
16349         * bin/autoreconf.in (&autoreconf): Remove debugging code.
16350         (&parse_args): Pass verbosity/debugging options to subtools when
16351         --debug, not when --verbose.
16352         * lib/autom4te.in (Autoreconf-preselections): New.
16353         (Autoconf): Use it.
16355 2001-10-08  Akim Demaille  <akim@epita.fr>
16357         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
16359 2001-10-08  Akim Demaille  <akim@epita.fr>
16361         * doc/autoconf.texi (autoreconf Invocation): Adjust.
16362         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
16364 2001-10-08  Akim Demaille  <akim@epita.fr>
16366         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
16367         (Syntax of the shell scripts): Don't.
16368         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
16369         bother with $force since...
16370         * lib/Autom4te/General.pm: does.
16372 2001-10-08  Akim Demaille  <akim@epita.fr>
16374         * bin/autoreconf.in: Rewrite in Perl.
16375         * configure.ac: Adjust.
16376         * lib/Autom4te/General.pm (&up_to_date_p): New.
16377         * bin/autom4te.in (&up_to_date_p): Use it.
16378         Rename as...
16379         (&up_to_date): this.
16381 2001-10-08  Akim Demaille  <akim@epita.fr>
16383         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
16384         (m4_list_cmp): Use $0 to reinvoke yourself.
16385         (m4_patsubsts): New.
16386         (m4_strip, m4_version_unletter): Use it.
16387         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
16389 2001-10-08  Akim Demaille  <akim@epita.fr>
16391         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
16392         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
16393         * lib/autoconf/types.m4, lib/autotest/general.m4,
16394         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
16395         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
16396         m4_bregexp, m4_bpatsubst, and m4_bmatch.
16397         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
16399 2001-10-08  Akim Demaille  <akim@epita.fr>
16401         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
16403 2001-10-08  Akim Demaille  <akim@epita.fr>
16405         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
16406         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
16407         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
16408         * tests/tools.at, tests/m4sh.at: Use it.
16409         * tests/m4sh.at: Don't rely on Autoconf macros.
16410         (DIRNAME_TEST): Also exercise the expr variant.
16411         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
16412         preferred M4sugar extension is now `.4s'.
16413         * tests/README: Remove.
16415 2001-10-08  Akim Demaille  <akim@epita.fr>
16417         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
16418         (m4_provide_if): this.
16419         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
16420         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
16421         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
16422         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
16424 2001-10-08  Akim Demaille  <akim@epita.fr>
16426         Use `add-log-current-defun-function' for ChangeLog creation.
16427         Suggested by Tom Tromey.
16429         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
16430         (autotest-mode): Adjust.
16431         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
16432         'comment-region onto `C-c ;'.
16433         Comments are `#', not `dnl'.
16434         (autoconf-current-defun): New.
16435         (autoconf-font-lock-keywords): Recognize `m4_defun'.
16437 2001-10-08  Akim Demaille  <akim@epita.fr>
16439         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
16440         * lib/m4sugar/m4sh.m4: here.
16441         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
16442         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
16443         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
16444         include handle the m4_pattern_*, no longer push the
16445         BODY diversion nor set the /bin/sh line, AS_INIT does it.
16446         * lib/autotest/general.m4 (AT_INIT): Likewise.
16447         * tests/base.at: Adjust the tests to use AS_INIT.
16448         * tests/tools.at (AT_DATA_FORBIDDEN): New.
16449         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
16450         Autoconf.
16452 2001-10-07  Paul Eggert  <eggert@twinsun.com>
16454         * doc/autoconf.texi (config.status Invocation):
16455         CONFIG_SHELL defaults to a shell that supports LINENO if available.
16457         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
16458         shell does not support LINENO, and if CONFIG_SHELL is unset or
16459         empty, and if we can find a shell that does support LINENO,
16460         then set CONFIG_SHELL to that shell and then re-execute
16461         ourselves with CONFIG_SHELL.
16463 2001-10-05  Paul Eggert  <eggert@twinsun.com>
16465         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
16466         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
16467         build of $(TESTSUITE).
16469 2001-10-05  Akim Demaille  <akim@epita.fr>
16471         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
16472         iff we are a bareword.
16473         Reported by Raja R Harinath.
16475 2001-10-05  Akim Demaille  <akim@epita.fr>
16477         * tests/m4sh.at (LINENO): New.
16478         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
16479         PATH_SEPARATOR before using it.
16480         Fix the absolute path case/esac pattern.
16481         Provide $0 as fallback for as_myself.
16482         Reported by Raja R Harinath.
16484 2001-10-05  Akim Demaille  <akim@epita.fr>
16486         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
16487         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
16489 2001-10-05  Akim Demaille  <akim@epita.fr>
16491         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
16492         (AS_SHELL_SANITIZE): here.  Use it.
16493         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
16494         From Paul Eggert.
16496 2001-10-04  Akim Demaille  <akim@epita.fr>
16498         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
16499         combination of Awk and sed to replace $LINENO.
16501 2001-10-02  Paul Eggert  <eggert@twinsun.com>
16503         * doc/autoconf.texi (Limitations of Builtins): You can't use
16504         "source"; it's not portable.  Remove confusing and
16505         somewhat-incorrect example involving "." and "/".
16507         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
16508         compatibility with POSIX shells.
16510 2001-10-02  Akim Demaille  <akim@epita.fr>
16512         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
16513         instead of exec'ing to preserve $0 and $@.
16515 2001-10-01  Akim Demaille  <akim@epita.fr>
16517         * tests/testsuite (AT_INIT) <at_pass_list>: New.
16518         Don't run twice the same test.
16520 2001-10-01  Akim Demaille  <akim@epita.fr>
16522         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
16523         No longer output the list of tests.
16524         <--list>: New option.
16525         <--full-help>: Remove.
16526         Complete the short/long options duality.
16527         Various small adjustments.
16529 2001-10-01  Akim Demaille  <akim@epita.fr>
16531         * doc/autoconf.texi: Use @kbd for user input.
16532         Always use `$' as shell prompt.
16534 2001-09-30  Paul Eggert  <eggert@twinsun.com>
16536         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
16537         Don't use nested parenthesization.  This patch was originally
16538         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
16539         but somehow it didn't get incorporated then.
16540         * doc/autoconf.texi (Limitations of Usual Tools):
16541         Clarify remark about sed and nested parenthesization.
16543         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
16544         Report an error if the size cannot be determined even though
16545         the type exists.
16546         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
16547         Check for `expr' arithmetic overflow, and for compilation failure,
16548         and invoke a new argument $4 if either is discovered.
16549         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
16550         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
16552 2001-09-28  Akim Demaille  <akim@epita.fr>
16554         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
16555         * m4/lispdir.m4: New.
16556         * aclocal.m4, configure.ac: Adjust.
16558 2001-09-28  Akim Demaille  <akim@epita.fr>
16560         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
16561         (AT_TESTED): this.
16562         (AT_INIT): More the wrapped section to where it will be expanded.
16563         Output `AT_tested' only when existing.
16564         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
16566 2001-09-27  Akim Demaille  <akim@epita.fr>
16568         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
16569         generates too many bug reports.
16571         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
16572         status when executing the ACTION-IF-FALSE.
16573         * tests/base.at (AC_TRY_*): Rename as...
16574         (AC_TRY_COMMAND): this.
16575         (AC_RUN_IFELSE): New.
16576         * tests/compile.at (Extensions, C keywords)
16577         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
16578         (Broken/missing compilers, AC_PROG_CPP with warnings)
16579         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
16580         * tests/c.at (Extensions, C keywords)
16581         (Broken/missing compilers, AC_PROG_CPP with warnings)
16582         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
16583         (AC_PROG_CPP requires AC_PROG_CC): here and...
16584         * tests/fortran.at (GNU Fortran 77): there.
16585         * doc/autoconf.texi (autoconf Invocation): Fix the example:
16586         AC_TRY_RUN is about compilation, not shell commands.
16587         (Test Programs): AC_TRY_RUN works as used to be advertised.
16589 2001-09-27  Akim Demaille  <akim@epita.fr>
16591         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
16592         Raja R Harinath:
16593         Be sure to detect when $LINENO always returns the same value.
16594         Look for the original script, basename($0) is certainly not
16595         enough.
16596         Pass the CLI arguments to `$as_me.lineno'.
16598 2001-09-25  Akim Demaille  <akim@epita.fr>
16600         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
16601         Be sure the close and reopen the LOG fd before and after using tee
16602         to extend the log.
16603         <at_tests_pattern>: Adjust to the new format of at_help_all.
16605 2001-09-23  Akim Demaille  <akim@epita.fr>
16607         * bin/autom4te.in (parse_args): There can be several invocations
16608         of --language now.
16610 2001-09-23  Akim Demaille  <akim@epita.fr>
16612         * doc/autoconf.texi (Top): Wrap in @ifnottex.
16614 2001-09-23  Akim Demaille  <akim@epita.fr>
16616         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
16617         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
16618         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
16619         builddir, buildpath, top_builddir, and top_buildpath.
16620         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
16621         the current directory.
16622         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
16623         variables *before* changing the current directory.
16624         Skip nonexistent dirs.
16625         * doc/autoconf.texi (Preset Output Variables): Document these
16626         variables.
16628         * lib/autotest/general.m4: Do not reset AT_victims.
16629         Don't compute at_srcdir nor at_top_srcdir.
16631         * tests/tools.at: Hence use top_srcdir.
16633         * tests/Makefile.am, tests/autoconf, tests/autoheader,
16634         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
16635         Remove.
16636         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
16637         * tests/wrapsh.in, tests/autoupdate.in: New.
16638         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
16639         * configure.ac: Build the position independent wrappers.
16641         * man/Makefile.am: Now that test wrappers are position
16642         independent, use them and drop dark envvar magic.
16644 2001-09-23  Akim Demaille  <akim@epita.fr>
16646         * doc/autoconf.texi (Common Shell Constructs): Rename as...
16647         (Programming in M4sh): this.
16648         Promote to @section.
16650 2001-09-23  Akim Demaille  <akim@epita.fr>
16652         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
16653         Pass $at_debug_args to the rerun test suite.
16654         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
16655         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
16656         From Paul Eggert.
16658 2001-09-23  Akim Demaille  <akim@epita.fr>
16660         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
16662 2001-09-23  Akim Demaille  <akim@epita.fr>
16664         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
16665         over-escaping.
16667 2001-09-23  Akim Demaille  <akim@epita.fr>
16669         * lib/Autom4te/General.pm (&debug): New.
16670         * bin/autom4te.in ($language): Move to...
16671         (parse_args): here.
16672         Handle --language in languages.
16673         * lib/autom4te.in (Automake-selections, Autoheader-selections)
16674         (Autoscan-selections): New.
16675         (Autoconf): Adjust.
16677 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
16679         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
16680         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
16681         to match current versions from CVS Automake.
16683 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
16685         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
16686         for $LINENO.
16688 2001-09-22  Akim Demaille  <akim@epita.fr>
16690         * lib/autoconf/autotest.m4: Create `package.m4'.
16691         * tests/Makefile.am (package.m4): Remove.
16693 2001-09-22  Akim Demaille  <akim@epita.fr>
16695         Rely on `$LINENO' when possible instead of `__oline__'.
16697         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
16698         `$LINENO' support replacement when not supported.
16699         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
16700         them explicitly to be sure they are not output before this section
16701         (via m4_require).  Cosmetic only.
16702         * lib/autoconf/c.m4, lib/autoconf/general.m4,
16703         * lib/autoconf/programs.m4: Replace all the occurrences of
16704         `__oline__' with `$LINENO'.
16705         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
16707 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
16709         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
16710         character (u: -> ue) in a code comment.
16711         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
16712         it works.
16714 2001-09-21  Akim Demaille  <akim@epita.fr>
16716         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
16717         Suggested by Jim Meyering.
16719 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16721         * lib/autoconf/programs.m4: Use extensions listed in
16722         $ac_executable_extensions when looking for programs.
16724 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16726         * lib/autoconf/general.m4: Fix a small Englisho.
16727         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
16728         setting up ac_dir_suffix and ac_top_builddir.
16729         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
16731 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16733         * doc/autoconf.texi (File System Conventions): Clarify the use of
16734         PATH_SEPARATOR.
16735         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
16736         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
16737         be used instead of ':'.
16738         * lib/autotest/general.m4: Replace occurrences of ':' in
16739         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
16741 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16743         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
16744         arguments.  Fixed a typo.
16746 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16748         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
16749         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
16751 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16753         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
16754         * bin/autoupdate.in: Ditto.
16755         * bin/autoheader.in: Reworded a few comments.
16756         * bin/autoconf.in: Reworded help text for a few options.
16757         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
16758         * bin/autoscan.in, bin/autoupdate.in: Ditto.
16760 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
16762         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
16763         already have $file).  Set output files to binary mode (helps avoid
16764         CR issues on DOSish systems).
16766 2001-09-19  Akim Demaille  <akim@epita.fr>
16768         * lib/autotest/general.m4: Englishoes.
16769         From Tim Van Holder and Alexey Mahotkin.
16771 2001-09-18  Paul Eggert  <eggert@twinsun.com>
16773         * doc/autoconf.texi (Common Shell Constructs): New node,
16774         documenting AS_DIRNAME.
16775         (Limitations of Usual Tools): Refer to it when discussing dirname.
16776         Also, update discussion of POSIX standard to reflect latest draft.
16778         * lib/autoconf/c.m4:
16779         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
16781         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
16782         Do not pass a first argument with leading '-'
16783         to expr, by parenthesizing initial integers that might be negative.
16785         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
16786         now merely checks whether it is an error to pass an argument
16787         to getpgrp.
16789         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
16790         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
16791         whether it is a (compile-time) error to pass an argument to
16792         getpgrp.  This simpler test supports the revised documentation,
16793         and is all that AC_FUNC_GETPGRP's users really need.
16795 2001-09-18  Akim Demaille  <akim@epita.fr>
16797         * doc/autoconf.texi (Limitations of Make) <$<>: New.
16799 2001-09-18  Akim Demaille  <akim@epita.fr>
16801         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
16802         `{}'.
16803         * lib/autotest/general.m4 (AT_INIT): Adjust.
16805 2001-09-18  Paul Wagland  <paul@wagland.net>
16807         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
16808         correctly.
16809         Add test for AS_BASENAME.
16810         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
16811         added test. It now correctly handles /1/2/3/, returning '3' not ''.
16812         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
16813         * tests/base.at: Fixed the expected responses. The old ones were
16814         one line out...
16815         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
16816         the documentation claims it should (and how it behaved in 2.13).
16818 2001-09-18  Akim Demaille  <akim@epita.fr>
16820         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
16821         the AC_CONFIG_COMMANDS invocation.
16822         This also solves the name clash problems.
16823         Don't set the package's ID.
16824         * lib/m4sugar/Makefile.am (version.m4): Revamp.
16825         No longer to be shipped.
16826         (version.in): Remove.
16827         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
16828         * lib/autoconf/status.m4: Adjust.
16829         Use `m4_PACKAGE_STRING'.
16830         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
16831         the only optional argument is the name of the test suite.
16832         Expect `package.m4' to define the package signature.
16833         * lib/autom4te.in (Autotest): Add `package.m4?'.
16834         * tests/Makefile.am (package.m4): New.
16835         * tests/suite.at: ifnames is a victim.
16837 2001-09-18  Akim Demaille  <akim@epita.fr>
16839         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
16840         AC_LIBSOURCE, AC_CONFIG_FILES.
16841         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
16842         program version string doesn't match the package's.
16843         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
16844         after `(cached)'.
16846 2001-09-17  Paul Eggert  <eggert@twinsun.com>
16848         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
16849         Allow expression to return any value that can fit into unsigned long
16850         (not int, as before).  Check for output errors.
16852 2001-09-17  Bruno Haible  <haible@ilog.fr>
16854         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
16855         Always include <stdio.h> and <stdlib.h>. Evaluate
16856         the expression in an extra function before these includes. Call
16857         fprintf "%d" only after ensuring the argument is of type 'int'.
16858         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
16860 2001-09-17  Paul Eggert  <eggert@twinsun.com>
16862         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
16863         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
16864         fatal errors, and AC_CHECK_LIB causes it to include libraries even
16865         when they don't exist.
16867         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
16868         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
16869         need it.
16871         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
16872         version with the version used by fileutils 4.1, except use
16873         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
16874         we don't need it.
16876         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
16878 2001-09-13  Akim Demaille  <akim@epita.fr>
16880         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
16881         _first_.
16882         Reported by Gerrit P. Haase.
16884 2001-09-13  Akim Demaille  <akim@epita.fr>
16886         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
16887         m4_defn'ing is valid.
16889 2001-09-13  Akim Demaille  <akim@epita.fr>
16891         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
16892         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
16893         Use it.
16895 2001-09-13  Akim Demaille  <akim@epita.fr>
16897         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
16898         m4_match.
16899         (m4_re_escape): New.
16900         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
16901         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
16902         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
16903         Likewise.
16904         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
16905         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
16906         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
16907         AT_tests_all for consistency.
16908         Set at_victims.
16909         (AT_VICTIMS): Similar to AT_KEYWORDS.
16910         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
16912 2001-09-13  Akim Demaille  <akim@epita.fr>
16914         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
16916 2001-09-13  Akim Demaille  <akim@epita.fr>
16918         * lib/autotest/general.m4 (AT_INIT): Create and remove
16919         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
16920         test suites can cohabit.
16922 2001-09-13  Akim Demaille  <akim@epita.fr>
16924         * tests/mktests.sh: Don't output banners for empty test files.
16926 2001-09-13  Akim Demaille  <akim@epita.fr>
16928         Test suites can be run independently of configure.
16930         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
16931         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
16932         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
16933         ECHO_N etc.
16934         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
16935         and at_c.
16936         * lib/autotest/general.m4: Use ECHO_*.
16938 2001-09-13  Akim Demaille  <akim@epita.fr>
16940         * bin/ifnames.in: Rewrite in Perl.
16941         * configure.ac: Don't look for AWK.
16942         * tests/tools.at (AWK portability): Remove.
16943         (Syntax of the shell scripts): Don't check ifnames.
16944         (AT_CHECK_PERL_SYNTAX): New.
16945         (Syntax of the Perl scripts): Check ifnames.
16946         * tests/ifnames: New.
16948 2001-09-13  Akim Demaille  <akim@epita.fr>
16950         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
16951         test group titles.
16952         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
16953         Remove all the other keywords.
16955 2001-09-10  Akim Demaille  <akim@epita.fr>
16957         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
16958         SETUP: no longer used.
16959         Support -k, --keywords.
16960         <at_help>: Be `no', `short', or `long'.
16961         <at_help_all>: New variable.
16962         (AT_KEYWORDS): New.
16963         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
16964         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
16965         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
16966         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
16967         No longer fill the HELP diversion.
16968         (AT_CLEANUP): Use them.
16969         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
16970         (m4_list_append): Remove.
16972         Spread a few keywords in the Autoconf test suite.
16974 2001-09-10  Akim Demaille  <akim@epita.fr>
16976         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
16977         PATH_SEPARATOR, let M4sh compute it.
16978         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
16979         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
16980         Move to...
16981         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
16982         Simplify when the path is not a literal.
16983         (AS_UNAME): Use it to report PATH.
16984         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
16985         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
16986         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
16987         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
16988         normalize the path, and to look for victims.
16989         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
16990         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
16992 2001-09-07  Akim Demaille  <akim@epita.fr>
16994         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
16995         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
16996         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
16997         related variables into `at_package_*'.
16998         * lib/autotest/general.m4 (AT_VICTIMS): New.
16999         (AT_INIT): Adjust for stand-alone/embedded test suites.
17000         (AS_MESSAGE_LOG_FD): Define and use it.
17001         * tests/suite.at (AT_VICTIMS): Use it.
17002         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
17003         at_version.
17005 2001-09-07  Akim Demaille  <akim@epita.fr>
17007         Move toward possibly stand-alone test suites.
17009         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
17010         in addition, it introduces useless differences in logs.
17011         (AT_INIT): Let atconfig and atlocal be both optional.
17012         Adjust PATH computation.
17013         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
17015 2001-09-07  Akim Demaille  <akim@epita.fr>
17017         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
17018         m4sugar/version.m4.
17020 2001-09-05  Akim Demaille  <akim@epita.fr>
17022         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
17023         to avoid GCC warnings.
17024         From Uwe Seimet.
17026 2001-09-05  Akim Demaille  <akim@epita.fr>
17028         * bin/autom4te.in: --language is -l, not -s.
17030 2001-09-05  Akim Demaille  <akim@epita.fr>
17032         Be ready to handle filenames as stupid as `dnl.at', for if even
17033         the maintainer is dumb enough to do that...
17035         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
17036         excellence in M4 quotation: consider `__file__' is active.
17038         And BTW, when invoking m4, pass the --include in the right order:
17039         the wrong one.
17041         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
17042         4m.
17044 2001-09-05  Akim Demaille  <akim@epita.fr>
17046         * lib/Autom4te/XFile.pm: New lib file.
17047         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
17048         * bin/autoheader.in: Use it.
17050 2001-09-05  Akim Demaille  <akim@epita.fr>
17052         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
17053         defined.
17055 2001-09-05  Akim Demaille  <akim@epita.fr>
17057         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
17058         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
17060         * bin/autoscan.in: Use `getopt' and `find_files' etc.
17061         Add -I, --include support.
17062         * doc/autoconf.texi (autoscan Invocation): Adjust.
17064 2001-09-05  Akim Demaille  <akim@epita.fr>
17066         CVS GNU M4 doesn't like `undefine(undefined)'.
17068         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
17069         New, extracted from main.
17070         Use IO::File wherever possible.
17071         (input.m4): Be constant, use -I instead of hard coding $tmp.
17072         Therefore be a quoted heredoc.
17073         Don't invoke `_au_disable', since ac was not loaded, but just
17074         `unm4.m4'.
17076 2001-08-31  Akim Demaille  <akim@epita.fr>
17078         Version 2.52d.
17080 2001-08-31  Akim Demaille  <akim@epita.fr>
17082         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
17083         previous patch.
17084         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
17086 2001-08-31  Akim Demaille  <akim@epita.fr>
17088         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
17089         serious problems handling heredocs in heredocs.
17090         Reported by Nicolas Joly.
17092 2001-08-31  Akim Demaille  <akim@epita.fr>
17094         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
17095         (Making testsuite Scripts): Update.
17097 2001-08-31  Akim Demaille  <akim@epita.fr>
17099         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
17101 2001-08-31  Akim Demaille  <akim@epita.fr>
17103         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
17104         (testsuite Scripts): There is no such thing as `atconfig.in'.
17105         And actually one diagram is missing: test suite runtime.
17107 2001-08-31  Akim Demaille  <akim@epita.fr>
17109         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
17110         inverse order.
17112 2001-08-31  Akim Demaille  <akim@epita.fr>
17114         * bin/autoupdate.in (@include): `installcheck' revealed the path
17115         to m4sugar was lacking!
17117 2001-08-31  Akim Demaille  <akim@epita.fr>
17119         * man/Makefile.am (.x.1): We really have to pass
17120         autom4te_perllibdir.
17122 2001-08-31  Akim Demaille  <akim@epita.fr>
17124         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
17125         debug scripts, in particular passing explicitly listed tests to
17126         run is stupid.
17128 2001-08-31  Akim Demaille  <akim@epita.fr>
17130         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
17131         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
17132         Use directly autom4te, not autoconf.
17133         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
17135 2001-08-31  Akim Demaille  <akim@epita.fr>
17137         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
17138         * bin/autoheader.in (%symbol): Strip arguments of macros.
17140 2001-08-31  Akim Demaille  <akim@epita.fr>
17142         * doc/autoconf.texi: Catch up -I, --include changes.
17144 2001-08-31  Akim Demaille  <akim@epita.fr>
17146         * bin/autom4te.in (&parse_args): Die on unknown languages.
17147         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
17148         need for autoconf.
17149         Promote --include over --macrodir and other obsolete options.
17151 2001-08-31  Akim Demaille  <akim@epita.fr>
17153         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
17154         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
17155         * bin/autom4te.in ($autoconf): Pass --force.
17156         `print $out' doesn't print `$_' but `$out'.
17157         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
17158         (autoheader): Pass --force since the test suite goes too fast for
17159         the time stamps.
17160         Adjust to the new autoheader messages.
17162 2001-08-31  Akim Demaille  <akim@epita.fr>
17164         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
17165         Check the completeness of the #template.
17166         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
17167         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
17168         invocation.
17170 2001-08-31  Akim Demaille  <akim@epita.fr>
17172         * lib/Autom4te/General.pm (&find_file, &update_file): New.
17173         * bin/autoupdate.in, bin/autoheader.in: Adjust.
17174         Drop AC_MACRODIR dead for real.
17175         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
17176         `autoheader: `config.hin' is created'.
17177         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
17179 2001-08-31  Akim Demaille  <akim@epita.fr>
17181         * bin/autoheader.in: Rewrite in Perl.
17182         * tests/autoheader: Adjust.
17184 2001-08-31  Akim Demaille  <akim@epita.fr>
17186         * bin/autoconf.in (--include, -I): New option.
17187         Map --localdir, --autoconf-dir onto it.
17188         Forward autom4te's options instead of interpreting them.
17189         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
17190         There is no such envvar since the inception of autom4te.cfg.
17191         * bin/autom4te.in (&parse_args): Uniquify `@include'.
17192         * bin/autoupdate.in: Adjust, and perform more control.
17193         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
17194         * tests/autoconf: Dittowise.
17196 2001-08-31  Akim Demaille  <akim@epita.fr>
17198         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
17199         * bin/autom4te.in (&find_file): Support `FILE?' standing for
17200         optionally `FILE'.
17201         Use -e, not -f, since /dev/null for instance is OK.
17202         (&parse_args): Adjust.
17203         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
17205 2001-08-31  Akim Demaille  <akim@epita.fr>
17207         * configure.ac: Also find tested executables in bin.
17208         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
17209         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
17210         installed peer executables, only PATH is allowed to resolve it.
17211         Pass `autoconf_dir' via options, not via invisible envvars.
17212         * lib/Autom4te/General.pm (&find_peer): Remove.
17213         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
17214         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
17215         * man/Makefile.am: Let help2man rely on PATH instead of trying to
17216         find the executables for it.
17217         * tests/Makefile.am: Major cleanup.  Too lazy to document...
17218         * tests/atlocal.in: Remove all the obscure envvar manipulations.
17219         We only need PERL.
17220         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
17221         indeed related to running the test suite, while passing
17222         --autoconf-dir and others is related to running non installed
17223         Autoconf executables.  So don't do that, leave it to...
17224         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
17225         * tests/autoscan: New.
17226         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
17227         refer to library files: rely on --language.
17229 2001-08-29  Akim Demaille  <akim@epita.fr>
17231         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
17232         s/--set/--language/.
17234 2001-08-29  Akim Demaille  <akim@epita.fr>
17236         * doc/autoconf.texi: Strip the @nodes.
17237         Suggested by Paul Eggert.
17238         (Initializing configure): Typo.
17240 2001-08-29  Akim Demaille  <akim@epita.fr>
17242         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
17243         Suggested by Paul Eggert.
17245 2001-08-29  Akim Demaille  <akim@epita.fr>
17247         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
17248         download in a tmp dir.
17250 2001-08-29  Akim Demaille  <akim@epita.fr>
17252         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
17253         case insensitive OSes out there :(
17254         From Tim Van Holder.
17256 2001-08-29  Akim Demaille  <akim@epita.fr>
17258         * lib/autom4te.in: New.
17259         * lib/Makefile.am (edit, autom4te.cfg): New.
17260         * bin/autom4te.in (BEGIN): Simplify.
17261         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
17262         (&load_configuration): New.  Use it.
17263         (&parse_args): Support --mode, --set, and --melt.
17264         * bin/autoconf.in: Simplify and adjust.
17265         * tests/Makefile.am (AUTOMAKE): Use --set.
17266         * tests/atlocal.in: Adjust.
17267         * BUGS: distcheck and check are weak.
17269 2001-08-29  Akim Demaille  <akim@epita.fr>
17271         * lib/autotest/general.m4: Use
17272                 foo=`(command) 2>/dev/null`
17273         not
17274                 foo=`command` 2>/dev/null
17275         (at-devnull): Rename as...
17276         (AT-devnull): this.
17277         (--clean): Remove AT-* files too.
17278         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
17279         Reported by Nicolas Joly.
17281 2001-08-28  Akim Demaille  <akim@epita.fr>
17283         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
17284         quotes inside single quotes.
17285         Reported by Nicolas Joly.
17287 2001-08-28  Kevin Ryde  <user42@zip.com.au>
17289         * doc/autoconf.texi (Function Portability): Mention C right shifts.
17291 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
17293         * lib/autotest/general.m4: Reword some messages.
17294         (AT_INIT): Check for the `times' builtin before using it.
17295         Support test ranges as arguments to the testsuite.
17296         Have -e imply -d as the help text suggested.
17298 2001-08-27  Akim Demaille  <akim@epita.fr>
17300         * Makefile.maint: Formatting changes.
17301         (do-po-update, po-update, cvs-update, update): New targets.
17302         (AMTAR): Remove.
17304 2001-08-27  Akim Demaille  <akim@epita.fr>
17306         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
17307         <at_cmd_line>: New.
17308         Pass it to debug-*.sh scripts.
17309         <AUTOTEST_PATH>: May contain absolute dir names.
17311 2001-08-27  Akim Demaille  <akim@epita.fr>
17313         * lib/autotest/general.m4 (AT_INIT): Log the command line.
17314         Support `VAR=VAL' as arguments.
17315         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
17316         may be set via the command line.
17318 2001-08-27  Akim Demaille  <akim@epita.fr>
17320         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
17321         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
17322         first the build dirs, then the src dirs.
17323         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
17325 2001-08-27  Akim Demaille  <akim@epita.fr>
17327         * lib/autotest/general.m4 (AT_INIT): Output the definition of
17328         at_data_files earlier.
17329         (--clean, -c): New option.
17330         * tests/Makefile.am: Use this option.
17332 2001-08-27  Akim Demaille  <akim@epita.fr>
17334         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
17335         `ac_top_builddir' to mimic Automake's vocabulary, which much more
17336         readable.
17337         Adjust callers.
17338         * doc/autoconf.texi (Configuration Actions): Document the vars
17339         available in commands.
17340         Emphasize the risks of collisions in init-cmds.
17342 2001-08-27  Akim Demaille  <akim@epita.fr>
17344         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
17345         (Initializing configure): this new node.
17347 2001-08-27  Akim Demaille  <akim@epita.fr>
17349         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
17351 2001-08-27  Akim Demaille  <akim@epita.fr>
17353         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
17354         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
17355         New file.
17356         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
17358 2001-08-27  Akim Demaille  <akim@epita.fr>
17360         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
17361         to...
17362         * lib/autoconf/autoheader.m4: this new file.
17363         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
17364         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
17365         Move to...
17366         * lib/autoconf/autoupdate.m4: this new file.
17368 2001-08-27  Akim Demaille  <akim@epita.fr>
17370         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
17371         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
17372         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
17373         -> ac_dir).
17374         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
17375         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
17377 2001-08-27  Akim Demaille  <akim@epita.fr>
17379         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
17380         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
17381         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
17382         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
17383         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
17384         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
17385         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
17386         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
17387         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
17388         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
17389         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
17390         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
17391         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
17392         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
17393         (_AC_OUTPUT_SUBDIRS): Move to...
17394         * lib/autoconf/status.m4: this new file.
17395         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
17396         * tests/Makefile.am, tests/suite.at: Adjust.
17398 2001-08-27  Akim Demaille  <akim@epita.fr>
17400         Automake 1.5.
17402         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
17403         (AMTAR): Help automake define it.
17404         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
17405         needed, 1.5 can have a macro and a target with the same name.
17406         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
17407         * m4/strip.m4: New.
17408         * m4/init.m4, m4/sanity.m4: Update.
17409         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
17410         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
17411         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
17412         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
17414 2001-08-27  Akim Demaille  <akim@epita.fr>
17416         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
17418         * lib/autoconf/version.in: Remove.
17419         * lib/m4sugar/version.in: New.
17420         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
17421         Adjust callers.
17422         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
17423         the name of the directory they're in, instead of the filename,
17424         since version.m4 is now in m4sugar, but m4_acversion must not be
17425         classified as an Autoconf macro.
17426         ($input_m4): Don't qualify the path to m4sugar.
17427         Rather, pass autoconf_dir to m4.
17428         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
17429         * tests/suite.at: Require 2.52c.
17431 2001-08-27  Akim Demaille  <akim@epita.fr>
17433         testsuite.log should include config.log.
17435         * lib/autotest/autotest.m4: New.
17436         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
17437         * tests/suite.at : Adjust.
17438         (AT_INIT): Log config.log.
17439         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
17440         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
17441         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
17442         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
17443         of config.log on traps.
17444         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
17445         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
17446         for config.status'.
17447         Open the log as soon as possible.
17448         Use the same log introduction as configure's.
17450 2001-08-22  Paul Eggert  <eggert@twinsun.com>
17452         * doc/autoconf.texi (Indices): New node.
17453         Move indices out of the top level menu and into this submenu.
17455 2001-08-22  Akim Demaille  <akim@epita.fr>
17457         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
17458         AC_TRY_COMMAND.
17459         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
17461 2001-08-22  Akim Demaille  <akim@epita.fr>
17463         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
17464         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
17465         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
17466         * lib/autoconf/programs.m4: here.
17467         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
17468         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
17469         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
17470         * lib/autoconf/programs.m4: here.
17471         (_AC_DECL_YYTEXT): Rename as...
17472         (_AC_PROG_LEX_YYTEXT_DECL): this.
17473         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
17474         * tests/Makefile.am, tests/suite.am: Adjust.
17476 2001-08-22  Akim Demaille  <akim@epita.fr>
17478         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
17479         Move to...
17480         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
17481         here.
17482         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
17483         * lib/autoconf/functions.m4: here.
17484         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
17485         (AH_CHECK_LIB): Move to...
17486         * lib/autoconf/libs: this new file.
17487         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
17488         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
17489         * lib/autoconf/libs.m4: here.
17490         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
17492 2001-08-22  Akim Demaille  <akim@epita.fr>
17494         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
17495         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
17496         (AC_SITE_LOAD): Better logging of config.site.
17498 2001-08-20  Akim Demaille  <akim@epita.fr>
17500         * configure.ac (AT_CONFIG): Fix the path.
17501         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
17502         can be used.
17504 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
17506         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
17507         program with AC_LANG_PROGRAM before feeding it to
17508         AC_COMPILE_IFELSE.  Cleanup grep usage.
17510 2001-08-20  Akim Demaille  <akim@epita.fr>
17512         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
17513         * NEWS, README, README-alpha, TODO, tests/README: This package is
17514         `Autoconf', not `autoconf' (the executable).
17516 2001-08-20  Akim Demaille  <akim@epita.fr>
17518         Info readers seem to need `Index' in the index node title :(
17520         * doc/autoconf.texi: Reverse the 2001-08-15 change which
17521         simplified index node names.
17523 2001-08-20  Akim Demaille  <akim@epita.fr>
17525         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
17526         arguments are not literals.
17527         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
17528         Specify the output variables, and macros defined.
17530 2001-08-20  Akim Demaille  <akim@epita.fr>
17532         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
17533         (Examining Syntax) <AC_TRY_COMPILE>
17534         (Examining Libraries) <AC_TRY_LINK>
17535         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
17536         their arguments.
17537         Reported by Werner Lemberg.
17539 2001-08-20  Akim Demaille  <akim@epita.fr>
17541         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
17542         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
17543         Load atlocal late enough to dump it in the log.
17544         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
17546 2001-08-20  Akim Demaille  <akim@epita.fr>
17548         * tests/torture.at (Configuring subdirectories): New test.
17549         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
17550         looking for.
17551         * m4/atconfig.m4: Be sure the let $[0] be expandable.
17552         (top_srcdir): Fix its computation.
17554 2001-08-20  Akim Demaille  <akim@epita.fr>
17556         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
17557         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
17558         test suite lives.
17559         Create `atconfig' automagically.
17560         Configure atlocal.in if present.
17561         * tests/atconfig.in: Remove.
17562         * tests/atlocal.in: New.
17563         * tests/Makefile.am: Adjust.
17565 2001-08-20  Akim Demaille  <akim@epita.fr>
17567         Huh!?!?!  There are still some user EOF tags used, which prevents
17568         their use in AC_CONFIG_COMMANDS for instance...
17570         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
17571         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
17572         `_CSEOF', or `_ATEOF', as appropriate.
17573         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
17574         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
17576 2001-08-20  Akim Demaille  <akim@epita.fr>
17578         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
17579         * tests/semantics.at, tests/tools.at, tests/torture.at:
17580         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
17582 2001-08-20  Akim Demaille  <akim@epita.fr>
17584         Autotest invokes M4sh's initialization.
17586         * lib/autotest/general.m4: Adjust the diversion names.
17587         (AT_INIT): Run AS_INIT.
17588         Use the BINSH diversion to invoke /bin/sh.
17589         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
17590         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
17592 2001-08-20  Akim Demaille  <akim@epita.fr>
17594         Let M4sh have its own diversions.
17596         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
17597         (_m4_divert(NOTICE)): Rename as...
17598         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
17599         (_m4_divert(HEADER-COMMENT)): these.
17600         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
17601         (_m4_divert(NOTICE)): New, for Libtool.
17602         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
17603         long ago with `_m4_divert(GROW)'.
17604         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
17606 2001-08-20  Akim Demaille  <akim@epita.fr>
17608         * tests/base.at, tests/compile.at, tests/foreign.at,
17609         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
17610         * tests/semantics.at, tests/suite.at, tests/tools.at,
17611         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
17613 2001-08-20  Akim Demaille  <akim@epita.fr>
17615         * bin/autom4te.in (handle_output): Handle @__@.
17617 2001-08-20  Akim Demaille  <akim@epita.fr>
17619         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
17620         * lib/autotest/general.m4: Adjust the license.
17622 2001-08-17  Paul Eggert  <eggert@twinsun.com>
17624         * doc/autoconf.texi (Function Portability): Mention snprintf,
17625         following up on a suggestion by Kevin Ryde.
17627 2001-08-17  Akim Demaille  <akim@epita.fr>
17629         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
17630         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
17632 2001-08-17  Akim Demaille  <akim@epita.fr>
17634         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
17635         `$0.log' as for projects where testsuite is in src, we'd have
17636         testsuite.log created in src.
17638 2001-08-17  Akim Demaille  <akim@epita.fr>
17640         * bin/autom4te.in (&parse_args): Recognize --normalize.
17642 2001-08-17  Akim Demaille  <akim@epita.fr>
17644         Start implementing the AC_CHECK_HEADER transition scheme.
17646         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
17647         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
17648         (AC_CHECK_HEADER): Use them.
17650 2001-08-17  Akim Demaille  <akim@epita.fr>
17652         * doc/autoconf.texi: Work around Texinfo buglets.
17653         (Transformation Rules): One example is enough, users are expected
17654         to have their brains on. And BTW, use DESTDIR.
17655         (dvar): New macro.  Use it.
17657 2001-08-17  Akim Demaille  <akim@epita.fr>
17659         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
17660         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
17661         looking for ChangeLogs.
17663 2001-08-17  Akim Demaille  <akim@epita.fr>
17665         * bin/autom4te.in: --normalize is a new option.
17666         * bin/autoconf.in: Use it.
17668 2001-08-17  Akim Demaille  <akim@epita.fr>
17670         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
17671         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
17673 2001-08-16  Paul Eggert  <eggert@twinsun.com>
17675         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
17676         start, not at end.
17678 2001-08-15  Akim Demaille  <akim@epita.fr>
17680         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
17681         Use it.
17683 2001-08-15  Akim Demaille  <akim@epita.fr>
17685         * doc/autoconf.texi (pr): New index.
17686         (prindex, findex): Use, merge, and output them.
17687         (Environment Variable Index, Output Variable Index)
17688         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
17689         (Autotest Macro Index): Rename as...
17690         (Environment Variables, Output Variables,Preprocessor Symbols)
17691         (Autoconf Macros, M4 Macros, Autotest Macros): these.
17692         * doc/install.texi: Use @command.
17693         (Environment Variables): Rename as...
17694         (Defining Variables): this.
17696 2001-08-15  Akim Demaille  <akim@epita.fr>
17698         * doc/autoconf.texi (Function Portability): sprintf's return
17699         value.
17700         From Kevin Ryde.
17702 2001-08-15  Akim Demaille  <akim@epita.fr>
17704         * Makefile.maint (CVS): New.
17705         (local-check): Run changelog-check. last.
17706         (alpha): Don't depend upon local-check, since...
17707         (cvs-dist): depends upon it.
17709 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
17711         * tests/Makefile.am: Use a clean-local rule to remove
17712         autom4te.cache (it's a directory, not a file.
17713         * Makefile.am: Ditto (but maintainer-clean-local).
17715 2001-08-15  Akim Demaille  <akim@epita.fr>
17717         * bin/autom4te.in (@m4_warning): New.
17718         (&handle_m4): Use it.
17719         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
17720         warnings are issued at each run.
17721         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
17722         is in the src tree.
17724 2001-08-15  Akim Demaille  <akim@epita.fr>
17726         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
17727         don't waste time running `autoupdate --version' works.
17728         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
17730 2001-08-13  Akim Demaille  <akim@epita.fr>
17732         * doc/autoconf.texi (ma): Rename this index as...
17733         (ac): this.
17735 2001-08-13  Akim Demaille  <akim@epita.fr>
17737         * Makefile.am: Remove dead code and dead comments.
17738         (pdf, html): New targets.
17739         * doc/autoconf.texi (Using Autotest): New chapter.
17740         * doc/Makefile.am (pdf): New targets.
17741         (CLEANFILES): Adjust.
17743 2001-08-13  Akim Demaille  <akim@epita.fr>
17745         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
17746         duration of the test suite.
17748 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
17750         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
17751         endianness for comparison instead of relying on AT_CHECK_ENV.
17753 2001-08-11  Paul Eggert  <eggert@twinsun.com>
17755         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
17756         to the INSTALL file.
17758 2001-08-11  Paul Eggert  <eggert@twinsun.com>
17760         * NEWS: The autoconf manual now is distributed under the terms
17761         of the GNU Free Documentation License.
17763         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
17764         Add an appendix "Copying This Manual" for the FDL.
17766         * doc/fdl.texi: New file, from
17767         <http://www.gnu.org/licenses/fdl.texi>.
17769         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
17771 2001-08-10  Paul Eggert  <eggert@twinsun.com>
17773         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
17774         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
17775         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
17776         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
17777         m4/sanity.m4, tests/README, tests/aclocal.m4,
17778         tests/atspecific.m4, tests/base.at, tests/compile.at,
17779         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
17780         tests/semantics.at, tests/suite.at, tests/tools.at,
17781         tests/torture.at: Add copyright notice.
17783         * tests/mktests.sh: Update year in copyright notice.
17785 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
17787         * tests/semantics.at (AC_C_BIGENDIAN): New test.
17789 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
17791         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
17792         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
17793         * doc/autoconf.texi (C Compiler Characteristics): Update
17794         documentation for AC_C_BIGENDIAN.
17796 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
17798         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
17799         magic values from an object file when cross-compiling.
17800         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
17802 2001-08-10  Akim Demaille  <akim@epita.fr>
17804         * bin/autom4te.in (&handle_output): Don't use `grep' with side
17805         effects.
17806         Suggested by Russ Allbery.
17808 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
17810         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
17811         current $prefix to the sub-configures.
17813 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
17815         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
17816         extension (needed on BeOS).  Reported by Guido van Rossum.
17818 2001-08-09  Akim Demaille  <akim@epita.fr>
17820         * bin/autom4te.in ($icache): Load it only if older than autom4te.
17822 2001-08-07  Akim Demaille  <akim@epita.fr>
17824         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
17825         removed.
17826         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
17827         No need to remove the files before and after the each test, before
17828         each test and at the end of the suite is enough.
17829         Display only the children `times', not the shell's.
17830         If the test failed or was skipped, at-times is not available.
17832 2001-08-07  Akim Demaille  <akim@epita.fr>
17834         Always produce testsuite.log, including when there are no
17835         failures.  This helps getting information on skipped tests, and
17836         duration of the tests.  Err, implement the latter btw.
17838         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
17839         Dump information on the first run of each test.
17840         (AT_CLEANUP): Create `at-times' containing the duration of the
17841         test group.
17843 2001-08-07  Akim Demaille  <akim@epita.fr>
17845         The use of `dumpstat' revealed that `len' was used although it
17846         should not.  m4_text_wrap was using it, but in the Autoconf world
17847         where it is legal.  Hence (i) test M4sh in its own world, not
17848         Autoconf's, and (ii), ahem, fix the bug :)
17850         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
17851         does not like `' instead of [].
17852         (AT_INIT): Forbid `^_?AT_'.
17853         And don't output such tokens.
17854         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
17855         `script.as', and `autom4te.cache'.
17856         Remove `empty' and `macro' which are no longer used.
17857         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
17858         * tests/m4sugar.at: Use it.
17859         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
17861 2001-08-07  Akim Demaille  <akim@epita.fr>
17863         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
17865 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
17867         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
17869 2001-08-04  Akim Demaille  <akim@epita.fr>
17871         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
17872         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
17873         AC_TRY_LINK.
17874         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
17875         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
17876         (AC_F77_MAIN): Likewise.
17878 2001-08-04  Akim Demaille  <akim@epita.fr>
17880         Don't rely on M4sugar outputting the patterns in files, since we
17881         might process the output _without_ running m4, hence without these
17882         files.
17884         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
17885         * bin/autom4te.in (@Request::includes): Remove, unused.
17886         (@Request::source): Rename as...
17887         (@Request::input): this.
17888         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
17889         (&handle_output): Fetch the patterns from the traces.
17890         `$forbidden' and `$allowed' are constant: use m//o.
17891         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
17892         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
17894 2001-08-04  Akim Demaille  <akim@epita.fr>
17896         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
17897         autoconf', i.e., in addition to caching traces, cache the output.
17899         * bin/autom4te.in (Request::cache): Rename as...
17900         (Request::id): this.
17901         ($cache, $icache, $tcache, $ocache): New.
17902         (&handle_m4): Save M4 output in the cache instead of $tmp.
17903         (&handle_output): Adjust.
17904         (&up_to_date_p): Check that the output cache is up to date too.
17905         (top level): Run `&handle_m4' iff force or the cache is invalid.
17906         Run `&handle_output' if the output cache is more recent.
17908 2001-08-04  Akim Demaille  <akim@epita.fr>
17910         * bin/autom4te.in ($force): New.
17911         (&parse_args, &print_usage): -f, --force is a new option.
17912         (&handle_output): CPP directives might have spaces after `#'.
17913         (&parse_args): The first file only can be frozen.
17915 2001-08-04  Akim Demaille  <akim@epita.fr>
17917         Don't let autom4te compute the `include' traces several times:
17918         first check that the trace cache file is up to date, and then
17919         compare its timestamp with that of the output.
17921         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
17922         the preamble.  Don't require 5.005 as Autom4te::General does it,
17923         and better yet (use `use', not `require'!).
17924         * lib/Autom4te/Struct.pm: Rename the last occurrences of
17925         Class::Struct as Autom4te::Struct.
17926         * lib/Autom4te/General.pm (File::stat): Use it.
17927         (&mtime): New, export it.
17928         * bin/autom4te.in: Use it.
17929         Declare `$req' is invalid if it is outdated.
17930         Don't declare it valid before saving it if something went wrong.
17932 2001-08-04  Akim Demaille  <akim@epita.fr>
17934         Autom4te shall not encode Autoconf data, and preselecting traces
17935         must be proposed to the users.
17937         * bin/autom4te.in (@required_trace): Remove.
17938         (@preselect): New.
17939         (&parse_args, &print_usage): -p, --preselect is a new option.
17940         (&up_to_date_p): Adjust.
17941         * bin/autoconf.in: Preselect some Autoconf macros.
17943 2001-08-04  Akim Demaille  <akim@epita.fr>
17945         * tests/tools.at (autoconf --trace: user macros): Check traces on
17946         macros invoked without arguments, and macros invoked with multiple
17947         lines arguments.
17949 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
17951         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
17952         arguments.
17954 2001-08-03  Akim Demaille  <akim@epita.fr>
17956         * bin/autoconf.in ($@): Work around the usual sh bug.
17957         From Nicolas Joly.
17959 2001-08-03  Akim Demaille  <akim@epita.fr>
17961         Clean up the handling of the M4 builtins tracing exception.
17963         * bin/autom4te.in (Request::request): Don't complete M4 builtins
17964         trace requests.
17965         (@m4_builtins): Rename as...
17966         (@m4_builtin): this.
17967         (%m4_builtin_alternate_name): New.
17968         (&parse_args): Complete the trace requests with alternate names.
17969         (&handle_traces): Hence no longer do it here.
17970         (&trace_requests): Remove, unused.
17972 2001-08-03  Akim Demaille  <akim@epita.fr>
17974         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
17975         m4_if, and m4_wrap.
17977 2001-08-03  Akim Demaille  <akim@epita.fr>
17979         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
17980         (m4_divert_pop): Dump the whole diversion stack when a diversion
17981         mismatch happens.
17982         * bin/autom4te.in (&handle_output): Remember of the first
17983         occurrence of a possibly undefined macro, not the last.
17984         Complain about the possibly undefined macros in the same order as
17985         the appear in the output.
17986         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
17987         * tests/tools.at (autoconf: forbidden tokens, basic)
17988         (autoconf: forbidden tokens, exceptions): No longer sort
17989         autoconf's stderr, as it is now deterministic.
17990         Check that `dnl' is caught.
17992 2001-08-01  Akim Demaille  <akim@epita.fr>
17994         * configure.ac: Bump to 2.52c.
17996 2001-08-01  Akim Demaille  <akim@epita.fr>
17998         Version 2.52b.
18000         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
18002 2001-08-01  Akim Demaille  <akim@epita.fr>
18004         Version 2.52a.
18006 2001-08-01  Akim Demaille  <akim@epita.fr>
18008         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
18009         `die'.
18010         (&END): New.
18011         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
18012         `END', as `Autom4te::General::END' will be triggered.
18013         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
18014         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
18015         system to run `mv', `rm', and `cmp'.
18017 2001-08-01  Akim Demaille  <akim@epita.fr>
18019         * lib/Autom4te/General.pm (&unique): New.
18020         * bin/autoscan.in (&output): Use it to issue trace requests once.
18022 2001-08-01  Akim Demaille  <akim@epita.fr>
18024         * lib/Autom4te/General.pm: New.
18025         * bin/autom4te.in (Autom4te::General): Use it.
18026         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
18027         (&find_configure_ac, &find_slave): Remove.
18028         * bin/autoscan.in: Likewise.
18029         * bin/autoupdate.in: Likewise.
18031 2001-08-01  Akim Demaille  <akim@epita.fr>
18033         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
18034         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
18035         * bin: here, new directory.
18036         * lib/Autoconf: Rename as...
18037         * lib/Autom4te: this, to please case insensitive junkie OSes.
18039 2001-08-01  Akim Demaille  <akim@epita.fr>
18041         * autom4te.in ($m4): Handle the --nesting-limit.
18042         * autoconf.in (M4): Remove.
18044 2001-08-01  Akim Demaille  <akim@epita.fr>
18046         * autoconf.in ($AWK): Remove, no longer used.
18047         * test/tools.at: Use AT_CHECK_AUTOCONF.
18048         (AWK portability): Remove, for autoconf no longer uses AWK.
18049         (Syntax of the Perl scripts): New.
18050         * configure.ac: autoconf no longer needs an AWK with a good
18051         regexp engine.
18052         Use a static test on AC_PACKAGE_VERSION.
18053         * autom4te.in (&up_to_date_p): Output depends on the arguments.
18054         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
18055         * tests/atconfig.in (PERL): New.
18057 2001-08-01  Akim Demaille  <akim@epita.fr>
18059         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
18060         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
18061         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
18062         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
18063         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
18064         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
18065         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
18066         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
18067         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
18068         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
18069         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
18070         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
18071         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
18072         * lib/autoconf/c.m4: here, new file.
18074         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
18075         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
18076         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
18077         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
18078         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
18079         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
18080         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
18081         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
18082         (AC_F77_FUNC): Move to...
18083         * lib/autoconf/fortran.m4: here, new file.
18085 2001-08-01  Akim Demaille  <akim@epita.fr>
18087         * acfunctions.m4: Rename as...
18088         * lib/autoconf/functions.m4: this.
18089         * acgeneral.m4: Rename as...
18090         * lib/autoconf/general.m4: this.
18091         * acheaders.m4: Rename as...
18092         * lib/autoconf/headers.m4: this.
18093         * aclang.m4: Rename as...
18094         * lib/autoconf/lang.m4: this.
18095         * acoldnames.m4: Rename as...
18096         * lib/autoconf/oldnames.m4: this.
18097         * acspecific.m4: Rename as...
18098         * lib/autoconf/specific.m4: this.
18099         * actypes.m4: Rename as...
18100         * lib/autoconf/types.m4: this.
18101         * autoconf.m4: Rename as...
18102         * lib/autoconf/autoconf.m4: this.
18104         * m4sugar.m4: Rename as...
18105         * lib/m4sugar/m4sugar.m4: this.
18106         * m4sh.m4: Rename as...
18107         * lib/m4sugar/m4sh.m4: this.
18109         * tests/atgeneral.m4: Rename as...
18110         * lib/autotest/general.m4: this.
18112         * acfunctions: Rename as...
18113         * lib/autoscan/functions: this.
18114         * acheaders: Rename as...
18115         * lib/autoscan/headers: this.
18116         * acidentifiers: Rename as...
18117         * lib/autoscan/identifiers: this.
18118         * aclibraries: Rename as...
18119         * lib/autoscan/libraries: this.
18120         * acmakevars: Rename as...
18121         * lib/autoscan/makevars: this.
18122         * acprograms: Rename as...
18123         * lib/autoscan/programs: this.
18125 2001-08-01  Akim Demaille  <akim@epita.fr>
18127         * doc/autoconf.texi: Moving/deleting open files is not portable.
18128         Portability issues for `.' (source), and more information about sed.
18130 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
18132         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
18133         which has a special meaning and is not a reference to libibmil.a.
18134         Reported by Matteo Frigo.
18136 2001-07-25  Pavel Roskin  <proski@gnu.org>
18138         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
18139         output.
18141 2001-07-25  Akim Demaille  <akim@epita.fr>
18143         * autoconf.in: Try to define the variables before using them.
18144         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
18145         instead of `$perllibdir'.
18146         * tests/atconfig.in ($autom4te_perllibdir): Export it.
18148 2001-07-25  Akim Demaille  <akim@epita.fr>
18150         * autoconf.in (ac_LF_and_DOT): Remove, unused.
18152 2001-07-24  Akim Demaille  <akim@epita.fr>
18154         Let autoconf use autom4te for traces.
18156         * autoconf.in ($task, task trace): Remove, merely pass --trace to
18157         autom4te.
18158         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
18159         (Because I found no way for autom4te to accept `-').
18160         * autom4te.in (&Request::request): Beware of M4 builtins.
18161         (END): Don't try to remove the content of an empty dir.
18162         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
18163         (&handle_output): Set a default value to `$forbidden'.
18164         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
18165         ($autoconf): Pass --debug and --verbose.
18166         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
18167         cache.
18169 2001-07-24  Akim Demaille  <akim@epita.fr>
18171         Let autoconf use autom4te to create configure.
18173         * autoconf.in ($automate): New var.
18174         (task script): Use autom4te.
18175         * autom4te.in (File::Spec): Use it.
18176         (&find_file): New.
18177         (&parse_args): --warning is -W, not -w.
18178         Find the top level files.
18179         (&handle_m4): Pass the warnings flags.
18180         Don't report verbosely m4's failures, unless requested.
18181         (&handle_output): Don't complain for forbidden tokens in comments.
18182         Be sure to report all the forbidden tokens within a single line.
18183         (&trace_format_to_m4): Preserve `$_'.
18184         (&handle_traces): Sort the output macros.
18185         (&up_to_date_p): Find the files before trying to get its time stamp.
18187 2001-07-24  Akim Demaille  <akim@epita.fr>
18189         * Makefile.am: Ship, build and install Autom4te.
18190         (SUBDIRS): Add lib.
18191         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
18192         * configure.in: Require Perl.
18193         * man/autom4te.in: New.
18195 2001-07-19  Paul Eggert  <eggert@twinsun.com>
18197         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
18198         example, rather than (exit 1); exit (which isn't portable).
18200 2001-07-18  Akim Demaille  <akim@epita.fr>
18202         Version 2.52.
18204 2001-07-18  Akim Demaille  <akim@epita.fr>
18206         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
18207         was run, while they are needed also when it is expanded.
18208         Reported by Nicolas Joly.
18210         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
18211         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
18212         AC_F77_DUMMY_MAIN being expanded.
18214 2001-07-18  Akim Demaille  <akim@epita.fr>
18216         * configure.in: Bump to 2.51a.
18218 2001-07-17  Akim Demaille  <akim@epita.fr>
18220         Version 2.51.
18222 2001-07-17  Akim Demaille  <akim@epita.fr>
18224         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
18225         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
18227 2001-07-17  Akim Demaille  <akim@epita.fr>
18229         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
18230         used.  Well, then use the prototypes when you can, and runtime as
18231         a last resort.
18232         Reported by Artur Frysiak
18234         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
18235         (AC_FUNC_GETPGRP): Use it.
18236         First try to compile with 0-ary or 1-ary calls.
18238 2001-07-17  Akim Demaille  <akim@epita.fr>
18240         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
18241         replacement type.
18242         From Paul Eggert.
18244 2001-07-17  Akim Demaille  <akim@epita.fr>
18246         * Makefile.maint: Sync. with cppi 1.10.
18248 2001-07-17  Akim Demaille  <akim@epita.fr>
18250         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
18251         AC_F77_DUMMY_MAIN has been run.
18252         From Pavel Roskin and Steven G. Johnson.
18254 2001-07-17  Akim Demaille  <akim@epita.fr>
18256         * configure.in: Rename as...
18257         * configure.ac: this.
18259 2001-07-17  Akim Demaille  <akim@epita.fr>
18261         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
18262         rules.
18263         From Marc Espie.
18264         * Makefile.maint (release-archive-dir): Rename as...
18265         (release_archive_dir): this, so that it can be specialized in
18266         Makefile.
18268 2001-07-14  Akim Demaille  <akim@epita.fr>
18270         * configure.in: Bump to 2.50d.
18272 2001-07-14  Akim Demaille  <akim@epita.fr>
18274         Version 2.50c.
18275         * Makefile.maint (alpha): Typo.
18277 2001-07-14  Akim Demaille  <akim@epita.fr>
18279         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
18281 2001-07-14  Akim Demaille  <akim@epita.fr>
18283         * config/config.guess, config/config.sub, config/texinfo.tex
18284         * doc/standards.texi, doc/make-stds.texi: Update.
18286 2001-07-14  Akim Demaille  <akim@epita.fr>
18288         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
18290 2001-07-14  Akim Demaille  <akim@epita.fr>
18292         * Makefile.maint (maintainer-check): Rename as...
18293         (maintainer-distcheck): this.
18294         (changelog-check, static-check): New.
18295         Use them.
18297 2001-07-14  Kevin Ryde  <user42@zip.com.au>
18299         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
18300         for CXX is g++, not gcc.
18302 2001-07-14  Akim Demaille  <akim@epita.fr>
18304         * doc/autoconf.texi (Files): New subsection.
18306 2001-07-14  Akim Demaille  <akim@epita.fr>
18308         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
18309         of...
18310         (Generic Compiler Characteristics): this.
18311         (C++ Compiler): New subsection.
18313 2001-07-14  Akim Demaille  <akim@epita.fr>
18315         * autoscan.in: Use IO::File.
18316         Adjust all the routines to use it.
18317         ($log): New file (autoscan.log).
18318         (output): Dump detailed logs into $log, and a shortened version to
18319         stderr.
18320         (&scan_makefile): Refine the regexp catching tokens in the code.
18321         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
18322         and the `configure.ac' checking feature.
18324 2001-07-12  Akim Demaille  <akim@epita.fr>
18326         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
18327         Reported by Michael Elizabeth Chastain.
18329         * autoconf.in: Refuse such AWK.
18330         * configure.in: Likewise.
18331         * Makefile.am (acversion.m4): Do not use move-if-change this file
18332         has dependencies.
18333         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
18335 2001-07-10  Jens Petersen  <petersen@redhat.com>
18337         * autoscan.in (&scan_makefile): Improve programs regexp to parse
18338         things like "g++", "file.c" and "some-conf" as tokens.
18339         (&scan_file): Match C++ files extensions.
18340         If the filename extension is C++ then ask for c++.
18342 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
18344         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
18345         AC_TRY_LINK_FUNC, to check whether defining a dummy
18346         main-like routine is needed for linking with F77 libs.
18348 2001-07-05  Pavel Roskin  <proski@gnu.org>
18350         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
18351         after using break.
18352         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
18353         linking.
18355 2001-07-05  Akim Demaille  <akim@epita.fr>
18357         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
18358         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
18359         Makes' lives.
18360         Reported by Nicolas Joly.
18362 2001-07-04  Akim Demaille  <akim@epita.fr>
18364         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
18365         up.
18366         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
18367         warnings from compilers.
18368         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
18369         for all the compilers, not only GNU.  Hence move from here...
18370         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
18372 2001-07-04  Akim Demaille  <akim@epita.fr>
18374         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
18375         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
18376         AC_COMPILE_IFELSE.
18378 2001-07-04  Akim Demaille  <akim@epita.fr>
18380         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
18381         the ``strings.h'' change claimed below.
18383 2001-07-04  Akim Demaille  <akim@epita.fr>
18385         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
18387 2001-07-04  Akim Demaille  <akim@epita.fr>
18389         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18390         strings.h if usable with string.h.
18391         Suggested by Paul Eggert.
18393 2001-07-04  Akim Demaille  <akim@epita.fr>
18395         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
18396         From Jens Petersen.
18398 2001-07-03  Akim Demaille  <akim@epita.fr>
18400         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
18401         etc. in the log.
18403 2001-07-03  Akim Demaille  <akim@epita.fr>
18405         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
18406         compiler, not the preprocessor.
18407         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
18408         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
18409         the right thing.
18410         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
18411         earlier if there are.
18413 2001-07-03  Akim Demaille  <akim@epita.fr>
18415         * autoscan.in ($initfile): Remove.
18416         (&find_file): Rename as...
18417         (&scan_file): this.
18418         Immediately scan the current file, instead of gathering them, and
18419         later having them handled by &scan_files.
18420         (&scan_files): Merely invoke Find::File.
18421         Adjust.
18423 2001-07-02  Akim Demaille  <akim@epita.fr>
18425         * autoscan.in: Formatting changes, matching the invocation order.
18426         (File::Find): Use it instead of Perl 4's `find.pl'.
18427         (&wanted): Rename as...
18428         (&find_file): this.
18430 2001-07-01  Pavel Roskin  <proski@gnu.org>
18432         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
18433         break in the argument to AC_TRY_LINK_FUNC.
18434         (AC_F77_MAIN): Remove conftest* after using break in the
18435         argument to AC_TRY_LINK.
18437 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
18439         Add alternate 'main' routine detection for linking C/C++ with Fortran,
18440         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
18442         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
18443         dummy alternate main is required even if the user provides her own
18444         'main'.
18445         (AC_F77_MAIN): New macro to detect whether it is possible to
18446         provide an alternate 'main' function name, using the 'main' from
18447         the Fortran libraries.
18448         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
18449         cross-language link tests can be performed successfully.
18450         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
18451         after $LIBS, for consistency; this should be the general rule since
18452         the user may want to link to Fortran libraries that require $FLIBS.
18453         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
18455 2001-06-29  Pavel Roskin  <proski@gnu.org>
18457         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
18458         at-stdout and at-stderr instead of removing the newline
18459         from the echo output, which is not guaranteed to work.
18461 2001-06-28  Jens Petersen  <petersen@redhat.com>
18463         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
18464         confdefs.h when non-zero.
18466 2001-06-28  Akim Demaille  <akim@epita.fr>
18468         * configure.in: Bump to 2.50c.
18470 2001-06-26  Akim Demaille  <akim@epita.fr>
18472         Version 2.50b.
18474 2001-06-26  Akim Demaille  <akim@epita.fr>
18476         Version 2.50a.
18478 2001-06-25  Pavel Roskin  <proski@gnu.org>
18480         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
18481         argument, AUTOCONF-FLAGS.
18482         * tests/mktests.sh (update_exclude_list): Add
18483         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
18484         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
18485         AC_FUNC_WAIT3 with "-W no-obsolete".
18487 2001-06-25  Akim Demaille  <akim@epita.fr>
18489         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
18491 2001-06-25  Akim Demaille  <akim@epita.fr>
18493         * autoscan.in (%macro): Now maps from word to list of macros.
18494         (&init_tables): Die when a word which is already handled by
18495         explicit macros is mapped to the default macro.
18496         (&print_unique): Remove, inlined in...
18497         (&output_kind): here.
18498         (File::Basename): Use it.
18499         (&output): Sort the CONFIG_FILES.
18500         * acheaders: Normalize.
18501         * acfunctions: Likewise.
18503 2001-06-25  Akim Demaille  <akim@epita.fr>
18505         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
18506         characteristics in the logs.
18507         Suggested by Mo DeJong.
18509 2001-06-24  Akim Demaille  <akim@epita.fr>
18511         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
18512         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
18513         * doc/autoconf.texi (Autoconf 2.13): New section.
18515 2001-06-24  Akim Demaille  <akim@epita.fr>
18517         * autoconf.in (Task traces): Separate the error messages from the
18518         traces to improve robustness.
18520 2001-06-23  Akim Demaille  <akim@epita.fr>
18522         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
18523         three as failures are unlikely, and speed matters.
18525 2001-06-23  Akim Demaille  <akim@epita.fr>
18527         * doc/autoconf.texi (Redefined M4 Macros): New.
18529 2001-06-23  Akim Demaille  <akim@epita.fr>
18531         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
18532         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
18533         5.3.
18535 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
18537         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
18538         config.status targets to after the evaluation of the INIT-CMDS.
18539         Double quote config.status targets (used to be single quoted).
18541 2001-06-23  Akim Demaille  <akim@epita.fr>
18543         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
18544         Check the content of the created file.
18545         Check the ./config.status command line invocation.
18547 2001-06-23  Akim Demaille  <akim@epita.fr>
18549         * tests/foreign.at (Libtool): Reject prehistoric versions.
18551 2001-06-23  Akim Demaille  <akim@epita.fr>
18553         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
18554         preexisting files matching a.*.
18556 2001-06-23  Akim Demaille  <akim@epita.fr>
18558         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
18559         stderr.
18560         * doc/autoconf.texi (AC_ARG_VAR): Update.
18562 2001-06-21  Akim Demaille  <akim@epita.fr>
18564         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
18565         precious variables have changed.
18566         * tests/torture.at (AC_ARG_VAR): Adjust.
18568 2001-06-21  Akim Demaille  <akim@epita.fr>
18570         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
18571         but some sed choke on multiple `;', and other tools (e.g.,
18572         Automake), include the separator themselves.
18574         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
18576 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
18578         * doc/autoconf.texi (Functions Portability): Rename as...
18579         (Function Portability): this.
18580         (Function Portability): Document potential problems with unlink().
18582 2001-06-19  Paul Eggert  <eggert@twinsun.com>
18584         * NEWS, doc/autoconf.texi: Document quadrigraphs.
18586 2001-06-18  Akim Demaille  <akim@epita.fr>
18588         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
18590 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
18592         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
18593         (_AC_FUNC_VFORK): this.
18594         Remove AC_DEFINEs and don't guess cross-compilation values.
18595         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
18596         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
18597         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
18598         vfork doesn't work.
18599         Guess values if cross-compiling, but warn.
18600         * acfunctions: Add AC_FUNC_FORK.
18601         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
18602         and vfork appropriately.
18604 2001-06-18  Akim Demaille  <akim@epita.fr>
18606         * doc/autoconf.texi (Functions Portability): New section.
18608 2001-06-18  Akim Demaille  <akim@epita.fr>
18610         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
18611         in $M4.
18612         Suggested by Andreas Schwab.
18614 2001-06-18  Akim Demaille  <akim@epita.fr>
18616         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
18617         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
18618         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
18619         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
18620         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
18621         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
18622         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
18623         the converse).
18625 2001-06-18  Akim Demaille  <akim@epita.fr>
18627         * doc/autoconf.texi (ms): New index.
18628         (Macro Index): Rename as...
18629         (Autoconf Macro Index): this.
18630         (M4 Macro Index): New appendix.
18631         (Programming in M4): New chapter.
18632         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
18633         (Quoting): Rename as...
18634         (M$ Quotation): this.
18635         Be part of `Programming in M4).
18637 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
18639         * tests/torture.at (AC_ARG_VAR): Set variables and export them
18640         in separate statements for compatibility with Tru64 v5.1.
18642 2001-06-17  Akim Demaille  <akim@epita.fr>
18644         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
18645         current values of the precious variables, not the previously
18646         cached values.
18647         Pass precious variables which are set to config.status.
18648         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
18649         * tests/torture.at (AC_ARG_VAR): New.
18651 2001-06-15  Paul Eggert  <eggert@twinsun.com>
18653         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
18654         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
18655         and explain why and how to replace them.
18656         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
18657         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
18659 2001-06-15  Akim Demaille  <akim@epita.fr>
18661         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
18662         Reported by Bruno Haible.
18664         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
18665          (_AC_ARG_VAR_PRECIOUS): to here.
18667 2001-06-15  Pavel Roskin  <proski@gnu.org>
18669         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
18670         an unused pointer use cast to this type and `if' statement to
18671         avoid warnings from the compiler.
18672         (AC_HEADER_TIME): Likewise.
18673         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
18674         in `if' statement to avoid warnings from the compiler. Declare
18675         ac_aggr static to avoid the need to initialize it.
18677 2001-06-14  Akim Demaille  <akim@epita.fr>
18679         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
18680         Macros'.
18682 2001-06-13  Akim Demaille  <akim@epita.fr>
18684         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
18685         Suggested by Alexander Mai.
18687 2001-06-13  Akim Demaille  <akim@epita.fr>
18689         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
18690         sys/types.h and sys/stat.h, and check for them.
18692 2001-06-13  Akim Demaille  <akim@epita.fr>
18694         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
18695         INCLUDES.
18697 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
18699         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
18700         succeeds and only try adding libdnet upon a failure.
18702 2001-06-12  Akim Demaille  <akim@epita.fr>
18704         * autoscan.in (&output_kind): Output the comment only if it exists.
18705         (%kind_comment): Add entry for `programs'.
18706         (&output_programs): Use &output_kind.
18707         (&output_functions, &output_identifiers, &output_headers)
18708         (&output_programs): Inline, and remove.
18710 2001-06-12  Akim Demaille  <akim@epita.fr>
18712         * autoscan.in (%kind_comment): New.
18713         (output_kind): New.
18714         (output_functions, output_identifiers, output_headers): Use it.
18716 2001-06-12  Akim Demaille  <akim@epita.fr>
18718         * autoscan.in (&print_unique): Take `$kind' and `$word' as
18719         arguments, to factor indirections into `%macro' and `%used'.
18720         (%generic_macro): Fix a typo.
18722 2001-06-12  Akim Demaille  <akim@epita.fr>
18724         * aclibraries: New.
18725         * autoscan.in (@kinds): Add `libraries'.
18726         Use `@kinds' instead of hard coded lists.
18727         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
18728         Remove, replaced by...
18729         (%used): this.
18731 2001-06-12  Akim Demaille  <akim@epita.fr>
18733         * autoscan.in (%functions_macros %headers_macros)
18734         (%identifiers_macros %programs_macros %makevars_macros): Remove,
18735         replaced by...
18736         (%macro): New.
18738 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
18740         * aclang.m4 (AC_NO_EXECUTABLES): Override
18741         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
18743 2001-06-11  Akim Demaille  <akim@epita.fr>
18745         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
18746         trailing new line.
18747         Reported by Andreas Schwab.
18749 2001-06-11  Akim Demaille  <akim@epita.fr>
18751         * Makefile.am, Makefile.maint: Typos.
18753 2001-06-09  Akim Demaille  <akim@epita.fr>
18755         * doc/autoconf.texi (Here-Documents): New section, gathering
18756         documentation about here-documents.
18757         Use `href', not `uref', and other changes.
18759 2001-06-09  Akim Demaille  <akim@epita.fr>
18761         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
18762         chapter.
18764 2001-06-09  Akim Demaille  <akim@epita.fr>
18766         * doc/autoconf.texi (Limitations of Builtins): Complete the
18767         description of the here-docs penalties with Alexandre Oliva's
18768         explanations.
18770 2001-06-01  Paul Eggert  <eggert@twinsun.com>
18772         * doc/autoconf.texi: Talk about here documents and speedups.
18773         Do not use "echo" on arbitrary strings.
18774         Spell "here-documents" consistently with the standard.
18776 2001-06-09  Akim Demaille  <akim@epita.fr>
18778         * doc/autoconf.texi (Concept Index): Introduce it.
18779         Regenerate the menus.
18781 2001-06-09  Akim Demaille  <akim@epita.fr>
18783         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
18784         * config/prev-version.txt: New.
18785         * config/move-if-change: New, for GNU libc.
18787 2001-06-06  Pavel Roskin  <proski@gnu.org>
18789         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
18791 2001-06-06  Akim Demaille  <akim@epita.fr>
18793         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
18794         properly when $1 is not a literal.
18795         Fixes PR Autoconf/187, reported by Bram Moolenaar.
18797 2001-06-06  Akim Demaille  <akim@epita.fr>
18799         Invoking AC_COPYRIGHT before AC_INIT fails.
18801         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
18802         * acgeneral.m4 (_m4_divert(VERSION_FSF))
18803         (_m4_divert(VERSION_USER)): New.
18804         (AC_COPYRIGHT): $2 is the diversion to use.
18805         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
18806         (AC_INIT): Remove dead comments as now it's commutative.
18808 2001-06-06  Akim Demaille  <akim@epita.fr>
18810         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
18811         PR autoconf/187.
18813 2001-06-05  Akim Demaille  <akim@epita.fr>
18815         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
18816         can be empty.
18817         `*dir' variables cannot be NONE.
18818         Reported by Mark Kettenis.
18820 2001-06-05  Paul Eggert  <eggert@twinsun.com>
18822         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
18824 2001-06-04  Akim Demaille  <akim@epita.fr>
18826         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
18827         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
18828         (AC_TR_SH): Move as...
18829         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
18830         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
18831         (AS_TR_SH): these.
18832         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
18833         (_AS_TR_SH_PREPARE): New.
18834         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
18835         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
18837 2001-06-02  Akim Demaille  <akim@epita.fr>
18839         * Makefile.am (.m4.m4f): Pass the options first.
18840         Fixes PR autoconf/182.
18842 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
18844         GNU getopt, when POSIXLY_CORRECT does not permute options and
18845         arguments.  So pass the options first.
18846         Fixes PR autoconf/184.
18848         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
18849         (run_m4): Remove files.
18850         (run_m4f): Remove.
18851         Update remainder of script to use them.
18852         (for warning in): Do not use a literal comma as it will not be
18853         split by IFS.
18855 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
18857         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
18858         Fortran compilers to check.
18859         (_AC_PROG_F77_V): Add '-###' as a possible option to print
18860         information on library and object files.
18861         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
18862         to check.
18864 2001-06-02  Akim Demaille  <akim@epita.fr>
18866         * autom4te.in (Request::@request): Declare with `vars', not `my',
18867         as it prevents updates via `do FILENAME'.
18869 2001-06-02  Akim Demaille  <akim@epita.fr>
18871         * configure.in (standards_texi): Remove, dead code.
18873 2001-06-02  Akim Demaille  <akim@epita.fr>
18875         * autom4te.in: New.
18877 2001-06-02  Pavel Roskin  <proski@gnu.org>
18879         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
18880         for signals other than 0 - exit with code 1.
18881         * m4sh.m4 (AS_TMPDIR): Likewise.
18882         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
18883         * autoheader.in: Likewise.
18884         * autoreconf.in: Likewise.
18885         * tests/torture.at (Signal handling): New test for the above.
18887 2001-06-01  Akim Demaille  <akim@epita.fr>
18889         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
18890         message.
18892 2001-05-31  Akim Demaille  <akim@epita.fr>
18894         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
18895         Add copyright and comments.
18896         * acheaders: Add stdint.h.
18897         Suggested by Paul Eggert.
18899 2001-05-31  Akim Demaille  <akim@epita.fr>
18901         * atgeneral.m4 (AT_INIT): Use $SHELL.
18902         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
18904 2001-05-31  Akim Demaille  <akim@epita.fr>
18906         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18907         stdint.h.
18908         From Paul Eggert and Lars Hecking.
18910 2001-05-31  Akim Demaille  <akim@epita.fr>
18912         * tests/base.at: Adjust line numbers in error messages.
18914 2001-05-31  Akim Demaille  <akim@epita.fr>
18916         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
18917         to emit the bangshe line.
18918         Reported by David Carter.
18920 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
18922         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
18923         Fortran (95) compilers to check.
18925 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
18927         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
18928         Macro Archive URL.
18930 2001-05-23  Pavel Roskin  <proski@gnu.org>
18932         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
18933         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
18934         (AC_PROG_CXXCPP): Likewise.
18936 2001-05-22  Akim Demaille  <akim@epita.fr>
18938         * config: New directory.
18939         * configure.in: AC_CONFIG_AUX_DIR it.
18940         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
18942 2001-05-22  Akim Demaille  <akim@epita.fr>
18944         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
18945         * autoupdate.in: Specify the Emacs mode.
18946         * acversion.m4.in: Rename as...
18947         * acversion.m4: this.
18948         * tests/Makefile.am (CLEANFILES): More garbage.
18950 2001-05-22  Akim Demaille  <akim@epita.fr>
18952         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
18953         Rename as...
18954         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
18955         these.
18957 2001-05-21  Akim Demaille  <akim@epita.fr>
18959         * configure.in: Bump to 2.50a.
18962         -----
18964         Local Variables:
18965         coding: utf-8
18966         End:
18968         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
18969         Free Software Foundation, Inc.
18971         Copying and distribution of this file, with or without
18972         modification, are permitted provided the copyright notice and this
18973         notice are preserved.