extract "Programming in M4sh" into its own chapter
[autoconf.git] / ChangeLog
blobea444600fb17d98209b3bdbe5e4afee5a617ef89
1 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
3         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
5 2008-10-10  Eric Blake  <ebb9@byu.net>
7         Fix _AS_MKDIR_P usage.
8         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
9         match implementation.
10         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
11         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
12         wording to better match behavior.
14 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
16         * doc/autoconf.texi: Be less wary of shell functions.
17         * NEWS: Document the increased use of shell functions.
19 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
21         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
22         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
23         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
24         (_AS_PREPARE): Define shell functions.
25         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
26         Define shell functions.
28 2008-10-09  Eric Blake  <ebb9@byu.net>
30         Only prepare $as_me if it will be used.
31         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
32         preparation.
33         (_AS_ECHO_LOG): Depend on $LINENO preparation.
34         (AS_MESSAGE): Depend on $as_me preparation.
35         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
37 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
40         until the M4SH-INIT diversion using _AS_ME_PREPARE.
41         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
42         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
43         before _AS_LINENO_PREPARE.
44         (AS_PREPARE): Include all the AS_REQUIREs manually.
45         (_AS_ME_PREPARE): New.
46         (_AS_LINENO_PREPARE): Use m4_defun.
48 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
51         require _AS_EXPR_PREPARE.
52         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
53         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
55 2008-10-08  Eric Blake  <ebb9@byu.net>
57         Resync from gnulib.
58         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
59         (fetch): ...into new target.
60         (executable-update): Delete, now that it is unused.
61         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
62         (wget-update, cvs-update): Likewise.
63         * HACKING (Update the foreign files): Document new procedure.
64         * GNUmakefile: Resync from upstream, via new 'make fetch'.
65         * build-aux/config.guess: Likewise.
67 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
69         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
70         (AS_INIT): Do not call it.
72 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
74         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
75         _AS_UNSET_PREPARE in M4SH-SANITIZE.
77 2008-10-08  Eric Blake  <ebb9@byu.net>
79         Avoid repeating required shell tests in suggested set.
80         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
81         Use m4_set, rather than m4_expand_once/m4_append.
82         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
83         required tests out of suggested tests.
84         Reported by Paolo Bonzini.
86 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
88         Add m4sh keyword to all m4sh.at tests.
89         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
90         pastos.
92 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94         Document AS_VERSION_COMPARE.
95         * doc/autoconf.texi (Programming in M4sh): Document
96         AS_VERSION_COMPARE.
97         * NEWS: Update.
99         Do not write to testsuite log fd before initialization.
100         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
101         Define fds only when initializing the log fd so early error
102         messages do not try to write to it.
103         * tests/autotest.at (Startup error messages): New test.
104         * NEWS: Document this 2.63 regression.
106 2008-10-07  Eric Blake  <ebb9@byu.net>
108         Ensure _AS_CLEANUP is defined.
109         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
110         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
112         Improve m4sh maintainability.
113         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
114         code change.
116         Fix m4 quoting in previous patch.
117         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
118         name prior to invoking AS_REQUIRE.
119         Reported by Ralf Wildenhues.
121 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
122         and Eric Blake  <ebb9@byu.net>
124         Add a separate diversion for shell functions.
125         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
126         (AS_REQUIRE): Accept diversion parameter.
127         (AS_REQUIRE_SHELL_FN): Use it.
129 2008-10-06  Eric Blake  <ebb9@byu.net>
131         Add m4_default_quoted.
132         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
133         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
134         * doc/autoconf.texi (Conditional constructs): Document it.
135         * NEWS: Likewise.
137         Fix build with case-insensitive make, again.
138         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
139         Reported via Keith Marshall, originally by newthinker in
140         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
142 2008-10-06  Bruno Haible  <bruno@clisp.org>
144         Warn about /usr/ucb on Solaris.
145         * doc/install.texi (Particular Systems): Recommend putting
146         /usr/ucb late in PATH, if at all.
148 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
150         Fix more testsuite hang corner cases.
151         * lib/autotest/general.m4: Use the serial code path if no test
152         is to be run.
153         * tests/autotest.at (parallel test execution): Test -j and -jN
154         with `-k notmatched'.
156 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
158         Fix hang with `testsuite -k notmatched'.
159         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
160         to one.  Fixes hang with `-k notmatched'.
162 2008-10-02  Eric Blake  <ebb9@byu.net>
164         Document more binary file portability traps.
165         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
166         reader that NUL and sed don't always mix.
167         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
169 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
171         Implement parallel Autotest test execution: testsuite --jobs.
172         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
173         (AT_INIT): <at_jobs>: New variable.
174         Accept -j, -jN, --jobs[=N], document them in --help output.
175         Implement parallel driver loop using a FIFO, enabled with --jobs
176         and if mkfifo works; otherwise, fall back to sequential loop.
177         (AT_SETUP): Store, do not output summary progress line if
178         parallel.
179         * tests/autotest.at (parallel test execution, parallel truth)
180         (parallel fallacy, parallel skip): New tests.
181         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
182         the mkfifo requirement, and that --errexit may cause concurrent
183         jobs to finish.
184         * NEWS: Update.
186 2008-09-20  Eric Blake  <ebb9@byu.net>
188         Fix sample isinf definition.
189         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
190         first.
191         * THANKS: Update.
192         Reported by David Cournapeau.
194 2008-09-16  Eric Blake  <ebb9@byu.net>
196         Fix Erlang regression, introduced 2006-11-17.
197         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
198         caused by underquoting.
199         * NEWS: Mention this fix.
200         * THANKS: Update.
201         Reported by BJ Terry.
203 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
205         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
207         Mention Solaris sh ':' redirection bug.
208         * doc/autoconf.texi (File Descriptors): Redirecting ':'
209         in a loop causes bogus optimization with Solaris sh.
211 2008-09-10  Eric Blake  <ebb9@byu.net>
213         Avoid testsuite bug when autom4te cache is disabled by user.
214         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
215         cache, even if user normally disabled it.
216         Reported by Bruno Haible.
218         Avoid testsuite bug in presence of verbose config.site.
219         * tests/base.at (Input/Output): Nullify config.site during test.
220         Reported by Bob Friesenhahn.
222 2008-09-09  Eric Blake  <ebb9@byu.net>
224         Release Version 2.63.
225         * NEWS: Mention the release.
227         Formatting tweaks to the manual.
228         * doc/autoconf.texi (Introduction, Systemology)
229         (File System Conventions, Portable C and C++)
230         (Floating Point Portability): Allow URLs to split as needed.
231         (Indices): Add entries, to work around texinfo bug on indices that
232         start too close to a page break.
233         (Particular Functions): Mention ftello.
234         (Introduction, Language Choice): Use @enddots at sentence end.
236         Resync from gnulib.
237         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
238         although for now, they are still manually sync'd.
239         * build-aux/gnupload: Update.
240         * build-aux/config.sub: Likewise.
241         * GNUmakefile: Likewise.
243 2008-09-06  Eric Blake  <ebb9@byu.net>
245         Mention that Automake already supports VPATH.
246         * doc/autoconf.texi (Build Directories): Details in this section
247         only apply to users avoiding automake.
248         * THANKS: Update.
249         Reported by Matej Tyc.
251         Relax tone when warning about cross-compiler names.
252         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
253         with poorly named tools; the issue has been reported too many
254         times in the last four years to pull support.
255         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
256         documentation accordingly.
257         * THANKS: Update.
258         Reported by Josef Tran and others, wording suggested by Ralf
259         Wildenhues.
261 2008-09-01  Eric Blake  <ebb9@byu.net>
263         Improve AC_C_BIGENDIAN.
264         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
265         universal builds require a config header.
266         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
267         AH_HEADER at the last possible moment, so that users can use
268         AC_CONFIG_HEADER after this macro.
269         Reported by Stepan Kasal.
271         Fix manual date information.
272         * doc/autoconf.tex: UPDATED refers to the day the manual was
273         built, not the release date of Autoconf.
274         Based on a bison patch by Akim Demaille.
276 2008-08-27  Eric Blake  <ebb9@byu.net>
278         Fix off-by-one bug in _m4_shiftn.
279         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
280         all arguments.
281         * tests/m4sugar.at (M4 loops): Test it.
282         Reported by Akim Demaille.
284 2008-08-26  Eric Blake  <ebb9@byu.net>
286         Improve INSTALL formatting.
287         * doc/install.texi [!autoconf]: Ensure first paragraphs are
288         indented like all others in a plain text rendering.
289         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
290         Reported by Bruno Haible.
292 2008-08-26  Stepan Kasal  <skasal@redhat.com>
294         Check for case sensitive make.
295         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
296         * configure.ac: ... called here.
297         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
298         ($(srcdir)/INSTALL): ...this, but enclose the rule in
299         "if MAKE_CASE_SENSITIVE".
301 2008-08-26  Eric Blake  <ebb9@byu.net>
303         Update invocation documentation.
304         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
305         (autoreconf Invocation): Mention -v.
306         (autom4te Invocation): Tie --freeze to -F, not -f.
307         (autoupdate Invocation): Mention --prepend-include.
308         * doc/install.texi (configure Invocation): Mention --help=short,
309         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
310         * bin/autoscan.in ($help): Omit space before `...'.
311         * bin/ifnames.in ($help): Likewise.
312         * bin/autoconf.as (Usage): Likewise.
313         * bin/autoreconf.in ($help): Likewise.
314         * bin/autoheader.in ($help): Likewise.
315         * bin/autom4te.in ($help): Likewise.
316         * bin/autoupdate.in ($help): Likewise.
317         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
318         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
319         --file correctly.
321         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
322         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
323         (files_to_options): Avoid inheriting __m4_version__ from frozen
324         file if current M4 does not support it.
326 2008-08-25  Eric Blake  <ebb9@byu.net>
328         Adjust to recent m4 1.6 change to support m4_debugmode(d).
329         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
330         freeze-time decision of using faster 1.6 implementation...
331         (m4_init): ...to a runtime decision, and add use of new debugmode
332         flag.
334 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
336         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
337         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
338         __APPLE_CC__ with possible -arch flags.
339         * NEWS: Document it.
341 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
343         * NEWS: Fix typo.
345 2008-08-22  Eric Blake  <ebb9@byu.net>
347         * TODO: Add an item for additional m4sugar looping constructs.
348         Suggested by Ralf Wildenhues.
350         Add reminder to keep dual implementations in sync.
351         * lib/m4sugar/m4sugar.m4: Add comments.
352         * lib/m4sugar/foreach.m4: Likewise.
353         Suggested by Ralf Wildenhues.
355 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
357         Format warning and error messages to match GCS.
358         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
359         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
360         messages with a lowercase letter, end them without punctuation.
361         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
362         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
363         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
364         Likewise.
365         * tests/fortran.at (GNU Fortran): Likewise.
366         * tests/torture.at (Deep Package): Likewise.
368 2008-08-21  Eric Blake  <ebb9@byu.net>
370         Avoid extra side effects in m4sugar list expansion.
371         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
372         around...
373         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
374         duplicate side effects.
375         (m4_version_compare): Adjust caller.
376         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
377         (_m4_list_cmp_raw): ...to match m4sugar.
378         * doc/autoconf.texi (Looping constructs): Document the behavior of
379         side effects.
380         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
381         Ensure only one side effect.
382         (recursion): Fix test typo.
383         Reported by Ralf Wildenhues.
385 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
387         * TODO: Add item for compiler default flags.
388         Suggested by Bruno Haible.
390         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
391         back to 1000.
393 2008-08-21  Eric Blake  <ebb9@byu.net>
395         Formatting improvements.
396         * doc/autoconf.texi: Use @file and @command, rather than @code,
397         where appropriate.
399         Document another make bug.
400         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
401         make, GNU make <= 3.80.
403         Tweak wording about SHELL in Makefile.
404         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
405         the importance of proper SHELL settings.
406         Reported by Bruno Haible, in
407         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
409 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
411         Avoid timestamp races for updated input.
412         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
413         second script.
414         * tests/tools.at (autotools and whitespace in file names): Add
415         --force for repeated invocations.
417 2008-08-20  Bruno Haible  <bruno@clisp.org>
419         Add section to INSTALL about particular systems.
420         * doc/install.texi (Particular systems): New node.
421         * doc/autoconf.texi: Adjust menus.
423 2008-08-19  Bruno Haible  <bruno@clisp.org>
424         and Peter O'Gorman  <peter@pogma.com>
426         Mention universal binaries in INSTALL.
427         * doc/install.texi (Compiling For Multiple Architectures): Explain
428         how to create universal binaries on MacOS X.
430 2008-08-19  Jim Meyering  <jim@meyering.net>
431             Eric Blake  <ebb9@byu.net>
432             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
434         Avoid shell parse errors after interrupt due to empty ``.
435         * doc/autoconf.texi (Shell Substitutions): Document the issue.
436         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
437         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
438         "test AS_VAR_GET([...]) = yes"
439         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
440         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
441         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
442         (_AC_CHECK_HEADER_DIRENT): Likewise.
443         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
444         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
445         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
446         temporary variable to work around the issue.
447         * tests/foreign.at (Libtool): Quote result of command
448         substitution.
450 2008-08-18  Eric Blake  <ebb9@byu.net>
452         Test m4_transform without tickling shell bugs.
453         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
454         something more manageable.
455         * tests/m4sugar.at (recursion): Move stress test of
456         m4_transform_pair here.
457         Reported by Ralf Wildenhues.
459         Let 'git diff' give better context for doc updates.
460         * .gitattributes (*.texi*): Add new entry.
461         * README-hacking: Mention how to use it.
462         Inspired by a coreutils patch by Jim Meyering.
464 2008-08-15  Eric Blake  <ebb9@byu.net>
466         Fix m4_map regression from 2007-10-16.
467         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
468         (m4_map): Ignore empty sublists.  For a list consisting of only an
469         empty sublist, this restores 2.61 behavior of being a no-op.
470         (m4_map_sep): Likewise, and expand separator.
471         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
472         (_m4_map): Rewrite, to be common base for all four variants.
473         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
474         * tests/m4sugar.at (m4@&t@_map): Add tests.
475         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
476         macros, and mention ramifications of expanded separator.
477         * NEWS: Mention the change.
479 2008-08-14  Eric Blake  <ebb9@byu.net>
481         Implement m4_transform_pair, to speed up AS_IF.
482         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
483         macros, undocumented for now.
484         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
485         the m4 1.4.x counterparts.
486         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
487         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
489 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
491         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
492         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
493         warn about previous AC_CANONICAL_TARGET.
494         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
495         unusable in the non-cross-compiling case.
496         * NEWS, THANKS: Update.
497         Report by Dave Erickson.
499 2008-08-12  Eric Blake  <ebb9@byu.net>
501         Optimize m4_bmatch.
502         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
503         implementation for m4 1.4.x.
504         * tests/m4sugar.at (m4@&t@_bmatch): New test.
505         (recursion): Test the linear nature.
506         * NEWS: Document the fix.
508         Fix m4_cond corner case.
509         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
510         implementation allows concatenation with subsequent text.
511         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
513         Add test for m4_cond.
514         * tests/m4sugar.at (m4@&t@_cond): New test.
515         Reported by Ralf Wildenhues.
517 2008-08-06  Eric Blake  <ebb9@byu.net>
519         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
520         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
521         unique key for the AH_VERBATIM.
522         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
523         * NEWS: Mention the fix.
524         Reported by Andreas Schwab, analyzed by Stepan Kasal.
526         Add linear m4_cond for m4 1.4.x.
527         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
528         (_m4_cond): ...this, for fewer macros per iteration.
529         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
530         * tests/m4sugar.at (recursion): Test it.
531         * NEWS: Document the linear guarantee.
533         Speed up diversion handling.
534         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
535         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
536         expansions.
538         AC_C_CHAR_UNSIGNED is not strictly necessary.
539         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
540         portable alternative to this macro.
541         * THANKS: Update.
542         Reported by Hallvard B Furuseth.
544         Update some files from upstream.
545         * GNUmakefile: Update.
546         * build-aux/announce-gen: Likewise.
547         * build-aux/config.guess: Likewise.
548         * build-aux/config.sub: Likewise.
549         * build-aux/git-version-gen: Likewise.
550         * build-aux/texinfo.tex: Likewise.
551         * build-aux/vc-list-files: Likewise.
552         * doc/make-stds.texi: Likewise.
553         * doc/standards.texi: Likewise.
555 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
557         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
558         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
559         whitespace in $ac_config_files and $ac_config_headers.
560         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
561         Report by Andreas Schwab and Per Ã˜yvind Karlsen.
562         * THANKS: Update.
564 2008-07-30  Eric Blake  <ebb9@byu.net>
566         Fix bugs in previous version of m4_bpatsubsts.
567         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
568         allow concatenation with subsequent text.
569         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
571 2008-07-29  Eric Blake  <ebb9@byu.net>
573         Add linear m4_bpatsubsts for m4 1.4.x.
574         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
575         about anchors, even for only one substitution.
576         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
577         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
578         Clarify behavior with regard to quoting.
579         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
580         (m4@&t@_bpatsubsts): New test.
581         * NEWS: Document the linear guarantee.
583         Tweak m4_do semantics.
584         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
585         subsequent text.
586         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
587         arguments, and avoid infinite loop.
588         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
589         behavior.
590         * tests/m4sugar.at (m4@&t@_do): New test.
592         Optimize m4_for.
593         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
594         (_m4_for): Take additional parameter, for fewer m4_indir calls.
595         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
596         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
597         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
598         semantic change caused by the optimization.
599         * tests/m4sugar.at (M4 loops): Test the new semantics.
601         One more m4_list_cmp tweak.
602         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
603         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
604         * tests/m4sugar.at (recursion): Test both directions of list
605         disparity.
607         Add m4_reverse, and improve m4_list_cmp.
608         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
609         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
610         m4_reverse'd list.
611         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
612         counterpart.
613         * tests/m4sugar.at (recursion): Test it.
614         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
615         it.
616         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
617         * NEWS: Mention new macro.
619 2008-07-28  Eric Blake  <ebb9@byu.net>
621         Avoid _m4_shiftn for m4 1.6 speedup.
622         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
623         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
624         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
626         Implement O(n) unique element set creation.
627         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
628         (m4_set_contains, m4_set_contents, m4_set_delete)
629         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
630         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
631         (m4_set_size, m4_set_union): New macros.
632         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
633         m4 1.4.x.
634         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
635         new m4_set API for the set most likely to be large.
636         * doc/autoconf.texi (Set manipulation Macros): New node.
637         * NEWS: Mention new macros.
638         * tests/m4sugar.at (m4@&t@_set): New test.
640 2008-07-25  Eric Blake  <ebb9@byu.net>
642         Avoid infinite aclocal loop.
643         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
644         that aclocal doesn't insist on finding m4sugar/foreach.m4.
646         Provide O(n) replacement macros for M4 1.4.x.
647         * lib/m4sugar/foreach.m4: New file.
648         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
649         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
650         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
651         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
652         linear on 1.4.x].
653         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
654         older M4 is assumed.
655         (m4_map_sep): Optimize.
656         (m4_max, m4_min): Refactor, by adding...
657         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
658         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
659         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
660         file.
661         * tests/m4sugar.at (M4 loops): Add a stress test that takes
662         forever if m4_foreach and friends are quadratic.
663         * NEWS: Mention this.
665 2008-07-21  Eric Blake  <ebb9@byu.net>
667         Ignore undefined macros, necessary with m4 1.6.
668         * bin/autoupdate.in (_au___undefine): New macro,...
669         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
670         Reported by Ralf Wildenhues.
672         Resync with gnulib.
673         * GNUmakefile: Grab from upstream, to fix issue where 'make
674         install' would allow installation of stale version string.
676 2008-07-19  Eric Blake  <ebb9@byu.net>
678         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
679         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
680         through all variables, per POSIX and newer m4.
681         (_m4_text_wrap): Exploit the looping capabilities.
682         * tests/m4sugar.at (m4@&t@_defn): Test this.
683         * NEWS: Document it.
684         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
685         <m4_undefine>: Likewise.
687         Reduce overhead of m4_builtin([defn]).
688         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
689         internal macros, which are slightly more efficient than
690         m4_builtin([defn]) and company.
691         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
692         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
693         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
694         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
695         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
696         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
697         (m4_version_prereq): Use them.
699         Use warnings from m4 when available.
700         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
701         define slower wrapper if m4 will warn on our behalf; key off of
702         __m4_version__, added alongside the new warnings in m4 1.6.
703         * tests/m4sugar.at (m4@&t@_defn): New test.
705 2008-07-18  Eric Blake  <ebb9@byu.net>
707         Add m4_joinall.
708         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
709         * tests/m4sugar.at (m4@&t@_join): Test them.
710         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
711         m4_joinall.
712         * NEWS: Likewise.
714 2008-07-17  Stepan Kasal  <skasal@redhat.com>
715         and Eric Blake  <ebb9@byu.net>
717         Improve documentation of config.h.in template rules.
718         * doc/autoconf.texi (Header Templates): Mention rules on comments
719         and whitespace, and that the user cannot rely on #undef to survive
720         through config.status.
722 2008-07-16  Eric Blake  <ebb9@byu.net>
724         Revert m4_prepend; it is less efficient, and unused by bison.
725         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
726         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
727         (_m4_grow_uniq_1): Rename back...
728         (_m4_append_uniq): ...to this.
729         * NEWS: Revert NEWS blurb.
730         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
731         * tests/m4sugar.at (m4@&t@_prepend): Delete.
733 2008-07-15  Eric Blake  <ebb9@byu.net>
735         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
736         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
737         definition for non-Autoconf clients of m4sugar.
739 2008-07-14  Eric Blake  <ebb9@byu.net>
741         Tighten bound of potential speed of m4_append.
742         * doc/autoconf.texi (Text processing Macros) <m4_append>
743         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
744         O(n log n).
745         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
746         Analysis by Bruno Haible.
748 2008-07-11  Eric Blake  <ebb9@byu.net>
750         Inherit improvements from bison's fork of m4sugar.
751         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
752         find version.texi, since bison does not provide it.
753         (m4_prepend): Add new macro, from bison.
754         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
755         completeness.
756         (_m4_append_uniq): Rename...
757         (_m4_grow_uniq_1): ...to this to share implementation, and
758         optimize initial assignment.
759         (m4_append_uniq_w): Adjust caller.
760         * NEWS: Document new macros.
761         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
762         speed consideration.
763         <m4_prepend>: Document the new prepend variants.
764         * tests/m4sugar.at (m4@&t@_prepend): New test.
766         Work around M4 1.6 warning on undefined macros.
767         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
768         not already available as builtins.
770 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
772         * doc/autoconf.texi (@dvar): Remove trailing newline.
773         (@ovar): Likewise.  Fix macro documentation.
775 2008-07-02  Stepan Kasal  <skasal@redhat.com>
777         Add quotes to the header of autoscan-generated source.
778         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
780 2008-06-28  Andreas Schwab  <schwab@suse.de>
782         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
783         (autoconf Invocation): Likewise.
784         (autoreconf Invocation): Likewise.
785         (autoheader Invocation): Likewise.
786         (autom4te Invocation): Likewise.
788 2008-06-19  Eric Blake  <ebb9@byu.net>
790         Add comment explaining recent patch.
791         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
792         of * vs. ? globbing.
794 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
796         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
797         linking a file to itself.
798         Report by Bruno Haible.
800 2008-06-19  Eric Blake  <ebb9@byu.net>
802         Resync with gnulib.
803         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
804         Reported by Stepan Kasal.
806 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
808         Reorganize autotest files, factorize for parallel execution.
809         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
810         earlier in the file.
811         (AT_INIT): Create line number cache in
812         $at_suite_dir/at-source-lines.
813         <at_helper_dir>: New directory at-groups below $at_suite_dir.
814         Add comment explaining the new directory structure.
815         (at_func_group_prepare, at_func_group_postprocess): New shell
816         functions to factorize per-test group work.  Keep the actual
817         test execution outside of a shell function in order to avoid
818         zsh 4.x exit status bugs.
819         <at_check_line_file, at_status_file, at_stdout, at_stder1>
820         <at_stderr, at_test_source>: Turn these into per-group files
821         below $at_helper_dir.  Also store test results there in files
822         named pass, fail, xpass, xfail, skip.  Let the parent collect
823         results from $at_helper_dir.  Adjust summary statistics
824         computation and result output.
826 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
828         Fix '#undef variable /* comment */' transform in config headers.
829         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
830         undefined preprocessor macros that are followed by a comment
831         in the header template, do not create nested comments in the
832         output.
833         * tests/torture.at (@%:@define header templates): Extend test.
834         * NEWS: Update.
835         Report by Karsten Hopp <karsten@redhat.com>.
837 2008-06-09  Eric Blake  <ebb9@byu.net>
839         Mark AC_TYPE_SIGNAL as obsolete.
840         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
841         * doc/autoconf.texi (Function Portability): Update documentation.
842         (Particular Types): Move AC_TYPE_SIGNAL...
843         (Obsolete Macros): ...here, and mention why.
844         * NEWS: Mention the change.
846         Allow lib64 as a default X library location.
847         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
848         * NEWS: Mention the change.
849         * THANKS: Update.
850         Reported by Brad Walker.
852 2008-06-05  Eric Blake  <ebb9@byu.net>
854         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
855         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
856         converting it to lower case.
857         * tests/autotest.at (Keywords and ranges): Test this.
858         * NEWS: Document the fix.
859         * THANKS: Update.
860         Reported via Karsten Hopp, by Jochen Schmitt in
861         https://bugzilla.redhat.com/show_bug.cgi?id=449973
863 2008-06-03  Eric Blake  <ebb9@byu.net>
865         Fix 'make dist' regression from 2008-05-08.
866         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
867         GNUmakefile's _autoconf rule removes INSTALL.
869 2008-05-27  Eric Blake  <ebb9@byu.net>
871         Document Solaris /bin/sh redirection pitfall.
872         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
874 2008-05-14  Eric Blake  <ebb9@byu.net>
876         Improve documentation of ! issues.
877         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
878         Reported by Noah Misch.
880         Document some FreeBSD shell bugs.
881         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
882         in compound pipe commands.
883         <export>: Mention difference of exporting an undefined variable.
884         (Shell Functions): Mention loss of $? in entry to shell functions.
885         Extracted from the git mailing list.
887 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
889         Work around MSYS and Cygwin bugs when dealing with trailing space.
890         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
891         even when platform bugs are tickled.
892         Reported by Keith Marshall and Eric Blake.
894 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
896         Let AC_MSG_FAILURE report pwd.
897         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
898         Output $ac_pwd along with fatal failure.
899         * tests/torture.at (Deep Package): Extend test.
900         Reported numerous times against GCC, and probably other packages.
902 2008-05-12  Eric Blake  <ebb9@byu.net>
904         Enforce --help and --version compliance.
905         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
907 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
909         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
910         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
911         ($(abs_srcdir)/INSTALL): ...with this.
913 2008-05-06  Eric Blake  <ebb9@byu.net>
915         Fix typo.
916         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
918         Avoid overfull \hbox.
919         * doc/autoconf.texi (Versioning): Reword to fit line size.
921         Document $(( )) pitfalls.
922         * doc/autoconf.texi (Shell Substitutions): Mention octal
923         vs. decimal.  Mention autotest's at_func_arith.
925         Improve behavior of './testsuite 01'.
926         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
927         Alter usage to eval its arguments, in order to normalize away
928         leading zero.  All callers updated.
929         * tests/autotest.at (Keywords and ranges): Test range
930         normalization with leading 0.
932 2008-04-26  Eric Blake  <ebb9@byu.net>
934         Mention Solaris /usr/ucb/tr pitfall.
935         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
936         Reported by Bruno Haible and Jim Meyering.
938 2008-04-24  Eric Blake  <ebb9@byu.net>
940         Mention m4sugar's internal quote strings.
941         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
942         in m4sugar, and how to still output it literally.
943         * tests/m4sugar.at (m4@&t@_split): And test it.
944         Reported by Joel E. Denny.
946 2008-04-23  Eric Blake  <ebb9@byu.net>
948         Allow unbalanced () in m4_expand.
949         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
950         quotes.
951         (m4_noquote, _m4_split): Use consistent complex quote.
952         * tests/autotest.at (Left paren, Right paren): Test this.
953         (Parentheses): Ensure new quadrigraphs still work.
954         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
955         * NEWS: Mention the fix.
956         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
957         require quadrigraphs for ().
958         (Evaluation Macros) <m4_expand>: Relax the restriction against
959         unbalanced ().
960         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
961         (Writing Testsuites) <AT_SETUP>: Likewise.
962         Reported by Joel E. Denny, fix suggested by Noah Misch.
964 2008-04-22  Eric Blake  <ebb9@byu.net>
966         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
967         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
968         (handle_traces): Likewise.
969         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
970         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
971         * doc/autoconf.texi (Quadrigraphs): Document them.
972         (Evaluation Macros) <m4_expand>: Enhance documentation.
973         (Text processing Macros) <m4_text_box>: Document cases where
974         quadrigraphs can help for problemetic unbalanced parentheses.
975         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
976         (Writing Testsuites) <AT_SETUP>: Likewise.
977         (Limitations of Builtins) <case>: Consolidate text on unbalanced
978         parentheses, and add an example of creative comments.
979         * NEWS: Document the addition.
980         Reported by Joel E. Denny.
982 2008-04-16  Eric Blake  <ebb9@byu.net>
984         Document pdksh exec behavior.
985         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
986         subsection.
987         Discovered by Jim Meyering.
989 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
991         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
992         arguments to the inner suite.
993         (errexit, input from stdin): New tests.
995 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
997         * NEWS: Post-release update.
999 2008-04-10  Eric Blake  <ebb9@byu.net>
1001         AC_AUTOCONF_VERSION might contain arbitrary macro names.
1002         * doc/autoconf.texi (Versioning): Mention problem with expansion.
1003         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
1005 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
1007         Flush buffered output before exit.
1008         * bin/autom4te.in (handle_output): Explicitly close file.
1009         * THANKS: Update.
1010         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
1012 2008-04-08  Eric Blake  <ebb9@byu.net>
1014         Generate web docs for 2.62.
1015         * doc/autoconf.texi (Evaluation Macros): Fix typo.
1016         (Notices): Use recommended means to escape RCS keyword.
1017         * cfg.mk (gnulib_dir): New macro.
1018         (web-manual): New target.
1020 2008-04-05  Eric Blake  <ebb9@byu.net>
1022         Release Version 2.62.
1023         * NEWS: Mention the release.
1025 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
1026         and Eric Blake  <ebb9@byu.net>
1028         Return back to GPLv2+, until the text of the exceptions is
1029         finalized, reverting the change from 2007-07-03 and the first
1030         part of the change from 2007-07-20.
1031         * COPYING: Revert to GPLv2.
1032         * COPYINGv3: New file, since some auxiliary build tools, used for
1033         building autoconf and not installed, are GPLv3.
1034         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
1035         * NEWS: Remove mention of GPLv3.
1036         * README: Clarify situation regarding GPLv3.
1038 2008-04-05  Eric Blake  <ebb9@byu.net>
1040         Prepare for release.
1041         * maint.mk (announcement): Avoid deleted option.
1042         * cfg.mk (release_archive_dir): Use default.
1043         * build-aux/gnupload: New file, from automake/gnulib.
1044         * Makefile.am (EXTRA_DIST): Distribute it.
1045         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
1046         from syntax check.
1048 2008-04-05  Jim Meyering  <meyering@redhat.com>
1049         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1051         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
1052         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
1053         is the EOL marker, skip a step that would remove and translate
1054         carriage return bytes.
1055         * THANKS: Update.
1056         Reported by Elbert Pol.
1058 2008-04-05  Eric Blake  <ebb9@byu.net>
1060         Avoid some autoreconf -Wall warnings.
1061         * configure.ac: Use proper quoting, to be a good example.
1062         (PACKAGE_NAME): Remove setting covered by autoconf.
1063         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
1064         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
1065         automake.
1066         (html, autoconf_1.html, standards_1.html): Likewise.
1067         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
1068         * Makefile.am (html): Likewise.
1069         * doc/autoconf.texi (Quoting and Parameters): Add missing section
1070         name.
1071         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
1072         warning about our override, until Automake is fixed.
1073         * README-hacking: Document minimum requirements for bootstrap.
1075 2008-04-03  Eric Blake  <ebb9@byu.net>
1077         Fix version number generation in man pages.
1078         * Makefile.am (EXTRA_DIST): Distribute .version.
1079         (.version): New rule.
1080         * man/Makefile.am (common_dep): Depend on .version, not
1081         configure.ac.
1082         (.x.1): Use package name for version string.
1083         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
1084         * build-aux/git-version-gen: Sync from upstream.
1086         More maintainer tweaks: pass 'make maintainer-distcheck'.
1087         * GNUmakefile (_is-dist-target): Sync from upstream.
1088         * build-aux/vc-list-files: Sync from upstream, yet again.
1089         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
1090         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
1091         package.m4.
1092         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
1094         Fix VPATH 'make syntax-check'.
1095         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
1096         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
1097         (author_mark_check): Avoid error message.
1098         * build-aux/vc-list-files: Sync from upstream again.
1099         * build-aux/texinfo.tex: Likewise.
1101         Sync files from upstream, and pass 'make syntax-check'.
1102         * config/announce-gen: Move...
1103         * build-aux/announce-gen: ...here, and sync from gnulib.
1104         * Makefile.am (EXTRA_DIST): Adjust accordingly.
1105         * cfg.mk (announce_gen): Likewise.
1106         (prev_version_file): Delete, relying on default in maint.mk.
1107         (gpg_key_ID): New macro.
1108         (url_dir_list): Rewrite to match coreutils.
1109         * config/prev-version.txt: Move...
1110         * .prev-version: ...here, and adjust to 2.61.
1111         * build-aux/vc-list-files: Sync from coreutils.
1112         * maint.mk: Resynchronize with coreutils, where possible.
1113         (ME): Remove $(srcdir) from definition.
1114         (CVS): Delete.
1115         (GIT, VC, VC-tag): New macros.
1116         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
1117         (VC_LIST, VC_LIST_EXCEPT): ...to this.
1118         (cvs-tag-check): Delete.
1119         (cvs-diff-check): Rename...
1120         (vc-diff-check): ...to this.
1121         (sc_file_system): Allow FHS acronym.
1122         * doc/autoconf.texi (Particular Functions): Recommend
1123         unconditional <config.h>.
1124         * build-aux/config.guess: Sync from upstream (manually).
1125         * build-aux/config.sub: Likewise.
1126         * build-aux/texinfo.tex: Likewise.
1127         * doc/make-stds.texi: Likewise.
1128         * doc/standards.texi: Likewise.
1129         * .gitattributes: Ignore whitespace problems in upstream files.
1131 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1133         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
1134         bug on HP-UX/IA.
1135         Report by Peter O'Gorman.
1137 2008-04-02  Eric Blake  <ebb9@byu.net>
1139         Recommend the just-released M4 1.4.11.
1140         * NEWS: Update recommendation.
1141         * README: Likewise.
1142         * doc/autoconf.texi (Introduction): Likewise.
1143         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1145 2008-04-01  Eric Blake  <ebb9@byu.net>
1147         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
1148         copyright year.
1150 2008-03-28  Peter O'Gorman  <peter@pogma.com>
1152         Find X11 on Mac OS X too.
1153         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
1154         Check for libX11 with extensions dylib la and dll too.
1155         * THANKS: Update.
1156         Reported by Martin Costabel.
1158 2008-03-28  Eric Blake  <ebb9@byu.net>
1160         Update TODO based on completed tasks.
1161         * TODO (AC_PROG_INSTALL takes multiple files): Done.
1162         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
1163         (AC_COMPILE_IFELSE documentation): Done.
1164         (Tracing builtins): Done, now that we require M4 1.4.5.
1165         (AC_PROG_CC_POSIX suggestion, providing header files)
1166         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
1167         (cache consistency): Done with precious variables.
1169 2008-03-26  Eric Blake  <ebb9@byu.net>
1171         Document --trace=macro:format in --help output.
1172         * bin/autom4te.in (help): Mention optional trace format.
1173         * bin/autoconf.as (usage): Likewise.
1175         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
1176         typos in last patch.
1177         Reported by Ralf Wildenhues.
1179 2008-03-26  Jim Meyering  <meyering@redhat.com>
1181         Fix texinfo syntax error.
1182         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
1184 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1186         Warn, not fail on whitespace-only precious variable differences.
1187         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
1188         precious variable differences less ambiguous with `ugly-quotes'.
1189         If their settings differ only in whitespace, do not fail, but
1190         reuse the old value.
1191         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
1192         an optional status and expected-warning argument.  Fix m4
1193         quotation for initial value.
1194         (AC_ARG_VAR): Also test for whitespace-only differences, and
1195         that the old value is retained in this case.
1196         * doc/autoconf.texi (Setting Output Variables): Document this.
1197         * NEWS: Update.
1198         Report and initial patch by Paolo Bonzini.
1200 2008-03-26  Eric Blake  <ebb9@byu.net>
1202         Document busybox sed bug.
1203         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
1204         restrictions when using back-references.
1205         Reported by Vincent Lefevre:
1206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
1208         Document Automake interaction with AC_CONFIG_MACRO_DIR.
1209         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
1210         users.
1211         * THANKS: Update.
1212         Reported by Chris Pickett.
1214 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1216         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
1218         * tests/local.at (AT_CHECK_M4): Factorize warning output
1219         normalization.
1220         Suggested by Eric Blake.
1222 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1224         Fix .exe-related test failure on MinGW.
1225         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
1226         for comparing warning output.
1228         Fix Fortran testsuite failures with gfortran 4.3.
1229         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
1230         verbose compiler output, skip lines that set variables; gfortran
1231         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
1232         * THANKS: Update.
1233         Report by Vincent Lefèvre.
1235 2008-03-21  Eric Blake  <ebb9@byu.net>
1237         * GNUmakefile: Resynchronize with gnulib.
1239         Document more uses of $cross_compiling.
1240         * doc/autoconf.texi (Runtime): Document that a temporary override
1241         is permissible.
1242         * THANKS: Update.
1243         Reported by Ineiev, example by Ralf Wildenhues.
1245         Don't swallow $1 in textual local variables.
1246         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
1247         expansion of text arguments, as that swallows $1.
1248         (m4_text_wrap): Likewise, by splitting out...
1249         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
1250         expression for width.
1251         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
1252         (m4@&t@_combine): Likewise.
1254 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1256         Avoid leftover files on Leopard.
1257         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
1258         directory created on darwin.
1259         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
1260         left over from a broken link.
1261         * tests/c.at (AC_NO_EXECUTABLES (working linker))
1262         (AC_NO_EXECUTABLES (broken linker)): New tests.
1263         Report by Gary V. Vaughan.
1265         * lib/autom4te.in (Automake-preselections): Trace
1266         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
1268 2008-03-20  Eric Blake  <ebb9@byu.net>
1270         Kill more CVS references.
1271         * README-cvs: Delete.  See README-hacking instead.
1272         * README-hacking: Update wording, based on older file.
1273         * BUGS: Remove CVS mention.
1275 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1277         * tests/tools.at (autotools and whitespace in file names): Skip
1278         if aclocal is not present.
1280 2008-03-20  Eric Blake  <ebb9@byu.net>
1282         Sync GNUmakefile with gnulib.
1283         * GNUmakefile (Makefile.cfg): Rename...
1284         (cfg.mk): ...to this, and make optional.
1285         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
1286         (Makefile.maint): Rename...
1287         (maint.mk): ...to this.
1288         (all) [!_have-Makefile]: Rename...
1289         (abort-due-to-no-makefile): ...to this, and invoke via
1290         .DEFAULT_GOAL to pick up all targets.
1291         * Makefile.cfg: Rename...
1292         * cfg.mk: ...to this.
1293         * Makefile.maint: Rename...
1294         * maint.mk ...to this.
1295         (ME): Reflect name change.
1296         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
1297         rather than hard-coded name.
1298         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
1299         * Makefile.am (EXTRA_DIST): Reflect file name changes.
1300         * .x-sc_prohibit_atoi_atof: Likewise.
1301         * lib/freeze.mk: Likewise.
1303 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
1305         * doc/autoconf.texi (Introduction): Improve the paraphrase of
1306         Henry Spencer's quotation.
1308 2008-03-19  Eric Blake  <ebb9@byu.net>
1310         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
1311         * bin/autoscan.in (output): Avoid obsolete spelling.
1312         * tests/local.at (AC_STATE_SAVE): Update usage.
1313         * THANKS: Update.
1314         Reported by John Calcote.
1316         Emphasize that ease of configure triumphs over ease of autoconf.
1317         * doc/autoconf.texi (Introduction): Expand on primary
1318         vs. secondary goal of autoconf.
1319         * THANKS: Update.
1320         Inspired by Paul Smith.
1322 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1324         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
1325         $hint, show if the executing program does not exist.
1326         (xsystem_hint): New function, like xsystem but allows to pass
1327         a hint.
1328         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
1329         libtoolize.
1330         Report by Bruce Korb.
1332 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
1334         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
1335         tests/mktests.sh, tests/wrapper.as: Fix typos.
1337 2008-03-12  Eric Blake  <ebb9@byu.net>
1339         Fix yesterday's regression in m4_wrap([$1]).
1340         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
1341         text, since it may contain text that looks like parameters.
1342         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
1344 2008-03-11  Eric Blake  <ebb9@byu.net>
1346         Improve error messages for common testsuite bugs.
1347         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
1348         macros for defining order-enforced macros.
1349         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
1350         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
1351         messages when order violations are detected.
1352         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
1353         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
1354         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
1355         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
1356         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
1357         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
1358         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
1359         (Banner-only test suite): New tests.
1360         Reported by Christopher Hulbert.
1362         Tweak m4_wrap to force FIFO or LIFO semantics.
1363         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
1364         (m4_wrap_lifo, _m4_wrap): New macros.
1365         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
1366         order, prior to m4sugar's.
1367         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
1368         m4_wrap.
1369         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
1370         known order, prior to m4sh's.
1371         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
1372         argument.
1373         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
1374         new behavior.
1375         * tests/m4sh.at (AS_INIT cleanup): New test.
1376         * NEWS: Document the change.
1378 2008-03-10  Eric Blake  <ebb9@byu.net>
1380         Encode nested autotest data.
1381         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
1382         (unusual file names): Likewise.
1383         (m4_pattern_allow): Remove loophole, to make it easier to catch
1384         poorly written tests.
1386         Factor some autotest tests.
1387         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
1388         common initialization.
1389         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
1390         (whitespace in absolute testdir, unusual file names): Use it.
1392 2008-03-06  Eric Blake  <ebb9@byu.net>
1394         Minor documentation fix.
1395         * doc/autoconf.texi (Evaluation Macros): Fix typo.
1397 2008-03-04  Eric Blake  <ebb9@byu.net>
1399         Make AT_CHECK act like a simple command.
1400         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
1401         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
1403 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1405         On MinGW, substitution of CR and 0xFF fails.
1406         * tests/torture.at (Substitute and define special characters):
1407         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
1408         wrong thing for CR.
1410 2008-03-04  Eric Blake  <ebb9@byu.net>
1412         Pull in recent maintainer improvements from coreutils.
1413         * GNUmakefile (_is-dist-target): 'make distclean' should not
1414         trigger autoreconf.
1415         (_dummy): Change directories before removing autom4te.cache.
1416         (check dist distcheck install) [!_have-Makefile]: Provide nicer
1417         diagnostics.
1418         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
1419         builds, after initial bootstrap.
1420         * Makefile.am (distclean-local): Work around current automake bug.
1421         * Makefile.maint (ME): Allow VPATH usage.
1423         Use git-merge-changelog when available.
1424         * .gitattributes: New file.
1425         * README-hacking: Document use of git-merge-changelog.
1427         Work around cygwin bug.
1428         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
1429         "touch 't\'" creates regular file 't'.
1431         Ignore tests that require read-only directories under root.
1432         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
1433         no-write portion if user has root-like privileges.
1435 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1437         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
1439 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1441         autoreconf -m now honors $MAKE.
1442         * bin/autoreconf.in ($run_make): Renamed from ...
1443         ($make): ... this.  Use now as command to run `make',
1444         overridden by $MAKE.  Document this in --help output.
1445         * doc/autoconf.texi (autoreconf Invocation): Document
1446         all environment variables honored by autoreconf.
1447         * NEWS: Update.
1448         Report by Paul Eggert.
1450 2008-03-03  Eric Blake  <ebb9@byu.net>
1452         Documentation improvements.
1453         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
1454         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
1455         that preceeds @dots.  Improve wording.
1456         (Text processing Macros): Drop `1' suffix from metasyntax variable
1457         name that preceeds @dots.
1458         (Number processing Macros): Drop `1' suffix from metasyntax
1459         variable name that preceeds @dots.  Improve wording.
1460         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
1461         Suggested by Ralf Wildenhues.
1463 2008-03-02  Jim Meyering  <meyering@redhat.com>
1465         Don't infloop upon "make dist".
1466         * GNUmakefile: Merge from coreutils.
1467         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
1468         not .version.
1469         * configure.ac (AC_INIT): Use .tarball-version, not .version.
1470         * build-aux/git-version-gen: Update from gnulib.
1472 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1474         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1475         Before using /dev/full, check that it is a writable character
1476         special device.
1477         Report by Benoit Sigoure and Eric Blake.
1479         Actually test that @configure_input@ is expanded correctly.
1480         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1481         Actually check generated file contents for the name of the
1482         generated file, using AC_PROG_FGREP and $FGREP.
1484 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
1486         Be nice with file systems that don't handle unusual characters.
1487         * tests/atlocal.in (func_sanitize_file_name)
1488         (func_sanitize_dir_name): New shell functions.
1489         * tests/tools.at (autom4te and whitespace in file names)
1490         (autotools and whitespace in file names): Use them.
1491         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1492         Cover more potentially problemtic file names.  Use the new
1493         functions.
1495         Properly handle funny file names for headers in config.status.
1496         The test suite did not cover this bug because the code was not
1497         quoting properly the arguments of `rm -f' (which "fails" silently)
1498         as well as the arguments of `diff' (whose output was redirected to
1499         /dev/null so we couldn't see its error message).
1500         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
1501         file names passed to `rm' and `diff'.
1502         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1503         Add a regression test.
1505 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
1506         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1508         Properly expand @configure_input@ in config.status.
1509         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
1510         Escape the backslashes and ampersands in $configure_input before
1511         using it in the sed replacement string to expand @configure_input@.
1512         Report by Eric Blake and Patrick Welche.
1514 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1516         Ignore errors from ./run on w32.
1517         * tests/autotest.at (whitespace in absolute testdir):
1518         Ignore stderr for `./run' which fails to remove the
1519         busy test directory on w32.
1521 2008-02-22  Eric Blake  <ebb9@byu.net>
1523         Improve documentation for writing autotest suites.
1524         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
1525         checks must live inside a test group.
1526         Reported by Christopher Hulbert.
1528 2008-02-21  Eric Blake  <ebb9@byu.net>
1530         Sync git-version-gen from upstream.
1531         * build-aux/git-version-gen: Pull from gnulib.
1532         * configure.ac (AC_INIT): Adjust to new calling convention.
1534 2008-02-12  Eric Blake  <ebb9@byu.net>
1536         Avoid trailing space in config.h with AC_DEFINE([var], []).
1537         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
1538         defines with a comment.
1540 2008-02-08  Eric Blake  <ebb9@byu.net>
1542         Fix texinfo typos in previous patch.
1543         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
1544         Reported by Ralf Wildenhues.
1546         Describe a config.site that can be used for FHS compliance.
1547         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
1548         for FHS.
1549         * THANKS: Update.
1550         Reported by Jules Colding and Ralf Wildenhues.
1552 2008-02-02  Eric Blake  <ebb9@byu.net>
1554         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
1556 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1558         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
1559         again, broken since introduction of `-C dir'.
1560         * tests/autotest.at (Choosing where testsuite is run): Test it.
1562 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1564         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
1566 2008-01-29  Eric Blake  <ebb9@byu.net>
1568         Fix more autotest regressions.
1569         * lib/autotest/general.m4 (AT_LINE): Fix regression from
1570         2007-10-04 when file name is `dnl'.
1571         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
1572         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
1573         yesterday in libtool's testsuite.
1574         (_AT_ARG_OPTION): Detect write failure.
1575         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
1576         make libtool's use kosher.  Document m4_init.
1577         (Programming in M4sh): Document AS_INIT.
1578         (Writing Testsuites): Document limitation of AT_DATA file name.
1579         * tests/autotest.at (unusual file names): New test.
1580         (Banners, Keywords and ranges): Use correct shell.
1582         More corner cases in testsuite VAR=VALUE handling.
1583         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
1584         bug.
1585         <PARSE_ARGS_END>: Also detect leading digits in assignments.
1586         * tests/autotest.at (Using atlocal): Enhance test to catch last
1587         bug.
1589         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
1590         bug.
1592 2008-01-28  Eric Blake  <ebb9@byu.net>
1594         Fix regression in handling VAR=VALUE arguments to testsuite.
1595         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
1596         leading = as invalid.  Defer use of command-line variable
1597         assignments...
1598         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
1599         regression in sourcing files.
1600         * tests/autotest.at (Using atlocal): New test to catch this.
1601         (Debugging a successful test, Choosing where testsuite is run):
1602         Use correct shell.
1603         Reported by Ralf Wildenhues.
1605         Document grep peculiarity.
1606         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
1607         BSD behavior on binary input.
1609         Minor testsuite improvements.
1610         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
1611         forks when sanitizing PATH.  Always output machine information,
1612         not just when atconfig was located.
1614         Add 'testsuite -C dir'.
1615         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
1616         detection...
1617         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
1618         argument.
1619         <DEFAULTS>: Delay computation of variables based on $at_dir...
1620         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
1621         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
1622         <PARSE_ARGS>: Parse new option.
1623         <HELP_TUNING>: Document it.
1624         * tests/autotest.at (Choosing where testsuite is run): New test
1625         for this feature.
1626         (Keywords and ranges): Add test for missing -k argument.
1627         * NEWS: Document this.
1628         * doc/autoconf.texi (testsuite Invocation): Likewise.
1630 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1632         * build-aux/config.guess, build-aux/config.sub,
1633         build-aux/texinfo.tex: Sync from gnulib.
1634         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
1635         Likewise.
1637 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1639         * doc/autoconf.texi (Particular Programs): Do not mention the
1640         Autoconf version in which the AC_PROG_INSTALL change was done.
1641         Suggested by Paul Eggert.
1643 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1645         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
1646         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
1647         mode, we change to the source directory, also set $ac_pwd so we
1648         do not go back to the build tree for the next config subdir.
1649         * tests/torture.at (Deep Package): Extend test to contain two
1650         config subdirs on the top level.
1652         Fix parallel `maintainer-check'.
1653         * Makefile.am (maintainer-check-tests): Depend on `all'.
1654         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
1655         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
1656         Likewise.
1657         (maintainer-check): Serialize the testsuite runs.
1659         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
1660         in feature string for --enable/--with.  Convert to underscore
1661         for variable name.
1663         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
1664         `install -c file1 file2 dir' works.
1665         * doc/autoconf.texi (Particular Programs): Document this.
1666         * NEWS: Update.
1668 2008-01-21  Eric Blake  <ebb9@byu.net>
1670         Improve documentation about default include directives.
1671         * doc/autoconf.texi (Generic Headers, Generic Declarations)
1672         (Generic Structures, Generic Types)
1673         (Generic Compiler Characteristics): Add links to
1674         AC_INCLUDES_DEFAULT.
1675         Reported by Reuben Thomas.
1677 2008-01-15  Eric Blake  <ebb9@byu.net>
1679         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
1681 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1683         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
1684         check_SCRIPTS.  Building the wrappers for `all' allows help2man
1685         to use them for the manpages.
1686         Report by Benoit Sigoure.
1688         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
1690 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1692         Fix some write failure cases in Autotest.
1693         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
1694         upon write failures for --help, --version, --list.
1695         Guard against write failures for intermediate created scripts.
1696         <at_func_create_debugging_script>: Do not make the debugging
1697         script executable if it is not complete.
1699 2007-12-12  Eric Blake  <ebb9@byu.net>
1701         Fix thinko in earlier patch - m4_join isn't defined yet.
1702         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
1703         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
1704         (m4_require): Use m4_do, not m4_join.
1706         Fix some whitespace tests on cygwin.
1707         * tests/tools.at (autom4te and whitespace in file names): Restore
1708         font-lock.  Create $TMPDIR before it might be used.
1710         Fix spurious testsuite failure with M4 1.4.11.
1711         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
1713         Optimize AC_REQUIRE.
1714         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
1715         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
1716         (m4_require): Avoid extra macro calls.
1718 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1720         * tests/torture.at (srcdir): Fix quoting.
1722         Do not pass top_srcdir to configure scripts in testsuite.
1723         * tests/autotest.at (srcdir propagation): Copy install-sh to
1724         source tree.
1725         (my only test): Drop setting of `top_srcdir'.
1726         * tests/base.at (Input/Output): Likewise.
1727         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
1728         config.guess, and config.sub to test source tree.
1729         Drop AC_CONFIG_AUX_DIR setting.
1730         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
1731         * tests/torture.at (Substitute a 2000-byte string): Drop
1732         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
1733         (Substitute a newline, datarootdir workaround): Likewise.
1734         (Define a newline): Adjust for linenumber changes in configure.ac.
1735         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
1737         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
1738         if `pwd` contains whitespace.
1740         Quote $abs_top_srcdir in tests.
1741         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
1742         * tests/tools.at (Syntax of the shell scripts): Likewise.
1744         * tests/m4sh.at (LINENO): Quote $0.
1746         Fix testsuite program wrapper for whitespace in `pwd`.
1747         The problem here is that the usual mantra is that command
1748         variables can contain arguments, thus we cannot just escape
1749         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
1750         $top_builddir/tests directory early in $PATH, so that the
1751         wrappers are found by their plain name.
1752         * tests/wrapper.as: Put $testdir early in $PATH.
1753         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
1755         Proper config.status --file/--header and $srcdir escaping.
1756         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
1757         characters in $ac_file_inputs.
1758         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
1759         accordingly.
1760         * tests/torture.at (datarootdir workaround): Adjust.
1761         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
1763         Fix Autotest for whitespace in `pwd`.
1764         * lib/autotest/general.m4 (AT_INIT)
1765         <at_func_create_debugging_script, Driver Loop>:
1766         Quote $at_group_dir.
1767         * tests/autotest.at (whitespace in absolute testdir): New test.
1769         * lib/autom4te.in: Quote @datadir@.
1771         Proper file name escaping in Autoconf programs and Perl modules.
1772         This includes escaping of characters special to the shell
1773         as well as special to Perl, e.g., leading `<' or `>'.
1774         For example, when $file starts with `>', `open ">$file"'
1775         wrongly tries to append to a different file.
1776         * bin/autoconf.as: Fix quoting for autom4te options.
1777         * lib/Autom4te/General.pm (shell_quote): New function, taken
1778         from coreutils, written by Jim Meyering.
1779         (mktmpdir): Use it.
1780         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
1781         and open_quote.
1782         * bin/autoreconf.in (parse_args): Likewise.
1783         * bin/autoscan.in (main): Likewise.
1784         * bin/autoupdate.in (main): Likewise.
1785         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
1786         * bin/ifnames.in: Likewise, XFile usage fixes.
1787         * tests/tools.at (autom4te and whitespace in file names): Extend
1788         test.  Test twice, with special characters allowed on w32, and the
1789         rest.  Test leading and trailing whitespace, for `open_quote'.
1790         (autotools and whitespace in file names): New, analogous test.
1791         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
1792         by Russ Allbery and Eric Blake.
1794         Sync from Automake.
1795         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
1796         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
1797         * lib/Autom4te/FileUtils.pm (open_quote): New function.
1798         (update_file, contents): Use it.
1800         * Makefile.am (autom4te-update): Rewrite for git.
1802 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1804         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
1806         Fix copyright years.
1807         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
1808         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
1810 2007-12-04  Eric Blake  <ebb9@byu.net>
1812         Manually resync with gnulib, since 'make cvs-update' no longer works.
1813         * build-aux/config.guess: New upstream version.
1814         * build-aux/config.sub: Likewise.
1816         When using older automake, don't downgrade build-aux/texinfo.tex.
1817         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
1818         * doc/Makefile.am (TEXINFO_TEX): Add.
1820 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
1822         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
1823         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
1824         #undef as this runs afoul of our new way of creating config.h.
1825         Problem reported by Jim Meyering in
1826         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
1828 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1830         Fix autom4te for unusual characters in input file names.
1831         * bin/autom4te.in (files_to_options): Quote active characters
1832         for the shell.
1833         * tests/tools.at (autom4te and white space in file names):
1834         New test.
1836         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
1837         Document that Tru64 awk always splits $0.
1839 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
1841         * lib/autotest/general.m4 (AT_INIT): Do not extract the
1842         `#AT_STOP_...' line at the end of each test.
1844 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1846         * lib/autotest/general.m4 (AT_INIT): For awk line number
1847         extraction script, ensure `$at_group' has a defined value
1848         even for the empty set, and properly quote its usage inside
1849         the awk script.
1851 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1853         * doc/autoconf.texi (Shell Functions): New chapter.  Document
1854         IRIX sh $0 issue in functions, move content from ...
1855         (Portable Shell): ... here.
1856         (Shell Script Compiler): Note that shell functions are not
1857         totally unportable any more.
1859 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
1860         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1862         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
1863         extracting the line numbers of the last needed test.
1865 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1867         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
1868         Fix quoting.
1870 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1872         Fix IRIX testsuite debugging failures: $0 in functions.
1873         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
1874         Do not use $0 inside a function, as IRIX sh will set that to the
1875         function name rather than the script invocation name.
1877 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
1878         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1880         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
1881         to extract test scripts.
1882         (AT_INIT): Extract and cache test script line numbers.
1884 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1886         * lib/autotest/general.m4: Revert 2007-11-15 patch and
1887         subsequent fixups; the awk -> here-document conversion trashes
1888         performance too much with AIX sh.
1890 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1892         * tests/local.at: Do not test m4, perl with AT_TESTED.
1894         Diagnose and guard against write errors dealing with config.status.
1895         The general idea is this: all write failures from `configure'
1896         writing `config.status' are indicated by $ac_write_error, which
1897         is only checked at the end.  This is safe because config.status
1898         code is not executed before the file is complete.  Other write
1899         failures, be they inside config.status, or in sub shell/awk
1900         scripts spawned from configure or config.status, typically need
1901         earlier checking, as their results are used right afterwards.
1902         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
1903         before writing config.status, check afterwards.
1904         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
1905         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
1906         Set `ac_write_error' for write failures to config.status.  Barf
1907         upon write failures to temporary files.
1908         Adjust note about closing and reopening the here-document.
1909         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
1910         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
1911         reopening the here-document.
1912         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1913         Ensure `ac_write_error' does not escape into config.status.
1914         Also, add a couple of code paths not yet exercised in the test
1915         suite: a config file with input from stdin, and a config header
1916         output to stdout.
1917         Suggestion for catching write errors by Bruno Haible.
1919 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1921         Avoid error with Tru64 awk and testsuite lines with many words.
1922         * lib/autotest/general.m4 (AT_INIT): In the awk script that
1923         reads the testsuite, set the field separator to an unusual value,
1924         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
1925         even splits the input if $i, i>0, was never accessed in the script.
1927         Revert 2007-10-17 change.
1928         * TODO: Multiline args in config files and headers mean something
1929         different and are not fixed, see
1930         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
1931         Report by Stepan Kasal.
1933         * doc/autoconf.texi (Generic Programs): Fix typo.
1935 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
1937         AC_*_TOOL does not canonicalize the prefix
1938         * doc/autoconf.texi (Generic Programs): Do not say that
1939         the *_TOOL macros canonicalize, they simply use the `host_alias'.
1941 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1943         Diagnose write errors in config.status instantiations.
1944         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
1945         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
1946         on write errors.
1947         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1948         Extend test to also check for some write error failures, using...
1949         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
1950         Report by Bruno Haible.
1952         Indentation fixups.
1953         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
1954         indentation.
1955         (_AT_CHECK): Use less indentation, to save space.
1957 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1959         Add witness macro for @top_build_prefix@ substitution.
1960         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
1961         (_AC_OUTPUT_FILE): Mention it here.
1963 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
1964         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1966         * lib/autotest/general.m4 (at_func_test): Remove.
1967         (AT_INIT): Pre-extract test groups into separate files.
1968         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
1969         Remove at-test-source files together with the $at_group_dir.
1970         * tests/autotest.at (Long test source lines): New test.
1972 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1974         Shell functions and variables may share a namespace.
1975         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
1976         limitation.
1978 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1980         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
1981         gnulib.
1983 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1985         * lib/autoconf/status.m4: Fix a couple of comment typos.
1987         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
1989 2007-11-13  Jim Meyering  <meyering@redhat.com>
1991         Clean up the rule to create "expr".
1992         * tests/Makefile.am (expr): Don't redirect directly to target.
1993         Redirect just once, not for each echo statement.
1994         Use $@, not literal "expr".
1996 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
1998         Don't worry about preprocessor when testing long long.
1999         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
2000         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
2001         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
2002         These no longer check for preprocessor flaws.
2003         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
2004         Do not check for preprocessor flaws.
2006 2007-11-13  Jim Meyering  <meyering@redhat.com>
2008         Adapt dependencies, now that a version change doesn't modify configure.ac
2009         * GNUmakefile: Remove "make clean" kludge.
2010         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
2011         configure.ac.
2012         Don't redirect directly to target.
2013         Use $@, not literal "version.m4".
2015 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2017         * doc/autoconf.texi (Making testsuite Scripts): Document
2018         ":;{" shorthand as in previous patch.
2020 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2022         * doc/autoconf.texi (Limitations of Builtins): Document problem
2023         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
2024         for the workaround.
2025         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
2026         Use ":;{" shorthand.
2027         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
2029 2007-11-12  Jim Meyering  <meyering@redhat.com>
2031         Add more non-srcdir build support.
2032         * GNUmakefile (dummy): Split a long line.
2033         Add -v option to autoreconf invocation.
2035         Remove the autoreconf-provided INSTALL, so that we regenerate it.
2036         * GNUmakefile (dummy): Remove INSTALL.
2038         Remove racy commands to build scripts in bin/ and tests/.
2039         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
2040         are guaranteed to be built, remove the rules that tried to build
2041         them.  Before, with a parallel build, these rules could lead to
2042         two processes writing tests/wrapper.in concurrently.
2044         Build in man/ only *after* building in bin/ and tests/.
2045         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
2046         in both bin/ and tests/.
2048         Accommodate non-srcdir build-from-checkout.
2049         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
2050         Use git's --git-dir=$srcdir/.git option.
2051         Add quotes, in case tarball_version_file contains shell meta-characters.
2052         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
2053         * configure.ac: Pass "." to git-version-gen.
2055         Avoid spurious test failures due to version skew.
2056         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
2058 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2060         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
2061         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
2062         Remove conftest.dSYM directory.
2063         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
2064         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
2065         Remove `conftest.*' recursively.
2066         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
2067         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
2068         Likewise.
2069         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
2070         * THANKS: Update.
2071         Report and analysis by Jeff Squyres and Peter O'Gorman.
2073 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
2075         Fix typos in variable names.
2076         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
2078 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
2080         Document that $((expression)) is not portable.
2081         * doc/autoconf.texi (Shell Substitutions): Here.
2083 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2085         Ignore configure --help* errors due to LINENO-impaired shells.
2086         * tests/torture.at (Configuring subdirectories, Deep Package):
2087         In the --help* tests in read-only trees, make `.' temporarily
2088         writable again for the `stderr' file, and ignore errors due to
2089         the attempt to write configure.lineno.
2090         Report by Patrick Welche.
2092 2007-11-10  Jim Meyering  <meyering@redhat.com>
2094         Generate package.m4 in build-dir, not srcdir.
2095         * tests/Makefile.am (package.m4): Adjust target.
2096         Don't redirect directly to $@.
2097         (CLEANFILES): Add package.m4.
2098         ($(TESTSUITE)): Depend on just-built package.m4, not the one
2099         in $(srcdir).
2100         When running $(AUTOTEST), search "." before searching $(srcdir).
2102         Avoid a race condition that would make parallel "distclean" fail.
2103         * tests/Makefile.am (distclean-generic): Replace the default,
2104         automake-provided rule with an identical one, but with an additional
2105         dependency on distclean-local.  Simply adding the dependency would
2106         cause automake not to emit the rule at all.
2107         * BUGS: Building with -jN works, now.
2109         Distribute git-version-gen.
2110         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
2111         since GNUmakefile is distributed, and requires it for dist* rules.
2113         Remove two more generated files from version control.
2114         * INSTALL: Remove generated file.
2115         * lib/autoscan/autoscan.list: Remove generated file.
2117 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2119         * GNUmakefile (PATH): Remove stray apostrophes; they become
2120         part of PATH, which isn't wanted here.
2122 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2124         New config files output variable `top_build_prefix'.
2125         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
2126         `top_build_prefix'.
2127         * doc/autoconf.texi (Preset Output Variables): Document it.
2128         * NEWS: Update.
2129         Report by Bob Friesenhahn.
2131         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
2132         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
2133         function, to parametrize arithmetic with expr vs. the shell.
2134         Use it where possible.
2135         Suggestion by Benoit Sigoure.
2137 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
2139         Adjust the documentation of autotest WRT atlocal.
2140         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
2141         when using Automake, to write a rule to produce atlocal, since it's
2142         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
2143         distributed, not atconfig.in.
2145 2007-11-04  Eric Blake  <ebb9@byu.net>
2147         Update list information.
2148         * README: Mention new autoconf-commit list.
2149         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
2151 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2153         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
2155         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
2157         * build-aux/.gitignore: Ignore mkinstalldirs.
2159         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
2161 2007-11-03  Jim Meyering  <meyering@redhat.com>
2163         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
2164         * build-aux/git-version-gen: This syncs from coreutils.
2166         Adjust the build procedure so "make check" works reliably.
2167         * README-hacking: Include an extra step between "make" and
2168         "make check" to ensure that the latter passes.
2170         Use just-built tools, when possible.
2171         * GNUmakefile (PATH): Set and export here, ...
2172         (dummy): ... rather than here.
2174 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2175         and Andreas Schwab  <schwab@suse.de>
2177         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
2178         exit status bug.
2180 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2182         * configure.ac (AC_PREREQ): Require version 2.60, for
2183         AC_PROG_SED, AC_PROG_GREP.
2185 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
2186         and Jim Meyering  <meyering@redhat.com>
2187         and Andreas Schwab <schwab@suse.de>
2188         and Eric Blake  <ebb9@byu.net>
2190         Document a bug in GNU Bash with compound commands and redirections.
2191         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
2192         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
2193         workaround.
2195 2007-11-03  Eric Blake  <ebb9@byu.net>
2197         Support m4 1.4.5 in testsuite.
2198         * tests/torture.at (Define a newline): Exclude line numbers in
2199         error message.
2200         Reported by Ralf Wildenhues.
2202 2007-11-03  Jim Meyering  <meyering@redhat.com>
2204         Remove automake-provided files from version control.
2205         * build-aux/elisp-comp: Remove file.
2206         * build-aux/install-sh: Remove file.
2207         * build-aux/missing: Remove file.
2208         * build-aux/mdate-sh: Remove file.
2209         * build-aux/.gitignore: New file.
2210         Suggestion from Ralf Wildenhues.
2212 2007-11-03  Eric Blake  <ebb9@byu.net>
2214         Adjust version comparison to account for git snapshot numbers.
2215         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
2216         component separator.
2217         * doc/autoconf.texi (Number processing Macros)
2218         <m4_version_compare>: Document this change.
2219         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
2221 2007-10-30  Bruno Haible  <bruno@clisp.org>
2223         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
2224         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
2225         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
2226         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
2227         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
2228         Suggested by Paul Eggert.
2230 2007-10-28  Jim Meyering  <meyering@redhat.com>
2232         * README-hacking: Autoconf, Automake, and Perl are required to build.
2233         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
2235 2007-10-28  Jim Meyering  <meyering@redhat.com>
2237         README-hacking: Recommend running autoreconf -vi.
2238         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
2239         so that we use just-built tools when they're available.
2240         Suggestions from Ralf Wildenhues.
2242 2007-10-28  Jim Meyering  <meyering@redhat.com>
2244         Make inter-release --version output more useful.
2246         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
2247         which indicates that it is built using the 19th change set
2248         (in _some_ repository) following the "v2.61a" tag, and that 58dd
2249         is a prefix of the commit SHA1.
2250         * build-aux/git-version-gen: New file.
2251         * configure.ac: Run it to set the version.
2252         (AM_INIT_AUTOMAKE): Don't check NEWS here.
2253         * Makefile.am (dist-hook): Arrange so that .version appears only
2254         in distribution tarballs, never in a checked-out repository.
2255         * .gitignore: Add .version here, too.  Just in case.
2256         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
2257         not configure.ac, now that the version number changes automatically.
2259         Ensure that $(VERSION) is up to date for dist-related targets.
2260         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
2261         git-version-gen doesn't match $(VERSION), but only for dist targets.
2263 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2265         Fix `Deep Package' failure with a configure script early in PATH
2266         * tests/torture.at (Deep Package): Add `.' early in PATH.
2267         Report by Jim Meyering.
2269 2007-10-27  Jim Meyering  <meyering@redhat.com>
2271         Remove all generated files from version control.
2272         * aclocal.m4: Remove.
2273         * configure: Remove.
2274         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
2275         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
2276         * README-hacking: New file: how to build from just-checked-out sources.
2278 2007-10-23  Eric Blake  <ebb9@byu.net>
2280         Improve corner case of m4_expand.
2281         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
2282         efficiently.
2283         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
2284         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
2285         documentation.
2287 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2289         * doc/make-stds.texi: Update from gnulib.
2291 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2292         and Eric Blake  <ebb9@byu.net>
2294         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
2295         problem reported by Bruno Haible in
2296         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
2298 2007-10-22  Eric Blake  <ebb9@byu.net>
2300         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
2301         preprocessor.
2303 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2305         Don't check for bug in HP-UX 11.00 cpp.
2306         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2307         Use -1ull rather than -1u, since that causes problems with gnulib; see
2308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
2310 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2312         * tests/autotest.at (Backquote command substitution)
2313         (Multiline backquote command substitution)
2314         (Parenthetical command substitution)
2315         (Multiline parenthetical command substitution): Fix typos in
2316         test names.
2318 2007-10-21  Eric Blake  <ebb9@byu.net>
2320         * configure: Regenerate.
2322 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2324         Fix config status generation with Tru64 ksh.
2325         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
2326         escaping of backslash in here-documents.
2328         Fix `Deep Package' test failure on FreeBSD.
2329         * tests/torture.at (Deep Package): Do not add `.' to $PATH
2330         unnecessarily.  Do not try running `/bin/sh configure' with a
2331         configure script to be found in $PATH, if the shell does not do
2332         this resolution.  Fixes test failure on FreeBSD.
2334         Fix config header generation with AIX awk.
2335         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
2336         script, use helper array D_is_set, as `" 0"' does not evaluate
2337         to true for AIX awk.
2339 2007-10-21  Eric Blake  <ebb9@byu.net>
2341         * tests/autotest.at (Banners): Reinstate test, with typo
2342         corrected.
2344 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2346         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
2347         <at_func_validate_ranges>: ... using this new function.
2348         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
2349         Test --list with ranges and keywords.
2350         (Banners): Remove one now-failing test.
2352 2007-10-20  Eric Blake  <ebb9@byu.net>
2354         Fix testsuite --list subset.
2355         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
2356         back to spaces, before listing subset of tests.
2357         Reported by Ralf Wildenhues.
2359 2007-10-19  Eric Blake  <ebb9@byu.net>
2361         s/parenthesis/parentheses/ where appropriate.
2362         * doc/autoconf.texi: Fix typos.
2363         * lib/m4sugar/m4sugar.m4: Likewise.
2364         Reported by Ralf Wildenhues.
2366         Document m4_expand limitation.
2367         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
2368         unbalanced parse.
2369         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
2370         (Writing Testsuites): Mention limitations inherited from
2371         m4_expand.
2373         Improve AT_BANNER handling.
2374         * lib/autotest/general.m4 (BANNERS): New named diversion.
2375         (TESTS_END): Diversion no longer used.
2376         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
2377         shell function, which prints only as needed, using an associative
2378         array of banner text from a special diversion.
2379         <PARSE_ARGS_END>: No longer need awk to find banners.
2380         <TESTS>: Banners are no longer processed by main driver loop, so
2381         we no longer need case statement.
2382         (AT_BANNER): Rewrite to populate new diversion.
2383         (AT_SETUP): Each test invokes its own banner.  No output is needed
2384         to the TESTS diversion.
2385         * doc/autoconf.texi (Writing Testsuites): Document slight
2386         semantics change.
2387         * tests/autotest.at (AT_BANNERS): Enhance test.
2388         * NEWS: Document AT_BANNER.
2390         Document and test AT_BANNER.
2391         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
2392         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
2393         (AT_CHECK_BANNERS): New test.
2395         Doc touchups.
2396         * doc/autoconf.texi (Text processing Macros) <m4_strip>
2397         <m4_text_wrap>: Clarify and fix typos.
2399 2007-10-18  Eric Blake  <ebb9@byu.net>
2401         Ignore `make dist' changelogs in testsuite.log.
2402         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
2403         directories matching AT_PACKAGE_TARNAME-*.
2405         Fix AT_TESTED, AT_KEYWORDS.
2406         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
2407         occurs in string, as duplicates may be added.
2408         (_m4_append_uniq): New helper macro.
2409         (m4_append_uniq_w): New macro.
2410         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
2411         duplication bug by using new macro.
2412         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
2413         programs with stdin redirected, so programs that don't
2414         understand --version won't try to behave interactively.
2415         * tests/autotest.at (Tested programs): Catch this bug.
2416         * tests/m4sugar.at (m4@&t@_append): Test new macro.
2417         * tests/local.at (AT_TESTED): Add m4, perl.
2418         * doc/autoconf.texi (Text processing Macros): Document
2419         m4_append_uniq_w, and update text on m4_append.
2420         * NEWS: Document the addition.
2422 2007-10-17  Eric Blake  <ebb9@byu.net>
2424         Function cleanup.
2425         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
2426         from m4 macro...
2427         (AT_INIT) <at_func_create_debugging_script>: ...to shell
2428         function.
2429         (AT_INIT): Defer function declarations until after --help,
2430         --version.  Format functions consistently, trying to fit in 80
2431         columns.
2432         (TEST_FUNCTIONS): Based on recent changes, rename...
2433         (TEST_GROUPS): ...to this.
2435         Reject FreeBSD m4.
2436         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
2437         * configure: Regenerate.
2438         Reported by Bob Friesenhahn.
2440         Test recent additions.
2441         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
2442         (m4@&t_max and m4@&t_min): New tests.
2443         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
2444         description.
2446 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2448         * TODO: multiline args in config files and headers work now.
2450         Autotest: do not use shell functions for individual tests.
2451         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
2452         extract the source test source, do not invoke it.
2453         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
2454         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
2455         expect exit status of 1.
2456         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
2458         * lib/autotest/general.m4 (at_func_test): Fix test extraction
2459         script.
2461 2007-10-17  Eric Blake  <ebb9@byu.net>
2463         Fix m4_combine for empty suffix list.
2464         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
2465         * doc/autoconf.texi (Text processing Macros): Document this.
2467         Add m4_combine, based on Libtool's lt_combine.
2468         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
2469         * doc/autoconf.texi (Text processing Macros): Document it.
2470         * NEWS: Likewise.
2472 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2474         Fix `configure --help=recursive' in unconfigured/read-only trees.
2475         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
2476         is not writable, use 'cp -p' in this case, in the hope that it
2477         will not actually be needed.  Still try removing files, in case
2478         of other write errors.
2479         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
2480         use $as_myself, not $0.
2481         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
2482         exist, try again in the the source tree.  This change assumes
2483         that the subpackage configure script is capable of running
2484         --help=recursive in the source tree.
2485         * tests/torture.at (Configuring subdirectories, Deep Package):
2486         Adjust tests to expose both issues, also try invocation as
2487         `sh configure ...' and plain `configure ...' with PATH adjusted.
2488         * NEWS, THANKS: Update.
2489         Report by Hans Ulrich Niedermann.
2491 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2493         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
2494         Problem reported by H.Merijn Brand in
2495         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
2496         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
2497         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2498         Check that preprocessor handles 64-bit ints, too.
2500 2007-10-16  Eric Blake  <ebb9@byu.net>
2502         m4_map is a looping construct.
2503         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
2505         Fix m4_map, and add some more utility macros.
2506         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
2507         (m4_echo, m4_make_list): New documented macros.
2508         (_m4_quote, _m4_shift2): New helper macros.
2509         (m4_map): Change semantics to allow calling macro without
2510         arguments.
2511         (m4_map_sep): Likewise.  Also change semantics to quote separator,
2512         to match m4_join and m4_append.
2513         (m4_version_unletter): Fix use of m4_map.
2514         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
2515         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
2516         (Text processing Macros): Mention m4_dquote as a faster
2517         alternative to joining with commas.
2518         (Looping constructs): Document m4_map, m4_map_sep.
2519         * NEWS: Mention new macros.
2521         A few more m4sugar improvements, to benefit libtool.
2522         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
2523         of expansion by avoiding extra uses of $@.
2524         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
2525         (_m4_cdr): New helper macro.
2526         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
2527         (_m4_shift3): New helper macro.
2528         (_m4_foreach): Swap argument order, and use new macro to reduce
2529         size of expansion.
2530         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
2531         count must be positive.
2533         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
2534         Reported by Ralf Wildenhues.
2536 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2538         * doc/autoconf.texi (Portable Shell): Improve description of zsh
2539         4.x function subshell bug with exit and trap.
2541 2007-10-15  Eric Blake  <ebb9@byu.net>
2543         Enhance AS_HELP_STRING.
2544         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
2545         and reduce number of expansions.
2546         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
2547         and to take indent and wrap column numbers.
2548         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
2549         * doc/autoconf.texi (Pretty Help Strings): Document details about
2550         arguments.
2551         (Text processing Macros): Minor tweaks.
2552         * NEWS: Document this change.
2554         Fix 2007-10-03 regression with AT_SETUP([a, b]).
2555         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
2556         (m4_text_box): Use it.
2557         * lib/autotest/general.m4 (AT_SETUP): Use it.
2558         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
2559         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
2560         * NEWS: Revert caveat about semantics change on comma.
2561         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
2563 2007-10-13  Eric Blake  <ebb9@byu.net>
2565         Change m4_join to match libtool's ltsugar semantics.
2566         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
2567         Ignore empty arguments, using...
2568         (_m4_join): ...this new helper.
2569         * tests/m4sugar.at (m4@&t@_join): New test.
2570         * doc/autoconf.texi (Text processing Macros): Document new
2571         semantics of m4_join.
2573         Make AC_PREREQ faster and more robust.
2574         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
2575         (m4_version_prereq): Inline constant expansions.
2576         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
2577         Rewrite in terms of [] list, not () list.
2578         (_m4_list_cmp, _m4_version_unletter): New helper macros.
2579         (m4_version_unletter): Write wrapper around new implementation to
2580         preserve old semantics.
2581         (m4_version_compare): Pass correct type of list, and avoid
2582         overhead of flattening expressions too early.
2583         (m4_do): Move to be near other quoting macros.
2584         (m4_max, m4_min): Always result in decimal output.
2585         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
2586         Move m4_do...
2587         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
2588         (Text processing Macros): Move m4_version_compare...
2589         (Number processing Macros): ...to this new node; document m4_cmp,
2590         m4_list_cmp, m4_sign, m4_max, m4_min.
2591         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
2592         up on bugs fixed by this patch.
2593         * NEWS: Document new macros.
2595 2007-10-12  Eric Blake  <ebb9@byu.net>
2597         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
2598         (Reporting Messages): Fix underfull hbox.
2600         Some more m4sugar documentation.
2601         * lib/m4sugar/m4sugar.m4: Clean up macro order.
2602         * doc/autoconf.texi (Programming in M4): Lighten the warning on
2603         using m4sugar; it is stabilizing and useful.
2604         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
2605         m4_divert, m4_undivert, __file__, __line__, __oline__.
2606         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
2607         m4_fatal, m4_location, m4_warn.
2608         (Diversion support): New node, documenting m4_divert_push,
2609         m4_divert_pop, m4_divert_text, m4_divert_once.
2610         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
2611         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
2612         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
2613         as obsolescent.
2614         (Printing Messages): Change cross-reference.
2616         Document interaction of recent m4_append change with Libtool HEAD.
2617         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
2618         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
2619         * tests/m4sugar.at (m4@&t@_append): New test.
2620         * NEWS: Document semantics change.
2621         * doc/autoconf.texi (Text processing Macros): Likewise.
2623         s/AC_VERSION/AC_AUTOCONF_VERSION/.
2624         * doc/autoconf.texi (Versioning): Change the name.
2625         * NEWS: Likewise.
2626         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
2627         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
2628         Suggested by Ralf Wildenhues.
2630         Namespace cleanup.
2631         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
2632         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
2633         autoconf namespace.
2634         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
2635         (Programming in M4sh, Macro Names): Beef up description of
2636         namespaces reserved for autoconf.
2637         * configure: Regenerate.
2639 2007-10-12  Eric Blake  <ebb9@byu.net>
2640         and Paolo Bonzini  <bonzini@gnu.org>
2642         Speed up execution of subset of testsuite.
2643         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
2644         (AT_INIT) <at_func_test>: New shell function.
2645         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
2646         (AT_INIT) <at_test_source> New variable, names file that holds
2647         current test function definition.
2648         (AT_SETUP): Start the shell function at_func_test_#, into the
2649         TEST_FUNCTIONS diversion.
2650         (AT_CLEANUP): End the shell function.  Simplify the TESTS
2651         diversion to invoke the function.
2653 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2655         * .gitignore: Ignore tags and TAGS files.
2657 2007-10-11  Eric Blake  <ebb9@byu.net>
2659         Config header generation followup.
2660         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
2661         which won't work with the preprocessor nor with the awk
2662         implementation.
2663         * tests/torture.at (Define a newline): Test raw newline detection,
2664         removing the XFAIL.
2665         * doc/autoconf.texi (Defining Symbols): Document recent change to
2666         allow backslash-newline.
2667         * THANKS: Update.
2669 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2671         * lib/autotest/general.m4: Put function braces in separate line.
2673 2007-10-10  Eric Blake  <ebb9@byu.net>
2675         Avoid some overhead from m4_defn and m4_popdef.
2676         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
2677         pass on first argument, since we are documented that way.
2678         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
2679         check where it is safe to do so.
2680         (m4_append): Likewise, and quote the separator.
2681         (m4_text_box): Likewise, and avoid regex, also be robust to
2682         expansion and quadrigraphs.
2684         Another AC_DEFINE speedup.
2685         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
2686         elision...
2687         (_AC_DEFINE_Q): ...here, and only do it once.
2688         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
2689         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
2690         introduced 2007-10-05.
2692         Whitespace cleanup.
2693         * lib/autoconf/general.m4: Use consistent indentation.
2694         * configure: Regenerate.
2696         * NEWS: Announce recent round of speed optimizations.
2698 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2700         * NEWS: Announce shell function usage in Autotest.
2702 2007-10-10  Eric Blake  <ebb9@byu.net>
2703         and Paul Eggert  <eggert@cs.ucla.edu>
2705         Reduce number of forks at startup.
2706         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
2707         sanitization.
2708         * configure: Regenerate.
2710 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2711         and Paul Eggert  <eggert@cs.ucla.edu>
2713         Use awk for config header generation.
2714         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
2715         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
2716         header machinery for use with awk and placement outside the main
2717         config.status instantiation loop.  Retain multi-line defines
2718         through backslash-newline combinations, do not split the script
2719         any more.
2720         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
2721         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
2722         needed.
2723         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
2724         from define values.
2725         * NEWS: Update.
2726         * tests/torture.at (#define header templates): Extend test by
2727         several more cases: white space before and after `#', macros
2728         with parameters in config.hin and as defines, multi-line macro
2729         values.
2730         (Torturing config.status): Use a define value twice the length
2731         in order to exercise the awk literal string limit.
2732         (Substitute and define special characters): Also try special
2733         delimiter, to exercise the special-case code.
2734         Suggestion by Eric Lemings.
2736 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2738         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
2740 2007-10-09  Eric Blake  <ebb9@byu.net>
2742         Improve header of bin/autoconf.
2743         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
2744         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
2745         from M4sh.
2746         * bin/autoconf.as: Put copyright up front in generated file.
2748         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
2750 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2752         * doc/install.texi (Basic Installation): Document `uninstall'.
2753         * INSTALL: Regenerate.
2754         Suggestion by Roberto Bagnara.
2756 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2758         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
2760         Adjust doc. to match latest gnulib.
2761         * build-aux/texinfo.tex: Sync from gnulib.
2762         * doc/standards.texi: Likewise.
2763         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
2764         Documentation License" and remove the subsection.  This simplifies
2765         the manual a bit and is more like what other GNU projects do
2766         nowadays.
2768 2007-10-08  Eric Blake  <ebb9@byu.net>
2770         Use recent changes.
2771         * configure: Regenerate.
2773         Fix regression in m4_text_wrap from 2007-10-05.
2774         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
2775         (m4_sign): Sort.
2776         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
2777         m4_format.
2778         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
2779         * tests/autotest.at (Long test title, Longer test title): Test
2780         this fix, beyond what AS_HELP_STRING already tests.
2782         Avoid m4 warnings on bad m4_format usage.
2783         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
2784         evaulates to 0.
2785         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
2786         enough arguments are provided.
2788 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
2790         * doc/autoconf.texi (Shell portability): Document shell function
2791         portability.
2793 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
2795         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
2796         at_func_check_skip, at_func_check_status, at_func_filter_trace,
2797         at_func_log_failure shell functions.  Use test -s to avoid
2798         useless diff invocations.
2799         (at_func_check_newline): Renamed from at_check_newline.
2800         (AT_SETUP): Define AT_captured_files to empty.
2801         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
2802         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
2803         the shell functions.
2805 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2807         Don't assume "." is writeable, for commands like "autoconf --version".
2808         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
2809         different heuristic instead, one that doesn't rely on creating
2810         files.
2812         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
2813         correctly.
2815 2007-10-05  Jim Meyering  <meyering@redhat.com>
2817         Avoid makeinfo warnings.
2818         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
2819         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
2821 2007-10-05  Eric Blake  <ebb9@byu.net>
2823         Resolve Python issue 1676135 regarding configure directory args.
2824         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
2825         slashes from directory arguments.
2826         * tests/base.at (configure directories): New test.
2827         * doc/autoconf.texi (Installation Directory Variables): Document
2828         the change.
2829         * NEWS: Likewise.
2830         * THANKS: Update.
2831         Reported by Björn Lindqvist.
2833         Provide better short-circuiting operation.
2834         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
2835         (m4_text_wrap): Use it.  Also avoid useless m4_for.
2836         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
2837         new macro.
2838         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
2839         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
2840         to avoid regexps.
2841         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
2842         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
2843         (Conditional constructs): ...here, to new section.  Also document
2844         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
2845         m4_bpatsubsts, and m4_default.
2846         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
2847         m4_do.
2849 2007-10-04  Eric Blake  <ebb9@byu.net>
2851         Fix recent testsuite failures.
2852         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
2853         that must not be re-expanded after AS_ESCAPE.
2854         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
2855         checking if it is an identifier.
2857         Whitespace cleanup.
2858         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
2859         leading whitespace, as it caused space-tab in testsuite.
2860         (AT_INIT): Avoid trailing newlines in testsuite.
2862         One more round of m4_foreach_w speedups.
2863         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
2864         is present.
2865         (_m4_split): Avoid useless expansions inside definition.  Move
2866         argument defaulting...
2867         (m4_split): ...here.  Change alternate quote to something less
2868         likely to appear in $1.  Also, special case space as regexp...
2869         (m4_foreach_w): ...to avoid regexp on single-term list.
2870         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
2871         useless expansions inside definition.
2872         * tests/m4sugar.at (m4@&t@_split): Add tests.
2874 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
2876         * general.m4 (AT_INIT): Add at_check_newline function.
2877         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
2878         (_AT_CHECK): Don't use at_trace_this.
2880 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
2882         Fix previous commit.
2883         * lib/autotest/general.m4 (AT_LINE): Fix regex.
2885 2007-10-04  Eric Blake  <ebb9@byu.net>
2887         Speed up building testsuites.
2888         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
2889         changed since last time.  Use simpler regex.
2891 2007-10-03  Eric Blake  <ebb9@byu.net>
2893         Optimize checking for identifiers.
2894         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
2895         macros, more efficient than regex on m4_re_word.
2896         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
2897         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
2898         now use @&t@.
2899         * configure: Regenerate.
2901         Remove some XFAILs, and make AT_SETUP output line up.
2902         * lib/autotest/general.m4 (AT_SETUP): Only expand description
2903         once; thereafter, use its expansion, properly quoted.
2904         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
2905         expansion with arguments, and check for aligned output.
2906         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
2907         Add a test for macros with parameters.
2908         * NEWS: Document the semantics change.
2909         * tests/base.at: Fix test titles containing commas.
2910         * tests/compile.at: Likewise.
2911         * tests/tools.at: Likewise.
2912         * tests/torture.at: Likewise.
2914         Another round of regex avoidance.
2915         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
2916         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
2917         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
2918         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
2919         character ranges useful in m4_translit.
2920         (m4_toupper, m4_tolower): Optimize the constant portion of
2921         definition.
2922         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
2923         creates $, and reject [] thanks to AS_TR_SH rewrite.
2924         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
2925         (AS_ESCAPE): Factor...
2926         (_AS_ESCAPE): ...into new macro, with second argument required.
2927         Avoid regex in common case.
2928         (_AS_QUOTE): Use new macro.
2930         Whitespace cleanup.
2931         * lib/autoconf/types.m4: Avoid space-tab.
2932         * lib/m4sugar/m4sh.m4: Use tab consistently.
2934 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2936         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
2937         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
2938         should remove m4_shiftn entirely?
2939         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
2940         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
2941         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
2942         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
2943         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
2945 2007-10-03  Eric Blake  <ebb9@byu.net>
2947         Comment touchups.
2948         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
2950 2007-10-02  Eric Blake  <ebb9@byu.net>
2952         Optimize appending text.
2953         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
2954         expressions.
2956         Optimize recursion.
2957         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
2958         lot of hot spots; optimize it for 2 and 3 shifts.
2960         Optimize AC_PREREQ and other m4sugar numerics.
2961         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
2962         (m4_cmp): Compare arbitrary expressions, without overflow.
2963         (m4_version_unletter): Also recognize capital letters.
2964         (m4_version_compare): Avoid regex when splitting version number
2965         string.
2967 2007-10-01  Eric Blake  <ebb9@byu.net>
2969         Once again, reject IRIX m4.
2970         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
2971         implementations that ignore --trace.
2972         * configure: Regenerate.
2973         Reported by Ralf Wildenhues.
2975         Fix regression in AC_DEFINE([macro(with_arg)]).
2976         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
2977         quotes with a careless m4_substr.
2979 2007-09-30  Eric Blake  <ebb9@byu.net>
2981         Allow nameless iteration.
2982         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
2983         indirectly.
2984         * tests/m4sugar.at (myvar): Test this.
2986 2007-09-29  Eric Blake  <ebb9@byu.net>
2988         Speed optimization: avoid m4 regex when other algorithms work.
2989         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
2990         (_AS_QUOTE_IFELSE): Likewise.
2991         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
2992         (m4_bpatsubsts): Split...
2993         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
2994         regex.
2995         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
2996         (m4_qlen): Optimize on short strings, to avoid regex.
2997         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
2998         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
2999         (AC_DEFINE_TRACE): Likewise.
3001 2007-09-28  Eric Blake  <ebb9@byu.net>
3003         Oops - my earlier 'optimization' caused a regression.
3004         * tests/local.at (AT_CHECK_M4): Fix typo.
3006 2007-09-27  Eric Blake  <ebb9@byu.net>
3007         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3009         Catch even more common AC_CACHE_VAL mistakes.
3010         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
3011         lacks '_cv_', or if AC_SUBST appears in body.
3012         * tests/base.at (AC_CACHE_CHECK): Test this change.
3014 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
3015         and Eric Blake  <ebb9@byu.net>
3017         Autotest no longer caters to Ultrix redirection limitation.
3018         * doc/autoconf.texi (Writing testsuite.at): Remove the
3019         limitation that the first parameter of AT_CHECK cannot
3020         contain redirection.
3021         (File Descriptors): Mention that Ultrix limitation is no longer a
3022         show-stopper in modern code.
3023         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
3024         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
3025         * lib/autotest/general.m4 (AT_CHECK): Update comment.
3027 2007-09-27  Eric Blake  <ebb9@byu.net>
3029         Squelch changeword in m4sugar.
3030         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
3031         feature of m4 1.4.x.
3033         Configure whitespace touchups.
3034         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
3035         installation directories, and avoid TAB, in configure --help
3036         output.
3037         * configure.ac: Avoid extra trailing newline.
3038         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
3039         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
3040         config.status --help output.
3041         * configure: Regenerate.
3043         Fix underquotation in AS_HELP_STRING.
3044         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
3045         argument.
3046         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
3047         first-prefix argument.
3048         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
3049         * NEWS: Document AS_HELP_STRING fix.
3051         Autotest formatting touchups.
3052         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
3053         output.
3054         (PATH): Simplify computation of new PATH.
3056 2007-09-26  Eric Blake  <ebb9@byu.net>
3058         Fix testsuite breakage in last patch.
3059         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
3060         font-lock fix.
3061         * tests/torture.at (@%:@define header templates): Rename, so that
3062         output lines up correctly.
3064         More font-lock happiness.
3065         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
3066         confusion.
3068 2007-09-25  Eric Blake  <ebb9@byu.net>
3070         Typo fixes.
3071         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
3072         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
3074         Improve documentation of M4 parameter expansion.
3075         * doc/autoconf.texi (Quoting and Parameters): New section.
3076         (Quotation and Nested Macros): Improve wording.
3078         Improve C99 detection.
3079         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
3080         avoid deprecation warning with icc.
3081         * THANKS: Update.
3082         Reported by Ted Bullock.
3084 2007-09-24  Jim Meyering  <jim@meyering.net>
3086         Whenever possible, use the vertical bar as sed delimiter.
3087         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
3088         Use "|", not "!".
3089         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
3090         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
3091         * tests/mktests.sh (as_me): Likewise.
3092         * lib/freeze.mk (check-forbidden-patterns): Likewise.
3093         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
3094         * configure: Regenerate.
3095         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
3096         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
3097         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
3098         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
3100 2007-09-22  Jim Meyering  <jim@meyering.net>
3102         Add a comment.
3103         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
3104         2004-05-31 change also with a comment in the code.
3106 2007-09-20  Eric Blake  <ebb9@byu.net>
3108         More contribution housekeeping.
3109         * THANKS: Sort.
3110         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
3112         Ignore additional files, when copying cross-repository.
3113         * .gitignore: Ignore CVS directories, emacs edits.
3114         * .cvsignore: Ignore .git directory, emacs edits.
3116 2007-09-15  Eric Blake  <ebb9@byu.net>
3118         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
3119         * doc/autoconf.texi (Text processing Macros): Remove mention of
3120         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
3121         once again.
3122         (Notices): Move AC_PREREQ...
3123         (Versioning): ...to this new section, alongside the new AC_VERSION
3124         alias for the undocumented m4_PACKAGE_VERSION.
3125         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
3126         * lib/autoconf/general.m4 (AC_VERSION): New macro.
3127         * NEWS: Update to match this rename.
3128         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
3129         m4_PACKAGE_VERSION.
3130         * tests/tools.at (autoconf: AC_VERSION): New test.
3131         Suggested by Paolo Bonzini and Benoit Sigoure.
3133 2007-09-14  Eric Blake  <ebb9@byu.net>
3135         Prepare for conversion to git.
3136         * doc/.cvsignore: Avoid multiple listings on one line.
3137         * bin/.cvsignore: Likewise.
3138         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
3139         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
3140         lib/autoscan/.gitignore, lib/autotest/.gitignore,
3141         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
3142         tests/.gitignore: New files, identical to .cvsignore counterpart.
3144 2007-09-13  Eric Blake  <ebb9@byu.net>
3146         Editing eye-candy.
3147         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
3148         font-lock balance.
3149         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
3150         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
3151         * configure: Regenerate.
3153         Clean up 'make dist' of previous patch.
3154         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
3155         (CLEANFILES): Don't clean the stamp, since we distribute the
3156         generated files pre-built.
3157         (MAINTAINERCLEANFILES): Clean it here instead.
3158         * tests/Makefile.in: Regenerate.
3160         Avoid parallel 'make check' issue.
3161         * tests/Makefile.am (mktests.stamp): New witness.
3162         (TESTSUITE_GENERATED_AT): Use it.
3163         (CLEANFILES): Clean the witness.
3164         * tests/.cvsignore (mktests.stamp): Ignore the witness.
3166         Document another awk pitfall.
3167         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
3168         limitation of field variables in END.
3169         Reported by Gary V. Vaughan.
3171         * AUTHORS: Add missing entries.
3173 2007-09-12  Eric Blake  <ebb9@byu.net>
3175         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
3176         * doc/autoconf.texi (Text processing Macros): Document
3177         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
3178         (Redefined M4 Macros): Document m4_ifndef.
3179         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
3180         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
3181         used it while it was undocumented.
3182         * NEWS: Document this change.
3183         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
3184         * lib/m4sugar/Makefile.in: Regenerate.
3185         * tests/m4sugar.at (m4@&t@_version_compare): New test.
3186         Reported by Bruno Haible.
3188         * doc/autoconf.texi (Generic Compiler Characteristics): Add
3189         missing index entries.
3191 2007-09-11  Eric Blake  <ebb9@byu.net>
3193         Centralize all system extensions checks.
3194         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
3195         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
3196         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
3197         AC_USE_SYSTEM_EXTENSIONS.
3198         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
3199         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
3200         * doc/autoconf.texi (Posix Variants): Reword this section,
3201         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
3202         rather than a series of system-specific checks.
3203         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
3204         AC_MINIX.
3205         * NEWS: Document this change.
3206         * THANKS: Update.
3207         Reported by Martin Koeppe.
3209 2007-09-08  Eric Blake  <ebb9@byu.net>
3211         Clean up obsolete macros references.
3212         * doc/autoconf.texi: Add anchors to support better
3213         cross-referencing.
3214         (Particular Structures): Move obsolete macros descriptions...
3215         (External Software): Likewise.
3216         (Package Options): Likewise.
3217         (Obsolete Macros): ...to here.  Add cross-references to
3218         documentation on replacements.
3219         * NEWS: Mention that these macros have been obsolete for a while
3220         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
3222         Improve M4 path searching during configure.
3223         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
3224         macro.
3225         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
3226         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
3227         parameter, and kill side effects.
3228         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
3229         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
3230         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
3231         is found.
3232         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
3233         allow bootstrapping with autoconf 2.61.
3234         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
3235         * configure: Regenerate.
3236         * doc/autoconf.texi (Generic Programs): Document new macro.
3237         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
3238         macro.
3239         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
3240         * NEWS: Document the change.
3241         * THANKS: Update.
3242         Reported by Hans Aberg.
3244         * doc/autoconf.texi (Generic Programs): Fix typo.
3246 2007-09-06  Eric Blake  <ebb9@byu.net>
3248         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
3249         :, and make it clear that optional @var{path} defaults to $PATH.
3250         (Erlang Compiler and Interpreter): Likewise.
3252         Texinfo cleanup.
3253         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
3254         Reword some paragraphs to avoid overfull, underfull hbox
3255         warnings.  Add index entries to avoid overfull vbox warnings.
3257 2007-09-05  Eric Blake  <ebb9@byu.net>
3259         * NEWS: Adjust wording for AC_CONFIG_LINKS.
3260         Reported by Ralf Wildenhues.
3262 2007-09-03  Eric Blake  <ebb9@byu.net>
3264         * NEWS: Document fixes that have been applied since 2.61a.
3266         Housekeeping.
3267         * THANKS: Update, and convert to UTF-8 encoding.
3268         * AUTHORS: Likewise.
3270 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3272         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
3273         names beginning with `-' again.
3275 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
3276             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3278         * doc/autoconf.texi (Defining Directories): Mention
3279         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
3281 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3283         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
3284         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
3285         * tests/base.at (configure arguments): New test.
3286         * THANKS: Update.
3287         Report by Olaf Lenz.
3289         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
3290         arguments in comment.
3291         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
3293 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
3295         * doc/autoconf.texi (File System Conventions): Index the proper
3296         way of detecting absolute file names.
3298 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3300         * build-aux/config.guess, build-aux/config.sub,
3301         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
3302         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
3303         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
3304         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
3305         sectioning change in fdl.texi.
3307         * bin/autoconf.as: Update --version output to match current GCS.
3308         * bin/autoheader.in: Likewise.
3309         * bin/autom4te.in: Likewise.
3310         * bin/autoreconf.in: Likewise.
3311         * bin/autoscan.in: Likewise.
3312         * bin/autoupdate.in: Likewise.
3313         * bin/ifnames.in: Likewise.
3315 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3317         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
3318         file to itself if source and build trees coincide.
3319         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
3320         test.
3321         Report by Sebastian Freundt <hroptatyr@gna.org>.
3323 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3325         Reword the copyright notices to match what's suggested in GPLv3.
3326         In ChangeLog files, use more-permissive notice rather than GPL, as
3327         per usual GNU standards these days.
3329 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
3331         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
3332         limitation reported by Leo Moisio in
3333         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
3335 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3337         * COPYING: Update to GPLv3.  All uses changed.
3339 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3340         and Paul Eggert  <eggert@cs.ucla.edu>
3342         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
3343         fails on AIX 5.3.
3345 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
3347         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
3348         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
3349         `srcdir' as subdirectory of `builddir'.
3351 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
3353         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
3354         * tests/autotest.at (srcdir propagation): New test.
3355         * THANKS: Update.
3356         Reported by Mike Frysinger.
3358 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3360         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
3361         Problem reported by Fred Kreek in
3362         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
3363         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
3364         (Macro Names, Defining Directories): Don't mention PATH as a name
3365         for a fully qualified file name, as this usage violates the GNU
3366         coding standards and we shouldn't recommend it.
3368         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
3369         string and then assume shell builtins like "test" will work.
3371 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
3373         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
3374         not a valid shell variable name.
3375         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
3376         * tests/torture.at (AC_SUBST: variable name validation): New test.
3377         Reported by Andreas Schwab.
3379 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
3381         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
3382         works with both C and C++.
3384 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
3385             Bruno Haible  <bruno@clisp.org>
3387         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
3388         brand tests.
3390 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3392         * doc/autoconf.texi (Particular Types): Give example of use for
3393         AC_TYPE_INT8_T etc.
3395 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
3397         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
3399 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3401         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
3402         define HAVE_INT8_T, and likewise for similar macros.
3403         Problem reported by Patrick Welche in
3404         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
3406 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
3408         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
3410 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3412         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
3413         choice, since that's what we do with --enable-largefile etc.
3414         Redo indenting and assignments to simplify things a bit, and make
3415         the parens work with Emacs.
3417         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
3418         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
3419         Haible.
3421 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
3423         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
3424         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
3426 2007-05-21  Bruno Haible  <bruno@clisp.org>
3428         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
3429         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
3430         * doc/autoconf.texi (Generic Compiler Characteristics): Move
3431         renamed AC_OPENMP documentation here, from "C compiler".
3432         Mention C++ and Fortran.
3434 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3436         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
3438 2007-05-21  Bruno Haible  <bruno@clisp.org>
3440         * NEWS: Mention AC_C_OPENMP.
3441         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
3442         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
3443         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
3444         macro in the Autoconf macro archive.
3446 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3448         * bin/autom4te.in: Fix typos.
3450 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
3452         * bin/autoconf.as: Handle `-' just like other input files.
3453         * bin/autom4te.in (parse_args): Pass `-' through.
3454         (handle_output): Skip the forbidden token search if we read from stdin.
3455         (up_to_date): Always treat stdin as out of date.
3456         * tests/tools.at (autoconf: input from stdin): New test.
3457         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
3459 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
3461         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
3462         parameters for AT_CLEANUP.
3463         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
3465 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3467         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
3468         * doc/autoconf.texi (C Compiler): Likewise.
3470 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
3472         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
3474 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
3476         * doc/autoconf.texi: Direntry for "autoconf Invocation"
3477         renamed to "autoconf-invocation"
3479         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
3480         in the examples should not use the internal "ac_" prefix.
3482 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
3484         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
3485         * doc/autoconf.texi ($@, case): Document Zsh limitations.
3487 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
3489         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
3490         Reorganize the comments before and in the macro.
3492 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
3494         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
3495         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
3496         section titles and other comments; no code change.
3498 2007-05-01  Kevin Ryde  <user42@zip.com.au>
3500         * doc/autoconf.texi (Particular Programs): Typo
3501         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
3503 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
3505         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
3506         'configure' will fail if the shell lacks proper support for shell
3507         functions.  Suggested by RMS.
3509 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3511         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
3512         about Solaris /bin/printf '%010000x' 123.  Problem reported by
3513         Bruno Haible.
3515 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
3517         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
3518         for a.* when searching for executables, as this prevents users
3519         from having files like a.c.  Problem reported by Ralf Wildenhues in:
3520         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
3521         This fixes a problem introduced on 2000-12-19.
3523 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3525         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
3526         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
3527         via Bruno Haible.
3529 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3531         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
3532         AC_CHECK_TYPE, AC_CHECK_TYPES.
3533         * doc/autoconf.texi (Generic types): C types must be type-names
3534         (the C terminology), not type-ids (the C++ term).  C++ types
3535         must not be anonymous.
3536         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
3537         for C++; this drops support for anonymous struct and union types,
3538         which were problematic anyway.
3539         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
3540         for C++.
3542 2007-04-12  Jim Meyering  <jim@meyering.net>
3544         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
3546 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3548         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
3549         to prefer a link source from the build tree, if it exists.
3550         Report by Pallav Gupta <pallavgupta@gmail.com>.
3552 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3554         * doc/autoconf.texi (Generic Types): Document the restrictions
3555         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
3556         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
3557         with objects too.  Document the restrictions on its use.
3558         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
3559         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
3560         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
3561         works but the latter doesn't, then it's a valid type.
3562         This lets people use function types and so forth.
3563         For C++ there doesn't seem to be a simple solution, so leave it alone.
3564         (AC_CHECK_SIZEOF): Allow argument to be a variable.
3565         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
3566         AC_CHECK_TYPE; that wasn't documented or necessary.
3568 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
3570         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
3571         when cross-compiling.
3573 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
3575         * doc/autoconf.texi (External Software): Fix a typo in the
3576         previous change.
3578 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3580         * doc/autoconf.texi (External Software, Package Options):
3581         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
3583 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3585         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
3586         obsolescent.  Suggested by Bruno Haible.
3587         * NEWS: Document this.
3589 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
3591         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
3592         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
3593         default still has the problem.  Problem reported by Bruce Korb.
3595 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
3596         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3598         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
3599         comment in the generated config.status.
3601 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
3603         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
3605 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3607         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
3608         command and case statements to make it a bit clearer and describe
3609         more pitfalls.
3611 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3613         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
3614         checks for unsigned long long int.
3616 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3618         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
3619         nonstandard grep R.E. escape sequences.
3621 2007-03-17  Jim Meyering  <jim@meyering.net>
3623         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
3624         (Limitations of Usual Tools): Also list \< and \>, and mention that
3625         HP-UX's grep, like the one from Solaris, does not support that syntax.
3627 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
3629         * doc/autoconf.texi (Specifying Names): `--host' does not
3630         change the build type.
3632 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
3634         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
3635         suggests AC_CONFIG_HEADERS.
3636         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
3637         AC_CONFIG_HEADERS.  Problem reported by
3638         Peter O'Gorman.
3640 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3642         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
3643         Problem reported by Paolo Bonzini in:
3644         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
3645         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
3646         universal binaries.  Problem reported by Elias Pipping.
3648 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
3650         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
3651         * doc/autoconf.texi (C Compiler): Document this.  There is a new
3652         extra argument ACTION-IF-UNIVERSAL.
3653         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
3654         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
3655         Reindent for sanity's sake.
3657 2007-02-24  Eric Blake  <ebb9@byu.net>
3659         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
3660         copyright.
3661         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
3662         * lib/autotest/general.m4 (AT_INIT): Likewise.
3663         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
3665 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3667         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
3668         status of rm so we know when it failed.
3669         If cleaning of test dir failed before running the test, warn.
3670         Output the line separator in verbose mode before the warning
3671         to make clear the warning belongs to the following test.
3673 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3675         * doc/autoconf.texi (Parentheses): Mention problem with (( in
3676         shells.
3678 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3679         and Paul Eggert  <eggert@cs.ucla.edu>
3681         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
3682         errors introduced in last change.
3684 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3686         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
3687         an actual carriage return.  Use "ac_cr" to contain the actual
3688         carriage return.
3689         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
3690         with traditional Awk and begin.
3691         * tests/torture.at (Limitations of Builtins): Document the problem
3692         with Bash 2.03 printf.
3693         (Substitute and define special characters):
3694         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
3696 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
3698         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
3699         input from /dev/null in awk test, so even Solaris /usr/bin/awk
3700         will not wait for input with a script containing only a BEGIN
3701         rule.
3703 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
3705         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
3706         requirements.
3707         * README: Likewise.
3709 2007-02-02  Eric Blake  <ebb9@byu.net>
3711         * NEWS: Update copyright.
3713         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
3714         broken.
3715         * configure.ac: Update error message.
3716         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
3717         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
3718         by Stepan Kasal:
3719         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
3721 2007-01-31  Eric Blake  <ebb9@byu.net>
3723         * THANKS (people): Update.
3725 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3727         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
3728         latest version.
3729         (Shell Substitutions): Note problems with @{var:=value} etc.
3730         Add a new section for problems with @{#var} etc.  Problem noted
3731         by Ralf Wildenhues.  See:
3732         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
3734 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3736         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
3737         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
3738         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
3739         substitution will still be done by the special code.
3740         Report by Jim Meyering.
3742         * doc/autoconf.texi (File System Conventions): Mention that
3743         $PATH_SEPARATOR is for the build system only.
3744         Report by Keith Marshall.
3746 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3748         * doc/autoconf.texi (Setting Output Variables): Mention that
3749         all non-NUL characters are ok in substituted values.
3750         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
3751         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
3752         carriage return for $AWK, needed for BSD awk.
3753         * tests/torture.at (Substitute and define special characters):
3754         Test all 8 bit non-NUL characters.
3755         Report against Automake by Patrick Welche.
3757 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
3759         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
3761 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3763         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
3764         early on the reader side, drop stderr of the input to avoid
3765         `broken pipe' error output; this may happen even with shell
3766         builtin `echo' of some bash versions.  Reports by Ian Macdonald
3767         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
3769 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3771         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
3772         separate items of `ac_user_opts', to avoid long lines.
3773         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
3775 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3777         * doc/autoconf.texi: Fix some typos.
3779 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3781         Fix some wording problems noted by Paolo Bonzini in:
3782         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
3783         * doc/autoconf.texi (Signed Overflow Examples): Give more
3784         discussion about the allow_superuser_privileges example,
3785         and change it a bit to make things clearer.
3786         (Optimization and Wraparound): Clarify whether the compiler
3787         will generate an infinite loop for the example derived from
3788         Autoconf's mktime test.
3789         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
3790         Also, clarify unsigned multiplication overflow.
3792 2007-01-04  Eric Blake  <ebb9@byu.net>
3794         * bin/Makefile.am (RELEASE_YEAR): New macro.
3795         (edit): Use it to supply correct copyright year to scripts.
3796         * bin/autoconf.as (version): Use it.
3797         * bin/autoheader.in ($version): Likewise.
3798         * bin/autom4te.in ($version): Likewise.
3799         * bin/autoreconf.in ($version): Likewise.
3800         * bin/autoscan.in ($version): Likewise.
3801         * bin/autoupdate.in ($version): Likewise.
3802         * bin/ifnames.in ($version): Likewise.
3804 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3806         * doc/autoconf.texi (Integer Overflow): Revised based on today's
3807         feedback.  The most important changes document what happens when
3808         you convert an out-of-range value to a signed integer type, and
3809         say that (sum < a) != (b < 0) reliably detects overflow when sum =
3810         a + b.
3812         * doc/autoconf.texi (Integer Overflow): Greatly expand and
3813         rewrite, taking notions from the recent discussion on the gcc and
3814         autoconf mailing lists; please see
3815         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
3816         and follow the many links.
3817         (Integer Overflow Basics, Signed Overflow Examples):
3818         (Optimization and Wraparound, Signed Overflow Advice):
3819         (Signed Integer Division): New sections.
3821 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
3823         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
3824         preprocessor macro arguments in traced name.
3825         * doc/autoconf.texi (Defining symbols): Document longstanding
3826         support for AC_DEFINE-ing macros with arguments, and document
3827         behavior when the same variable has multiple AC_DEFINEs.
3828         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
3829         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
3830         macros directly, giving much shorter and simpler code.
3832 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
3834         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
3835         space before "$ac_configure_args" to prevent a 'config.status
3836         --recheck' failure if ac_configure_args doesn't contain a leading
3837         space.  This works around a problem with the XEmacs configure.ac,
3838         which uses the (undocumented) ac_configure_args variable
3839         inconsistently with Autoconf.
3841 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3843         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
3844         Include <limits.h>, and use its INT_MAX to rewrite the
3845         j loop so that it does not overflow 'int'.  Problem reported by
3846         Ralf Wildenhues in
3847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
3848         Play it safe by shifting left by 1 rather than multiplying by 2,
3849         as GCC is less likely to optimize this away when the value
3850         is signed (when it assumes overflow leads to undefined behavior).
3851         Also, don't assume time_t uses two's complement.
3853 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3855         * tests/torture.at (Substitute a 2000-byte string): Avoid using
3856         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
3857         dumps core on it.  Report by Tim Rice.
3859 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
3861         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
3862         --disable-option-checking to --help output even when
3863         AC_PRESERVE_HELP_ORDER is not used.
3864         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
3865         --with argument, rather than argument with [-.] replaced by
3866         underscores.
3867         * NEWS: Fix typo in previous change; the news was in the
3868         wrong section.
3870 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3872         * NEWS: Warnings are now generated by default for unknown
3873         --enable-* and --with-* options.
3874         * doc/autoconf.texi (Option Checking): Renamed from
3875         (Configure Option Checking).  Tighten up the wording a bit.
3876         (External Software, Package Options): Cross-reference to Option
3877         Checking, and use this to shorten our section.
3878         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
3879         "$x" to test "x$foo" != x.
3880         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
3881         Don't warn if $enable_option_checking is "no".
3882         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
3883         ac_unrecognized_opts to the empty string.
3884         Don't echo the unrecognized opts, as this might mishandle
3885         backslashes or leading -.
3886         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
3887         usage next to the other --disable-FEATURE options in the
3888         help string.
3890 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
3892         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
3893         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
3894         Print warning for unrecognized --with and --enable options
3895         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
3896         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
3897         Disable option checking when subdirs are configured.
3898         (AC_OUTPUT): If warnings are enabled, print warning about
3899         unrecognized --with and --enable options at the end of
3900         the configure output (as well as at the beginning).
3901         * doc/autoconf.texi (Option Checking): New node.
3902         Document new option warning functionality.
3904 2006-12-16  Eric Blake  <ebb9@byu.net>
3906         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
3907         * NEWS: Start news for current version.
3909 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3911         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
3912         Define HAVE_GETMNTENT to 1, not to the empty string.
3913         Problem originally reported by Jochen Friedrich in
3914         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
3916         This change prompted by a problem report by Andrey Simonenko in
3917         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
3918         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
3919         object-like macros only, in the traditional portable character
3920         set.
3921         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
3922         Warn about attempts to define things that are not identifiers.
3923         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
3924         awful hack that AC_DEFINEd macro names containing parentheses.
3926 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3928         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
3929         too drastic, even if Texinfo in theory requires it for info mode.
3931         (config.status Invocation): Renamed back from Recreating a
3932         Configuration).
3933         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
3934         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
3936 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
3938         * NEWS: Version 2.61a.
3940 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
3941         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3943         * NEWS: Document changes with echo and printf, and the lack
3944         of limits on the total size of multi-line values of substituted
3945         variables, and the AC_FUNC_FSEEKO fix.
3947 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
3949         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
3950         Writing configure.ac.
3951         (Autoconf Input Layout): Renamed from configure.ac Layout.
3952         (Recreating a Configuration): Renamed from config.status Invocation.
3953         (Obsolete Recreation): Renamed from Obsolete config.status Use.
3954         (acconfig Header): Renamed from acconfig.h.
3955         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
3956         (Writing Testsuites): Renamed from Writing testsuite.at.
3957         (Autom4te Cache): Renamed from autom4te.cache.
3959         * BUGS: Remove mention of VPATH problem, since it's now documented
3960         not to be a bug in the Autoconf build procedure itself, but rather
3961         a problem with the proprietary `make' programs.
3963         * doc/autoconf.texi (Build Directories): Add a cross reference
3964         to VPATH and Make.
3966         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
3967         * doc/standards.texi: Sync from gnulib.
3969         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
3970         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
3971         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
3972         generated automatically.
3974 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
3976         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
3977         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
3978         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
3980 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3982         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
3983         `CEOF$ac_eof' special marker, the awk script cannot contain a
3984         line matching `^CEOF', so this is not needed any more.
3985         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
3986         special marker in the test.
3988 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
3990         * tests/tools.at (autom4te preselections): Use `find -newer';
3991         remove one of the sleeps.
3993         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
3994         more readable, using ...
3995         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
3997         * doc/autoconf.texi (autoheader Invocation): Do not double-
3998         quote the parameter of `AH_BOTTOM' in the example.
4000 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
4002         * doc/autoconf.texi (Configuration Headers): Remove the
4003         example with multiple input files.
4004         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
4005         multiple input files.
4007 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4009         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
4010         creating the awk substitution script, handle one input line at a
4011         time, so that the maximum length of a substituted (multi-line)
4012         value is not limited by the size of the sed pattern space.
4013         The trade-off is a slightly repetitive sed script.
4014         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
4015         can only have up to 7 characters, due to Solaris 10 /bin/sed.
4016         * tests/torture.at (Substitute a 2000-byte string): Increase the
4017         test with several long lines, they should not be caught by sed
4018         limits any more.
4020         * tests/tools.at (autom4te preselections): New test, to flag
4021         entries missing from autom4te.cfg.
4022         Report by David Byron <dbyron@hheld.com>.
4024         * tests/torture.at (Substitute a 2000-byte string): Actually use
4025         AC_PROG_AWK, so the last change works as intended.
4026         (Substitute and define special characters): Likewise.
4027         (Substitute a newline): Likewise.
4029         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
4030         instead of `awk' consistently.
4031         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
4032         * tests/torture.at (Torturing config.status): Test both the
4033         result of AC_PROG_AWK and plain awk.
4034         (Substitute a 2000-byte string): Likewise.
4035         (Substitute and define special characters): Likewise.
4036         (Substitute a newline): Likewise.
4038 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
4040         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
4041         can be assigned to a function pointer.  Problem reported by
4042         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
4043         part of a patch by Ralf Wildenhues in that same bug report.
4045 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4047         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
4048         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
4050 2006-12-01  Eric Blake  <ebb9@byu.net>
4052         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
4053         cross-compiling from cygwin to mingw.
4054         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
4055         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
4056         to lib/autoconf/c.m4.
4058 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4060         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
4061         string for more reliable failure.  Wrap the entire test that
4062         causes the broken Solaris printf to dump core, in a subshell,
4063         so the segmentation fault message is reliably suppressed.
4064         Fix shell expansion errors by using /usr/ucb/echo always;
4065         avoid an error on systems without it by another subshell.
4066         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
4067         subshell-$as_echo to `as_echo', for better error message.
4069 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4071         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
4072         `BASH_SOURCE' contain a newline, set them to empty, as they may
4073         not be unset.
4075 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
4077         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
4078         years and is too hard to maintain now.  The last straw was
4079         reported by Jerker Baeck in
4080         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
4081         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
4082         * doc/autoconf.texi (Particular Functions): Move
4083         AC_FUNC_SETVBUF_REVERSED from here...
4084         (Obsolete Macros): ... to here.  Say that it does nothing now.
4085         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
4086         Turn into (almost) a no-op.
4088         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
4089         (AC_C_VOLATILE):
4090         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
4091         These macros are obsolescent and new applications shouldn't need them.
4092         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
4093         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
4094         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
4095         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
4096         (AC_FUNC_VPRINTF): Likewise.
4097         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
4098         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
4099         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
4101         * doc/autoconf.texi (Setting Output Variables): Mention that
4102         @VAR1@VAR2 has unspecified behavior.  Problem reported by
4103         Ralf Wildenhues.
4104         * NEWS: Mention this.
4106         * Makefile.am: Put only a single '#' into the copyright notice,
4107         so that it's also present in the output file.  Standardize wording
4108         in makefile copyright notices to match GNU coding standards.
4109         * bin/Makefile.am: Likewise.
4110         * doc/Makefile.am: Likewise.
4111         * lib/Makefile.am: Likewise.
4112         * lib/freeze.mk: Likewise.
4113         * lib/autoconf/Makefile.am: Likewise.
4114         * lib/autoscan/Makefile.am: Likewise.
4115         * lib/autotest/Makefile.am: Likewise.
4116         * lib/m4sugar/Makefile.am: Likewise.
4117         * man/Makefile.am: Likewise.
4118         * tests/Makefile.am: Likewise.
4119         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
4120         one-line file.
4122 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4124         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
4125         in the sed script that mangles the awk script: delete up to the
4126         first exclamation mark only.
4127         * tests/torture.at (Substitute and define special characters):
4128         Test '!' too.
4130 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4132         Rewrite config files generation: avoid quadratic growth in
4133         the number of substituted variables by using awk instead of sed
4134         for the bulk of the substitutions.
4135         * NEWS: Mention this.
4136         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
4137         forbidden in the output (and thus input) file.
4138         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
4139         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
4140         generate just one large awk script for substitutions,
4141         eliminating much of the earlier complexity, while adding some
4142         new complexity.  Only expand the substitution templates at
4143         configure time, for smaller configure script size.  If
4144         _AC_SUBST_FILES are used, test 'awk' for working getline support
4145         at config.status time.  If absent, interpolate through the
4146         shell.  The awk script was written with much help
4147         from Paolo Bonzini and Paul Eggert.
4148         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
4149         (_AC_SED_FRAG_NUM): Likewise.
4150         (_AC_SUBST_CMDS): Renamed from...
4151         (_AC_SED_CMDS): ...this.
4152         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
4153         * tests/torture.at (Substitute a 2000-byte string): Also
4154         substitute a line with 1000 words, and a variable with several
4155         long lines.
4156         (Substitute and define special characters): Test awk special
4157         characters, and put substitution input strings `@foo@' in the
4158         output, to test that no recursion happens; test several other
4159         combinations from Paolo Bonzini.
4161 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4163         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
4164         that replaced echo with AS_ECHO where this wasn't necessary.
4165         Problem reportd by Ralf Wildenhues.
4166         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
4167         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
4168         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
4170 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4172         * lib/freeze.mk (GREP): Removed, no need to initialize this.
4174 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
4176         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
4177         that traditional Awk lacks 3-arg "split".  It has it.
4178         Mention that FS must be a single character, and a few other
4179         99-byte limits of traditional Awk.
4180         Mention that if (i in a) doesn't work with traditional Awk.
4182 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4184         * tests/autotest.at (BSx641-newline in command):
4185         (BS-BS-newline in command, BSx640-newline in command):
4186         (Newline-CODE-BS-newline in command):
4187         (Single-quote-BS-newline in command):
4188         (Single-quote-newline-BS-newline in command):
4189         Use printf '%s\n' instead of echo, for portability to hosts
4190         where echo interprets backslashes.  This will break on hosts
4191         that lack printf, but for now let's assume all such hosts
4192         are dead (if not, we should get reports of test failures).
4194 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4196         'echo' has some portability problems, when given a first argument
4197         with a leading '-', or when given any argument containing '\'.
4198         Avoid using 'echo' in these cases.
4199         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
4200         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
4201         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
4202         * lib/autotest/general.m4 (AT_INIT): Likewise.
4203         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
4204         argument might be unportable.
4205         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
4206         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
4207         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
4208         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
4209         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
4210         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
4211         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
4212         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
4213         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
4214         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
4215         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
4216         (AC_PROG_MAKE_SET): Likewise.
4217         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
4218         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
4219         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
4220         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
4221         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
4222         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
4223         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
4224         * bin/autoconf.as: Redo verbose flag implementation, as the old
4225         scheme wouldn't work with AS_ECHO.
4226         * lib/autotest/general.m4 (AT_INIT): Likewise.
4227         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
4228         Don't use ECHO_T, since ECHO_N is now reliable.
4229         * lib/autotest/general.m4 (AT_INIT): Likewise.
4230         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
4231         rather than using a here-document to put the script into a file.
4232         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
4233         use AS_ECHO.
4234         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
4235         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
4236         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
4237         bug, but we might as well stop using ECHO_N and ECHO_C internally.
4238         * lib/autotest/general.m4 (AT_SETUP): Likewise.
4239         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
4240         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
4241         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
4242         operand, as AS_ECHO requires.  Avoid double file name expansion.
4243         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
4244         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
4245         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
4246         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
4247         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
4248         Double-quote strings that would otherwise contain M4 comments.
4249         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
4251         * configure.ac (AC_INIT): Bump to 2.61a.
4252         * NEWS: Likewise.
4254 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4256         Version 2.61.
4258         * configure.ac (AC_INIT): Bump to 2.61.
4259         * NEWS: Likewise.
4261         * tests/autotest.at (Macro with backslash in a test title):
4262         Comment out for now, as this tests neither fails nor passes
4263         reliably.  Problem reported by Ralf Wildenhues.
4265 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4267         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
4268         in previous change, which caused test failures.
4270 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
4272         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
4273         code for --enable, --disable, --with, and --without to...
4274         (_AC_INIT_PARSE_ENABLE): ... a new macro.
4275         * doc/autoconf.texi (Package Options):
4276         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
4278 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4280         Import these changes from config via gnulib:
4282         2006-11-15  Ben Elliston  <bje@gnu.org>
4284         From Josselin Mouette <joss@debian.org>:
4285         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
4287         2006-11-08  Ben Elliston  <bje@gnu.org>
4289         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
4291         2006-11-07  Steve Woodford  <scw@NetBSD.org>
4292                     Ben Elliston  <bje@gnu.org>
4294         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
4295         * build-aux/config.sub (sh5el): New basic_machine.
4298         Import this change from coreutils:
4300         2006-02-13  Jim Meyering  <jim@meyering.net>
4302         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
4305         Import this change from gnustandards via gnulib:
4307         2006-11-15  Karl Berry  <karl@gnu.org>
4309         * standards.texi: core -> memory, throughout.
4310         (CPU Portability): show correct example of calling write
4311         on a char value; thanks to Paul Eggert for the code.
4312         Both of these suggestions from Eugene Y. Vasserman.
4315         Import these changes from texinfo via gnulib:
4317         2006-11-08  Karl Berry  <karl@gnu.org>
4319         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
4320           as well as pdf images, since they are supported in pdftex with
4321           no further ado.
4323         2006-11-05  Karl Berry  <karl@gnu.org>
4325         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
4327 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
4329         * NEWS: Document the AC_ARG_WITH change.
4331 2006-11-13  Bruno Haible  <bruno@clisp.org>
4333         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
4334         options, transliterate also dots to underscores.
4335         (_AC_ENABLE_IF): Transliterate also dots to underscores.
4336         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
4337         first argument may also contain dots.
4339 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4341         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
4342         benefit of platforms like Solaris+GCC where it is common to have a
4343         non-working g++ installation.
4345 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4346         and Joel E. Denny  <jdenny@ces.clemson.edu>
4347         and Paul Eggert  <eggert@cs.ucla.edu>
4349         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
4350         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
4351         ./micro-suite.
4353 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
4355         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
4356         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
4357         Imported from a similar patch to gnulib by Bruno Haible.
4359 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
4361         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
4362         * doc/autoconf.texi (C Compiler): Document them.
4363         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
4364         New macros, taken from gnulib.
4366 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4368         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
4369         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
4370         Matthew Woehlke.
4372 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4374         * tests/torture.at (Configuring subdirectories): Do not skip
4375         Automake 1.10 nor future Automake 11.1 (sic).
4377 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
4378         and Stepan Kasal  <kasal@ucw.cz>
4380         Handle special characters in test case titles correctly.
4381         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
4382         properly.
4383         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
4384         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
4385         argument.  Extend to check titles printed by ./micro-suite and
4386         ./micro-suite -l and the title in micro-suite.log.
4387         (Backquote in a test title,
4388         Single-quote in a test title,
4389         Double-quote in a test title): Don't expect failure anymore.
4390         (Backslash in a test title): Put a non-whitespace character after the
4391         backslash so that Bourne shells might actually see it as an escape
4392         sequence.
4393         (Brackets in a test title,
4394         Pound in a test title,
4395         Comma in a test title,
4396         Quoted Macro in a test title,
4397         Macro in a test title,
4398         Macro with single-quote in a test title): New tests.
4399         (Macro with backquote in a test title,
4400         Macro with double-quote in a test title,
4401         Macro with backslash in a test title): New tests expected to fail.
4402         * tests/torture.at (#define header templates): M4-quote this title in
4403         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
4404         The visible effect was a stray [] in the testsuite output.
4406 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4408         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
4409         `trap ... 0' inside a function, for AIX sh.
4411 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4413         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
4414         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
4415         5363) simply issues a warning when dividing by zero at compile
4416         time.  Problem reported by Elias Pipping.
4418 2006-10-26  Eric Blake  <ebb9@byu.net>
4420         * THANKS: Update.
4421         * doc/autoconf.texi (Evaluation Macros): Improve the example to
4422         show effect on macros that expand with commas.
4423         Reported by Joel E. Denny.
4425         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
4426         Also work with M4 1.4.8.
4428 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
4430         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
4431         Jim Meyering.
4433 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
4435         * tests/tools.at (autom4te --force): New test, verifies that
4436         `--force' always rewrites the output file.
4438 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4440         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
4441         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
4443 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
4445         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
4447 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4449         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4450         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
4451         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
4452         reported by Nelson H. F. Beebe for Coreutils 6.4.
4454         * tests/tools.at (autoconf --trace: user macros): Remove test
4455         for tracing multiline macros, since m4 1.4.7a uses a different
4456         way to number lines.  Problem reported by Ralf Wildenhues.
4458 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
4460         * bin/autom4te.in (handle_m4): Do not redirect stdin to
4461         /dev/null since the heuristics for interactive behaviour was
4462         fixed in CVS m4.
4464         * bin/autom4te.in: With --force, always refresh the output
4465         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
4467         * bin/autoconf.as: Fix the verbose message at the end.
4469 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4471         * configure.ac (AC_INIT): Bump to 2.60c.
4472         * NEWS: Likewise.
4474 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4476         * NEWS: Version 2.60b.
4478         Import this change from Texinfo:
4479         2006-10-15  Karl Berry  <karl@gnu.org>
4480         * build-aux/texinfo.tex: automake 1.10
4482         * NEWS: Remove AC_CACHE_CHECK_INT.
4483         * doc/autoconf.texi (Caching Results): Likewise.
4484         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
4485         AC_CACHE_CHECK_INT, since it's no longer public.
4486         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
4487         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
4489 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4491         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
4493 2006-10-19  Eric Blake  <ebb9@byu.net>
4495         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
4496         (m4_maketemp): Avoid warnings with M4 1.9a.
4497         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
4498         m4_mkstemp.
4499         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
4500         * NEWS: Likewise.
4502 2006-10-16  Eric Blake  <ebb9@byu.net>
4504         * doc/autoconf.texi (Setting Output Variables): Fix typo.
4506         * bin/autoconf.as (version): Reword to match GNU Coding
4507         Standards.
4508         * bin/autoheader.in (version): Likewise.
4509         * bin/autom4te.in (version): Likewise.
4510         * bin/autoreconf.in (version): Likewise.
4511         * bin/autoscan.in (version): Likewise.
4512         * bin/autoupdate.in (version): Likewise.
4513         * bin/ifnames.in (version): Likewise.
4515 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
4517         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
4518         looking for special shell characters.
4519         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
4520         macro defined by AS_VAR_PUSHDEF before passing it as a
4521         parameter.
4522         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
4523         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
4524         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
4525         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
4526         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
4527         Likewise.
4528         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
4529         AS_VAR_* properly.
4530         * tests/m4sh.at (AS_LITERAL_IF): New test.
4532 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
4534         (Imported from Automake.)
4535         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
4536         which incorrectly sets the mode of an existing destination
4537         directory.  In some cases the unpatched install-sh could do the
4538         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
4539         system.  We hope this is rare in practice, but it's clearly worth
4540         fixing.  Problem reported by Alex Unleashed in
4541         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
4542         Also, don't bother to check for -m bugs unless we're using -m;
4543         suggested by Stepan Kasal.
4545 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
4547         Import this change from Automake:
4549         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
4550         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
4551         is enabled by default with gnu and gnits strictness.
4552         Report from Bruno Haible.
4554         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
4555         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
4556         gnu and gnits modes.
4558         Import this change from Config:
4560         2006-09-20  Ben Elliston  <bje@gnu.org>
4561         * build-aux/config.sub (score, score-*): New.
4563         Import this change from Gnulib:
4565         2006-09-16  Karl Berry  <karl@gnu.org>
4566         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4567         to avoid sectioning errors.
4569         Import these changes from Texinfo:
4571         2006-10-04  Karl Berry  <karl@gnu.org>
4572         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
4573         (\quoteexpand): rename to \rquoteexpand.
4574         (\codequoteleft): new def, to look for @set codequotebacktick.
4575         (\lquoteexpand, \quoteexpand): new defs.
4576         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
4577         (\code): must use new \...Char values, since now ` is active.
4579         2006-08-26  Karl Berry  <karl@gnu.org>
4580         * build-aux/texinfo.tex (\textdegree): New command.
4582         2006-08-12  Karl Berry  <karl@gnu.org>
4583         * build-aux/texinfo.tex (error \box0): smaller font.
4585 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4587         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
4589 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
4591         * doc/autoconf.texi (Autoheader Macros): Warn that the text
4592         added to the template can get mangled.
4594 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4596         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
4597         include the default headers, and redefine obstack_chunk_alloc
4598         and obstack_chunk_free.  Fixes false failure with glibc.
4600 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
4602         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
4603         for backward compatibility with Libtool 1.5.22.  Problem reported
4604         by Ralf Wildenhues.
4606 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4608         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
4609         AC_PROG_CC.
4610         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
4612 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4614         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
4615         the NonStop platform.
4616         * doc/autoconf.texi (Posix Variants): Likewise.
4617         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4619         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
4620         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
4621         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
4622         Use a better substitute, by inspecting the output of "ls"
4623         rather than just using ":".
4624         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
4625         rather than AS_EXECUTABLE_P, since we needn't worry about
4626         non-regular files here.
4628         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
4629         due to configuration hassles with this.  See Tonya Underwood's report
4630         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
4631         * doc/autoconf.texi (Special Shell Variables): Likewise.
4633 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4634             Stepan Kasal  <kasal@ucw.cz>
4636         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
4637         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
4639 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
4641         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
4642           initialization which is not inherited through the environment
4643         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
4644         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
4646 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
4648         * doc/autoconf.texi (Limitations of Usual Tools): Describe
4649         problems with mkdir -p -m.
4651 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
4653         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
4654         comment about ac_cpp_err; it was incorrect, and anyway
4655         ac_cpp_err is being removed below.
4656         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
4657         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
4658         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
4659         nobody uses it.
4660         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
4661         with werror_flag and conftest.err and so forth.  This is more
4662         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
4663         and anyway the user shouldn't normally want to see this gorp logged.
4664         Problem reported by Ralf Wildenhues.
4665         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
4666         empty, not 'no', since the rest of the code uses 'test -z'.
4668 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
4670         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
4671         Use a single call to AC_DO_TOKENS rather than multiple, for
4672         efficiency.
4673         (_AC_LINK_IFELSE): Test that resulting file is executable.
4674         Problem reported by mwoehlke in
4675         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
4677         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
4678         than creating a file to use with test -x; this is much faster.
4680 2006-10-02  Bruno Haible  <bruno@clisp.org>
4682         * lib/autom4te.in (Automake-preselections): Add
4683         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
4685 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
4687         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
4688         standard error, `experr' should be used, not `expout'.
4690 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4692         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
4693         fseeko testing program twice; just use the earlier result.
4694         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4695         Set cache var to 'unknown' (not 'no') if leaving the macro unset
4696         still doesn't let the program compile.
4697         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
4698         failed.
4700         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
4701         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
4702         include it, without including anything else.
4703         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
4704         expressions.
4705         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
4707 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4709         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
4710         `error.h', and include it, for a `error_at_line' prototype.
4711         Use a nonempty format string in the link test.
4712         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
4713         for a declaration of wait3.
4715 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4717         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
4718         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
4719         can apply to constants too, and that it checks for macro defns.
4720         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
4721         and simply cast the identifier to void.  This handles structure
4722         values.  Problem reported by Ralf Wildenhues.
4723         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
4725 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4727         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
4728         structure, and function symbols.
4730 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4732         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
4733         member.
4735 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4737         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
4738         * README: Likewise.
4739         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4741 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4742         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4744         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
4745         warnings (uninitialized value).
4746         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
4747         present.
4748         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
4749         parentheses.
4750         (AC_STRUCT_TM): Likewise, avoid unused variables.
4752 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4754         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
4755         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
4756         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
4757         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
4758         Report by Olly Betts.
4760 2006-09-19  Eric Blake  <ebb9@byu.net>
4762         * m4/m4.m4: Change copyright.
4763         * configure: Regenerate.
4764         * Makefile.in: Likewise.
4765         * bin/Makefile.in: Likewise.
4766         * doc/Makefile.in: Likewise.
4767         * lib/Makefile.in: Likewise.
4768         * lib/Autom4te/Makefile.in: Likewise.
4769         * lib/autoconf/Makefile.in: Likewise.
4770         * lib/autoscan/Makefile.in: Likewise.
4771         * lib/autotest/Makefile.in: Likewise.
4772         * lib/emacs/Makefile.in: Likewise.
4773         * lib/m4sugar/Makefile.in: Likewise.
4774         * man/Makefile.in: Likewise.
4775         * tests/Makefile.in: Likewise.
4777         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
4778         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
4779         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
4780         --error-output, to avoid warnings with M4 2.0.
4782 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
4784         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
4785           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
4786         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
4788 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
4790         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
4791         expansion of AC_CHECK_FUNCS.
4793 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
4795         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
4796         mistaken comment: the path has to be relative; do not use
4797         the path at runtime.
4799 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4801         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
4802         argument to `--prefix' for sub-configure scripts.
4803         Pass `--silent' to sub-configure scripts.
4804         * tests/torture.at (Configuring subdirectories): Add tests
4805         for both changes.
4806         * doc/autoconf.texi (Setting Output Variables): Fix example to
4807         not show `--silent' being passed to a `configure' re-run.
4809 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4811         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
4812         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
4813         for the existence of the directory at configure-time.  That's
4814         too late, anyway.  Problem reported by Stefan Seefeld.
4816         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
4817         7.1.4 /usr/bin/posix/sh described by Tim Rice in
4818         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
4820 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
4822         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
4823         works with GNU M4 1.4.3 again; make the normalized form
4824         match the current m4 message; fix the description.
4825         * test/tools.at (autom4te cache): Adapt to the change.
4827 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4829         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
4830         to catch glibc bug 2821
4831         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4833         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
4834         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
4835         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
4836         assume C89.
4838 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
4840         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
4841         preselections ...
4842         (Autoconf): ... here.
4843         (Autoscan-preselections): Delete.
4845 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
4847         * lib/autom4te.in (Automake-preselections): Preselect
4848         AM_ENABLE_MULTILIB.
4850 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4852         * doc/autoconf.texi (Preset Output Variables): srcdir and
4853         top_srcdir are not necessarily relative.  Problem reported
4854         by Dries Kimpe.
4856 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4858         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
4859         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
4860         accept files with extension `.f'.  For consistency, also prefer
4861         xlf over f77.
4862         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
4863         from last patch.
4865 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
4867         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
4868         of ERLANG_LIB_VER_* variables.
4869         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
4870         variables.
4872 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4873         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4875         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
4876         bugs of Bash 2.01 and 2.05a.
4877         (Fortran Compiler): Document that AC_PROG_CC should be called
4878         before AC_PROG_FC, due to a bug in Autoconf.
4880 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4882         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
4883         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
4884         except the first two arguments are reversed.
4885         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
4886         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
4887         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
4888         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
4889         equivalent to the old AC_COMPUTE_INT.
4890         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
4891         All uses changed to AC_CACHE_CHECK_INT.
4892         * tests/base.at (AC_CACHE_CHECK_INT): New test.
4893         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
4895 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4897         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
4898         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
4899         programs should use their Gnulib counterparts.
4900         * doc/autoconf.texi (Particular Functions): Likewise.
4901         (Macro Names, testsuite Invocation): Replace uses of these
4902         obsolete macros with uses of non-obsolete macros.
4904 2006-08-29  Eric Blake  <ebb9@byu.net>
4906         * configure.ac (AC_INIT): Bump to 2.60b.
4907         * NEWS: Update.
4909 2006-08-28  Eric Blake  <ebb9@byu.net>
4911         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
4912         mistakenly swapped on 2006-08-15.
4914 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4916         * NEWS: Version 2.60a.
4918 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
4920         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
4921         file created by the PGI compiler.
4923 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
4925         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
4926         simplify the code.
4928 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4930         Fix Lex library problem reported to us by Julio Garvia.
4931         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
4932         for the default, which the user can override.
4933         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
4934         deal with LEXLIB.
4935         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
4936         didn't work if some values were cached but not others.  Test for
4937         broken lex libraries like native ia64-hp-hpux11.22; see
4938         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
4939         work around the problem by preferring an empty LEXLIB to -lfl or
4940         -ll.  Let the user set LEXLIB='' to indicate no library needed.
4942         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
4943         * README: Likewise.
4944         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
4946 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4948         Rework to use more-modern build style.
4949         Many files are renamed; all uses of their names were changed.
4950         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
4951         * .x-sc_useless_cpp_parens: New file.
4952         * build-aux/config.guess: Renamed from config/config.guess.  Update.
4953         * build-aux/config.sub: Renamed from config/config.sub.  Update.
4954         * build-aux/elisp-comp: Renamed from config/elisp-comp.
4955         * build-aux/install-sh: Renamed from config/install-sh.  Update.
4956         * build-aux/mdate-sh: Renamed from config/mdate-sh.
4957         * build-aux/missing: Renamed from config/missing.
4958         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
4959         * build-aux/vc-list-files: Renamed from config/vc-list-files.
4960         * config/Makefile.am: Removed.
4961         * config/mkinstalldirs: Removed.
4962         * config/move-if-change: Removed.
4963         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
4964         * Makefile.am (SUBDIRS): Remove config.
4965         (ACLOCAL_AMFLAGS): Include from m4, not config.
4966         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
4967         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
4968         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
4969         Fail if there's an error.
4970         * Makefile.cfg (move_if_change): Remove.
4971         (wget_files): Remove.
4972         (cvs_executable_files): New macro.
4973         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
4974         (executable-update): Use $(cvs_executable_files).
4975         (local-checks-to-skip): Remove.
4976         * Makefile.maint: Merge from coreutils, plus add our own changes
4977         (gzip_rsyncable): New macro.
4978         (GZIP_ENV): Use it.
4979         (CVS_LIST): Use build-aux/vc-list-files.
4980         (VERSION_REGEXP): New macro.
4981         (local-checks-available): Add patch-check, $(syntax-check-rules),
4982         check-AUTHORS.
4983         (syntax-check-rules): Compute dynamically.
4984         (sc_cast_of_x_alloc_return_value): Work even if no source files.
4985         (sc_cast_of_alloca_return_value): Likewise.
4986         (sc_prohibit_atoi_atof): Simplify regexp.
4987         (sc_no_if_have_config_h, sc_require_config_h):
4988         (sc_prohibit_assert_without_use,
4989         (sc_obsolete_symbols): Check for O_NDELAY.
4990         (sc_texi_notab): Remove.
4991         (sc-changelog): Don't make an exception for '----' lines.
4992         (.re-list): Remove, so we don't have a junk file behind.
4993         (sc_system_h_headers): Remove the need for .re-list.
4994         (sc_the_the):  New rule.
4995         (sc_tight_scope): Simplify.
4996         (sc_trailing_blank): Renamed from sc_trailing_space.
4997         (longopt_re): New macro.
4998         (sc_two_space_separator_in_usage): New rule.
4999         (sc_unmarked_diagnostics): Look at all files under CVS.
5000         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
5001         (news-date-check, changelog-check): Version is OK.
5002         (po-check): Look for lib files even if not in CVS.
5003         (copyright-check): Use $() not ``.
5004         (maintainer-distcheck): Do not depend on changelog-check.
5005         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
5006         Also check for -Wpointer-arith.
5007         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
5008         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
5009         Remove.
5010         (announcement): Add --gpg-key-id arg.
5011         (cvs-sv): Remove.
5012         (move_if_change): Just use mv.
5013         (local_updates: Remove wget-update, po-update.
5014         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
5015         (config.guess-url_prefix, config.sub-url_prefix): Remove.
5016         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
5017         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
5018         ($(get-targets)): Remove.
5019         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
5020         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
5021         (cvs-update): Get from gnulib.
5022         (emut_upload_commands): gnupload is in build-aux now.
5023         (alpha beta major): Add changelog-check.  Check version.
5024         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
5025         (AC_CONFIG_FILES): Remove.
5026         * bin/autoconf.as: Add spaces to avoid distcheck warning.
5027         * config/announce-gen: Sync from coreutils.
5028         * doc/make-stds.texi: Sync from gnulib.
5029         * doc/standards.texi: Likewise.
5030         * man/Makefile.am: Adjust for config -> build-aux renaming.
5031         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
5032         * tests/local.at: Adjust from config -> build-aux renaming.
5033         * tests/tools.at: Likewise.
5034         * tests/torture.at: Likewise.
5036         * NEWS: The C99 check now tests for vararg macros and 64-bit
5037         preprocessor ints.
5038         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
5039         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
5040         64-bit preprocessor ints.  Check for static initialization of
5041         long long.  Remove unnecessary casts.
5043 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5045         * doc/autoconf.texi (Particular Programs): Mention that
5046         @INSTALL@ and @MKDIR_P@ may vary for different output files.
5047         Reported by Alexandre Duret-Lutz.
5049 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5051         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
5052         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
5053         Bill Northcott in
5054         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
5056 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5058         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
5059         pacify insanely picky compilers.  Problem reported by Eric Blake.
5061         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
5062         longer supported by Sun.
5064 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5066         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
5067         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
5068         -Wundef -Werror".  Problem reported by David Fang in
5069         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
5070         * doc/autoconf.texi (Header Templates, Default Includes):
5071         (Particular Functions, Generic Functions, Header Portability):
5072         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
5073         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
5074         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
5075         Prefer #ifdef to #if.
5076         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
5077         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
5078         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
5079         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
5080         Likewise.
5081         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
5082         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
5083         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
5084         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
5085         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
5086         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
5087         this.
5089 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5091         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
5092         problems with arg script text that doesn't end in newline, and
5093         with '-e a...'.  Problems reported by Ralf Wildenhues.
5095 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
5097         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
5098         check for libXt by a check for libX11.
5100 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5102         * doc/autoconf.texi (config.status Invocation): Adjust according
5103         to last change.
5105 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5107         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
5108         --help' should mention that `--version' outputs configuration
5109         settings.  Report by Bruno Haible.
5111 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5113         Fix test suite failures reported by Pierre in
5114         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
5115         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
5116         the compiler created a file "b.out" when it didn't create anything
5117         at all.
5118         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
5119         Discard stderr too, when invoking the test script.
5121 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
5123         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
5124         in the restoring of the werror flag.
5126 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5128         * doc/autoconf.texi (Volatile Objects): Be even a little
5129         less skeptical about "volatile", after discussion with
5130         Bruno Haible on bug-gnulib.
5131         (Limitations of Usual Tools): Warn about sed stripping
5132         leading white space from text.  From Bruno Haible.
5134 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5136         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
5137         compiler complains about it, even if things works after the
5138         complaint.  Problem reported by Peter O'Gorman.
5140         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
5141         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
5142         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
5144 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
5146         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
5147         after -R regardless of host.  Patrick Welche reports that this
5148         fixes things on NetBSD 3.99.
5150         * NEWS: Recommend M4 1.4.5.
5151         * README: Likewise.
5152         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5153         * tests/tools.at (autom4te cache): Update wording of diagnostic
5154         to match M4 1.4.5.
5156 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5158         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
5159         under AC_C_VOLATILE.
5160         (Volatile Objects): Be a little less skeptical about what
5161         "volatile" means.  Derived from thoughts by Ben Pfaff in
5162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
5164 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5166         * doc/autoconf.texi: Fix some typos.
5168 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5170         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
5171         more globally, since the 2006-06-30 patch didn't suffice.  Problem
5172         reported by Keith Marshall.  Also, don't bother with builddir2,
5173         since it shouldn't be needed any more.
5175 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
5177         * doc/autoconf.texi (Generic compiler characteristics):
5178         Document AC_COMPUTE_INT.  Fix wrong statements on Default
5179         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
5181         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
5182         (_AC_COMPUTE_INT): Add obsoletion warnings.
5183         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
5184         AC_COMPUTE_INT.
5186         * NEWS: Document change.
5188 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5190         * doc/autoconf.texi (Volatile Objects): New section.
5192         * NEWS: Document previous change.
5194 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5196         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
5197         Require that long long int be at least 64 bits wide.  C99 requires
5198         this and enough programs depend on it so we should check for it.
5199         Bruno Haible reports in
5200         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
5201         that long long int is 32 bits wide with some nonstandard compilers.
5202         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5204 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5206         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
5207         to a nonexistent file, so that we don't have to worry about
5208         a local site configuration that doesn't use /usr/local.
5209         Problem reported by Keith Marshall in
5210         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
5212 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5214         * doc/autoconf.texi: Be more consistent about using @acronym with
5215         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
5216         quite right (it talked about "OSF/Tru64", even though the
5217         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
5218         and it even mentioned "OSF 4"!) and at this point there's little
5219         reason to talk about OSF any more, since it died in 1994.
5220         (Specific Compiler Characteristics): Simplify example of
5221         negative-size array.
5222         (File Descriptors): Reorder to make the text flow better.
5223         Remove joke about "appreciate the various levels"; I didn't get it.
5224         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
5225         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
5226         (File Descriptors, Limitations of Usual Tools):
5227         Tone down the advice against renaming or removing open files.
5228         (Limitations of Usual Tools): Add a new section, on 'rm'.
5230 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
5232         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
5233         -lXt in LIBS, idea from Karsten Hopp; this was due since
5234         this change:
5236         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5237         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
5238         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
5239         (which belong to Xt, not X itself).  See Debian bug 327655.
5241 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5243         * configure.ac (AC_INIT): Bump to 2.60a.
5244         * NEWS: Update.
5246 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5248         Version 2.60.
5250         * configure.ac, NEWS: Update.
5252 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5254         * config/texinfo.tex: Sync from upstream.
5256         * bin/autom4te.in (handle_traces): Transform the `@S|@'
5257         quadrigraph correctly in traces.
5259         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
5260         Fix typos.
5262         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
5263         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
5264         not defined.
5265         * doc/autoconf.texi (Changed Directory Variables): New node,
5266         to document the whole `datarootdir' business a bit better.
5267         * NEWS: Update.
5268         * tests/torture.at (datarootdir workaround): Extend test.
5269         Prompted by report by Alexandre Julliard.
5271 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
5273         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
5274         when using default mode of IBM C 6 for AIX.  Problem and two-line
5275         fix reported by Larry Jones.
5277 2006-06-22  Alexandre Julliard <julliard@winehq.org>
5279         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
5280         about literal '${datarootdir}' if a definition is found in the
5281         output file.
5283 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5285         * NEWS: Use "M4" rather than "m4" when appropriate.
5286         Problem reported by Eric Blake.
5287         * doc/autoconf.texi: Likewise.
5288         Use @acronym around BSD, GCC, and GNU when appropriate.
5289         (Why GNU M4): Renamed from "Why GNU m4".
5290         (Redefined M4 Macros): Mention that Posix
5291         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
5292         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
5293         to int.
5295 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5297         * bin/autom4te.in (handle_output): Do not forbid the empty
5298         pattern.
5299         * tests/tools.at (autoconf: the empty token): New test.
5301 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
5303         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
5304         calls, so that we do not care whether they are LIFO or FIFO;
5305         in the m4_wrap, do not check which diversion is the topmost
5306         one, just check that the stack is balanced at the end.
5307         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
5308         base diversion forever--pop the previous diversion before
5309         opening the new one; consequently, remove the m4_wrap call.
5310         * lib/autotest/general.m4 (AT_INIT): Likewise.
5311         * tests/m4sugar.at: Do not use
5312         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
5314 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5315         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5317         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
5318         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
5319         Rework example of m4wrap token-pasting trouble so that it doesn't
5320         care whether it's LIFO or FIFO.
5321         Fix some "contrary to"s that are awkward in English.
5323 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5325         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
5326         to `yes' instead of `int$1_t' if the type is found, for more
5327         consistent configure output (where $1 is the number of bits).
5328         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
5329         Suggested by Bruno Haible.
5331         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
5332         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
5333         with system headers.  Report by Bruno Haible.
5335 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5337         * config/config.guess, config/config.sub: Sync from upstream.
5339         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
5340         in order to avoid picking up an older installed frozen m4sh.m4f.
5341         Besides an outdated shell startup, this could have been created
5342         by an earlier M4 version with incompatible frozen file format.
5344 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5346         * README: Recommend m4 1.4.4 instead of 1.4.3..
5347         * doc/autoconf.texi: Likewise.
5348         (Special Chars in Names): Say that $(.FOO) is portable, as
5349         suggested by Stepan Kasal.
5350         (Installation Directory Variables, Build Directories):
5351         (Automatic Remaking, Subdirectories, Fortran Compiler):
5352         (Making testsuite Scripts, Defining Directories):
5353         Quote variable usages better.
5354         (Making testsuite Scripts): Add clean-local rule to makefile
5355         snippet, by Eric Blake.
5356         (Installation Directory Variables): Fix table item font.
5357         Reword slightly to clarify.  Generalize advice about
5358         not using special characters to include all file-related
5359         vars, not just VPATH.
5360         (Special Chars in Variables): Warn about special characters in
5361         $(srcdir) too.
5362         (Assignments): Clarify default-value example as suggested by
5363         Ralf Wildenhues in
5364         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
5365         (Special Shell Variables): Note leading ./ or ../, as suggested
5366         by Eric Blake.
5367         (Limitations of Builtins): Under cd, warn about CDPATH.
5368         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
5369         Ralf Wildenhues.
5371 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5373         * doc/autoconf.texi (Configuration Actions): Remove duplicate
5374         `@var', for texi2html.
5375         (Systemology): Some more word wrapping, for DVI output.
5376         (autom4te Invocation): The short option for `--melt' is `-M',
5377         not `-m'.
5379 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5381         * doc/autoconf.texi: More formatting and English tweaks,
5382         many suggested by Ralf Wildenhues.
5383         Reword to avoid "@code{...}'s" and the like, since it's ugly
5384         with Emacs info mode.  discontents -> woes.
5385         Put a few "will"s back.  time stamp -> timestamp.
5386         side-effect -> side effect.
5388 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5390         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
5391         Warn about $@ not persisting.  Problem reported by Julien Danjou in
5392         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
5393         (Special Chars in Names): Renamed from Leading _ in Macro Names.
5394         Mention other special chars, too.
5396 2006-06-14  Eric Blake  <ebb9@byu.net>
5398         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
5400 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5402         * doc/autoconf.texi: Some systematic minor improvements, as
5403         follows.  Use "makefile" when talking about makefiles
5404         generally (which might be named "makefile" or "Makefile" or even
5405         "foo.mk"), "Makefile" when talking about a specific makefile
5406         called "Makefile".  This unclutters the text from weird quotes
5407         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
5408         values" rather than "@var{foo}s" and similar constructs containing
5409         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
5410         English-language improvements.  Change the prefix "sub-" to "sub"
5411         and "re-" to "re".
5412         Put blank lines around examples more consistently.
5413         Avoid "rather" and "very" as intensifiers.
5414         Avoid "will" as an auxiliary.
5415         (Limitations of Make): Split this node into....
5416         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
5417         (Leading _ in Macro Names, Backslash-Newline-Newline):
5418         (Backslash-Newline Comments, Long Lines in Makefiles):
5419         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
5420         (obj/ and Make, make -k Status, VPATH and Make):
5421         (VPATH and Double-colon, $< in Explicit Rules):
5422         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
5423         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
5424         New nodes, resulting from splitup of Limitations of Make.
5425         All cross-references changed.  Raise the top node from
5426         a section to a chapter, and all subnodes accordingly.
5427         Redo the introductory wording to match the new organization.
5428         (Installation Directory Variables): Use an example that is
5429         closer to what Autoconf actually does.  Mention that VPATH's
5430         value should not contain metacharacters or white space.
5431         (Fortran Compiler): Fix a VPATH bug in an example.
5432         (Leading _ in Macro Names): Mention that this problem is no longer
5433         of practical concern.
5434         (VPATH and Make): Reword the advice to make it clearer
5435         that Autoconf and Automake support VPATH in non-GNU make, but
5436         many packages have bugs in this area.
5437         ($< in Explicit Rules): Refer to Build Directories rather
5438         than using a (non-VPATH-safe) example.
5439         (Automatic Rule Rewriting): Mention the sort of disaster that
5440         can ensue with Solaris-style rule rewriting with VPATH.
5442 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5444         * doc/install.texi (Compilers and Options): Weaken the
5445         suggestion to use GNU make for VPATH builds.
5447         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
5448         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
5450         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
5451         in regular expression.
5453 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5455         * doc/autoconf.texi (Installation Directory Variables):
5456         Drop extra @samp from `@table @samp' item.
5457         (Limitations of Usual Tools): Comment fix.
5458         Do not nest @samp just to point to other table items.
5459         (Writing testsuite.at) <AT_CHECK>: The second argument to
5460         `@dvar' is already @samp'ed.
5461         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
5462         do not use @var in the second argument.
5464 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5466         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
5467         $as_shell.exe too.  Problem reported by Andreas Buening in
5468         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
5470 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5472         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
5473         `unused variable' compiler warning, for `-Wall -Werror'.
5474         Reported by Jaap Haitsma in
5475         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
5477 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
5479         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
5480         case the compiler dumps core.  Problem reported for
5481         OpenServer 5.0.7 by Tim Rice in
5482         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
5483         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
5484         Likewise.
5486 2006-06-06  Tim Rice <tim@multitalents.net>.
5488         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
5489         "ERROR" only shows up in "make check" output if there is an
5490         error.
5492 2006-06-06  Eric Blake  <ebb9@byu.net>
5494         * tests/tools.at (automatically allowed tokens): Fix typo.
5496 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5498         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
5500         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
5501         typically overflows on x86 CPUs, even though the C standard
5502         requires otherwise.
5504 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5506         * configure.ac (AC_INIT): Bump to 2.59e.
5507         * NEWS: Update.
5509 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5511         Version 2.59d.
5513         * config/texinfo.tex: Sync from upstream.
5515         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
5516         seen, invoke libtoolize with `--ltdl' argument.
5517         * lib/autom4te.in (Autoreconf-preselections): Adjust.
5518         * NEWS: Update.
5519         Suggested by Eric Blake.
5521 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5523         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
5524         reported by Ralf Wildenhues.
5525         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
5527 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5529         * THANKS: Update.
5531 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
5533         * doc/autoconf.texi: Modernize some of the references to Solaris.
5535 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
5537         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
5538         message issued by AC_REQUIRE.
5539         * tests/m4sugar.at: Check m4_require's error message.
5540         * tests/base.at: Check AC_REQUIRE's error message.
5541         * tests/local.at (AT_CHECK_M4): New macro, almost identical
5542         to...
5543         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
5544         AT_CHECK_M4.
5545         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
5546         `expout' as the last parameter.
5547         * tests/tools.at: Adapt to the above change.
5549 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
5551         * doc/autoconf.texi (Limitations of Usual Tools): Correct
5552         information about race-free implementations of mkdir.
5554 2006-06-04  Eric Blake  <ebb9@byu.net>
5556         * bin/autoreconf.in (help): Document M4 environment variable.
5557         * bin/autoconf.as (Usage): Likewise.
5558         * bin/autom4te.in (help): Likewise.
5559         * doc/autoconf.texi (autom4te Invocation): Likewise.
5561 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5563         * NEWS: GNU make now recommended for VPATH builds.
5564         Mention that some macros are now documented to be obsolescent.
5565         * doc/autoconf.texi:
5566         Prefer "current" to "modern" to describe
5567         currently-used (albeit perhaps old-fashioned) hosts.
5568         Mention which ancient features no longer need to be worried about.
5569         setgid -> set-group-ID
5570         setuid -> set-user-ID (these are the Posix terms)
5571         Fix some misuses of "only".
5572         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
5573         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
5574         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
5575         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
5576         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
5577         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
5578         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
5579         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
5580         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
5581         Mention that these macros are obsolescent.
5582         (Installation Directory Variables): shall -> should
5583         (File Descriptors): Mention that 0, 1, 2 might get reopened.
5584         Mention that it's now safe to use 3 and 4.
5585         (Limitations of Usual Tools): cp -r is now specified by Posix.
5586         Omit longwinded and obsolescent discussion of cp -f.
5587         Modernize discussion of expr, ls.
5588         (Limitations of Make): Modernize discussion of VPATH builds.
5589         Mention $? as a workaround in some cases.
5590         * doc/install.texi (Basic Installation):
5591         Mention "./configure; make; make install" first.  Be more
5592         specific about why this file is generic.  Remove unnecessary
5593         parens.  Remove misleading "only".  Remove obsolete advice
5594         about csh.  Don't say "configure" takes awhile; say it
5595         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
5596         and CC=c99 rather than CC=c89, as these are blessed by current
5597         Posix.  Recommend GNU make if doing a VPATH build.
5599 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
5601         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
5602         examples involving shell prompts.
5604 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
5605         and Paul Eggert  <eggert@cs.ucla.edu>
5607         * doc/autoconf.texi (Here-Documents): Add details about the
5608         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
5609         use "here-documents" instead of "here documents".
5611 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5613         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
5615 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5617         * doc/autoconf.texi (File System Conventions): Warn about ":"
5618         anywhere in directory names.
5620 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5622         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
5623         about quoting the case statement, just in case.
5624         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
5625         was fixed in ksh93g; reported by Ralf Wildenhues.
5627 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
5629         * doc/autoconf.texi (System Services): Do not document
5630         overriding EXEEXT via ac_cv_exeext=ext.
5631         (Particular Programs) <AC_PROG_MKDIR_P>:
5632         Document that ${MKDIR_P} understands --.
5633         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
5634         comment.
5636 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5638         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
5639         argument with leading hyphen.  Problem reported by Paul Eggert.
5641 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5643         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
5644         about quoting ac_try: quote all of it, if any of it seems suspicious.
5645         This means we don't have to worry about ${ or sed any more.
5646         Also, double-quote the case statement, to work around misuses via
5647         underquoting as reported by Ralf Wildenhues in
5648         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
5649         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
5650         undocumented and dangerous macro.
5651         Problem reported by Ralf Wildenhues in
5652         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
5654 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5656         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
5657         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
5658         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
5660 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5662         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
5663         since evidently some packages rely on the old, broken behavior.
5664         Problem reported by Ralf Wildenhues in
5665         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
5666         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
5667         pre-2006-05-26 definitions, but leave in the comments that
5668         these macros are dangerous and should not be used.
5669         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
5670         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
5671         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
5672         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
5673         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
5675 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5677         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
5678         the use of 'tr', since this is our only use of 'tr'.
5680 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5681         and Paul Eggert  <eggert@cs.ucla.edu>
5683         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
5684         Don't assume 'grep' works on long lines, since AIX grep doesn't.
5686 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5688         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
5689         the output file in the `${datarootdir}' test.
5691 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
5692         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5694         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
5695         mention of `datarootdir' in the input file(s), but literal
5696         `${datarootdir}' in the output file, and we haven't warned yet,
5697         then warn as well: the user may have (erroneously) used
5698         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
5699         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
5700         * tests/torture.at (datarootdir workaround): Extend this test.
5701         * NEWS: Update.
5703 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5704         and Paul Eggert  <eggert@cs.ucla.edu>
5706         * doc/autoconf.texi (autoheader Invocation): The first argument to
5707         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
5708         alternatives and clear up the language a bit.
5710 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5712         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
5713         ac_config_guess, ac_config_sub, ac_configure.
5714         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
5715         Fix typo that prevented an unnecessary space from being removed.
5716         Problems reported by Ralf Wildenhues in:
5717         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
5719 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5721         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
5722         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
5723         Don't use the term "thread-safe" to talk about mkdir race
5724         conditions, since the problem is more a process than a thread
5725         issue.  Problem reported by Stepan Kasal in:
5726         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
5727         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
5728         the test for 'install' more closely.  Look at MKDIR_P first.
5729         Look in the PATH, and at /opt/sfw/bin.
5730         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
5731         Don't bother to try mkdir -p, since we already check mkdir --version;
5732         just look at the version number.  (There's no easy way to check
5733         for race-free implementations.)
5734         * tests/tools.at (autoconf: subdirectories): Adjust to above
5735         changes, since MKDIR_P now might end in "/mkdir -p".
5737         * doc/autoconf.texi (autoheader Invocation): Mention that the
5738         first arg of AC_DEFINE_UNQUOTED must be a literal.
5739         Problem reported by Ben Pfaff in
5740         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
5742         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
5743         * doc/autoconf.texi (Special Chars in Variables): New section.
5744         (Preset Output Variables): Warn about special chars in CPPFLAGS.
5745         (Installation Directory Variables): Quote $(datadir) better.
5746         (Limitations of Builtins): Describe some of eval's trickiness.
5748         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
5749         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
5750         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
5751         in front of every arg, not just trailing args.  Quote apostrophes.
5752         (_AC_EVAL_ECHO): New macro.
5753         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
5754         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
5755         removed.
5756         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
5757         exposed by quoting of eval argument.  Put the command on line line
5758         so it logs better.
5759         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
5760         (_AC_PATH_X, AC_PATH_X): Quote more safely.
5761         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
5762         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
5763         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
5764         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
5765         Use eval more safely.
5766         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
5767         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
5768         to be replaced.
5769         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
5770         lines, exposed by quoting of eval argument.
5772 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
5773         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5775         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
5776         initialization of `ac_cv_exeext', do not override it if it was
5777         already set, unless it was set to `no', for compatibility with
5778         Autoconf-2.13, and comment this.
5779         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
5780         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
5781         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
5782         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
5783         Document that this test may be overridden by setting
5784         `ac_cv_exeext'.
5786 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5788         Revert these two patches:
5790         2006-04-06  Eric Blake  <ebb9@byu.net>
5791         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
5792         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
5793         2006-04-01.
5795         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
5796         Clean up _AC_COMPILER_EXEEXT* macros.
5797         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
5798           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
5799           ac_file to the name of the default output file and call
5800           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
5801           initial `rm' of the candidate files...
5802         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
5803           the same list in subsequent `rm' calls, and for the temporary
5804           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
5805           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
5806         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
5807         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
5808           no longer needed) by libtool.  Make it a cache check.
5809         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
5810           copied here by mistake.
5811         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
5812           _AC_COMPILER_EXEEXT.
5813         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
5814           _AC_COMPILER_OBJEXT directly.
5815         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5817 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5819         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
5820         Fix description of how the buggy `sed' works.
5822 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
5824         Sync from Automake:
5826         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
5827         ENOLCK.  Only mention `make -j' when applicable.  Only raise
5828         fatal errors when `make -j' is involved.  Improve error message.
5830 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5832         * doc/autoconf.texi (Here-Documents): We now know more about
5833         the variable expansion in here documents bug.
5834         Thanks to Tim Rice and Stepan Kasal.
5836         * doc/autoconf.texi (Making testsuite Scripts): Add an example
5837         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
5839 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5841         * tests/autotest.at (Multiline command from M4 expansion):
5842         No failure to be expected if the shell quotes newlines in
5843         commands in the `set -x' output.  Report by Tim Rice.
5844         * THANKS: Update.
5846 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5848         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
5849         expansion in the here-documents used by config.status, as that
5850         runs afoul of the Korn shell version M-12/28/93d bug described in
5851         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
5852         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
5853         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
5855 2006-05-23  Jim Meyering  <jim@meyering.net>
5857         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5858         Fix typo introduced with 2006-04-02 change.  It reversed the sense
5859         of the test.
5861 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5863         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
5864         ac_dB slightly, to save bytes in the script.
5865         Max out at 50 lines, rather than 96; this is more likely
5866         (though not guaranteed) to avoid obscure 'sed' failures.
5868 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5870         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
5871         `tr -d -' as bad option argument.  Work around this by deleting
5872         an unrelated character.
5873         Report by Tim Rice <tim@multitalents.net>.
5875 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
5876             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
5877             Stepan Kasal  <kasal@ucw.cz>
5879         * doc/autoconf.texi (Particular Programs): Do not promise that
5880         we always prefer the GNU version of the program, and that we
5881         search according to PATH; both rules can have exceptions.
5882         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
5883         AC_PROG_SED.  Move descriptions of limitations
5884         to the Limitations of Usual Tools section.
5885         (Limitations of Usual Tools) <sed>: Mention script length
5886         limitations with Solaris /usr/ucb/sed.
5887         <grep>: Fix wording for empty alternative.  Mention that -c and
5888         -l should not be combined, and that -E and -F should not be
5889         combined.
5891 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5892         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5894         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
5895         limits in Solaris 8 /usr/ucb/sed by testing a long script.
5897 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
5899         * doc/autoconf.texi (Defining Symbols): Literal parameter of
5900         AC_DEFINE is now passed to m4_pattern_allow.
5901         * NEWS: Mention that; likewise for AC_SUBST.
5902         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
5903         the parameter to m4_pattern_allow.
5904         * tests/tools.at: Add a check for that.
5906 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
5908         * lib/autoconf/status.m4: Fix typos.
5910 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5912         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
5913         only the files that this macro generates.
5915 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5917         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
5918         the HP-UX sed limitation of 99 commands, labels do not count.
5919         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
5920         in the comment.
5921         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
5923 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5925         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
5926         Import the following fix from coreutils:
5928         2006-01-13  Jim Meyering  <jim@meyering.net>
5930         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
5931         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
5932         not double-quote uses of that variable, to accommodate the rare
5933         case in which getmntent is available in none of the libraries
5934         checked.  This happens at least on FreeBSD 5.0.
5936 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5938         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
5939         ac_config_guess, ac_config_sub, and ac_configure, since evidently
5940         some other programs unwisely rely on these undocumented vars.
5941         But put in warning comments about them.
5942         Problem reported by Ralf Wildenhues in
5943         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
5944         * NEWS: Document that these variables are intended to go away.
5946 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5948         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
5949         and set the language to C++ (analogous to the equivalent Fortran
5950         tests).
5952         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
5953         * doc/autoconf.texi (C++ Compiler): Document it.
5954         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
5955         * NEWS: Update.
5957 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5959         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
5960         that caused config.status to generate 100-command sed scripts; the
5961         portable limit is 99.
5963 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5965         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
5966         variable `ac_d' instead of `d' to avoid infringing namespace.
5967         Report by Ralf Menzel.
5969 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5971         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
5972         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
5973         * tests/tools.at (autoconf: subdirectories): New test, taken from
5974         the corresponding problem report by Ralf Wildenhues in:
5975         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
5977         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
5978         Quote some uses of shell variables if they might suffer unexpected
5979         globbing.  This doesn't fix all instances of quoting problems that
5980         I found, just the easy ones that look safe.
5981         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
5982         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
5983         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
5984         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
5985         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
5986         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
5987         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
5988         Likewise.
5989         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
5990         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
5992 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5994         * bin/autoreconf.in ($help): Reword according to the manual.
5995         Suggested by Olly Betts.
5997 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
5998         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6000         * bin/autoreconf.in: Pass the directory argument to
6001         `require_configure_ac'.  Fix comment.
6002         * tests/torture.at (Configuring subdirectories): Expose this.
6003         Reported by Olly Betts.
6005 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6007         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
6008         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
6009         Automake as follows:
6011         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
6012         `$configure_in' instead of `configure.in', to preserve
6013         directory component.
6015 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6017         * config/config.guess, config/config.sub, config/texinfo.tex,
6018         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
6020 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6022         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
6023         test for C99 conformance; (bool) 0.5 is an integer constant
6024         expression, but (bool) -0.5 is not.  Problem reported by Fedor
6025         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
6027 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6029         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
6030         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
6031         Warn about obsolete install-sh files.  Remove stray sentence
6032         fragment and fix cross reference.
6033         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
6034         install -d; this undoes the 2006-05-10 change.
6035         (MKDIR_P): Mark with AN_MAKEVAR.
6036         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
6037         that we don't require $INSTALL to be thread-safe.  Move comments
6038         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
6039         of AC_PROG_INSTALL.  Output a message saying that we're checking
6040         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
6041         MKDIR_P instead of AC_SUBST.
6042         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
6043         Special magic for MKDIR_P, too.
6044         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
6045         a dnl.
6046         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
6048 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6050         Sync from Automake, as follows:
6052         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6053         * config/install-sh: Initialize IFS, so field splitting isn't
6054         turned off later.
6055         * config/mkinstalldirs: Likewise.
6056         * config/missing: Remove superfluous quotes.  Replace all uses of
6057         `[' by `test', for consistency, and for..
6058         * config/missing (sed_minuso, sed_output): New variables.
6059         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
6060         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
6061         Fixes `missing' to detect `--output' for help2man.  Fixes
6062         PR automake/483.  Report by Dennis J. Linse.
6063         (autom4te): Document in `missing --help'.
6065 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6067         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
6068         * config/install-sh: Don't use 'path' to talk about file names,
6069         as per GNU coding standards.  Close a race condition reported by Ralf
6070         Wildenhues and Stepan Kasal.  There is still a race condition
6071         on hosts that predate Posix 1003.1-1992, but we can't help this.
6072         Don't mishandle weird characters like space on pre-Posix hosts.
6073         Invoke mkdir at most once per dir arg on pre-Posix hosts.
6074         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
6075         AC_PROG_MKDIR_P from AS_MKDIR_P.
6076         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
6077         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
6078         earlier editions are not (including Automake 1.8.3).
6079         Do not suggest mkinstalldirs for thread-safety.
6080         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
6081         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
6082         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
6083         presence of special characters and race conditions.
6084         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
6085         in Autoconf's name space.
6087 2006-05-10  Bruno Haible  <bruno@clisp.org>
6088         and Paul Eggert  <eggert@cs.ucla.edu>
6090         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
6091         from Automake with minor changes.
6092         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
6094 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6096         * config/install-sh: Update to Automake CVS version, as follows:
6097         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
6098         * lib/install-sh: Simplify the expr implementation of dirname.
6099         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6100         * lib/install-sh: Handle --, and diagnose unknown options.
6102 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6104         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
6105         `./autom4te' to create `./testsuite', since the `all' target
6106         will ensure its presence, but `installcheck' should not create
6107         the uninstalled wrappers.
6109         * tests/torture.at (Unusual Automake input files): Skip if we
6110         detect automake < 1.8.
6112 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6114         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
6115         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
6116         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
6117         * NEWS: Update.
6119 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6121         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
6122         munge (multiple) white space and other oddities.
6123         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
6124         single quotes in variable assignment.
6125         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
6126         and similar failures by adding multiple spaces, tabs, and other
6127         special characters.
6128         Report and different test suggested by Francesco Romani
6129         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
6131         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
6132         single quotes, we only need to search for single quotes; this
6133         both simplifies the search pattern, and makes us less
6134         susceptible to `echo' variations for arguments not containing
6135         single quotes.
6136         (_AC_ARG_VAR_VALIDATE): Likewise.
6138 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6140         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
6141         `$*' and IFS concatenation issue with traditional shells and
6142         bash-2.04.  Report by Seanster@Seanster.com.
6144 2006-05-03  Bruno Haible  <bruno@clisp.org>
6146         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
6147         precisely which Mac OS X versions have the od problem.
6149 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6151         * doc/autoconf.texi: Use @option systematically.
6153 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6154         and Bruno Haible  <bruno@clisp.org>
6156         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
6157         about 'od'.
6158         (Integer Overflow): Mention the special case of integer division
6159         overflow.
6161 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6163         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
6164         traditional shells like the Solaris one that do not use the
6165         first IFS character for assembling `$*'.
6166         Prompted by a related report from autoconf_bug@nro.ca.
6168 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6169         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6171         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
6172         Mention more problems with the -e option.
6174 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6176         * NEWS: Typo.
6177         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
6179         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
6180         in URLs to improve DVI formatted output (requires texinfo 4.6).
6181         (System Services, Systemology, Shellology): Likewise.
6182         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
6183         output.
6185         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
6186         continuous text.
6187         (Runtime): Fix macro argument names to match description:
6188         `action-if-found' -> `action-if-true' and similarly.
6189         (Obsolete Macros): Likewise.
6190         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
6191         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
6192         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
6194 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6196         * doc/autoconf.texi (Limitations of Make): Clean up markup.
6198         * ChangeLog: Typo.
6199         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
6200         DVI output.
6202 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6204         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
6205         /bin/sh set unsorted output.
6206         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
6207         * tests/local.at: Likewise.
6209 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6211         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
6212         (Integer Overflow, Null Pointers, Buffer Overruns):
6213         (Floating Point Portability, Exiting Portably): New sections.
6214         (Writing Test Programs): Fix some langauge.  Recommend exiting
6215         with status 1, not merely nonzero.  Clarify exit declaration.
6216         (Run Time): Move C exit status stuff to new Exiting Portably section.
6217         (Systemology): Mention Posix and levenez.  Update v7 reference.
6218         (Portable Shell): Mention the Posix shell.
6220 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
6222         * bin/autoconf.as (me): Replace by as_me.
6224 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6226         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
6227         since as_me isn't set yet.
6229 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6231         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
6232         a few minor bugs in this area.
6234         * doc/autoconf.texi (Programming in M4sh): Comment out the
6235         documentation of AS_BASENAME, for now.
6236         (Shell Substitutions): Do not use AS_DIRNAME in an example.
6237         (Limitations of Builtins) <basename>: Do not refer to
6238         AS_BASENAME.
6239         * bin/autoconf.as (me): Don't use AS_BASENAME.
6240         (dir): Remove the unused variable.
6241         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
6242         AS_DETECT_REQUIRED.  All uses changed.
6243         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
6244         All uses changed.
6245         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
6246         (AS_BASENAME): Use "basename --" to protect against leading "-".
6247         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
6248         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
6249         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
6250         (_AS_DIRNAME_PREPARE): Likewise.
6251         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
6252         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
6253         (AS_DIRNAME): Use "dirname --".
6255 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6257         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
6258         of "run time" and "run-time" changed to "runtime", for consistency.
6259         * lib/autoconf/fortran.m4: Likewise (in comment).
6260         * lib/autoconf/functions.m4: Likewise.
6261         * lib/autoconf/general.m4: Likewise.
6262         * lib/autoconf/headers.m4: Likewise.
6264         * doc/autoconf.texi (Run Time): Document the exit status situation
6265         with more accuracy and detail.
6267 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6269         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
6270         Archive is not officially `GNU' any more.  Update URL.
6271         (Defining Directories): Likewise
6272         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
6274 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6276         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
6277         newline from the `trap' code to finish `config.log'; the NetBSD
6278         /bin/sh resets the exit status after an empty command, as
6279         documented in doc/autoconf.texi.
6280         Reported by Dalibor Topic <robilad@kaffe.org>.
6282 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
6284         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
6285         Suggested by Bruno Haible.
6287 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
6289         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
6290         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
6291         Instead, just list the shells that we know work.
6292         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
6293         changed.  Be more cautious about the _cv_ variable.
6294         * tests/tools.at (Syntax of the shell scripts): Check the
6295         _cv_ variable once, at first, to avoid an internal autoconf error
6296         when sh -n does not work.
6298 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6300         * lib/Autom4te/FileUtils.pm: Sync from Automake.
6302 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
6304         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
6305         use ">&-" since we're only 99.999% sure that this is portable,
6306         and since the MinGW bug is fixed in a different way.
6307         * lib/autotest/general.m4 (AT_INIT): Likewise.
6309 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
6311         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
6312         before opening config.log, to avoid hitting a bug on MinGW.
6314 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
6316         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
6317         AS_MESSAGE_LOG_FD before reopening it onto the log file.
6318         This works around a MinGW bug reported by Eric Paire.
6319         Make sure that all writes to the log file append to it,
6320         rather than possibly losing data.
6321         * lib/autotest/general.m4 (AT_INIT): Likewise.
6323 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
6325         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
6326         description.
6328 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6330         * NEWS: Update.
6332         * configure.ac (AC_INIT): Bump to 2.59d.
6334 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6336         Version 2.59c.
6338         * Makefile.maint (news-date-check): Do not require a leading `*'
6339         before the release date in NEWS.
6341 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
6342         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6344         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
6345         the instantiated file do not contain the string 'datarootdir'
6346         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
6347         @mandir@, replace the reference '${datarootdir}' by the value.
6348         * tests/torture.at (datarootdir workaround): New test.
6349         * NEWS: Advertise this temporary fixup.
6350         Based on a patch by Bruno Haible, reported and analyzed by
6351         Paul Eggert and Noah Misch.
6353 2006-04-12  Eric Blake  <ebb9@byu.net>
6355         * tests/autotest.at (Debugging a failed test): Fix comment.
6357 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
6359         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
6360         all the changes since 2006-04-07.
6362 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6364         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
6365         succeeded, but `ln -s file dir' failed, take care to remove the
6366         leftover target before the next test, to prevent its spurious
6367         failure; also make sure `ln file dir' works before selecting it.
6368         Thanks to Keith Marshall for pointing this out.
6369         * THANKS: Update.
6371         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
6372         assignments in `at_debug_args', so that we put them correctly
6373         in the `run' script.
6374         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
6375         Reported by Eric Blake.
6377 2006-04-11  Eric Blake  <ebb9@byu.net>
6379         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
6380         top-level tests after micro-suite has been run.   Used in...
6381         (Debugging a successful test, Debugging script and environment),
6382         (Debugging a failed test): ...these new tests.  The first of these
6383         is fixed by...
6384         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
6385         macro, split out from...
6386         (AT_INIT): ...here, so that using -d also generates a run script.
6387         Document that -d inhibits top-level logging.
6388         * doc/autoconf.texi (testsuite Invocation): Document that -d only
6389         inhibits top-level logging; debug scripts are created.
6391         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
6392         check.
6393         * tests/autotest.at (Empty test, Empty check): New test to check it.
6395         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
6396         from gcc.
6398 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
6400         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
6401         the files if a problem appears.  Make the empty *.at files
6402         read-only, too.  Proposed by Ralf Wildenhues.
6404 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6406         * config/Makefile.am: Add comment to force updated Makefile.in.
6408         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
6409         space only patch to this file, this patch causes the Makefile.in
6410         files that include freeze.mk to be updated, and thus have a
6411         newer time stamp again, which in turn makes a pristine CVS
6412         checkout have correct time stamps.
6414         * Makefile.maint (cvs-sv): New macro, to be used..
6415         (config.guess-url_prefix, config.sub-url_prefix)
6416         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
6417         point to CVS text checkout of Gnulib files.
6418         (copyright-check): Bump current year.
6419         (announcement): Do not hard-wire `./announce-gen'.
6420         (cvs-update): Propagate failures of `cvs' and `move-if-change'
6421         correctly.
6422         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
6423         `chmod +x'.
6424         (wget_files): Update config.guess, config.sub, texinfo.tex by
6425         `wget-update', now that their URLs work again.
6427 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6429         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
6430         Problem noted by Paul D. Smith.
6432 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6434         * doc/autoconf.texi: Remove unused words from word list.
6435         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
6436         .x-sc_trailing_space: New files.
6438         * doc/standards.texi: Sync from gnulib.
6440         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
6441         `LIBOBJDIR' as experimental.
6443         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
6444         with a target directory; it's internally implemented as `cp'
6445         anyway, but since Autoconf advertises the possibility to use
6446         a target directory when LN_S is `ln -s', we need to find out.
6447         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
6448         analyzed by Keith Marshall <keith.marshall@total.com>.
6450         * THANKS: Update.
6452 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6454         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
6455         confdefs.h as-is.  In general, if it has backslash-newline or the
6456         like, then it doesn't work either to sort or to remove empty
6457         lines.
6459 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
6461         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
6463 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
6465         * lib/autom4te.in (Automake-preselections): Preselect
6466         _AM_SUBST_NOTMAKE.
6468 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6470         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
6471         apostrophe within a single-quoted string, as this is the usual
6472         tradition and is easier to read than '"'"'.  Don't rely on the
6473         shell treating "$/" like '$/'.  Use a more-consistent indenting
6474         style for the trap.
6476 2006-04-09  Eric Blake  <ebb9@byu.net>
6478         * tests/autotest.at (Backquote command substitution),
6479         (Multiline backquote command substitution): Remove mistaken
6480         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
6481         applied...
6482         (Parenthetical command substitution, Multiline parenthetical
6483         command substitution): here.
6485 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6487         Import macros from gnulib (often changing their name).
6489         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
6490         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
6491         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
6492         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
6493         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
6494         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
6495         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
6496         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
6497         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
6498         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
6499         The manual mentions Gnulib more prominently.
6500         * doc/autoconf.texi (Gnulib): New node.
6501         (Pointers): Add Gnulib URL.
6502         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
6503         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
6504         Gnulib section.
6505         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
6506         suggest a #define rather than a typedef for _Bool, and mention
6507         Gnulib rather than trying to substitute stdbool code.
6508         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
6509         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
6510         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
6511         AC_STRUCT_DIRENT_D_TYPE.
6512         (Particular Types): Mention stdint.h and inttypes.h as standard
6513         headers too.
6514         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
6515         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
6516         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
6517         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
6518         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
6519         (C Compiler): Move AC_C_LONG_DOUBLE to ...
6520         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
6521         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
6522         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
6523         (Coding Style).  Don't mention m4_expand_once.
6524         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
6525         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
6526         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
6527         (AC_CHECK_FUNCS): Use it.
6528         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
6529         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
6530         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
6531         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
6532         (AC_HEADER_ASSERT): New macro.
6533         (AC_HEADER_STDBOOL): Don't assume "#error" works.
6534         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
6535         Catch a bug in an HP-UX C compiler.
6536         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
6537         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
6538         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
6539         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
6540         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
6541         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
6542         New macros.
6544         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
6545         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
6547 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
6549         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
6550         of the warning introduced by the 2001-08-28 change.
6552 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
6553             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6555         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
6556         variables shall be overriden by the cache.
6557         * tests/torture.at (AC_ARG_VAR): Test also with a first value
6558         that contains braces.
6560 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
6562         Revert the patch from 2006-04-01 and only improve
6563         _AS_DETECT_BETTER_SHELL:
6565         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
6566         skip nonexistent directories.
6567         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
6568         only shell candidates which exist.
6569         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
6570         * lib/autotest/general.m4 (AT_INIT): No need to give three
6571         parameters to _AS_PATH_WALK.
6573 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
6574             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6576         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
6577         distinguish m4sugar macros.
6578         * tests/tools.at (autoupdating with aclocal and m4_include):
6579         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
6580         test case by Noah Misch <noah@cs.caltech.edu>.
6582 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
6584         Revert my change from 2006-03-17, in other words:
6585         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
6586           and DUALCASE=1.
6587         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
6588         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
6589           it is set.
6591 2006-04-07  Eric Blake  <ebb9@byu.net>
6593         * doc/autoconf.texi (Programming in M4sh): Document that
6594         AS_MKDIR_P exits the script on failure.
6595         * lib/autotest/general.m4: Remove redundant AS_ERROR.
6597 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6599         * config/elisp-comp, config/install-sh, config/mdate-sh,
6600         config/missing, config/mkinstalldirs: Sync from Automake.
6602         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
6603         from Automake.
6605         * doc/make-stds.texi: Sync from gnulib.
6607 2006-04-06  Eric Blake  <ebb9@byu.net>
6609         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
6610         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
6611         2006-04-01.
6613 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
6614             Eric Blake  <ebb9@byu.net>,
6615             Paul Eggert  <eggert@cs.ucla.edu>,
6616             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6618         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
6619         whether `set' quotes correctly: redirect stderr of the tested
6620         `set', and use a subshell, for Ultrix; use `sed' instead of
6621         `grep' for zsh `set' which may write binary output; match only
6622         at the beginning of a line, to avoid false positives.
6623         In order to avoid false positives by unrelated variables with
6624         multiline content, put the dump algorithm in a subshell and
6625         unset all variables containing newlines (except some which are
6626         special to the shell).  Warn about cache variables that are
6627         unset.
6629 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6631         * config/config.guess, config/config.sub, config/texinfo.tex:
6632         Sync from upstream.
6634         * tests/mktests.sh: Reword comments.
6636         * tests/mktests.sh: Only skip internal macros starting with
6637         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
6638         Update exclusion lists for the test suite to this end:
6639         (AC_ARG_VAR): Do test this now.
6640         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
6641         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
6642         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
6643         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
6645         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
6646         shell issue with double-quoted command substitutions of native
6647         commands.
6648         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
6649         Marshall.
6651         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
6652         no file matches the glob, discard the warning, set `nullglob'.
6653         (syntax-check): Likewise.
6654         (sc_cast_of_x_alloc_return_value): Likewise.
6655         (sc_cast_of_alloca_return_value, sc_error_exit_success)
6656         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
6657         (m4-check): Likewise.
6658         (sc_system_h_headers): Do not print rule on execution.
6659         (sc_tight_scope): Do not fail for non-existing `src' directory.
6660         (sc_changelog): Skip the Copyright footer.
6661         * lib/autoconf/lang.m4: Remove trailing space.
6663         * lib/autoconf/status.m4: More replacements to
6664         <tab><space> where this makes sense.
6666 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
6668         * tests/Makefile.am (maintainer-check-posix):
6669           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
6671         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
6672           ac_config_<foo>s again, sometimes normalized, sometimes not.
6673         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
6674         (AC_CONFIG_COMMANDS): Do not do so here.
6675         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
6676           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
6677           2005-07-25 rewrite.  Noticed by Noah Misch.
6679         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
6680           _AC_PRESERVE_HELP_ORDER, ...
6681         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
6683         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
6684           inside m4_expand_once; it is redundant.
6686         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
6687           for --help from Cygnus `configure.'
6689 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6691         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
6692         on a patch proposed by Ralf Wildenhues.
6694 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6696         * lib/autoconf/status.m4: Replace <space>''<tab> with
6697         <tab><space> where this makes sense.
6699 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
6700             Noah Misch  <noah@cs.caltech.edu>
6702         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
6703         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
6704         * doc/autoconf.texi (Help Formatting): New node.
6705         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
6707 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6709         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
6710         lib/autoconf/specific.m4, lib/autoconf/status.m4,
6711         lib/autoconf/types.m4, lib/autotest/general.m4,
6712         tests/mktests.sh, tests/torture.at: White space cleanup:
6713         remove some SPACE before TAB, or add quoting ('' or @&t@).
6715         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
6717         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
6719 2006-04-05  Eric Blake  <ebb9@byu.net>
6721         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
6722         empty test suite works.
6723         * tests/autotest.at (Empty test suite): Remove xfail.
6725 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
6727         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
6728         TAGS to ac_config_<foo>s.
6729         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
6730         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
6731         normalizing it, consistent it with previous releases.
6732         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
6734 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6736         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
6737         Use simplified args that Eric Blake originally suggested.
6739 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6741         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
6742         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
6743         Use 'comm' rather than N instances of grep; this also fixes a bug
6744         whereby substrings were incorrectly matched, causing us to not
6745         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
6746         (exclude_list): Exclude empty macros.
6747         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
6749         Use awk rather than grep -E or egrep, to avoid
6750         portability problems with regular expressions containing newlines.
6751         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
6752         Switch from grep to awk syntax.
6753         (ac_exclude_script): Renamed from ac_exclude_egrep.
6754         (au_exclude_script): Renamed from au_exclude_egrep.
6756 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
6758         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
6759         a subdirectory subject to Cygnus `configure'.
6760         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
6762         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
6763         report request when we have no AC_PACKAGE_BUGREPORT.
6765 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6767         * THANKS: Update.
6769         * tests/mktests.sh: Update copyright year in the header of the
6770         generated files.
6772         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
6773         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
6774         typedef'ed restricted pointer, to catch a compiler bug on
6775         HP-UX 11.x, and fix warnings so it passes with -Werror.
6776         (_AC_PROG_CC_C99): Likewise.
6777         Reported by Albert Chin <china@thewrittenword.com>.
6778         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
6780 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
6782         * bin/autoscan.in (subdirs): New global.
6783         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
6784         (output): Emit AC_CONFIG_SUBDIRS as needed.
6785         * tests/autoscan.at (autoscan): Remove XFAIL.
6787 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
6789         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
6791 2006-04-03  Eric Blake  <ebb9@byu.net>
6793         * THANKS: Add myself.
6795 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6797         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
6798         to log, point to testsuite output tree.
6800 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
6802         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
6803         * doc/autoconf.texi (Function Portability): Mention that C++
6804         has trouble with 'exit'.
6805         (Guidelines): Test programs shouldn't use 'exit'.
6806         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
6807         Remove; all uses removed.
6808         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
6809         Return from 'main' instead of calling 'exit'.
6810         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
6811         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
6812         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
6813         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
6814         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
6815         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6816         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
6817         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
6818         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
6819         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
6820         * tests/compile.at: Likewise.
6822 2006-04-02  Pavel Roskin  <proski@gnu.org>
6824         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
6826 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6828         Clean up _AC_COMPILER_EXEEXT* macros.
6830         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
6831           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
6832           ac_file to the name of the default output file and call
6833           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
6834           initial `rm' of the candidate files...
6835         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
6836           the same list in subsequent `rm' calls, and for the temporary
6837           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
6838           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
6839         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
6840         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
6841           no longer needed) by libtool.  Make it a cache check.
6842         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
6843           copied here by mistake.
6844         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
6845           _AC_COMPILER_EXEEXT.
6846         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
6847           _AC_COMPILER_OBJEXT directly.
6848         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6850 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6852         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
6853         (AS_DIRNAME): Use it.
6854         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
6856         * tests/*.at: Remove the generated ones.
6858 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6860         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
6862 2006-04-01  Eric Blake  <ebb9@byu.net>
6864         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
6865         directories, unless optional third argument supplied.
6866         (AS_UNAME): Don't optimize PATH walk.
6868         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
6870 2006-04-01  Eric Blake  <ebb9@byu.net>
6871         and Stepan Kasal  <kasal@ucw.cz>
6873         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
6874         and fix some typos.
6876 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
6878         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
6879         Autoconf version number despite a zero- or one-argument AC_INIT.
6881         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
6882         subordinate tools.
6883         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
6884         * doc/autoconf.texi (autoreconf Invocation): Document it.
6886         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
6887         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
6889 2006-04-01  Eric Blake  <ebb9@byu.net>
6891         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
6892         * lib/autotest/general.m4: Be tolerant of existing directory when
6893           rm failed to remove it.
6895 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6897         * bin/autoupdate.in: Redefine m4_location so that warnings print
6898         the correct lines of the input file by subtracting..
6899         (_au__first_line): ..this new definition.
6901         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
6902         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
6903         Remove stray newline in output.
6904         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
6905         AC_DEFUN this for autoconf, including the obsoletion diagnose.
6906         Fixes autoupdating of code where the replacement output contains
6907         m4sugar macros.
6908         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
6909         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
6910          (au_exclude_list): Add AC_LANG_SAVE.
6911         * tests/tools.at: Several new tests for all of this.
6912         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
6913         hairy details.
6914         The AC_LANG_SAVE issue was reported against Libtool by
6915         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
6916         Kristian Kvilekval <kris@cs.ucsb.edu>.
6918 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6920         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
6921           switch all of them on and of when necessary.  Fixes the bug when
6922           m4sugar macros (e.g., m4_define) were expanded after the first
6923           automatic update (e.g., after AC_PREREQ or AC_INIT).
6925 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
6927         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
6928         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
6930         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
6931         correctly.  Problem reported by Eric Blake.
6932         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
6933         Ralf Wildenhues.
6935 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6937         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
6938         Tighten up the basename/dirname wording.
6940 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6942         * Makefile.maint (sc_texi_notab): New check: do not use TABs
6943         in texinfo files outside of verbatim environments.
6944         (syntax-check-rules): Update.
6945         * doc/autoconf.texi (Configuration Headers): Conform to it.
6947 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
6949         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
6950           aclocal cannot be given on the command line.
6952 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
6954         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
6955         Give an example for AS_DIRNAME instead of referring to Posix..
6956         (File System Conventions): Put discussion of // versus / here, and
6957         modernize it a bit.
6958         (Limitations of Usual Tools): Add basename.  Remove verbiage
6959         after dirname, since it got moved to the above sections.
6960         All this was inspired by a patch proposed earlier by Eric Blake.
6962 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6964         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
6965         `$0' to protect against spaces.
6966         * lib/autotest/general.m4 (AT_INIT): Likewise.
6967         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
6968         `$0', $as_me.
6970 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6972         * bin/autoscan.in: The value of find_configure_ac should be
6973         checked for existence, so we don't barf over a nonexisting
6974         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
6976 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6978         * bin/autoupdate.in: Fix some typos.
6980 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
6982         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
6984         * lib/autoscan/autoscan.list: Refreshed.
6986 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6988         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
6989         and Erlang related variables.
6991         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
6992         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
6993         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
6994         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
6995         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
6996         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
6997         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
6998         (_AC_PROG_OBJC_G): New macros.
6999         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
7000         * doc/autoconf.texi (Objective C Compiler): New node.
7001         (Preset Output Variables): Document OBJCFLAGS.
7002         (Language Choice): Document `Objective C' language.
7003         (Fortran Compiler): Fix typo.
7004         * NEWS: Updated.
7005         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
7007 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
7009         * doc/autoconf.texi (Default Includes): Fix typo
7010           s/AC_HEADERS_STDC/AC_HEADER_STDC/
7011         (Limitations of Usual Tools): s/unwriteable/unwritable/
7012         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
7013           Fix typos in the comments.
7015 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
7017         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
7018           Factor out the warning to...
7019         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
7020         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
7021         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7023         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
7024           case `ac_delim' when writing the sed script.
7026         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
7027           moved DUALCASE=1 ...
7028         (AS_SHELL_SANITIZE): ... here.
7029         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
7030           that it is set.
7032         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
7033           AC_SUBST.
7034         (_AC_PATH_PROG): Store the result to VARIABLE.
7035         (AC_PATH_PROG): No need to set VARIABLE again.
7037         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
7038           the first one is usual AT_CHECK_MACRO test, the second one checks
7039           that the same works when cross-compiling.
7040         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
7041         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
7043 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7045         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
7046         the directory `/usr/bin/posix' in the shell search, to prefer
7047         the Posix shell not only in subsequent spawns as with `$BIN_SH'
7048         on Tru64.
7050         * doc/autoconf.texi (contents): To fix texi2html output, hide
7051         `@setcontentsaftertitlepage' for HTML.
7052         (Writing Autoconf Macros): Likewise, insert space after `@c'.
7053         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
7054         `@,{c}'.
7056 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
7058         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
7059           sanitizing...
7060         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
7061         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
7062           why IFS is restored so late; thank you, Ralf, for reminding us.
7064 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
7066         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
7067           variables in the examples.
7069 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7071         * doc/autoconf.texi (several sections): Cleaned up documentation for
7072         macros in erlang.m4.
7074 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7076         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
7077         failure condition for `$(cmd)' style command substitutions.
7078         (Parenthetical command substitution, Multiline parenthetical
7079         command substitution): Use it.
7081         * doc/autoconf.texi (Special Shell Variables): Missing word.
7082         Reported by Keith Marshall <keith.marshall@total.com>.
7084         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
7085         IFS even in case of empty `$PATH'.
7087 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7089         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
7090         `expr' away if there is nothing to do.
7091         < --keywords >: Simplify and robustify argument handling.
7092         Revert erroneous comment from 2005-08-23.  Extend to allow
7093         keyword negation with `!'.
7094         Update help message.  Remove broken code to prevent running
7095         tests multiple times.
7096         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
7097         Update and fix the documentation accordingly.
7098         * tests/autotest.at (Keywords): Renamed to..
7099         (Keywords and ranges): .. this.  Extended to make sure negated
7100         keywords, keywords taken from AT_SETUP arguments, and numeric
7101         test ranges work, and that matching is case-insensitive.
7103 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7105         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
7106         allow to pass unnamed structs even in C++.
7107         (AC_CHECK_SIZEOF):  Likewise.
7108         Also fix quoting error in `AC_MSG_FAILURE' arguments.
7109         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
7110         struct): New tests for unnamed structs, each both native and
7111         cross-compiling.
7113         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
7114         a structure inside a cast, for C++ conformance.
7115         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
7116         Also fix quoting error in `AC_MSG_FAILURE' arguments.
7118         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
7119         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
7120         trying to execute the command `no'.
7122         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
7123         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
7124         expanded outside.
7126         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
7127         example.  Do not emphasize `$%', it is hardly new and special.
7128         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
7130         * doc/autoconf.texi (Limitations of Usual Tools): Document
7131         OpenBSD and traditional `grep' failure to handle multiple
7132         patterns separated by newlines.
7134 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7136         * doc/autoconf.texi (several sections): Add documentation for macros
7137         in erlang.m4.
7139 2006-03-10  Eric Blake  <ebb9@byu.net>
7141         * doc/autoconf.texi (Obsolete Macros): Fix wording of
7142         AC_TRY_LINK_FUNC.
7144 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
7146         * doc/autoconf.texi: Use @acronym more consistently for acronyms
7147         like BSD, GPL, LGPL.  Fix minor English typos.
7148         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
7149         Mention that these macros are becoming obsolete.
7150         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
7151         Use more modern terminology for which standard is what.
7152         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
7153         and to ansi2knr.
7154         (AC_PROG_CXX): Likewise.
7155         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
7156         Remove obsolete discussion about how to port to K&R.
7157         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
7158         the obsolescent AC_HEADER_STDC.
7159         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
7160         can't rely on it.
7162 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7164         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
7165         Remove stdin redirection from /dev/null to allow pipe to work.
7167 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7169         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
7170         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
7171         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
7172         Ralf Wildenhues.
7174 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7176         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
7177         HP-UX sed is 99 commands, not 100.
7178         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
7179         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
7180         newline for portability.
7181         * tests/torture.at (Torturing config.status): Also test 100
7182         AC_SUBST_FILE invocations.  Fix test to actually verify the
7183         AC_CONFIG_FILES output.
7184         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
7185         command, label, and read-file `r' limits.  Unify HP-UX spelling.
7187         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
7188         non-suffix rule.
7189         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
7190         non-GNU make.
7191         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
7192         * tests/mktests.sh: Small shell portability fixes.
7194 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7196         * doc/autoconf.texi (Caching Results): Fix the examples to use a
7197         recommended quoting style and discard unwanted output.
7199 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
7201         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
7202         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
7203         cases, and to work around Tru64 expr bug.
7205 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7207         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
7208         expr bug that turns the result of a regex match into a number if
7209         possible.
7211 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7213         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
7214         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
7215         in section `Specific Compiler Characteristics'.
7217 2006-03-04  Eric Blake  <ebb9@byu.net>
7219         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
7220         variable warning.
7222 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7224         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
7225         order of variable initialization, so even the Solaris 2.6 shell
7226         can create a config header correctly.  Fixes lots of test suite
7227         failures.
7229 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7231         * doc/autoconf.texi (Text processing Macros): New node to
7232         document the m4sugar macros m4_re_escape, m4_tolower,
7233         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
7235 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7237         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
7238         XrmInitialize (0) -> XrmInitialize ().
7239         Reported by Toshio Kuratomi.
7241 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7243         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
7244         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
7245         * doc/autoconf.texi (Programming in M4sh): Adjusted.
7246         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
7247         both macros are defun'ed so that required macros are evaluated
7248         outside.
7250         * doc/autoconf.texi (Prerequisite Macros): State more precisely
7251         where a required macro will be expanded.
7252         (Coding Style): Another reason not to use `m4_define'.
7254 2006-02-21  Eric Blake  <ebb9@byu.net>
7256         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
7258 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7260         * doc/autoconf.texi (Looping constructs): New node, to
7261         document m4_for, m4_foreach, m4_foreach_w, and mention
7262         obsolete AC_FOREACH.
7263         (Obsolete Macros): Document AC_FOREACH.
7264         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
7265         (m4_for): Fix to never loop (almost) endlessly, work correctly
7266         with arithmetic expressions in arguments, a step of zero or
7267         non-integer multiple of the interval, and avoid integer
7268         overflow.
7269         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
7270         m4_foreach_w.
7272 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7274         Add basic support for Erlang, both for configuring Erlang/OTP
7275         tools, and Erlang as a conf test language.
7276         * lib/autoconf/erlang.m4: New file.
7277         * lib/autoconf/autoconf.m4: Add erlang.m4.
7278         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
7279         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
7280         * NEWS: Add short description of new macros.
7281         * THANKS: Add Romain Lenglet.
7283 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7285         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
7286         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
7288 2006-02-15  Eric Blake  <ebb9@byu.net>
7290         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
7291         warning.
7293 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7295         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
7296         (_AS_CASE): Private helper macro.
7297         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
7298         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
7299         Fix syntax of AS_IF description
7300         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
7301         for the AC_REQUIRE mess.
7302         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
7303         AS_SHELL_SANITIZE.
7305 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7307         * doc/autoconf.texi: Minor style cleanup.
7308         Be consistent about spaces after commas.
7309         Insert [] where empty args look a bit funny.
7310         Fix some "i.e." and "e.g." usages.
7311         Try to avoid "X/Y" usages.
7312         Don't be pedantic about "ISO C99"; just say C99.
7313         Prefer GNU style for spaces in front of parens.
7314         (Function Portability): Comment about C89 versus C99
7315         signed integer division.
7316         (Particular Headers): Use current gnulib style for dirent
7317         includes.
7319 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
7320         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7322         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
7323         macros without parameters.
7324         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
7325         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
7326         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
7327         `$#' bug.
7328         (autoupdate): Updated to match AU_ALIAS fix.
7330 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7331         and Paul Eggert  <eggert@cs.ucla.edu>
7333         * doc/autoconf.texi (Programming in M4sh): Document
7334         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
7336 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7338         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
7339         (AS_BOURNE_COMPATIBLE): ..this.
7340         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
7342 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7344         * doc/install.texi (Defining Variables): Tighten up the
7345         CONFIG_SHELL wording.
7347 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
7348         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7350         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
7351         of (set -o) rather than testing whether (set -o posix) succeeds,
7352         to work around a bug in the AIX 5.3 shell.  Problem originally
7353         reportd by Howard Chu for libtool.
7355 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
7357         * doc/autoconf.texi (Running the Compiler, Running the Linker):
7358         Changes the macro arguments in summaries to match the
7359         descriptions.
7361 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
7363         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
7364         hint as ``a workaround for a bug.''
7366 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7368         * bin/autoreconf.in: New option `--no-recursive'.
7369         Improve wording for subpackages a bit.
7370         * doc/autoconf.texi (autoreconf Invocation): Updated.
7371         * NEWS: Updated.
7373         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
7374         in environment of `configure', not the command line.
7375         Reported by Howard Chu <hyc@highlandsun.com>.
7377 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7379         * doc/autoconf.texi (Limitations of Builtins): Document the
7380         problem with "trap -".
7382 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
7384         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
7385         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
7386         messages to differentiate Fortran and Fortran 77 tests.
7387         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
7388         AC_LANG_ASSERT, to allow use in mixed-language projects.
7390 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7392         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
7393         FOO" to "defined (FOO)".
7394         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
7395         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
7396         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
7397         * tests/tools.at (ifnames): Likewise.
7399 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7401         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
7402         * lib/Autom4te/General.pm (mktmpdir): Likewise.
7403         (END): Improve error message a bit.
7404         Reported by Bruce Korb <bkorb@gnu.org>.
7406 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7408         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
7409         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
7411 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
7413         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
7414         requires sys/stream.h.  Reported by Oliver Kiddle.
7416 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7417             Stepan Kasal  <kasal@ucw.cz>
7419         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
7420         before the removals of test dirs, use `find' to avoid modification
7421         of symlinked directories.
7423 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
7425         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
7426         Don't ignore the macro arguments.
7428 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
7430         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
7431         declaration that works for MSVC.
7433 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7435         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
7436         Add `*.map' and `.inf' for Green Hills compiler.
7437         Reported by Stefan Seefeld <stefan@codesourcery.com>.
7439         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
7440         correctly: pad with spaces after FIRST_PREFIX if necessary,
7441         and compute string lenghts with `m4_qlen' instead of `m4_len'.
7442         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
7443         * tests/m4sh.at (AS_HELP_STRING): Test extended.
7444         * NEWS: Updated.
7445         Reported by numerous people, numerous times.
7447 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7449         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
7450         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
7451         * lib/autoconf/general.m4, lib/autoconf/status.m4:
7452         * lib/autotest/general.m4, tests/local.at:
7453         Update copyright year to 2006.
7455         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
7456         sed substitutions.
7457         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
7458         for file names, again.  Reported by Noah Misch.
7459         (Coding Style): Explain that s|a|b| is preferred for file names.
7460         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
7461         (AC_OUTPUT_MAKE_DEFS): Likewise.
7462         * lib/autotest/general.m4 (AT_INIT): Likewise.
7463         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
7464         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
7466         Fix Posix-conformance bugs re use of { command in sed scripts,
7467         and improve the sed-related documentation a bit.
7468         * doc/autoconf.texi (Installation Directory Variables): Use
7469         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
7470         rather than "sed" when talking about Sed in general.
7471         (Particular Programs): Likewise.
7472         (Coding Style): y is like s with respect to / and ,.
7473         (Limitations of Usual Tools): Document the weird restrictions
7474         that Posix has about { }.  Use better quoting.
7475         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
7476         Rewrite to conform to Posix rules about { } in sed scripts.
7477         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
7478         * tests/foreign.at (Libtool): Likewise.
7479         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
7480         Use our own style advice re 's,a,b,' versus 's|a|b|'.
7482 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7484         * lib/autoconf/status.m4: Fix typo.
7486         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
7487         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
7488         `-def', for the benefit of Portland `pgf90 -Mipa'.
7489         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
7491 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7493         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
7494         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
7495         shell from zsh to bash.
7497 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
7499         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
7500           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
7502 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7504         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
7505         parentheses in $(...).  Problem reported by Eric Blake.
7507 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7509         * doc/autoconf.texi (Limitations of Usual Tools):
7510         Mention which characters can be escaped with \ in portable regular
7511         expressions used in grep, sed, expr.  Mention the leading ^ problem
7512         with expr.  Clean up some confusing wording.  Mention which
7513         grep options are portable.
7515 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
7517         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
7519 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7521         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
7522         patch, noted by Ralf Wildenhues.
7524 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7526         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
7527         posix' unconditionally, for pdksh in `native sh' emulation.
7529 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7531         * doc/autoconf.texi (Shellology): Document eval $? problem
7532         with ash.
7533         (Limitations of Builtins): Likewise.
7535 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7537         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
7538         CONFIG_SHELL in the environment of the configure rerun.
7539         * doc/autoconf.texi (Here-Documents, config.status Invocation):
7540         Suggest passing CONFIG_SHELL absolute, and in the environment
7541         rather than as option.
7543 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7545         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
7546         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
7547         Fix macro quoting.  Fix output for n * 98 substituted variables.
7549 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7551         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
7552         `tmp' to avoid file removal race.
7554 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7556         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
7557         ac_clean_files and LIBOBJS.
7559 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7561         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
7562         Factor functionality to..
7563         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
7564         `AC_SUBST($1)' in the public version.
7565         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
7566         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
7567         ac_pt_* variables.
7569 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
7571         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
7572         filesystems.
7574 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7576         * NEWS: Move AH_HEADER mention to right place.
7578 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
7580         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
7581         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7583 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
7585         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
7586         conftst2.$ac_objext.
7587         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7589 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
7591         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
7592         conftest.o, to see whether the compiler really obeys; rm the object
7593         file before and after the test and register it with ac_clean_files.
7594         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
7596 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
7598         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
7599         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
7600         code so that the most common case requires less forks.
7602 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
7604         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
7605         not portable; thanks to Paul Eggert and Alexandre.
7607         * NEWS: Fix an old typo.
7609 2005-10-20  Jim Meyering  <jim@meyering.net>
7611         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
7612         the latter'', in two places.
7614 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
7616         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
7617         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
7618         the inner workings of AC_LANG_FUNC_LINK_TRY.
7619         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
7620         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
7621         by the function rather than ignoring it.
7622         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
7623         comparing its address.  Intel's interprocedural optimization was
7624         outsmarting the old heuristic.  Problem reported by
7625         Mikulas Patocka.
7627 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
7629         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
7631 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7633         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
7634         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
7636 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
7638         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
7639         before removing it (chmod -R u+rwx); there are three instances of this.
7641 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7642             Stepan Kasal  <kasal@ucw.cz>
7644         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
7645         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
7646         make its content writable before removing it.  Remove an errorneous
7647         comment from the end, where the logs of the failed tests are copied
7648         to the main log file.
7650 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
7652         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
7653           in case the computer is too quick.  Double quote the configure.ac
7654           snippets.
7656         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
7657           problems if the testsuite were running too fast.
7659 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7661         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
7662         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
7663         (which belong to Xt, not X itself).  See Debian bug 327655.
7664         * NEWS: Mention this.
7666 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
7668         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
7670 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7672         * config/move-if-change: Don't output "$2 is unchanged";
7673         suggested by Ben Elliston.  Handle weird characters correctly.
7675 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
7677         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
7678           calls, so that the final expansion of this macro is shorter.
7679           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
7680           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
7681           the cleanup there.  Use AS_VAR_* macros, to be more general.
7682         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
7684         * lib/autoconf/general.m4: Use AS_IF where appropriate.
7686         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
7688 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
7690         * doc/autoconf.texi (Configuration Headers): Add an index entry
7691           for AH_HEADER.
7693 2005-08-26  Pavel Roskin  <proski@gnu.org>
7695         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
7696         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
7697         running xmkmf.
7699 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
7701         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
7702         The previous patch didn't work, so try a better one.
7704 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
7706         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
7707         in the example.  Reported by Bruno Haible.
7708         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
7709         "if $undefined_var;" succeeds with my shell.
7711         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
7712         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
7713         but change the m4_divert_text to m4_divert_once.
7715 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7717         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
7718         Work around bug in Solaris /usr/xpg4/bin/awk.
7719         The bug is present in at least Solaris 8 through 10.
7721 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
7723         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
7724         some evil values and relying on the fact that $* concatenates the
7725         parameters by the first character from IFS.
7727 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
7728             Stepan Kasal  <kasal@ucw.cz>
7730         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
7731         first header appears, define AH_HEADER.
7732         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
7733         Update limitations about when to call AC_CONFIG_HEADERS.
7734         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
7735         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
7736         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
7737         ``Configuration Actions''; fix their index entries.
7739         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
7740         options correctly.  Process N-M as M-N if M is smaller than N.
7741         Process ranges correctly so that N-N will run only N.
7742         Sort and uniquify the tests that will be run.  If there is more
7743         than one test, reinsert the banners for the tests.
7744         * tests/autotest.at (Keywords): Unmark XFAIL.
7746 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
7748         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
7749           before passing the macro name to AH_TEMPLATE.
7751         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
7752           now opens log after option processing; in particular, --version
7753           and --help do not touch config.log.
7755         * Makefile.maint: Revert the change from 2005-08-12.
7757 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
7759         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
7760           common code to...
7761         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
7763 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7765         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
7766         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
7767         Language cleanup.
7769         * doc/autoconf.texi (Defining Symbols, Changed Results):
7770         Prepend to LIBS, not append, in examples.
7772 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
7774         When building in place, set srcdir="."; suggested by Tim Van Holder.
7776         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
7777           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
7778         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
7779         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
7780           does not mean "no --srcdir option".
7782 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7784         * tests/autoscan.at (autoscan): New file.
7785         * tests/suite.at: Use it.
7786         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
7787         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
7789         * tests/autotest.at (Keywords): Test keywords combinations.
7791 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
7793         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
7794           add "2>&1"; gzip 1.2.4 prints help on stderr.
7796 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
7798         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
7799         was pushdef'ed twice while popped only once.  Push it only once.
7800         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
7802 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
7804         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
7805         prefixed by mere "===", not "configure: === ".
7807 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7809         * Makefile.maint: Update from Bison.
7811         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
7812         "<tab>" in comment, so that the point is understandable.
7814 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
7816         Rewrite substantial part of lib/autoconf/status.m4.
7817         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
7818         and CONFIG_COMMANDS are not processed in four separate loops.
7819         Instead, there is one main loop.  This alows that the common code
7820         is expanded only once, thus config.status (and configure) is smaller.
7822         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
7823         the AC_LIST_FILES and cousins macros are no longer used.
7825         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
7826         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
7827         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
7828         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
7829         contain the initialization, nor the for loop, nor the associated
7830         commands; all these go to ...
7831         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
7832         _AC_OUTPUT_CONFIG_STATUS.
7833         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
7834         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
7835         (_AC_OUTPUT_FILE): The creation of the sed script ...
7836         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
7837         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
7838         _AC_OUTPUT_MAIN_LOOP.
7839         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
7840         _AC_CONFIG_COMMANDS): Use ...
7841         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
7842         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
7843         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
7844         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
7845         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
7846         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
7847         ... new macros.
7848         (_AC_CONFIG_UNIQUE): Update.
7849         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
7850         Replaced by this ...
7851         (_AC_LIST_TAGS): ... new common macro.
7852         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
7853         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
7854         (_AC_LIST_TAG_COMMANDS): ... new common macro.
7855         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
7856         this didn't belong to the `config commands' section.
7857         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
7858         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
7859         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
7860         to the `config commands' section either.
7861         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
7862         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
7864         ... and many changes to the comments nearby.
7866         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
7867         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
7868         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7869         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
7870         (#define header templates): The comment at the top of the generated
7871         header now includes the name(s) of the source file(s).
7873         Several unrelated small changes:
7875         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
7876         parameter to AC_DIAGNOSE.
7877         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
7878         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
7879         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
7880         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
7881         with AU::AC_OUTPUT.
7882         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
7883         in AC_OUTPUT doesn't double-quote it either.
7884         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
7885         parameters.
7887 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
7889         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
7890         versions of Portland Group compiler produce single- and double-quoted
7891         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
7892         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
7894 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7896         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
7897         This is a corrected version of yesterday's patch.
7899 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
7901         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
7902         path, too; insert a "===" to emphasize the line.
7904         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
7905           ac_cv_build_alias to ac_build_alias.
7906         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
7908         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
7909         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
7910         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
7911         (AC_ARG_VAR): ... here.
7912         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
7913           target_alias.
7915         Keep a list of all precious variables and process them with one simple
7916         for loop, instead of expanding all commands, or, OTOH, complicated
7917         processing of output of "set".
7918         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
7919         variable names in new macro...
7920         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
7921         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
7922           a loop to assign all ac_env_* and ac_cv_env_* variables.
7923         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
7924           to INIT_PREPARE.
7925         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
7926           its value to shell variable ac_precious_vars and call
7927           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
7928         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
7929           _AC_ARG_VAR_VALIDATE.
7931         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
7932           and the AC_SUBSTs ...
7933         (AC_INIT): ... here.
7935         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
7936           the ac_subst_files section in config.log.
7938         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
7940 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7942         * NEWS: New macro AC_C_TYPEOF.
7943         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
7944         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
7945         * tests/c.at (C keywords): Test AC_C_TYPEOF.
7947         Fix problems reported by Nicolas Joly.
7948         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
7949         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
7950         They are generated by the Tru64 v5.1B shell.
7952 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
7954         Fix my changes from 2005-07-01; reported by Noah Misch.
7955         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
7956         description, the macro now accepts only a single tag.
7957         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
7959         Fix cases when the varsions of Autoconf and Autotest don't match.
7960         Reported by Noah Misch.
7961         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
7962         at_top_builddir, for compatibility with older autotest.
7963         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
7964         is not set, use at_top_builddir, for compatibility with older
7965         versions of autoconf.
7967 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7969         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
7970         Problem reported by Patrick Welche.
7972 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7974         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
7975         sed substitution command, so that we allow | in program prefixes
7976         and program suffixes.  (& is a problem anyway; we're not fixing
7977         that here.)
7978         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
7979         configure_input, top_builddir, srcdir, etc.
7980         * lib/autotest/general.m4 (AT_INIT): Likewise, for
7981         PATH_SEPARATOR in AUTOTEST_PATH.
7983 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
7985         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
7986         for loop over config.site files using `set', to allow
7987         directory names containing IFS characters.
7989 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7991         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
7992         directories with weird names.  Apparently some people like living
7993         on the edge.  However, improve the test that "pwd" actually does
7994         report a name for the working directory.
7995         * NEWS: Remove the claim that we test for funny chars in dir names.
7997 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
7999         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
8000         replaced ...
8001         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
8002         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
8003         Now accept a single tag, not whitespace separated list.
8004         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
8006 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
8008         * doc/autoconf.texi (Configuration Headers): Change the explanation
8009         about #include <config.h>.
8010         (Generic Functions): Mention the Gnulib project.
8011         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
8013         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
8014         document to output the default config_* lists to config.status.
8015         Don't recognize option --file, if the functionality is not there.
8016         Likewise for --header; moreover, recognize --he and --h as shortcuts
8017         for --help in that case.
8019         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
8020         matches the order of execution.  No code changed.
8022 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8024         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
8025         single-quoted -cmdline argument in Portland Group compiler.
8026         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
8028 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
8030         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
8032 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
8034         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
8035         descriptors to child processes; reported by Norman Gray.
8037 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
8039         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
8041         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
8042         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
8043         (AC_SUBST): Call it.
8044         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
8045         the directory specific variables; but don't call it for configure_input.
8047 2005-06-28  Derek Price  <derek@ximbiot.com>
8049         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
8050         addition.
8052 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8054         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
8055         directory have inherent problems with special characters like spaces,
8056         due to limitations in Make syntax.  Problem reported by Alexandre
8057         Duret-Lutz.
8058         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
8059         Also, fix Tru64 porting problem with shell patterns,
8060         reported by Ralf Wildenhues.
8062 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8064         * doc/autoconf.texi (Subdirectories): Fix markup typos.
8066 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8068         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
8070         Fix some more shell quoting problems.  Prompted by a bug report
8071         from Justace Clutter.
8072         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
8073         variable into diagnostic.  Make the diagnostic an error, not a warning,
8074         because we really don't support spaces and suchlike in dir names.
8075         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
8076         Don't worry about backslashes in srcdir; it can't happen now.
8077         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
8078         Simplify ac_optarg handling.
8079         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
8081 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
8083         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
8084         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
8085         * tests/atlocal.in: Propagate $EGREP and $SED.
8086         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
8087         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
8089         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
8090         that '\|' is not allowed in BREs; recommend using newline separated
8091         list of patterns instead of multiple -e options.
8093         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
8095         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
8097 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8099         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
8101 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
8103         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
8104         b, t, r, w commands require single space, while : cannot have any.
8105         (Special Shell Variables): Fix sed code this in the example.
8106         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
8107         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
8109         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
8110         expand to the empty list.  Don't use two pairs of m4_changequote,
8111         it's not necessary.
8113 2005-06-20  Derek Price  <derek@ximbiot.com>
8115         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
8117 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
8119         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
8120         * doc/autoconf.texi:
8121         Don't mention Solaris versions so much, if a
8122         problem is common to all extant versions of Solaris.  Say "SunOS
8123         4" instead of "SunOS" for SunOS 4.
8124         (awk): Mention more of the limitations of traditional Awk.
8125         (cat): Don't talk about cat -v.
8127 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8129         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
8130         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
8131         but the implementation is entirely different and is designed
8132         to be compatible with glibc strverscmp.
8133         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
8135         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
8136         on Mac OS X 10.4 reported by Peter O'Gorman in:
8137         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
8138         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
8139         Use shell builtins rather than 'expr', to work around expr bug.
8141 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
8143         * doc/autoconf.texi: "filesystem" -> "file system".
8144         "behaviour" -> "behavior".
8145         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
8146         * lib/autoconf/general.m4: Omit blank after ":" sed command,
8147         as per POSIX.
8148         * lib/m4sugar/m4sh.m4: Likewise.
8149         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
8150         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
8152         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
8153         (.x.1): Ignore the time stamp in the .TH line when deciding whether
8154         to update the man page.  That way, we don't have to check in new
8155         man pages every month.
8157         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
8158         quotes and backslashes.  Patch from Derek Price.
8160 2005-06-10  Derek Price  <derek@ximbiot.com>
8162         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
8163         AS_TR_SH.
8165 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
8167         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
8168         -u, since it outputs chatter if the input files are the same.
8169         Problem reported by Ralf Menzel.
8171 2005-06-08  Derek Price  <derek@ximbiot.com>
8173         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
8174         renaming them since they are about to be redefined anyhow.
8176 2005-06-08  Derek Price  <derek@ximbiot.com>
8178         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
8179         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
8180         Move m4_undefine to alphabetical order.
8182 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8184         * README: Recommend GNU M4 1.4.3 or later.
8185         * doc/autoconf.texi (Introduction): Likewise.
8186         Reword to avoid some formatting glitches.
8187         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
8188         Clarify explanation of HP compiler bug.
8189         Redo example output tp match current CVS snapshot.
8190         Use @example.org in email addresses when the examples
8191         might get inadvertently cut-and-pasted into user code.
8192         Remove example of autom4te usage that doesn't seem to work now.
8193         Use modern AC_INIT (except when the example is meant to be
8194         shown with Autoconf 2.13).
8195         Update ksh info for Solaris 9 and later.
8196         KB -> kB.
8197         Modernize description of Automake versions a bit.
8198         Don't claim a future version of Autoconf is near.
8199         * doc/install.texi: Reword to avoid some formatting glitches.
8201 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8203         * doc/autoconf.texi: Add [] to examples, so that the manual
8204         follows its own advice about quoting better.
8205         Reword to avoid some formatting glitches.
8206         * doc/installt.exi: Reword to avoid some formatting glitches.
8208         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
8209         Tru64 ksh pattern matching bug.  Reported against Libtool by
8210         Albert Chin <libtool@mlists.thewrittenword.com> and
8211         Nicolas Joly <njoly@pasteur.fr>.
8213 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
8215         m4_cdr of one-member list was [[]] (one-member list containing an
8216         empty string) instead of [] (an empty list.  Callers were skewed to
8217         match this misbehaviour.  As a consequence of this:
8218          - m4_foreach([x], [], [foo]) expanded to `foo', while
8219          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
8220         This bug has been fixed:
8222         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
8223           expand to an empty string; print error msg if called without
8224           an argument list.
8225         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
8226           misbehaviour; handle [] and [[]] correctly.
8228 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
8230         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
8231         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
8232           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
8234 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
8236         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
8237           swallow records with more than 99 fields.
8238         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
8239           parse the long line.
8241 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
8243         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
8244           swallow literals longer than 399.  Reported by Ralf Wildenhues.
8245         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
8246           to workaround this limitation.
8248 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
8250         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
8251         to gfortran, and make these the first two compiler names
8252         checked (following the general autoconf preference for gcc).
8254 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
8256         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
8257         (DISTCLEANFILES): Remove $(check_SCRIPTS).
8258         (testsuite): Make sure autotest.m4f is up-to-date before using it.
8260 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8262         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
8263         expression of unbounded size when processing the --list
8264         option.  This runs afoul of a limit of 399 bytes per regular
8265         expression on AIX.  Problem reported by Ralf Wildenhues.
8267 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
8269         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
8270         * doc/autoconf.texi (Particular Headers): Reword example
8271         for multiline stdbool replacement.
8272         (Setting Output Variables): Reword text a bit.  Don't
8273         give all the details about |#_!!_#|.
8274         Reword description of line replacement.
8276 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
8278         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
8279         now contain newlines, and substituted files must be referenced on
8280         a line alone; the sed scripts to substitute them are now very
8281         different.
8282         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
8283         commands can be put in a sed script portably.
8284         * doc/autoconf.texi (Setting Output Variables): Document above
8285         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
8286         use of multiline substitution.
8287         * tests/torture.at: No longer expect substitution of newline to fail.
8289 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
8291         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
8292         From Ralf Menzel (trivial change).
8294 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8296         * tests/local.at: Don't attempt to check for negated character
8297         classes in shell scripts.  The test was too brittle.
8299 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
8301         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
8302         * doc/autoconf.texi (Limitations of Builtins): Document this
8303           limitation.
8305 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
8307         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
8308           common code; used in many places in the tree.
8309         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
8310         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
8312         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
8314         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
8315           messages when ac_unique_file is not found.
8316         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
8317         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
8318           commands, for consistency with AC_MSG_ERROR and such.
8320         * bin/autoconf.as: Make more use of "shift 2" in option processing.
8322         * bin/Makefile.am: Merge the two rules for creating scripts.
8324 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
8326         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
8327         obsolete; it was never documented.
8328         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
8330 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
8332         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
8333         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
8334         (ac_top_builddir): ... this ...
8335         (ac_top_build_prefix): ... to this; the old name is also kept, for
8336           backward compatibility.
8337         (ac_top_builddir_sub): New variable, without the trailing slash,
8338           always nonempty.
8339         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
8340         * doc/autoconf.texi (Configuration Actions): Rename
8341           ac_top_builddir to ac_top_build_prefix.
8342         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
8343           at_top_builddir to at_top_build_prefix.
8344         * lib/autotest/general.m4 (AT_INIT): Likewise.
8346 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
8348         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
8349           of confdefs.h .
8351 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
8353         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
8354           argument to m4_foreach.  I guess it was necessary in the past,
8355           but I think it's a no-op now.
8357 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
8359         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
8360           ``cat <<_ACEOF'' commands to one.
8361         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
8362         * lib/autoconf/status.m4: On various places, use expr instead of
8363           ``echo|sed.''
8364         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
8365         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
8366         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
8367           a range.
8368         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
8369           the wrong patterns between ``case'' and ``esac.''  The previous
8370           code had false positives.
8372 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
8374         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
8375         as on 2005-05-02.
8376         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
8377         Mention LIBOBJDIR.
8379 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8381         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
8382         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
8383         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
8384         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
8385         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
8386         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
8387         config/config.guess, config/config.sub, config/elisp-comp,
8388         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
8389         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
8390         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
8391         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
8392         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
8393         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
8394         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
8395         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
8396         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
8397         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
8398         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
8399         lib/autoconf/general.m4, lib/autoconf/headers.m4,
8400         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
8401         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
8402         lib/autoconf/specific.m4, lib/autoconf/status.m4,
8403         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
8404         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
8405         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
8406         lib/autotest/general.m4, lib/emacs/Makefile.am,
8407         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
8408         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
8409         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
8410         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
8411         tests/compile.at, tests/foreign.at, tests/fortran.at,
8412         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
8413         tests/semantics.at, tests/suite.at, tests/tools.at,
8414         tests/torture.at, tests/wrapper.as:
8415         Update FSF postal mail address.
8417 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
8419         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
8420           check.
8421         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
8422           enough arguments, similarly as in m4_bpatsubsts.
8424 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
8426         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
8427           of absolute paths.
8429 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
8431         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
8432           for absolute directory names in one loop.
8433         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
8434           abbreviations of --version and --debug.
8436 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8438         * doc/autoconf.texi (Autoconf Language): Be more precise about
8439         quoting rules.  Problems noted by Stepan Kasal.
8440         Also, throughout this document, be more careful about white space.
8441         "blank", "white space", and "space" all have different meanings
8442         and we should be careful to say what we mean.
8444 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8446         Fix C++ related problems reported by Werner Lemberg.
8447         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
8448         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
8449         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
8450         avoid problems with C++ and throw.
8451         * tests/compile.at: .cpp, not .cc.
8453         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
8455 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8457         * doc/autoconf.texi (Generic Functions): Typos.
8459 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
8461         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
8462         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
8463         set by latest automake.
8465 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8467         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
8468         outputs 0 on GNU/Linux these days.
8470 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8472         * doc/autoconf.texi (Autoconf Language): Add more description
8473         about quoting heuristics.
8474         (Limitations of Builtins): Describe "set -" problems.
8476 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8478         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
8479         not newline.
8481         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
8482         by AC_DEFINE; it was a mistake.
8483         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
8485 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
8487         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
8489 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
8491         * doc/autoconf.texi (External Software): Quadrigraphs are not
8492           processed correctly in AS_HELP_STRING; avoid this in the examples.
8493         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
8494         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
8495           comment and reduce m4_default([foo], []) to [foo].
8496         (m4_strip): Update the explanation.
8498 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8500         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
8501         Remove core.conftest.* too; it's generated by Tru64 5.1.
8502         Problem reported by Jennis Pruett.
8503         * lib/autoconf/functions.m4
8504         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8505         Don't bother to remove core files; AC_RUN_IFELSE should do that
8506         for you.
8508 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
8510         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
8512 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
8514         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
8515         Report from Horst Wente.
8517 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
8519         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
8520           the comment.
8522 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
8524         * doc/autoconf.texi (External Software, Package Options): Add
8525           examples showing how to implement --with-* and --enable-* options.
8527 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8529         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
8530         as well as configure.in.  Problem reported by Gregorio Guidi.
8532 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8534         * doc/autoconf.texi (Particular Functions): Use gnulib's current
8535         pattern for alloca snippet.
8537 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
8539         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
8541 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
8543         * doc/autoconf.texi (Generic Programs): Fix a typo.
8545 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
8547         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
8548         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
8550 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8552         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
8553         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
8554         whole-archive (-zallextract, -zdefaultextract) options in the hope of
8555         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
8556         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
8558 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8560         * NEWS: The configure command now warns you if you attempt to use
8561         a directory whose name contains a special character like space,
8562         newline, or "\".
8563         * doc/autoconf.texi (Installation Directory Variables): Allow
8564         "," in file names.  Do not use \@; it's not a portable regexp.
8565         * bin/Makefile.am (edit): Likewise.
8566         * lib/Makefile.am (edit): Likewise.
8567         * tests/Makefile.am (edit): Likewise.
8568         * tests/semantics.at: Likewise.
8569         * tests/torture.at: Likewise.
8570         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
8571         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
8572         * doc/autoconf.texi (File System Conventions): Warn about
8573         unportable file names.
8574         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
8575         (AC_INIT): Use it.
8576         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
8577         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
8578         ac_pwd, and quote srcdir.
8579         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
8581         * doc/autoconf.texi: Fix some systematic formatting problems.
8582         ".)"  needs a following @: if not at the end of a sentence, and
8583         similarly for "!)".  "etc." should be preceded by a comma.
8584         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
8586 2005-03-22  Bruno Haible  <bruno@clisp.org>
8588         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
8589         argument is often called 'build-aux'.
8591 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
8593         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
8594           macro AC_TRY_LINK is obsolete.
8595         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
8596           `AC_CONFIG_FILES'.
8598 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
8600         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
8601           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
8602           from a Common Lisp's `cl'.
8603         (AC_PROG_CXX): Behave according to the documentation: don't
8604           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
8605           make the variable CCC precious; use `cl.exe', not `cl'.
8607 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8608             Alexandre Duret-Lutz  <adl@gnu.org>
8610         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
8611         /dev/null, as "configure" shouldn't read stdin, and this insulates
8612         us from problems (e.g., when testing for "cl").  Also, do this
8613         redirection before invoking "hostname" or "uname", and keep the
8614         original input stream available via...
8615         (AS_ORIGINAL_STDIN_FD): ... this new macro.
8616         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
8617         bother with "</dev/null" since it's now done at the top of
8618         'configure'.
8619         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
8620         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8621         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
8622         * doc/autoconf.texi (File Descriptor Macros): New section.
8623         (Printing Messages): Mention it.
8624         * tests/base.at (Input/Output): New test.
8626 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8628         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
8629         newline if neither \c nor -n work, as that would output two
8630         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
8632 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
8634         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
8635         This causes that any required macros inside will get before the if.
8636         * doc/autoconf.texi (autom4te.cache): A typo.
8638 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8640         Undo previous change, except keep the change to
8641         lib/autoconf/programs.m4 that replaced grep with shell
8642         pattern-matching.  This is because net-snmp configure reads stdin.
8643         Reported by Noah Misch.
8645 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8647         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
8648         from /dev/null, as "configure" shouldn't read stdin, and this
8649         insulates us from problems (e.g., when testing for "cl").
8650         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
8651         before invoking "hostname" or "uname".
8652         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
8653         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
8654         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
8655         "</dev/null" since it's now done at the top of 'configure'.
8656         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8657         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
8658         Also, replace grep with shell pattern-matching, to save a process.
8660 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
8662         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
8663         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
8664         avoid thinking that Allegro Common Lisp's "cl" command is a C++
8665         compiler.
8667 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8669         * doc/autoconf.texi (Limitations of Usual Tools): Document that
8670         grep -q isn't portable.  Improve grep -s explanation.
8671         Problem reported by Dan Manthey.
8673 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8675         * doc/autoconf.texi (Special Shell Variables): Clarify
8676         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
8678 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8680         * doc/autoconf.texi: Use @acronym for DJGPP.
8681         Fix some @code's that should have been @env's, and vice versa.
8682         Sort environment variable names.
8683         Mention that shells no longer inherit IFS.
8684         Don't recommend PATH_SEPARATOR=';' so strongly.
8685         Mention that $RANDOM might expand to the empty string.
8686         "symlink" and "soft link" -> "symbolic link".
8687         Improve mktemp description (reported by Bruno Haible).
8689 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8691         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
8692         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
8693         Likewise.
8694         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
8695         Likewise.
8697 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8699         * NEWS: Mention AT_COPYRIGHT.
8701         * tests/local.at (AT_CMP): Use diff directly on input files rather
8702         than copying them.
8704         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
8705         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
8707 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
8708         and Paul Eggert  <eggert@cs.ucla.edu>
8710         * tests/autotest.at (Empty test suite): New test.
8711         * tests/torture.at (Substitute and define special characters)
8712         (Substitute a 2000-byte string, Define to a 2000-byte string)
8713         (Substitute a newline, Define a newline): New tests.
8715 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
8717         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
8718         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
8719         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
8720         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
8721         (Standard regular expressions): New test.
8722         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
8723         excess test name quoting.
8724         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
8725         CPPFLAGS to `configure' instead of setting it in `configure'.
8727         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
8728         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
8729         on some platforms.
8731         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
8732         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
8734         * tests/local.at (AT_CMP): New macro.
8735         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
8736         (AC_SAVE_STATE): Move environment grep...
8737         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
8738         (AT_CONFIG_CMP): New macro.
8739         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
8740         * tests/c.at (Extensions): Do not exit early.
8741         * tests/atlocal.in: Inherit $GREP.
8743         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
8744         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
8746         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
8747         (AC_COPYRIGHT): Factor header comment portion out and move into...
8748         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
8749         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
8750         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
8751         --version output.
8752         * tests/local.at: Add Autoconf test suite copyright notice.
8753         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
8755 2005-02-04  Bruno Haible  <bruno@clisp.org>
8756         and Paul Eggert  <eggert@cs.ucla.edu>
8758         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
8760 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8762         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
8763         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
8765         Try not to generated lines of unlimited length, as POSIX places a
8766         2047-byte limit on line length of portable text files.
8767         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
8768         Use newline as a separator, not space.
8769         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
8770         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
8771         space.
8773 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8775         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
8776         as_func_*.  Add test to check whether positional parameters
8777         are restored after function return.
8779 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8781         * doc/autoconf.texi (Special Shell Variables): Mention _,
8782         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
8783         if they contain a lower-case letter.  The DUALCASE problem was
8784         reported by Ralf Wildenhues.
8786         * bin/autoconf.as: Don't exit with status 0 after write failure
8787         with --help or --version.
8788         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
8789         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
8791 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8793         * doc/autoconf.texi (Limitations of Usual Tools):
8794         Unicos 9 sed limitations.
8795         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
8796         to get the option-enhanced interface on older Crays.  Try ftn for
8797         Fortran 95 (newer Crays).
8799 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
8801         * man/Makefile.am (.x.1): Go back to the simple solution, but take
8802         care to echo the commands, so the user knows what's going on.
8803         Modified from a suggestion by Stepan Kasal.
8805         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
8806         with a cross reference.  Derived from a suggestion by Bruce Korb.
8808 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
8810         * doc/autoconf.texi (config.status Invocation): Warn about
8811         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
8812         * doc/install.texi (Defining Variables): Likewise.
8813         Based on a proposed patch by Ralf Wildenhues.
8815         * man/Makefile.am (.x.1): Make sure the required generated files
8816         are up to date.  Problem and original solution proposed by Stepan Kasal.
8817         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
8818         implicit-man-prerequisites): New rules, used by the above.
8820         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
8821         * config/config.guess, config/config.sub, config/install-sh: Likewise.
8822         * config/missing, config/texinfo.tex: Likewise.
8824 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
8826         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
8827         Update the long comment explaining it.
8829         m4_require no longer writes an ``is required by'' line to the
8830         execution stack.  It contains only one bit of non-redundant
8831         information: that the macro was required, not called.  And even
8832         this bit is useless in most situations: have you ever met a macro
8833         which both calls and requires the same macro?
8835         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
8836         (_m4_defun_pro_outer): ... only via this macro, for the outermost
8837           macro.
8838         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
8839         (m4_expansion_stack_pop): Remove the misplaced comment.
8840         (m4_require): Don't put the ``is required by'' line to the
8841           execution stack; slightly improve the out-of-a-defun error message.
8842         (_m4_divert_grow): New macro, counter for the temporary diversions.
8843         (_m4_require_call): Use it.
8844         * tests/m4sugar.at (m4_require): Expect output without the
8845           ``is required by'' messages.
8847 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8849         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
8850         rather than x for expr.
8852         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
8853         this is safe.
8854         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
8855         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
8856         * lib/autotest/general.m4 (AT_INIT): Likewise.
8857         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
8858         * tests/mktests.sh: Likewise.
8860 2005-01-27  Akim Demaille  <akim@epita.fr>
8862         Have autoheader honor --force.
8864         * doc/make-stds.texi, doc/standards.texi: Update from masters.
8865         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
8866         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
8867         from masters, so that FileUtils.pm's update_file provide --force
8868         support.
8869         * bin/autoheader.in: Pass $force to update_file so that
8870         config.h.in is always recreated when --force.
8872 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
8874         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
8876 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8878         * doc/autoconf.texi (Limitations of Builtins): Clarify that
8879         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
8881 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8883         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
8884         Warn about newline stripping in `` and $().  Update Solaris
8885         version to 9.
8886         (Limitations of Builtins): Use expr "X...", not expr "x...", as
8887         X insulates us from future changes to Posix.
8888         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
8889         stripping.
8891 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
8893         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
8894           you cannot use AC_DEFINE to define macros containing `[' or `]'.
8896 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
8898         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
8899         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
8900         bug-tar mailing list.
8902 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
8904         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
8906 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8908         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
8909         ulongval to be static, to avoid unwanted GCC warning.  Problem
8910         reported by Michael Jennings via Daniel Reed; see
8911         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
8913 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
8915         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
8916         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
8917         datadir, infodir, and mandir.  Adjust argument parsing code.
8918         (_AC_INIT_HELP): Update help text.
8919         * doc/autoconf.texi (Installation Directory Variables): Document
8920         new variables.
8922 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
8924         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
8925         not seem to work, assume it does set $(MAKE).
8926         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
8928 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
8930         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
8932 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
8934         A cleanup of the diversion support in m4sugar.
8936         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
8937         (_m4_divert_n_stack): New macro; the expansion is
8938           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
8939           otherwise.
8940         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
8941         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
8942           stored in _m4_divert_diversion or _m4_divert_dump.
8943         (m4_divert_pop): When the parameter is given, compare the symbolic
8944           name with the last diversion pushed on the stack.  Previously, the
8945           current diversion was compared with the numeric value of the
8946           diversion given as the parameter.
8947         (m4_require): If the macro hasn't been expanded yet, call ...
8948         (_m4_require_call): this new macro.
8950 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8952         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
8953         Workarounds for documented `case' limitations.
8955 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8957         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
8958         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
8960 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8962         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
8963         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
8964         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
8966         Patch from Roger Leigh (with some minor changes) as follows:
8967         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
8968         Resurrect AC_PROG_CC_STDC.
8969         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
8970         AC_PROG_CC_C89, AC_PROG_CC_C99.
8971         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
8972         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
8973         AC_PROG_CC_C99): New macros.
8974         (AC_PROG_CC_STDC): Use them.
8975         (_AC_PROG_CC_STDC): Remove.
8976         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
8977         * THANKS: Add Roger Leigh.
8979 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
8981         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
8982         signals that the package uses Automake; a `Makefile.am' is typical but
8983         not essential.  Reported by Magnus Therning.
8984         * tests/torture.at (autoreconf.): New banner.
8985         (autoreconf and non-AC configure): Rename to `Non-Autoconf
8986         AC_CONFIG_SUBDIRS'.
8987         (autoreconf an empty directory): Rename to `Empty directory'.
8988         (Unusual Automake input files): New test.
8990 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
8992         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
8993         (AT_SETUP): Clear AT_capture_files.
8994         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
8995         (AT_KEYWORDS): Fix comment typo.
8996         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
8997         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
8998         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
9000 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
9002         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
9003         If the variable to set is already set, set ac_cv_path_$1
9004         to the preset value so caller can assume ac_cv_path_$1
9005         is available.  (trivial change)
9007 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
9009         * BUGS (Minor Problems): Warn about makefile limitations.
9010         * Makefile.am: Find and update `INSTALL' in $(srcdir).
9011         * man/Makefile.am: Find and update manual pages in $(srcdir).
9013 2004-12-24  Eric Blake  <ebb9@byu.net>
9015         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
9016         shells in subshell, to avoid noise from ash.  (trivial change)
9018 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9020         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
9021         problems with SunOS ksh and backslash escaping, Bourne shells and
9022         closing brackets (both within character classes).  Bug reported
9023         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
9024         <read>: New entry.  Mention non-availability of -r.
9026 2004-12-21  Akim Demaille  <akim@epita.fr>
9028         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
9029         avoid cluttering displayed messages.  Rather, prepend srcdir where
9030         AT_LINE is used for log files.
9032 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
9034         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
9035         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
9036           no longer part of the macro, quote the occurrence of ``$tmp''.
9037         * doc/autoconf.texi (Forbidden Patterns): Typo.
9039 2004-12-21  Akim Demaille  <akim@epita.fr>
9041         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
9042         separated from the test title by forcing a white space.
9044 2004-12-21  Akim Demaille  <akim@epita.fr>
9046         Enable Emacs navigation within testsuite.log files.
9048         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
9049         use the compilation mode.
9050         (AT_LINE): Point to the srcdir.
9052 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
9054         * tests/Makefile.am (installcheck-local): Use $(bindir).
9055         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
9056         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
9057         Makefile.am scheme Autoconf now uses.
9059 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
9061         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
9062         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
9064 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
9066         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
9067         (_AT_CHECK): Use it.
9068         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
9069         (AS_ESCAPE): Fix comment.
9070         * tests/autotest.at: Adjust section banner comments.
9071         (AT_CHECK_AT): Accept STATUS and STDERR.
9072         (AT_CHECK_AT_TEST): Likewise.
9073         (Invalid brace-enclosed parameter expansion)
9074         (Multiline command from M4 expansion)
9075         (Double-M4-quoted command): New tests.
9077 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9079         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
9081 2004-12-17  Akim Demaille  <akim@epita.fr>
9083         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
9084         m4_pattern_allow.
9085         Suggested by Alexandre Duret-Lutz.
9086         * doc/autoconf.texi (Setting Output Variables): Catch up.
9088 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9090         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
9092 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9094         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
9095           remove the comment which said we cannot.
9097 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9099         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
9100         Reini Urban and Paul Eggert for reporting the dependencies.
9102         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
9103         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
9104         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
9106 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
9108         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
9109           so that eg. ``autoscan --help'' doesn't truncate it.
9111 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
9113         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
9114         generated conftest files.
9116 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
9118         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
9119         tracing on commands with possibly-escaped newlines.
9120         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
9121         discontinued behavior and its implications.
9122         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
9123         (BSx641-newline in command, BS-BS-newline in command)
9124         (BSx640-newline in command, Newline-CODE-BS-newline in command)
9125         (Single-quote-BS-newline in command)
9126         (Single-quote-newline-BS-newline in command): New tests.
9128 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
9130         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
9131           on platforms where it works.
9132         (_AS_TEST_PREPARE): Test for ``test -x''.
9133         (_AS_BROKEN_TEST_PREPARE): Nuke.
9135 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
9137         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
9138         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
9139           give only 4-letter prefix to AS_TMPDIR, comment fixed.
9140         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
9141           create the temporary directory.
9142         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
9144 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
9146         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
9147         (trivial change)
9149 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
9151         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
9153 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
9155         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
9156         to avoid using a negated character class.  Reported by Nicolas Joly.
9157         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
9159 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9161         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
9162         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
9163         Don't depend on .x file explicitly, since "make" does that for us.
9164         Suggested by Stepan Kasal.
9166         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
9167         Add *.tmp.
9168         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
9169         ifnames): Factor common code.  And they said it couldn't be done!
9171 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9173         * bin/.cvsignore: Add autoconf.in.
9174         * tests/.cvsignore: Add wrapper.in.
9175         * lib/autotest/general.m4: Escape '$' in case pattern.
9177 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
9179         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
9181         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
9183         * tests/autotest.at: New file.
9184         * tests/suite.at: Include it.
9185         * tests/Makefile.am: Distribute it.
9187         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
9188           shell tracing on a command that could contain multiple lines.
9189         * doc/autoconf.text: Document that fact and its implications.
9190         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
9191         * tests/autotest.at (Multiline backquote command substitution,
9192           Multiline parameter expansion, Literal multiline command,
9193           Multiline parenthetical command substitution): Remove XFAIL.
9195 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9197         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
9198         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
9200 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
9202         * configure.ac (test suite): Cease to generate wrapper scripts.
9203         * configure: Regenerate.
9204         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
9205         (m4f_dependencies): Adjust accordingly.
9206         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
9207         (wrapper.in): Generate it in the build directory.
9208         (MAINTAINERCLEANFILES): Delete wrapper.in.
9209         (CLEANFILES): Add wrapper.in.
9210         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
9211         the output.  Replace each $as_me with a @wrap_program@.
9212         * tests/wrapper.in: Delete it; we always build it.
9214         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
9215         (EXTRA_DIST): Remove autoconf.in.
9216         (CLEANFILES): Add autoconf.in.
9217         (autoconf): Find autoconf.in in the build directory.
9218         * bin/autoconf.in: Delete it; we always build it.
9220 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
9222         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
9223         PATH members so as to not prepend an empty element.  Move a comment.
9224         * Makefile.am (SUBDIRS): Build in `tests' last.
9225         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
9227 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
9229         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
9230         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
9231         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
9232         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
9234 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
9236         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
9237         patch: extra "-l"s.
9239 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9241         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
9242         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
9243         * doc/autoconf.texi (Particular Functions): Mention new behavior.
9245 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
9247         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
9248           out the common code to ...
9249         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
9250           value of the #define--default to 1, iff the macro was called
9251           with exactly one parameter.
9253 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9255         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
9256         "char c = '\200';" rather than "char c = 0x80;" as the
9257         latter doesn't conform to the strict C standard due to
9258         overflow on signed char hosts.
9260         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
9261         to -qlanglvl=ansi.  We don't want to disable extensions.
9263 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9265         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
9266         (Using Autotest, testsuite Scripts, Writing testsuite.at):
9267         Reword slightly to avoid some English-language problems noted
9268         by Ralf Wildenhues in:
9269         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
9271 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
9273         * NEWS: Add ^L above each release.
9275 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9277         Fix documentation problems reported by Russ Boylan in
9278         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
9279         along with some nearby cruft.
9280         * doc/autoconf.texi (Libtool): Libtool can be used without
9281         Automake (not without Autoconf).
9282         (Introduction): Mention lists.gnu.org.
9283         * BUGS: Don't mention bugs.gnu.org.
9284         Remove mention of ancient libtool compatibility problem.
9285         * NEWS: Mention that bugs.gnu.org is kaput.
9286         * README: Likewise.  Mention where mailing list archives can be found.
9288 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
9290         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
9292 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
9294         * doc/autoconf.texi (Pretty Help Strings): Go back to
9295         single-quoting assignments to cache variables.
9297 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
9299         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
9300         with the examples; fix the bug in MY_ARG_WITH example reported
9301         by Alexandre Duret-Lutz.
9302         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
9303         expansion of $1 in the comment emitted to configure.
9305 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
9307         * doc/autoconf.texi (Pretty Help Strings): Fix typo
9308         in my editing of the previous patch.  Problem reported
9309         by Alexandre Duret-Lutz.
9311 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
9313         * doc/autoconf.texi (Autoconf Language): Explain that
9314         ``descriptions'' may not be double quotes.
9315         (Quotation Rule Of Thumb): Likewise.
9316         (Pretty Help Strings): Likewise; remove the wrong comment;
9317         simplify the examples and improve their quoting.
9319 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
9321         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
9322         the $1_found variable, don't test whether the file is executable;
9323         Both things are checked ...
9324         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
9325         the former ``test -f''.
9326         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
9328 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9330         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
9331         use cp -R instead.
9333 2004-11-10  Derek R. Price  <derek@ximbiot.com>
9335         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
9336         limitations.  Reorder paragraphs for clarity.
9338 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9340         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
9341         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
9342         variants", "Unix", and some related minor wording fixups.
9344         (Shellology, Special Shell Variables): Document that the Zsh
9345         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
9346         to Alexandre Duret-Lutz for this info.
9348 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
9350         * doc/autoconf.texi (One-Shot Macros): New node.
9352 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
9354         * doc/autoconf.texi (Function Portability): Fix misdescription
9355         of putenv.  Problem reported by Michael Wardle.
9357 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9359         * doc/autoconf.texi (auindex): New macro.
9360         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
9361         Problem reported by Stepan Kasal.
9363 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9365         Fix problems reported by Andreas Buening in:
9366         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
9367         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
9368         in test makefile.
9369         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
9370         readable; it's not true in OS/2-emx.
9372 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
9374         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
9375         "/usr/include", clear ac_x_includes instead of leaving it as "no"
9376         (trivial change).  Problem and patch reported by Andrew Church in:
9377         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
9379 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9381         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
9382         three args in examples.  Problem reported by Frederik Fouvry in:
9383         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
9384         Also, fix some minor spacing and punctuation bugs.
9386 2004-09-02  Akim Demaille  <akim@epita.fr>
9388         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
9389         "case" to restore ordering.
9390         Reported by Stepan Kasal.
9392 2004-08-26  Akim Demaille  <akim@epita.fr>
9394         * doc/autoconf.texi: Minor typos and stylos.
9396 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9398         * configure.ac (AC_INIT): Bump to 2.59c.
9400 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9402         Version 2.59b.
9404         * README: Add advice about m4 1.4.2.
9406         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
9407         texinfo.tex for now (done by hand now).
9408         * Makefile.maint (wget_files, cvs_files):
9409         Remove ansi2knr.c; nobody uses it.
9410         (ansi2knr.c-url_prefix): Remove.
9411         (cvs-update): Fix test for failure.  I don't know why it ever
9412         worked...
9414         * doc/autoconf.texi: Update URLs, some of which went stale.
9415         Use @uref rather than @href.
9417         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
9418         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
9420         * config/config.guess, config/config.sub, config/elisp-comp,
9421         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
9422         doc/fdl.texi, doc/standards.texi: Sync with master copy.
9424         * NEWS, TODO, configure.ac, bin/autoscan.in,
9425         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
9426         doc/install.texi, lib/Autom4te/Configure_ac.pm,
9427         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
9428         lib/autoconf/programs.m4, lib/autoconf/status.m4,
9429         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
9430         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
9431         tests/tools.at, tests/torture.at:
9432         Use "file name" rather than "filename" or "path",
9433         to be consistent with the terminology of the GNU coding standards.
9435 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9437         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
9438         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
9439         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
9440         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
9442         More fixes to support spaces in the name of the build directory.
9443         This isn't a complete fix but it's an improvement.
9445         * bin/autoconf.as (autom4te_options): New var.
9446         Use it instead of appending to AUTOM4TE, so that we can allow
9447         spaces in the build directory's absolute name.
9448         * bin/autoheader.in ($autoconf): Allow spaces in file names.
9449         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
9450         AT_CHECK_NOESCAPE): Likewise.
9451         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
9452         main program): Likewise.
9454 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9456         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
9457         From Ralf Corsepius in:
9458         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
9460 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9462         * doc/autoconf.texi (Function Portability): Document isinf and
9463         and isnan.  From a suggestion by Kevin Ryde.
9465         * lib/Autom4te/General.pm (END): Return correct exit status even
9466         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
9468 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9470         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
9471         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
9472         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
9474 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
9476         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
9477         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
9478         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
9479         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
9480         * lib/autom4te.in (Automake-preselections): Preselect
9481         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
9483 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
9485         * lib/autom4te.in (Automake-preselections): Preselect
9486         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
9487         trace them.
9489 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
9491         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
9492         Tru64.
9493         * doc/autoconf.texi (Shellology): Mention BIN_SH.
9494         Document problem with "`""`" in pdksh POSIX mode.
9496 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
9498         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
9499         with pdksh, too.  Problem reported by Patrick Welche via
9500         Gary V. Vaughan.
9501         * doc/autoconf.texi (Shellology): Note that set -o posix is
9502         useful for pkdsh, too.
9504 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9506         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
9507         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
9508         Don't fail if ENV or BASH_ENV is readonly.
9509         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
9510         etc. are read only.  Problem reported by Ludovic Courtes.
9512 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
9514         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
9515         zsh, disable GLOB_SUBST to avoid backslash handling problems.
9516         (trivial change)
9518 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
9520         * doc/autoconf.texi (File System Conventions): Warn about
9521         names like "aux".  Problem reported by Eric Blake.
9523         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
9524         by zero instead of array size, so that we can use any arithmetic
9525         constant expression (instead of requiring an integer constant
9526         expression).  This allows us to test expressions like DBL_MAX <
9527         LDBL_MAX, which didn't conform to the C standard using the old
9528         method.
9529         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
9530         now that we can do floating-point tests at compile time.
9532 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9534         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
9535         and LDBL_EPSILON, as the resulting expression isn't an
9536         integer constant expression and violates the C standard.
9537         Problem reported by Nelson H. F. Beebe.  Also, check
9538         for "L" suffix, and check that long double doesn't have
9539         worse range or precision than double, that mixed-mode
9540         arithmetic doesn't generate a diagnostic, that double
9541         constants fit in long double.
9543 2004-06-03  Kevin Ryde  <user42@zip.com.au>
9545         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
9546         malloc(0) and realloc(NULL,size).
9548         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
9549         Bob Proulx.
9551 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9553         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
9554         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
9555         by Jim Meyering.
9557 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
9559         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
9560         can be rewritten using if-then-else.  Suggested by Bruno Haible.
9562 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
9564         * doc/autoconf.texi (testsuite Scripts): Fix typo.
9565         Problem reported by Stepan Kasal.
9567 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9569         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
9570         change).  Patch reported by Ralf Wildenhues in
9571         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
9573         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
9574         function F exists if the compiler and linker let you compile an
9575         expression like (F != 0).  Recent versions of GCC optimize away
9576         the reference to F in that case, since every function address must
9577         be nonzero, so the link succeeds even if F does not exist.
9578         Problem reported by Manu in
9579         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
9581         * doc/autoconf.texi (Systemology): Standardize on the spelling of
9582         "Unix".  Many uses changed.
9583         (Limitations of Builtins): Explain better why the ! command isn't
9584         portable.
9586 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
9588         * lib/autom4te.in (Automake-preselections): Preselect
9589         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
9591 2004-05-19  Kevin Ryde  <user42@zip.com.au>
9593         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
9594         referencing AC_FUNC_STRERROR_R.
9596         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
9597         note pessimistic assumption when cross compiling.
9599 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9601         * doc/autoconf.texi (Limitations of Make): Note that BSD make
9602         (until 2004) invoked subcommands with sh -e, contra POSIX.
9603         Reported by Kevin Ryde.
9605 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
9607         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
9608         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
9609         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
9610         `test -f "        /usr/bin/grep"', which _always_ failed.
9611         (AC_PROG_SED): Ditto bogus PATH fix.
9612         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
9613         requires that grep correctly supports _multiple_ `-e' options, rather
9614         than stating only that grep should accept `-e'.
9616 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9618         Port to C99, which requires that 'exit' be declared.
9620         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
9621         to ensure that stdlib.h is included.
9622         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
9623         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
9624         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
9625         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9626         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
9627         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
9628         when using 'exit' in a test; C99 requires that 'exit' be declared.
9630 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9632         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
9633         now prefers 'grep' implementations that accept -e.
9634         (Limitations of Usual Tools): Describe problems of traditional
9635         egrep and fgrep with long input lines, and of traditional grep
9636         with -e.
9637         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
9638         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
9639         All callers changed.  Append /usr/xpg4/bin to the PATH, for
9640         Solaris.
9641         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
9642         the user with complaints about multiple -e options.
9643         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
9644         Define it with AC_PROG_GREP.
9645         * configure.ac (AC_PROG_GREP): Add.
9646         * lib/freeze.mk (GREP): New macro.
9648 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
9650         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
9651         a possible candidate only after all others fail, rather than
9652         consulting it first.  This improves backward compatibility by
9653         better reflecting the way shell selection occurred in previous
9654         versions of Autoconf, and should help to avoid triggering latent
9655         problems in other packages, such as the one in Automake where zsh
9656         is not handled robustly:
9657         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
9658         Although it is not Autoconf's responsibility to work around
9659         problems in Automake, it nevertheless makes sense to avoid
9660         introducing unnecessary incompatibilites.
9662 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
9663             Gary V. Vaughan  <gary@gnu.org>
9665         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
9666         how deeply nested we are when a suitable tool is found, set the
9667         ac_path_TOOL_found flag.
9668         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
9669         nested we are in this macro.  Break out of all 3 nested loops if
9670         ac_path_TOOL_found is set.
9672 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
9674         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
9675         of the _AS_PATH_WALK loop too if GNU flavor is found.
9677 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
9679         * doc/autoconf.texi (Limitations of Make): Update documentation
9680         for `$<'.  New entry `Long lines', based on a report from Simon
9681         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
9682         paragraph about DJGPP, based on a mail from Richard Dawe.
9684 2004-04-20  Paul Eggert  <eggert@twinsun.com>
9686         * tests/c.at (C keywords): Don't assume that GCC supports
9687         "restrict" and "inline", as sufficiently-old GCC versions do not
9688         (also, GCC configured to be in pedantic C89 mode does not).
9689         Problem reported by Sumit Pandya in:
9690         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
9692         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
9693         consider -g to work if it generates warnings when plain compiles
9694         don't.  Problem reported by Braden McDaniel in:
9695         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
9697         * doc/autoconf.texi (Slashes): New section, to document a problem
9698         reported by Jim Meyering in:
9699         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
9701         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
9702         linker output files before linking, to work around IRIX 6 linker bug.
9703         Problem reported by Rainer Orth in:
9704         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
9706 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
9708         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
9709         best tool so far counter rely on the tool path variable name to
9710         avoid checks for one tool being affected by the results of running
9711         the length check on a previous tool.
9713         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
9714         match expression argument, as different greps have different
9715         regular expression flavours.
9716         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
9717         literals.
9718         (AC_PROG_EGREP): Pass 'EGREP$'.
9719         (AC_PROG_GREP): Pass 'GREP$'.
9721 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
9723         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
9724         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
9726 2004-03-29  Paul Eggert  <eggert@twinsun.com>
9728         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
9729         Types, Specific Compiler Characteristics, System Services,
9730         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
9731         etc. consistently instead of 'long', 'short', 'unsigned' etc.
9732         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
9733         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
9734         Likewise.
9735         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
9736         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
9737         AC_TYPE_OFF_T): Likewise.
9738         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
9739         Likewise.
9741         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
9742         pacify libtool 1.5.2.  Fix quoting problems in sed command.
9744 2004-03-28  Paul Eggert  <eggert@twinsun.com>
9746         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
9747         now defines HAVE_DECL_TZNAME if it is declared, when
9748         HAVE_STRUCT_TM_TM_ZONE is not defined.
9749         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
9750         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
9751         for HAVE_TZNAME.
9753 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
9755         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
9756         superfluous backslashing of quotes (") in sed expressions;
9757         thanks to Paul Eggert.
9759 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
9761         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
9762         Fortran compiler is ifort, also added pghpf; thanks to Nelson
9763         H. F. Beebe for the bug report.
9765 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
9767         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
9768         quoted -cmdline argument in Portland Group compiler (bug
9769         reported by Jeffrey J. Barteet).
9771 2004-03-25  Kevin Ryde  <user42@zip.com.au>
9773         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
9774         (Run Time): ... here, where it's now mentioned.
9776 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
9778         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
9779         inherits from language Autoconf-without-aclocal-m4.
9780         (Customizing autom4te): Adjust example; the cache must now be
9781         disabled for language Autoconf-without-aclocal-m4.
9783 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
9784             Nathanael Nerode  <neroden@twcny.rr.com>
9786         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
9787         AC_CHECK_TOOLS): Warn if a cross-tool is found without
9788         a prefix.
9789         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
9790         AC_CHECK_TARGET_TOOLS): New macros.
9791         * doc/autoconf.texi (Generic Programs): Document
9792         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
9793         AC_CHECK_TARGET_TOOLS, and warn for future changes
9794         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
9795         AC_CHECK_TOOLS.
9796         (Specifying Names): Document the reason for these future
9797         behavioral changes.
9798         * tests/mktests.sh: Do not generate tests for the
9799         new macros.
9800         * NEWS: Document these changes.
9802         * doc/autoconf.texi: Avoid macros with unbraced arguments,
9803         they make TeX hang up.
9805 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
9807         * NEWS: New macro AC_CHECK_ALIGNOF.
9808         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
9809         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
9810         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
9811         vowel.
9812         (AC_CHECK_ALIGNOF): New macro.
9813         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
9814         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
9815         those for sizeof.
9817 2004-03-03  Paul Eggert  <eggert@twinsun.com>
9819         * bin/Makefile.am (edit): Don't use $< in a context where
9820         POSIX doesn't require support for it.  Use $@.in instead.
9821         Problem reported by Anthony N. Frasso in
9822         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
9823         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
9825 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
9827         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
9828         from the next generation of Libtool.
9829         * lib/autom4te.in (Autoreconf-preselections): Ditto.
9831 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
9833         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
9834         is not always thread-safe.  Report from Nathanael Nerode.
9836 2004-02-18  Paul Eggert  <eggert@twinsun.com>
9838         Fix a dependencies problem, stemming from a Autoconf 2.59 build
9839         problem on QNX reported by Stephen Rasku in
9840         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
9842         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
9843         $(m4sh_m4f_dependencies); this removes a FIXME.
9844         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
9845         (MAINTAINERCLEANFILES): Split into pieces,
9846         one per related section.  Add $(srcdir)/wrapper.in.
9848 2004-02-09  Paul Eggert  <eggert@twinsun.com>
9850         * doc/autoconf.texi (Setting Output Variables): Emphasize that
9851         AC_SUBST provides no portable way to escape literal newlines.
9853         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
9854         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
9855         Darwin uses -lcrt2.o and there's little point to cataloging all
9856         the system variants.  Partial fix reported by Andreas Waechter in:
9857         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
9858         for bug reported by Nelson H. F. Beebe in:
9859         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
9861 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
9863         * doc/autoconf.texi (AU_DEFUN): Fix English,
9864         suggested by Paul Eggert.
9865         * lib/autoconf/autoupdate.m4: Correct reference to
9866         acobsolete.m4, suggested by Alexandre Duret-Lutz.
9868 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
9870         * bin/autoupdate.in: Define __file__ so that warnings
9871         refer to the correct file.
9872         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
9873         the behavior of the third argument.
9874         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
9875         correctly the behavior of the third argument.  Document
9876         what the three macros that AU_DEFUN defines do.  Fix
9877         warning message when the third argument includes $0
9878         (reported by Alexandre Duret-Lutz).
9880 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
9881             Eric Sunshine  <sunshine@sunshineco.com>
9882             Paul Eggert  <eggert@twinsun.com>
9884         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
9885         (AS_INIT): Output shell initialization there. Removed optional
9886         parameter. Expand _AS_SHELL_FN_SPY.
9887         (AS_INIT_WITH_SHELL_FN): Removed.
9888         (_AS_SHELL_FN_SPY): New macro.
9889         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
9890         macros.
9891         (AS_SHELL_SANITIZE): Remove loop to find better shell
9892         and documentation for the parameter.
9893         (_AS_DETECT_BETTER_SHELL): Move it here.
9894         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
9895         (_AS_RUN): Move it here, support testing with eval.
9896         (AS_REQUIRE_SHELL_FN): Require shell functions when
9897         it is used.
9898         (_AS_LINENO_WORKS): Put around braces, we do not
9899         trigger the bash bug anymore.
9900         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
9901         use AS_INIT_WITH_SHELL_FN.
9902         * bin/autoconf.in, tests/wrapper.in: Regenerated.
9904 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
9906         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
9907         * doc/autoconf.texi: Don't say that the third parameter
9908         is broken.
9909         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
9910         (AU_DEFUN): Honor the third parameter, create autoupdate
9911         macros with AU_DEFINE.
9912         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
9913         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
9914         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
9915         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
9916         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
9917         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
9918         AC_XENIX_DIR): Likewise.
9919         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
9920         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
9921         * lib/autoconf/status.m4: Remove FIXME.
9922         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
9923         that the macro is not present anymore in the updated
9924         configure.ac.
9925         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
9926         of autoupdate.
9928 2004-01-28  Paul Eggert  <eggert@twinsun.com>
9930         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
9931         copyright years.
9932         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
9933         2003 (except 1997) to the list of copyright years.  This undoes
9934         the 2003-05-22 change, which removed the older years from the list.
9935         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
9937 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
9938             Albert Chin-A-Young  <china@thewrittenword.com>
9940         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
9941         grep or ggrep program in PATH that accepts as long lines as
9942         possible.
9943         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
9944         AC_PROG_GREP.
9945         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
9946         egrep and fgrep respectively if $GREP -E/-F don't work.
9947         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
9948         _AC_PROG_GREP, and AC_PROG_SED.
9949         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
9950         longest input length accepted by a command.
9951         (AC_PROG_SED): Use it.
9952         * doc/autoconf.texi (Particular Programs): Document the changes.
9953         * NEWS: Updated.
9955 2004-01-27  Paul Eggert  <eggert@twinsun.com>
9957         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
9958         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
9959         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
9960         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
9962         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
9963         bin/autoconf.in, config/Makefile.in, config/config.guess,
9964         config/config.sub, config/install-sh, config/mdate-sh,
9965         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
9966         lib/Makefile.in, lib/Autom4te/Makefile.in,
9967         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
9968         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
9969         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
9970         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
9971         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
9972         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
9973         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
9974         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
9975         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
9976         tests/actypes.at: Regenerate and/or sync with original
9977         sources.
9979 2004-01-26  Paul Eggert  <eggert@twinsun.com>
9981         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
9982         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
9983         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
9984         not <inttypes.h>.  Problem reported by Tim Mooney in
9985         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
9986         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
9987         Likewise.
9989         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
9990         otherwise "make check" fails because it forbids cmp (I guess
9991         because cmp treats files as binary on DOS-like systems).
9993         * tests/mktests.sh: Update copyright date to 2004, since some tests
9994         have changed in 2004.
9996 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
9998         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
9999         non-truncating sed or gsed program in PATH.
10000         * tests/acprograms.at: Add it.
10001         * doc/autoconf.texi (Particular Programs): Document it.
10002         * NEWS: Updated.
10004 2004-01-15  Paul Eggert  <eggert@twinsun.com>
10006         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
10007         -std1 disables some useful extensions on Tru64.  Problem reported
10008         by N. Lichtmaier in
10009         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
10011 2004-01-14  Paul Eggert  <eggert@twinsun.com>
10013         * doc/autoconf.texi (Programming in M4sh): Document that
10014         AS_MKDIR_P succeeds if the destination is a symbolic link
10015         to an existing directory.
10016         (Limitations of Usual Tools): Note that mkdir -p might not
10017         succeed on symlinks to directories.
10019 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
10021         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
10022         * bin/autoheader.in: Grammar fix in message.
10023         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
10024         Test for dir before calling mkdir -p.  (trivial changes)
10026 2004-01-13  Eric Blake  <ebb9@byu.net>
10028         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
10029         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
10031 2004-01-10  Jim Meyering  <jim@meyering.net>
10033         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
10035 2004-01-09  Paul Eggert  <eggert@twinsun.com>
10037         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
10038         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
10039         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
10040         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
10041         AC_COMPILE_IFELSE, since we now assume our caller invokes
10042         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
10043         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
10044         of AC_RUN_IFELSE; this avoids the warning mentioned above.
10045         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
10047 2004-01-07  Paul Eggert  <eggert@twinsun.com>
10049         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
10050         `"'...'"`, as it's confusing (and I suspect it may not work on
10051         some platforms).  The code was incorrect anyway, as it assumed
10052         that \$ evaluated to itself in that context.  Reported by
10053         Alexandre Duret-Lutz.
10055 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
10057         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
10058         and _LT_AC_TAGCONFIG.
10060 2004-01-06  Paul Eggert  <eggert@twinsun.com>
10062         * doc/autoconf.texi (One Macro Call): Fix an incorrect
10063         example, and add more examples.  Reported by Eric Sunshine.
10065 2004-01-05  Paul Eggert  <eggert@twinsun.com>
10067         * doc/autoconf.texi (Limitations of Usual Tools):
10068         Remove warning against "rm -fr" introduced yesterday; it
10069         was a false alarm.
10071         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
10072         autoscan, autoupdate, ifnames): Don't use chmod -w.
10073         * lib/Makefile.am (autom4te.cfg): Likewise.
10074         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
10075         "chmod -w".
10077 2004-01-04  Paul Eggert  <eggert@twinsun.com>
10078             Paolo Bonzini  <bonzini@gnu.org>
10080         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
10081         by doing lineno substitution only on lines containing "$LINENO".
10083 2004-01-04  Paul Eggert  <eggert@twinsun.com>
10085         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
10086         Use "rm -f" to remove conftest.sed, not plain "rm".
10087         Bug reported by David Relson in
10088         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
10090         * Makefile.am (autom4te-update):
10091         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
10092         * Makefile.maint (my-distcheck, do-po-update): Likewise.
10093         * doc/autoconf.texi (Guidelines): Likewise.
10094         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
10095         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
10096         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10097         * lib/autotest/general.m4 (AT_INIT): Likewise.
10098         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
10099         * tests/Makefile.am (clean-local): Likewise.
10100         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
10101         srcdir): Likewise.
10102         * doc/autoconf.texi (Limitations of Usual Tools):
10103         Warn against "rm -fr".
10105 2004-01-03  Paul Eggert  <eggert@twinsun.com>
10107         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
10108         -c -o might not work.  From a suggestion by Kevin Ryde.
10109         (C Compiler, Generating Sources, Limitations
10110         of Usual Tools, Limitations of Make, Making testsuite Scripts):
10111         Don't put '-o' after non-options, as POSIX doesn't allow this.
10112         Mention that cc's name might be gcc or c89 or whatever.
10114 2004-01-04  Kevin Ryde  <user42@zip.com.au>
10116         * doc/autoconf.texi: Add various further index entries.
10118 2003-12-29  Paul Eggert  <eggert@twinsun.com>
10120         * bin/autoreconf.in (autoreconf_current_directory):
10121         Fix typo: mkdir without umask arg.
10123 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
10125         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
10126         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
10127         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
10128         explanation clearer.
10130 2003-12-24  Andreas Schwab  <schwab@suse.de>
10132         * doc/autoconf.texi (Default Includes): Fix misspelling of
10133         AC_INCLUDES_DEFAULT.
10135 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
10137         * configure.ac: Test if sh -n works.
10138         * configure: Regenerate.
10139         * tests/atlocal.in: Store the result here.
10140         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
10141         tools.at, looking in atlocal's ac_cv_sh_n_works instead
10142         of explicitly testing.
10143         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
10144         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
10145         * tests/tools.at (Syntax of the shell scripts): Simplify
10146         using AT_CHECK_SHELL_SYNTAX.
10147         (Syntax of the Perl scripts): Remove definition of
10148         AT_CHECK_PERL_SYNTAX.
10150 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
10152         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
10153         stderr to /dev/null.
10154         * bin/autoconf.in: Regenerate.
10155         * bin/wrapper.in: Regenerate.
10157 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
10159         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
10160         Extracted from AS_SHELL_SANITIZE.
10161         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
10162         macros.
10163         (AS_SHELL_SANITIZE): Move reinvocation code from
10164         _AS_LINENO_WORKS, use it to find out if shell
10165         functions work.
10166         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
10167         does not work.
10168         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
10169         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
10170         was called.
10171         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
10172         * bin/autoconf.in: Regenerate.
10173         * tests/wrapper.in: Regenerate.
10174         * tests/tools.at: Test the syntax of tests/autoconf
10175         and tests/testsuite.
10177 2003-11-24  Akim Demaille  <akim@epita.fr>
10179         * config/announce-gen (&print_locations, &print_signatures)
10180         (&sizes): New.
10181         Use them.
10182         No longer rely on Gnus to inline the list of signatures: compute
10183         them on the fly.
10185 2003-11-24  Akim Demaille  <akim@epita.fr>
10187         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
10188         override some files.
10189         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
10190         From Debian Autoconf 2.58.
10192 2003-11-24  Akim Demaille  <akim@epita.fr>
10194         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
10195         uses.
10196         From Debian Autoconf 2.58.
10198 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10200         * TODO: Remove already done things.  Update the part about finding
10201         tools for the target.
10203 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10205         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
10206         Make wording more consistent.
10207         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
10208         Explain the transition better.
10209         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
10210         the transition better.
10212 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
10214         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
10215         parameter of AU_DEFUN.
10216         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
10217         (AU_DEFUN): Remove the third parameter, it was not used.
10218         Use AC_DEFUN directly, not AU_DEFINE.
10219         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
10220         the expanded body, consistently with other macros such as AC_USG.
10222 2003-11-17  Paul Eggert  <eggert@twinsun.com>
10224         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
10225         into the initial confdefs.h, to work around a bug in NextStep 3.3
10226         patch 3 reported by Eric Sunshine.
10228 2003-11-15  Kevin Ryde  <user42@zip.com.au>
10230         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
10231         than $target since the latter is not usual, add guidelines on when to
10232         use or not use the system type.
10234 2003-11-12  Derek Price  <derek@ximbiot.com>
10236         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
10237         typo misrepaired by an auto-spellcheck.
10239 2003-11-12  Akim Demaille  <akim@epita.fr>
10241         * bin/autoreconf.in (&parse_args): Don't call automake with
10242         --force-missing unless it actually supports it.
10243         From Debian #219336.
10245 2003-11-12  Akim Demaille  <akim@epita.fr>
10247         * configure.ac: Bump to 2.59a.
10248         Require 2.59.
10250 2003-11-06  Akim Demaille  <akim@epita.fr>
10252         Version 2.59.
10254 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
10256         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
10257         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
10258         and ac_abs_top_srcdir are absolute paths.
10259         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
10261 2003-11-05  Akim Demaille  <akim@epita.fr>
10263         * configure.ac: Bump to 2.58a.
10265 2003-11-05  Kevin Ryde  <user42@zip.com.au>
10267         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
10268         it provokes a warning from makeinfo about looking like a cross
10269         reference in info output.
10271         * doc/autoconf.texi (Function Portability): Add notes on signal
10272         handler return type, as per AC_TYPE_SIGNAL.
10274 2003-11-04  Akim Demaille  <akim@epita.fr>
10276         Version 2.58.
10277         * doc/standards.texi: Update from master.
10279         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
10281 2003-11-04  Akim Demaille  <akim@epita.fr>
10283         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
10284         computing the absolute path to d1 in the source hierarchy: it may
10285         not exist at all.  So don't cd into it.
10286         From Alexandre Duret-Lutz.
10287         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
10289         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
10290         From Paul Eggert, but named after Perl's IO::Spec->catfile.
10291         * doc/autoconf.texi (Programming in M4sh): Document.
10292         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
10294 2003-11-03  Pavel Roskin  <proski@gnu.org>
10296         * doc/autoconf.texi (Generic Structure Checks): Describe
10297         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
10299 2003-10-31  Akim Demaille  <akim@epita.fr>
10301         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
10302         (GNU Fortran): New.
10303         * doc/autoconf.texi (Language Choice): Document.
10304         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
10305         the current language is Fortran.
10307 2003-10-31  Akim Demaille  <akim@epita.fr>
10309         * bin/autom4te.in (&freeze): Use a less likely warning separator
10310         than `\n\n', so that `\n\n\n' is valid in warnings.
10311         Reported by Steve Huston.
10313 2003-10-28  Akim Demaille  <akim@epita.fr>
10315         * Makefile.cfg (local_updates, executable-update): Tweak to be
10316         robust to parallel makes.
10317         Suggested by Alexandre Duret-Lutz.
10319 2003-10-27  Akim Demaille  <akim@epita.fr>
10321         * Makefile.cfg (executable-update): New.
10322         (local_updates): Call it.
10324 2003-10-27  Akim Demaille  <akim@epita.fr>
10326         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
10327         Don't remove core.* as it may remove valid user files.
10328         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
10329         (AC_FUNC_UTIME_NULL): Likewise.
10331 2003-10-23  Akim Demaille  <akim@epita.fr>
10333         Version 2.57g.
10334         * config/config.guess, config/config.sub: Upgrade from masters.
10336 2003-10-23  Akim Demaille  <akim@epita.fr>
10338         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
10339         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
10340         hand...
10342 2003-10-23  Akim Demaille  <akim@epita.fr>
10344         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
10345         Don't forget to remove conftest.err.
10347 2003-10-23  Akim Demaille  <akim@epita.fr>
10349         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
10350         same object file in $LIBOBJS.
10351         Reported by Alexandre Duret-Lutz & Derek Robert Price.
10352         * doc/autoconf.texi (Generic Functions): Adjust.
10354 2003-10-20  Paul Eggert  <eggert@twinsun.com>
10356         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
10357         Use 'eval', so that the resulting configure scripts work even if
10358         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
10360 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
10362         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
10363         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
10364         (_AC_LINK_IFELSE): Check the werror flag.
10365         * doc/autoconf.texi (Generic Compiler Characteristics): Document
10366         AC_LANG_WERROR.
10367         * NEWS: Mention it.
10369 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
10371         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
10372         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
10373         override AC_LINK_IFELSE.
10375 2003-10-15  Paul Eggert  <eggert@twinsun.com>
10377         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
10378         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
10379         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
10380         Mention /usr/dt/bin/dtksh on Solaris.
10381         (Shell Substitutions): Warn about $((...)).
10382         (Parentheses): New section.
10384 2003-10-15  Kevin Ryde  <user42@zip.com.au>
10386         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
10387         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
10389 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10391         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
10392         cross test.
10394 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
10396         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
10397         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
10399 2003-10-10  Andreas Schwab  <schwab@suse.de>
10401         * bin/autoheader.in: Avoid empty first line in --version and
10402         --help output.
10403         * bin/ifnames.in: Likewise.
10405 2003-10-09  Paul Eggert  <eggert@twinsun.com>
10407         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
10408         Issue a more-informative diagnostic.
10409         Problems reported by Eric Sunshine.
10411 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
10413         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
10414         -mGLOB_options_string stuff for Intel ifc, which can cause
10415         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
10416         pattern-matching instead of grep.
10418 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
10420         * doc/autoconf.texi: Document new FC Fortran macros.
10422 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
10424         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
10425         that future autopoint/aclocal/automake/autoreconf will be able
10426         to trace to find where to install local m4 macros.
10427         * doc/autoconf.texi (Input): Document it.
10428         * NEWS: Updated.
10430 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
10432         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
10433         -lcrtbegin.o to list of ignored flags and fix underquoting of
10434         -lcrt[01].o.
10436 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
10438         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
10439         cache variable instead of $G77 to decide whether to include -O2,
10440         since $G77 is specific to Fortran 77.
10442 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10444         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
10445         free" flag.  Re-order flags tested into rough order of popularity.
10447 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10449         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
10450         arguments so that it can be used with syntax identical to
10451         AC_PROG_F77, and so that we can more easily decide to
10452         remove/deprecate the DIALECT optional argument in the future if it
10453         proves troublesome.
10454         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
10455         non-freeform-supporting compilers.  Document freeform flags.
10457 2003-10-03  Akim Demaille  <akim@epita.fr>
10459         * configure.ac: Look for emacs, not macs.
10460         Reported by Eric Sunshine.
10462 2003-10-03  Akim Demaille  <akim@epita.fr>
10464         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
10465         * bin/autoreconf.in (autoreconf_current_directory): Create the
10466         AUX_DIR if needed, for sake of automake --add-missing etc.
10467         Suggested by Alexandre Duret-Lutz.
10469 2003-10-03  Akim Demaille  <akim@epita.fr>
10471         * configure.ac: Quotation and formatting changes.
10472         (EMACS): Don't set it if it is not recent enough to support
10473         autoconf-mode.el.
10474         From Eric Sunshine.
10476 2003-10-02  Akim Demaille  <akim@epita.fr>
10478         * bin/ifnames.in (&scan_file): Skip C++ comments.
10479         From Jeremy Yallop.
10481 2003-10-01  Pavel Roskin  <proski@gnu.org>
10483         * doc/autoconf.texi (Particular Structure Checks):
10484         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
10486 2003-10-01  Akim Demaille  <akim@epita.fr>
10488         Version 2.57f.
10490 2003-09-30  Paul Eggert  <eggert@twinsun.com>
10492         * lib/Autom4te/XFile.pm: Use Errno.
10493         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
10494         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
10496 2003-09-30  Akim Demaille  <akim@epita.fr>
10498         * config/announce-gen (&print_news_deltas): Extracted from...
10499         (&print_changelog_deltas): here.
10500         (&news_file): Rename as...
10501         (@news_file): this.
10503 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
10505         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
10506         have been created when invoking the compiler.
10507         * tests/fortran.at (GNU Fortran 77): Quote $G77.
10509 2003-09-29  Akim Demaille  <akim@epita.fr>
10511         Version 2.57e.
10513         * config/mkinstalldirs: Upgrade.
10515 2003-09-28  Paul Eggert  <eggert@twinsun.com>
10517         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
10518         Problem reported by Lars J. Aas in
10519         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
10520         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
10521         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
10522         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
10524 2003-09-26  Akim Demaille  <akim@epita.fr>
10526         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
10527         directory for AC_CONFIG_COMMANDS' first argument exists.
10528         This makes valid the invocation of _AC_SRCPATH that follows.
10529         Reported by Eric Sunshine.
10530         * doc/autoconf.texi (Configuration Commands): Adjust.
10532 2003-09-26  Akim Demaille  <akim@epita.fr>
10534         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
10535         Reported by Ralf Corsepius.
10537 2003-09-26  Akim Demaille  <akim@epita.fr>
10539         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
10540         arguments.
10541         Actually, use AU_ALIAS.
10542         From Bruno Haible.
10544 2003-09-26  Paul Eggert  <eggert@twinsun.com>
10546         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
10547         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
10548         Problem reported by Eric Sunshine in:
10549         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
10551 2003-09-26  Akim Demaille  <akim@epita.fr>
10553         The test suite are sometimes assigning timings incorrectly.
10554         Reported by Henk Krus.
10555         Diagnosed by Nicolas Joly.
10557         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
10558         AT_help_all.
10559         Instead of making AT_help a sequence of assignments to grow
10560         $at_help_all, just make AT_help_all be the growing contents of
10561         $at_help_all, and make a single assignment in...
10562         (AT_INIT): here.
10563         (at_times_skip): Flip the meaning and rename as...
10564         (at_times_p): this.
10565         (AT_INIT): When summarizing the test that ran, remove
10566         $at_times_file after use, and check it is present before trying to
10567         use it.
10569 2003-09-25  Akim Demaille  <akim@epita.fr>
10571         Version 2.57d.
10573         * bin/Makefile.am (edit): Handle '@configure_input@'.
10574         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
10575         (ifnames): chmod -w.
10576         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
10577         executables, not bin/ executables!  Otherwise all the magic needed
10578         to find non installed files is turned off.  This caused a failure
10579         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
10580         as found in its environment (sent by tests/autoreconf): pointing
10581         to bin/autom4te that could not find its files.
10582         * tests/mktests.sh: Force the replacement of generated files, for
10583         the sake of "mv" program that are interactive when overwriting a
10584         -w file.
10585         * config/install-sh: Upgrade from CVS Automake.
10587 2003-09-23  Paul Eggert  <eggert@twinsun.com>
10589         * doc/autoconf.texi (Limitations of Builtins): Document test -h
10590         versus test -L issues.
10592 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
10593             Paul Eggert  <eggert@twinsun.com>
10595         Trivial change to support GCC's configuration procedure.
10596         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
10597         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
10598         about inconsistency if the preprocessor is set to give errors for
10599         any warning.
10600         * doc/autoconf.texi (C Compiler Characteristics): Document this.
10602 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
10604         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
10605         and XFile.pm from Automake.
10606         * lib/Autom4te/XFile.pm: Update from Automake.
10608 2003-09-12  Akim Demaille  <akim@epita.fr>
10610         Version 2.57c.
10612 2003-09-12  Akim Demaille  <akim@epita.fr>
10614         * config/config.guess, config/config.sub, config/missing,
10615         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
10616         from masters.
10618 2003-09-12  Akim Demaille  <akim@epita.fr>
10620         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
10621         not asm/types.h.
10623 2003-09-11  Akim Demaille  <akim@epita.fr>
10625         * doc/autoconf.texi (Header Portability): linux/random.h.
10626         From Peter Hendrickson.
10628 2003-09-10  Akim Demaille  <akim@epita.fr>
10630         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
10631         willing to edit the output files.
10633 2003-09-10  Akim Demaille  <akim@epita.fr>
10635         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
10636         and AC_FC_FREEFORM.
10637         * tests/mktests.sh: Skip AC_FC_SRCEXT.
10638         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
10640 2003-09-09  Akim Demaille  <akim@epita.fr>
10642         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
10643         Reported by Gary Vaughan.
10644         * bin/autom4te.in (handle_m4): Likewise.
10646 2003-09-09  Akim Demaille  <akim@epita.fr>
10648         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
10649         trailing files.
10651 2003-09-07  Paul Eggert  <eggert@twinsun.com>
10653         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
10654         Improve the accuracy of the wording about obsolescence.
10655         From a suggestion by Ian Lance Taylor in
10656         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
10658 2003-09-05  Paul Eggert  <eggert@twinsun.com>
10660         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
10661         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
10663 2003-09-04  Akim Demaille  <akim@epita.fr>
10665         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
10666         AC_FUNC_WAIT3.
10668 2003-09-04  Akim Demaille  <akim@epita.fr>
10670         * bin/autom4te.in: Use &fatal where more appropriate than &error.
10671         (freeze): When exiting, use $exit_code.
10672         * lib/autoconf/fortran.m4: Comment changes.
10674 2003-09-04  Akim Demaille  <akim@epita.fr>
10676         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
10678 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
10680         Add support for newer Fortran dialects.  The F77 interface is
10681         unchanged, and continues to support Fortran 77.  New FC macros
10682         correspond to all the old F77 macros, with output variables FC,
10683         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
10684         available dialect, but older dialects can be specified.  There are
10685         new macros AC_FC_SRCEXT to set the source extension, and
10686         AC_FC_FREEFORM to accept free-form source files.
10688         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
10689         New macros.
10690         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
10691         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
10692         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
10693         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
10694         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
10695         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
10696         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
10697         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
10698         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
10699         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
10700         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
10701         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
10702         AC_FC_SRCEXT, AC_FC_FREEFORM):
10703         New macros.
10704         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
10705         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
10706         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
10707         Rewrite in terms of the above.
10708         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
10709         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
10710         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
10711         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
10713 2003-09-02  Paul Eggert  <eggert@twinsun.com>
10715         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
10716         Document problems with timestamp resolution that 'make', 'cp -p', and
10717         'touch -r' have.
10719 2003-08-27  Akim Demaille  <akim@epita.fr>
10721         * tests/m4sugar.at (cross_warning): Make sure to enable the
10722         output, so that we can track spurious m4sugar output.
10723         * tests/local.at: Require 2.57.
10724         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
10725         are defaulted by AT_CHECK anyway.
10726         Use AT_CHECK_AUTOM4TE.
10727         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
10728         missing dnl.
10730 2003-08-27  Akim Demaille  <akim@epita.fr>
10732         * bin/autoheader.in: Issue the "Using auxiliary..." message only
10733         when -Wobsolete is set.
10734         Set it on by default.
10735         Suggested by Klee Dienes.
10737 2003-08-27  Akim Demaille  <akim@epita.fr>
10739         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
10740         documentation.
10741         From Guido Draheim.
10743 2003-08-26  Akim Demaille  <akim@epita.fr>
10745         * doc/autoconf.texi (Output): Make clear that one can run code
10746         after AC_OUTPUT.
10748 2003-08-25  Akim Demaille  <akim@epita.fr>
10750         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
10751         CVS Bison.
10753 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
10755         * bin/autoreconf.in (parse_args): Do not pass --no-force to
10756         Automake versions prior to 1.8.
10758 2003-08-25  Akim Demaille  <akim@epita.fr>
10760         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
10761         From Ville Karaila.
10763 2003-08-24  Akim Demaille  <akim@epita.fr>
10765         * configure.ac: Bump to 2.57c.
10767 2003-08-22  Akim Demaille  <akim@epita.fr>
10769         Version 2.57b.
10771         * Makefile.cfg (local-checks-to-skip): New.
10772         * Makefile.maint (local-check): Rename as...
10773         (local-checks-available): this.
10774         (local-check): New.
10776         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
10777         * configure.ac: Require Automake 1.7.6.
10779 2003-08-22  Akim Demaille  <akim@epita.fr>
10781         Output stack traces in warnings.
10783         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
10784         Replace the former...
10785         (m4_warn): Pass the call stack to _m4_warn.
10786         * bin/autom4te.in: Adjust to output the call stack.
10787         * tests/m4sugar.at (m4@&t@_warn): Adjust.
10789 2003-08-22  Akim Demaille  <akim@epita.fr>
10791         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
10792         * bin/autom4te.in: Adjust.
10794 2003-08-21  Akim Demaille  <akim@epita.fr>
10796         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
10797         (&verbose): Remove.
10798         (&getopt): Adjust the note and verb channels, depending upon
10799         --verbose.
10800         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
10801         * bin/autoupdate.in: Adjust.
10802         Use &verb, not &verbose.
10804 2003-08-21  Akim Demaille  <akim@epita.fr>
10806         * bin/autoheader.in (&parse_args): Use &parse_warnings and
10807         &parse_WARNINGS.
10808         ($help): Use Autom4te::ChannelDefs::usage.
10809         * bin/autoscan.in: Use Autom4te::ChannelDefs.
10810         * lib/Autom4te/General.pm: Don't export error: you don't own it.
10812 2003-08-21  Akim Demaille  <akim@epita.fr>
10814         First stab at preserving warnings between calls to autom4te,
10815         including when the cache is used.
10817         There are still several issues: (i) there are too many runs of m4
10818         (one for include, one for warnings, and some more), (ii) warnings
10819         spreading on several lines are not handled gracefully, (iii) the
10820         code meant to have the call stack display for errors does not work
10821         (its handling should move from m4 to autom4te).
10823         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
10824         Use them.
10825         (@preselect): Add m4_warn.
10826         ($exit_status): Remove, use $exit_code.
10827         ($help): Use Autom4te::ChannelDefs::usage.
10828         (&handle_m4): No longer define the m4_warnings.
10829         At each run, extract and report the warnings.
10830         Always cache the result, including if the exit status is on
10831         failure, since if nothing changes, we should result in the same
10832         failure, hence we can use the cache.
10833         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
10834         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
10835         Remove.
10836         (m4_warn): Redefine as a do-nothing: it is its invocation that
10837         matters, as warnings are now reported via traces.
10838         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
10839         the contents of m4_warn: make it _call_ m4_warn, so that tracing
10840         the latter reveals calls to the former.
10842         Adjust the tests.
10844         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
10846 2003-08-21  Akim Demaille  <akim@epita.fr>
10848         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
10849         Use them.
10851 2003-08-21  Akim Demaille  <akim@epita.fr>
10853         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
10854         forward order.
10855         * lib/Autom4te/ChannelDefs.pm: Doc typos.
10856         (&parse_warnings): Accept a list of warning requests.
10857         (&usage): Return a string, not a side effect.
10858         (cross): New warning category.
10860 2003-08-21  Akim Demaille  <akim@epita.fr>
10862         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
10863         (&require_configure_ac): Accept an optional directory argument.
10864         ($configure_ac): Remove.
10865         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
10866         (&catfile): Remove.
10867         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
10868         * bin/autoscan.in: Adjust.
10870 2003-08-20  Akim Demaille  <akim@epita.fr>
10872         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
10873         Reported by Alexandre Duret-Lutz.
10875 2003-08-20  Akim Demaille  <akim@epita.fr>
10877         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
10878         * bin/autom4te: Adjust.
10879         In particular, be Autoconf tools are really silent when properly
10880         working, bind the verbosity of the 'note' channel to $verbose.
10881         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
10882         (&xsystem, &contents): Remove, since they are exported by...
10883         * lib/Autom4te/FileUtils.pm: this.
10884         More perldoc.
10885         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
10886         * lib/Autom4te/FileUtils.pm: here.
10888 2003-08-20  Akim Demaille  <akim@epita.fr>
10890         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
10891         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
10892         from CVS Automake.
10894 2003-08-20  Akim Demaille  <akim@epita.fr>
10896         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
10897         (autom4te-update): New.
10898         * Makefile.cfg (update): Bind autom4te-update.
10900 2003-08-19  Derek Price  <derek@ximbiot.com>
10902         * lib/autotest/general.m4: Comment various HELP_* diversions.
10903         (PARSE_ARGS_BEGIN): New section for option parsing related
10904         initialization.
10905         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
10906         package specific options and associated help.
10908 2003-08-19  Akim Demaille  <akim@epita.fr>
10910         * config/announce-gen, Makefile.cfg: New.
10911         * Makefile.am: Adjust.
10912         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
10914 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
10916         * lib/autom4te.in (Automake-preselections): Preselect
10917         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
10918         and m4_sinclude.
10920 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
10922         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
10923         (Autoconf-without-aclocal-m4): ... this new language.
10924         * doc/autoconf.texi (autom4te Invocation): Mention
10925         Autoconf-without-aclocal-m4.
10927 2003-08-18  Derek Price  <derek@ximbiot.com>
10929         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
10930         RUN-IF-PASS optional arguments.
10932 2003-08-18  Derek Price  <derek@ximbiot.com>
10934         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
10936 2003-08-16  Derek Price  <derek@ximbiot.com>
10938         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
10939         STDOUT & STDERR arguments.
10941 2003-08-14  Derek Price  <derek@ximbiot.com>
10943         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
10944         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
10945         shorter column three.  Add DESCRIPTION to log file content.
10947 2003-08-13  Derek Price  <derek@ximbiot.com>
10949         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
10950         output.
10952 2003-08-12  Derek Price  <derek@ximbiot.com>
10954         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
10955         (AT_CHECK_NOESCAPE): Move core functionality to...
10956         (_AT_CHECK): ...this new macro.
10958 2003-08-07  Derek Price  <derek@ximbiot.com>
10960         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
10961         (AT_CHECK_NOESCAPE): ...to this new macro.
10963 2003-07-31  Paul Eggert  <eggert@twinsun.com>
10965         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
10966         in Bash 2.01.  Problem reported by Brian Gough in
10967         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
10969 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
10971         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
10972         -lcrt1.o, for OS X.  (trivial change)
10974 2003-07-07  Paul Eggert  <eggert@twinsun.com>
10976         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
10977         inside '#ifndef __cplusplus'.  Problem reported by
10978         Bob Friesenhahn.
10980 2003-07-06  Bill Clarke  <llib@computer.org>
10982         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
10983         'long', not 'int', for benefit of Sun's recent C++ compilers
10984         (trivial change).  See:
10985         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
10986         (This really should be 'intptr_t', not 'long', but that would
10987         take more work.)
10989 2003-06-25  Akim Demaille  <akim@epita.fr>
10991         * lib/Makefile.am (autom4te.cfg): Make it read only.
10992         Depend on Makefile since it contains substitutions.
10993         From Paolo Bonzini.
10994         * lib/autom4te.in (args): Add local.at? for Autotest args.
10995         This change was made on autom4te.cfg which is generated.
10996         Reported by Raja R. Harinath.
10998 2003-06-25  Akim Demaille  <akim@epita.fr>
11000         * doc/autoconf.texi (Header Portability): sys/mount.h.
11001         From Gareth McCaughan.
11003 2003-06-23  Akim Demaille  <akim@epita.fr>
11005         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
11006         not all of them.  This fixes 1. the fact that when testing
11007         Autoconf there are many many config.log, 2. the incorrect use of
11008         top_srcdir to find config.log.
11009         Don't mix the detailed output of failed test with the summary of
11010         failures.  Rather, append detailed log afterwards.
11012 2003-06-23  Akim Demaille  <akim@epita.fr>
11014         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
11015         always run: output config.log on $at_group_log.
11017 2003-06-23  Akim Demaille  <akim@epita.fr>
11019         * tests/torture.at (#define header templates): Don't use quotes in
11020         C++ comments as it puzzles Emacs' sh font-lock-mode.
11022 2003-06-23  Akim Demaille  <akim@epita.fr>
11024         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
11025         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
11026         * tests/atspecific.m4: Rename as...
11027         * tests/local.at: This.
11028         * tests/suite.at: Move the globals into...
11029         * tests/local.at: here.
11030         * tests/Makefile.am: Adjust.
11031         * doc/autoconf.texi (testsuite Scripts): Adjust.
11033 2003-06-21  Kevin Ryde  <user42@zip.com.au>
11035         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
11036         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
11037         ensuring we add -std1 for full-ANSI.
11039         * doc/autoconf.texi (hdrindex): New macro.
11040         Add index entries for portability of various standard header files.
11042 2003-06-20  Akim Demaille  <akim@epita.fr>
11044         * configure.ac: Bump to 2.57b.
11046 2003-06-20  Akim Demaille  <akim@epita.fr>
11048         Version 2.57a.
11050 2003-06-20  Akim Demaille  <akim@epita.fr>
11052         * bin/autom4te.in: Don't rely on $HOME being defined.
11053         Reported by Marc Espie as PR/233.
11055 2003-06-20  Akim Demaille  <akim@epita.fr>
11057         * lib/autotest/general.m4: Use at_times_file only if used.
11058         From Nicolas Joly.
11060 2003-06-20  Akim Demaille  <akim@epita.fr>
11062         * config/config.guess, config/config.sub, config/elisp-comp,
11063         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
11064         Update from masters.
11066 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
11068         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
11069         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
11070         (TEST_SCRIPT): New diversion.
11071         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
11072         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
11073         (AT_INIT): Support for expected failures.
11075 2003-06-02  Akim Demaille  <akim@epita.fr>
11077         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
11078         changes.
11079         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
11080         Autoconf nor Automake.
11081         (&contents): New, from Automake.
11082         PODify.
11084 2003-05-28  Paul Eggert  <eggert@twinsun.com>
11086         * NEWS, doc/autoconf.texi (Particular Functions),
11087         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
11088         is the inverse of localtime.
11090 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
11092         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
11093         (handle_exec_errors): New function.  Work around $! being
11094         altered by WEXITSTATUS.
11095         (xqx, xsystem): Use handle_exec_errors.
11097 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
11099         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
11100         Do not call `_exit()', simply modify `$?'.
11101         (xsystem): Reset $! before running system, and check it afterward.
11102         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
11103         63 for version mismatches.
11105 2003-05-23  Akim Demaille  <akim@epita.fr>
11107         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
11108         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
11109         the middle of a line).
11110         * lib/m4sugar/m4sugar.m4: Likewise.
11111         Remove useless spaces in comments.
11113 2003-05-23  Akim Demaille  <akim@epita.fr>
11115         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
11116         exit 63, so that we (or Automake's "missing") can tell the
11117         difference with a plain failure.
11118         * doc/autoconf.texi (Notices): Adjust.
11120 2003-05-23  Akim Demaille  <akim@epita.fr>
11122         * Makefile.am, bin/Makefile.am, config/Makefile.am,
11123         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
11124         White spaces cleanup.
11126 2003-05-22  Jim Meyering  <jim@meyering.net>
11127             Paul Eggert  <eggert@twinsun.com>
11129         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
11130         Remove `#include <stdlib.h>' from the list; we should never
11131         make confdefs.h include <stdlib.h> or <cstdlib>, because the
11132         resulting namespace pollution would cause other tests to fail.
11133         Configure scripts run with some older versions of g++ and HP's
11134         aCC would fail due to such an #include.  Problems reported by
11135         Matthew Mueller in <http://bugs.debian.org/120704> and by
11136         Keith Bostic in
11137         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
11138         In the test, use the test declaration before including <stdlib.h>,
11139         as that's closer to how it'll be used.
11141 2003-05-23  Akim Demaille  <akim@epita.fr>
11143         * doc/autoconf.texi (Header Portability): ucred.h.
11144         From Ian Redfern.
11146 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
11148         Overhaul Autotest's logging: generate separate log files
11149         in testsuite.dir/NNN/testsuite.log, and append them to
11150         testsuite.log instead of re-running the test verbosely.
11152         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
11153         file descriptor, write 0 to at_status_file instead of setting
11154         at_status=0, initialize some new variables (at_status_file,
11155         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
11156         to rerun the tests, instead append the at_group_log to the
11157         at_suite_log when a test fails.
11158         (AT_SETUP): pipe the test case's output into at_tee_pipe,
11159         with the AS_MESSAGE_LOG_FD redirected to stdout.
11160         (AT_CLEANUP): save the output status in $at_status_file
11161         and restore it, redirect the AS_MESSAGE_LOG_FD back to
11162         its original place.
11163         (AT_CHECK): since tests are run with a redirected stdout,
11164         and used to be re-run in verbose mode, turn some $at_verbose
11165         into echo, and don't redirect the output of testing stdout
11166         and stderr.
11168         * lib/autotest/autoconf.texi (testsuite Scripts): Update
11169         the name of the debugging directory and information about
11170         its contents.
11172 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
11174         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
11175         parameter.
11177 2003-05-22  Akim Demaille  <akim@epita.fr>
11179         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
11180         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
11181         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
11182         * lib/autoconf/status.m4: Fix and adjust copyright notices.
11184 2003-05-22  Akim Demaille  <akim@epita.fr>
11186         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
11187         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
11188         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
11189         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
11190         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
11191         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
11192         * lib/autoconf/status.m4, lib/autoconf/types.m4,
11193         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
11194         * tests/atspecific.m4, tests/base.at, tests/compile.at,
11195         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
11196         * tests/tools.at, tests/torture.at:
11197         Whitespace clean up.
11198         Suggested by Jim Meyering.
11200 2003-05-22  Akim Demaille  <akim@epita.fr>
11202         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
11203         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
11204         Reported by Jim Meyering.
11206 2003-05-22  Akim Demaille  <akim@epita.fr>
11208         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
11209         Add AC_HELP_STRING  to the obsolete macros section.
11210         Typos.
11211         Use '@.' for sentences that ended in a capital letter.
11212         From Art Haas.
11214 2003-05-22  Akim Demaille  <akim@epita.fr>
11216         * config/config.guess, config/config.sub, config/elisp-comp,
11217         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
11218         * config/texinfo.tex, doc/standards.texi: Update from masters.
11220 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
11222         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
11223         it to eval.
11225 2003-05-21  Akim Demaille  <akim@epita.fr>
11227         * bin/autoupdate.in ($m4): Fix quotation.
11228         Reported by Martin Mokrejs.
11230 2003-05-19  Paul Eggert  <eggert@twinsun.com>
11232         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
11233         Remove non-ASCII characters.
11235 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
11237         * tests/semantics.at (AC_SEARCH_LIBS): New test.
11238         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
11239         AC_CHECK_HEADERS_NEW): New tests.
11241 2003-05-17  Akim Demaille  <akim@epita.fr>
11243         * lib/autoconf/functions.m4: Use the default includes so that
11244         memcmp be declared before being tested.
11245         Reported by Sander Niemeijer.
11246         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
11247         * doc/autoconf.texi (Default Includes): Document
11248         AC_INCLUDES_DEFAULT.
11250 2003-05-17  Akim Demaille  <akim@epita.fr>
11252         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
11253         * doc/autoconf.texi (Obsolete Macros): Adjust.
11254         Reported by Werner LEMBERG and Debian Bug 190886.
11256 2003-05-16  Akim Demaille  <akim@epita.fr>
11258         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
11259         user name space clashes.
11260         Reported by Bruno Haible.
11262 2003-05-16  Akim Demaille  <akim@epita.fr>
11264         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11265         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
11266         them uniform, and more robust to Perl special characters.
11267         Reported by Martin Mokrejs.
11269 2003-05-14  Akim Demaille  <akim@epita.fr>
11271         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
11273 2003-05-14  Akim Demaille  <akim@epita.fr>
11275         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
11276         linux/irda.h.
11278 2003-05-12  Akim Demaille  <akim@epita.fr>
11280         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
11281         message.
11282         From Matthias Andree.
11284 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
11286         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
11287         and truncate.
11289 2003-05-06  Akim Demaille  <akim@epita.fr>
11291         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
11292         longer updates aclocal.m4 if useless, (ii) if a file m4_included
11293         by aclocal.m4 is changed it might require the importing of another
11294         m4 extension file, i.e., aclocal must be run.
11296         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
11297         (&parse_args): Use --force with aclocal if required and supported.
11298         (&autoreconf_current_directory): Use &run_aclocal.
11300 2003-05-06  Akim Demaille  <akim@epita.fr>
11302         Lock autom4te's cache.
11304         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
11305         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
11306         argument instead of a file name, so that the request file remains
11307         open during the whole autom4te run.
11308         ($icache_file): New.
11309         (&freeze): Lock the $icache_file.
11311 2003-04-29  Derek Price  <derek@ximbiot.com>
11313         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
11314         seperator with m4_append_uniq().  It doesn't work.
11315         (AT_CLEANUP): Add `;' to end of at_help_all.
11316         (AT_INIT): Allow --keywords to be specified more than once.  When
11317         grepping $at_help_all for keywords, use the field and keyword
11318         seperators to ensure a complete keyword match.  Alter at_prev handling
11319         to support the new --keywords behavior.
11321 2003-04-27  Karl Berry  <karl@freefriends.org>
11323         * doc/autoconf.texi: Make the dir entries in the autoconf manual
11324         align better with others.  I also made some of the individual
11325         entries on one line, for brevity and to make it easier for me to
11326         sort my dir-example file in the Texinfo distribution :).
11328 2003-04-12  Jim Meyering  <jim@meyering.net>
11330         * NEWS: Mention the new macro.
11331         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
11332         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
11333         * tests/c.at: Test AC_C_RESTRICT.
11334         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
11336 2003-04-08  Akim Demaille  <akim@epita.fr>
11338         * bin/ifnames.in: Skip C++ comments.
11339         From Jeremy Yallop.
11341 2003-04-08  Akim Demaille  <akim@epita.fr>
11343         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
11344         From Ilya Zakharevich.
11346 2003-04-08  Akim Demaille  <akim@epita.fr>
11348         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
11349         net/if.h, stdlib.h.
11351 2003-04-01  Derek Price  <derek@ximbiot.com>
11353         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
11354         from Akim's checkin of 2003-03-29.
11356 2003-04-01  Derek Price  <derek@ximbiot.com>
11358         * tests/torture.at (Configuring subdirectories): Add missing
11359         close-quote for Akim's change from 2003-03-28.
11361 2003-04-01  Akim Demaille  <akim@epita.fr>
11363         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
11364         (AC, AT, MS): these.
11365         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
11366         New.
11367         Use them.
11368         * doc/Makefile.am (CLEANFILES): Adjust.
11369         (TEXI2DVI): Make it --batch.
11371 2003-03-31  Derek Price  <derek@ximbiot.com>
11373         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
11374         which removed the main loop.
11375         Thanks to Akim Demaille.
11377 2003-03-29  Akim Demaille  <akim@epita.fr>
11379         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
11380         that starts a GUI.
11381         From Ilya Zakharevich.
11383 2003-03-29  Akim Demaille  <akim@epita.fr>
11385         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
11386         documentation to read is Autoconf's.
11387         Suggested by Paul Eggert.
11389 2003-03-28  Akim Demaille  <akim@epita.fr>
11391         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
11392         reading the section "Present But Cannot Be Compiled" when the
11393         header causes problems.
11395 2003-03-28  Akim Demaille  <akim@epita.fr>
11397         * tests/torture.at (Configuring subdirectories): Require aclocal
11398         1.4, otherwise the test fails, as it does support configure.ac.
11399         This fixes the "test 40 failed" bug reports.
11401 2003-03-28  Akim Demaille  <akim@epita.fr>
11403         * doc/autoconf.texi (C Compiler): `#line' portability.
11404         From Paul Eggert and Nelson H. F. Beebe.
11406 2003-03-27  Derek Price  <derek@ximbiot.com>
11408         * lib/autotest/general.m4: Eliminate main loop and reorganize test
11409         layout in order to allow scripting around test groups.
11411 2003-03-27  Derek Price  <derek@ximbiot.com>
11413         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
11414         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
11415         use new diversions in preparation for accepting new arguments and
11416         allowing scripting around tests.
11417         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
11419 2003-03-26  Derek Price  <derek@ximbiot.com>
11421         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
11422         obsolete AC_HELP_STRING.
11423         (AC_HELP_STRING): AU_DEFUN to...
11424         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
11425         * tests/m4sh.at (AS_HELP_STRING): New test.
11427         * tests/acgeneral.at: Regenerated.
11429 2003-03-26  Derek Price  <derek@ximbiot.com>
11431         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
11432         sense.  Verbosify the diversion definitions comment.
11434 2003-03-26  Derek Price  <derek@ximbiot.com>
11436         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
11437         AS_PREPARE.
11439 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
11441         * doc/autoconf.texi (Present But Cannot Be Compiled):
11442         Grammar fixes and minor rewording. (trivial change)
11444 2003-03-06  Paul Eggert  <eggert@twinsun.com>
11446         Work around a problem noted by Nelson H. F. Beebe with coreutils
11447         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
11448         2002/05/09) rejects '#line 32768 "configure"' because the line
11449         number overflows.
11450         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
11451         #line directives.
11452         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
11453         * doc/autoconf.texi (Generating Sources): Document this.
11455 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
11457         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
11458         file name for the m4 program, when it has an "exe" file extension.
11459         DJGPP's error messages include the error code in brackets -
11460         remove the error code during normalization.
11462 2003-02-28  Akim Demaille  <akim@epita.fr>
11464         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
11466 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
11468         * doc/autoconf.texi (Limitations of Make): Remove the section
11469         about `$<' in inference rules, it was a bogus interpretation of
11470         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
11471         Tru64 make in the "target lookup" section.
11472         (Automake): Automake 1.5+ no longer requires special tools to be
11473         present on the developer's host.
11475 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
11477         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
11478         to a shell that can handle redirection or quoting correctly.
11479         Override SHELL with the shell detected by configure.
11480         Use of $^O suggested by Tim van Holder.
11481         * bin/autom4te.in (BEGIN): Likewise.
11482         * bin/autoreconf.in (BEGIN): Likewise.
11483         * bin/autoscan.in (BEGIN): Likewise.
11484         * bin/autoupdate.in (BEGIN): Likewise.
11485         * bin/ifnames.in (BEGIN): Likewise.
11487         * bin/ifnames.in: Add final newline to help and version messages.
11489         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
11490         to cope with DOS-style absolute paths, when constructing
11491         ${ac_make}.
11493         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
11494         When constructing paths with IFS=:, quote the path. If we're
11495         constructing a DOS-style absolute path, we don't want to split it
11496         on the colon.
11498         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
11499         in description.
11501 2003-02-25  Pavel Roskin  <proski@gnu.org>
11503         * bin/autoheader.in: Add missing newline when printing
11504         suggestion how change AC_DEFINE call.
11506 2003-02-24  Paul Eggert  <eggert@twinsun.com>
11508         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
11509         2002-09-01 patch by replacing "test -n" with "test -z".
11510         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
11511         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
11513         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
11514         to fix a mismatch between example and discussion.
11516 2003-02-24  Kevin Ryde  <user42@zip.com.au>
11518         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
11519         format starting with "-".
11521 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
11523         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
11524         is not portable inside Makefile.
11526 2003-02-20  Akim Demaille  <akim@epita.fr>
11528         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
11529         compiler says yeah, but preproc says nope, compiler is right.
11530         Conversely, prompt the reader to send a bug report to the
11531         maintainers of the package, not of Autoconf.
11533 2003-02-20  Klee Dienes  <kdienes@apple.com>
11535         * bin/autoreconf.in (autoreconf_current_directory): Properly
11536         handle an empty aclocal.m4.
11538 2003-02-20  Akim Demaille  <akim@epita.fr>
11540         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
11541         $ac_prefix_program.
11542         From Larry Jones.
11544 2002-12-23  Paul Eggert  <eggert@twinsun.com>
11546         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
11547         innocuous variant befor including <limits.h> or <assert.h>.  This
11548         works around a bug reported by Albert Chin: HP-UX 11i
11549         (and earlier versions) have a <limits.h> that declares
11550         gettimeofday and many other functions.
11552 2002-12-03  Paul Eggert  <eggert@twinsun.com>
11554         Version 2.57.
11556         * NEWS, configure.ac: Update version.
11558         * doc/fdl.texi: Upgrade to FDL version 1.2.
11560         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
11561         nontrivially in main's body, so that f's external declaration is
11562         not optimized away in AIX.  This should fix the bug reported by
11563         Martin Frydl in
11564         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
11566         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
11567         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
11568         defined, to support freestanding compilers.  This should fix the
11569         bug reported by Momchil Velkov in
11570         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
11572         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
11573         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
11574         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
11575         by Simon Josefsson in
11576         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
11578         * Makefile.maint (www-gnu): New macro.
11579         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
11580         the location has moved.
11582 2002-12-02  Martin Frydl  <martin@systinet.com>
11584         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
11585         \(.*\) match is too long and there is something more to be checked.
11586         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
11588 2002-11-15  Akim Demaille  <akim@epita.fr>
11590         Version 2.56.
11592         * config/install-sh: chmod +x.
11593         From Paul Eggert.
11594         * config/move-if-change: Indenting changes.
11595         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
11596         * configure.ac (AM_INIT_AUTOMAKE): here.
11597         Require 1.7.1.
11599 2002-11-14  Akim Demaille  <akim@epita.fr>
11601         Version 2.55.
11603         * config/config.guess, config/config.sub, config/install-sh:
11604         Update from masters.
11606 2002-11-14  Akim Demaille  <akim@epita.fr>
11608         * Makefile.maint: Sync with Bison, i.e.:
11609         (po-check): Scan .l and .y files instead of the
11610         .c and the .h files that they generate.  This fixes the bug
11611         reported by Tim Van Holder in:
11612         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
11613         Look for N_ as well as for _.  Try to avoid matching #define for
11614         N_ and _.
11615         From Paul Eggert.
11617 2002-11-14  Akim Demaille  <akim@epita.fr>
11619         * doc/autoconf.texi (C Compiler): Compiling several files at once.
11620         From Paul Eggert and Albert Chin-A-Young.
11622 2002-11-14  Akim Demaille  <akim@epita.fr>
11624         * doc/autoconf.texi (C Compiler): Solitary backslashes.
11625         From Paul Eggert and Albert Chin-A-Young.
11627 2002-11-14  Kevin Ryde  <user42@zip.com.au>
11629         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
11630         than assigning in main, to avoid HP cc +O3 optimizing it away.
11632 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
11634         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
11635         option.  Process --recheck after parsing all options.  Pass -q
11636         option to configure on --recheck.
11637         (AC_OUTPUT): Pass -q from configure to config.status.
11638         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
11639         arguments to record.
11640         * doc/autoconf.texi (config.status Invocation): Document
11641         config.status -q option.
11643 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
11645         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
11646         Makefile.in if Makefile.am exists.
11647         (output): Strip `.am' from Makefiles.  Don't
11648         output AC_CONFIG_FILES if no Makefiles were found.
11650 2002-11-07  Akim Demaille  <akim@epita.fr>
11652         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
11653         (local_updates): New.
11654         * Makefile.maint: Update, from CVS Bison.
11655         (local_updates): New.
11657 2002-11-06  Akim Demaille  <akim@epita.fr>
11659         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
11660         declaration in extern "C" too.
11661         Reported by Roberto Bagnara.
11663 2002-11-06  Akim Demaille  <akim@epita.fr>
11665         * tests/torture.at (Configuring subdirectories): Don't use grep
11666         -w.
11667         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
11668         Reported by Ezra Peisach.
11670 2002-11-05  Akim Demaille  <akim@epita.fr>
11672         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
11673         Remove.
11674         We _have_ to stop using the old compatibility scheme that tried to
11675         avoid useless backslashes because Libtool 1.4.3 contains a
11676         AC_DEFINE([error_t], [int],
11677         [Define to a type to use for \`error_t' if it is not
11678         otherwise available.])
11679         We _have_ to quote the single quote and backslashes with \.  The
11680         old compatibility scheme saw that ` was backslashed, and therefore
11681         did not quote the single quote.  Hence before this patch, Autoconf
11682         was not compatible with Libtool.
11684 2002-11-04  Paul Eggert  <eggert@twinsun.com>
11686         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
11687         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
11688         LC_NAME, LC_PAPER, LC_TELEPHONE.
11689         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
11691 2002-11-04  Akim Demaille  <akim@epita.fr>
11693         Version 2.54c.
11695         * Makefile.maint (update, cvs-update, po-update, do-po-update):
11696         New.
11697         * config/texinfo.tex: Update.
11699 2002-11-03  Akim Demaille  <akim@epita.fr>
11701         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
11702         from...
11703         (&autoreconf): here.
11704         ($help, $make, &parse_args, &autoreconf_current_directory):
11705         Support -m/--make.
11706         * doc/autoconf.texi (autoreconf Invocation): Adjust.
11708 2002-10-31  Bruno Haible  <bruno@clisp.org>
11710         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
11711         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
11712         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
11713         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
11714         to ac_cv_func_realloc_0_nonnull.
11715         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
11717 2002-10-31  Akim Demaille  <akim@epita.fr>
11719         The test suite was no longer checking for trailing envvars and files.
11721         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
11722         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
11724 2002-10-31  Akim Demaille  <akim@epita.fr>
11726         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
11727         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
11728         Make variable, not a shell variable.
11729         Suggested by Bruno Haible.
11731 2002-10-31  Akim Demaille  <akim@epita.fr>
11733         * bin/autom4te.in (load_configuration): Reject #args out of any
11734         language.
11736 2002-10-31  Akim Demaille  <akim@epita.fr>
11738         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
11739         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
11740         (_AC_RUN_IFELSE): Use it.
11741         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
11742         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
11743         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
11744         inline it.
11746 2002-10-30  Akim Demaille  <akim@epita.fr>
11748         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
11749         * doc/autoconf.texi (autom4te Invocation): Adjust.
11750         Suggested by Tim van Holder.
11752 2002-10-29  Paul Eggert  <eggert@twinsun.com>
11754         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
11755         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
11756         Problem reported by Bruno Haible.
11758 2002-10-29  Akim Demaille  <akim@epita.fr>
11760         * doc/autoconf.texi (Header Templates): Put also in words what the
11761         pictures says to assist free style readers.
11762         (Customizing autom4te): s/--cache=/--cache /.
11764 2002-10-29  Akim Demaille  <akim@epita.fr>
11766         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
11767         sys/wait.h.
11768         sparc_address_test returns void.
11769         Use it with an argument, as prototyped.
11770         From Bruno Haible.
11772 2002-10-29  Akim Demaille  <akim@epita.fr>
11774         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
11775         configure.in, not configure.ac.
11776         Reported by Bruno Haible.
11778 2002-10-29  Akim Demaille  <akim@epita.fr>
11780         * tests/torture.at (Deep Package): New test.
11781         (Configuring subdirectories): Don't use a testSubDir as Autotest
11782         now does it itself.
11784 2002-10-29  Akim Demaille  <akim@epita.fr>
11786         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
11787         * doc/autoconf.texi (Invoking autom4te): Rename as...
11788         (autom4te Invocation): this, for consistency with the other nodes.
11790 2002-10-29  Akim Demaille  <akim@epita.fr>
11792         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
11793         Reported by Ralf Corsepius.
11795 2002-10-29  Akim Demaille  <akim@epita.fr>
11797         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
11798         characters is a back as an `obsolete' warning now.
11799         Reported by Ralf Corsepius.
11801 2002-10-28  Akim Demaille  <akim@epita.fr>
11803         * configure.ac: Bump to 2.54c.
11805 2002-10-28  Akim Demaille  <akim@epita.fr>
11807         Version 2.54b.
11809         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
11811 2002-10-28  Akim Demaille  <akim@epita.fr>
11813         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
11814         m4 executable names, and different GNU M4 version.
11815         Reported by Ezra Peisach and Paul Jarc.
11817 2002-10-27  Akim Demaille  <akim@epita.fr>
11819         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
11820         AC_RUN_IFELSE.
11822 2002-10-27  Akim Demaille  <akim@epita.fr>
11824         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
11825         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
11826         Die when a simple Fortran program cannot be compiled.
11827         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
11828         Issue a warning if no function is given.
11830 2002-10-27  Akim Demaille  <akim@epita.fr>
11832         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
11833         Move the documentation of AC_TRY_RUN to...
11834         (Obsolete Macros): here.
11835         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
11836         (autoconf Invocation): Remove the duplicates with `invoking
11837         autom4te'.
11838         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
11839         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
11841 2002-10-27  Akim Demaille  <akim@epita.fr>
11843         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
11844         and AC_LANG_FUNC_LINK_TRY.
11845         (Examining Libraries): Rename as...
11846         (Running the Linker): this.
11847         Document AC_LINK_IFELSE.
11848         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
11849         (Obsolete Macros): here.
11850         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
11851         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
11852         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
11853         * lib/autoconf/headers.m4 (AC_USG): Likewise.
11855 2002-10-27  Akim Demaille  <akim@epita.fr>
11857         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
11859         More `check config.log' messages.
11861         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
11862         * doc/autoconf.texi (Printing Messages): Document it.
11863         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
11864         appropriate.
11865         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
11866         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
11867         (_AC_COMPILER_OBJEXT): Likewise.
11868         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
11869         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
11870         Likewise.
11871         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
11872         Likewise.
11874         Deprecate macros with unusual interfaces.
11876         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
11877         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
11879         Document the new ones, and proper style.
11881         * doc/autoconf.texi (Generating Sources): New.
11882         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
11883         (Examining Declarations): Rename as...
11884         (Running the Preprocessor): this.
11885         Document AC_PREPROC_IFELSE.
11886         (Examining Syntax): Rename as...
11887         (Running the Compiler): this.
11888         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
11889         (Obsolete Macros): Move the definition of AC_TRY_CPP and
11890         AC_TRY_COMPILE here.
11892 2002-10-27  Akim Demaille  <akim@epita.fr>
11894         Move sections around.
11896         * doc/autoconf.texi (Customizing autom4te): Remove a lost
11897         sentence.
11898         Reported by Burno Haible.
11899         (Language Choice): Now the first section of...
11900         (Writing Tests): this section.
11901         Make the introduction less C-centric.
11902         (Guidelines, Test Functions): Move to...
11903         (Writing Test Programs): this new section.
11904         (Test Programs): Merge into...
11905         (Run Time): this.
11907 2002-10-27  Akim Demaille  <akim@epita.fr>
11909         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
11910         autom4te.in that resulted in the need for two `make' runs.
11912 2002-10-27  Akim Demaille  <akim@epita.fr>
11914         * configure.ac: Bump to 2.54b.
11916 2002-10-25  Akim Demaille  <akim@epita.fr>
11918         Version 2.54a.
11920         * Makefile.maint: Update from the Coreutils.
11921         (AMTAR): Remove, obsolete.
11922         (automake_repo): Update to redhat.com.
11923         (cvs_file): New.
11924         Adjust to the fact that ansi2knr is now hosted by Automake.
11925         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
11926         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
11927         Update from masters.
11928         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
11929         autoscan.pre is not to be installed, and autoscan.list is not to
11930         be shipped.
11931         (CLEANFILES): Add autoscan.list.
11932         (autoscan.list): Disable the cache.
11933         * bin/Makefile.am: Include freeze.mk.
11935 2002-10-25  Akim Demaille  <akim@epita.fr>
11937         * bin/autom4te.in (&load_configuration): Take the file as
11938         argument.
11939         (&parse_args): Handle -C, --cache.
11940         ($help): Adjust.
11941         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
11942         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
11943         * doc/autoconf.texi (Invoking autom4te): Document --cache.
11944         Now a subsection of...
11945         (Using autom4te): This new section.
11946         (Customizing autom4te): New.
11947         (autom4te.cache): Adjust.
11949 2002-10-25  Akim Demaille  <akim@epita.fr>
11951         * doc/autoconf.texi (Generic Headers): More information on how to
11952         use AC_CHECK_HEADERS.
11954 2002-10-25  Akim Demaille  <akim@epita.fr>
11956         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
11957         Space changes.
11959 2002-10-25  Akim Demaille  <akim@epita.fr>
11961         * bin/autoscan.in (output): Output AC_PREREQ.
11962         (%needed_macros): Add AC_PREREQ so that configure.ac without one
11963         be reported.
11965 2002-10-23  Akim Demaille  <akim@epita.fr>
11967         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
11968         document _Bool.
11970 2002-10-23  Akim Demaille  <akim@epita.fr>
11972         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
11973         Reported by Peter Eisentraut.
11975 2002-10-23  Akim Demaille  <akim@epita.fr>
11977         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
11978         type _Bool.
11979         Fix a typo.
11980         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
11981         Eggert's recommandations.
11983 2002-10-22  Akim Demaille  <akim@epita.fr>
11985         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
11986         Bison, by Paul Eggert.
11987         * doc/autoconf.texi (Particular Headers): Document it.
11989 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
11991         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
11992         `$ac_configure_args'.
11994 2002-10-22  Akim Demaille  <akim@epita.fr>
11996         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
11997         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
11998         From Art Haas.
12000 2002-10-22  Akim Demaille  <akim@epita.fr>
12002         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
12004         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
12005         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
12006         (_AC_CHECK_HEADER_NEW): Rename as...
12007         (AC_CHECK_HEADER): this.
12009 2002-10-22  Akim Demaille  <akim@epita.fr>
12011         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
12012         words about HP-UX cmp: it was actually a user-written cmp.
12014 2002-10-22  Akim Demaille  <akim@epita.fr>
12016         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
12017         are a few warnings.
12018         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
12019         Quote for Perl '' strings, not "".
12020         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
12021         strings.
12023 2002-10-22  Akim Demaille  <akim@epita.fr>
12025         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
12026         characters is a syntax warning now.
12027         (_AS_QUOTE): Accept $2 as list of characters to quote.
12028         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
12029         Quote for Perl, not sh.
12030         * bin/autoheader.in: When $debug, report the file which is
12031         `do'ne.
12032         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
12033         `@', to tickle Perl's lists.
12034         Reported by Carlos Velasco.
12036 2002-10-18  Akim Demaille  <akim@epita.fr>
12038         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
12039         missing included files _are_ errors.
12040         Thanks to Alexandre Duret-Lutz.
12041         * tests/tools.at (autom4te cache): Adjust.
12042         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
12043         (AT_CHECK_M4SUGAR): Use it.
12044         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
12045         Adjust.
12046         * tests/tools.at (autom4te): Now it does exit 1.
12048 2002-10-17  Akim Demaille  <akim@epita.fr>
12050         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
12051         Fixes the `AC_ARG_VAR' test failures.
12052         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
12053         * lib/freeze.mk (check-forbidden-patterns): New.
12054         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
12055         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
12056         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
12057         /dev/null.
12058         Reported months ago by H. Merijn Brand.
12060 2002-10-17  Akim Demaille  <akim@epita.fr>
12062         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
12064 2002-10-16  Paul Eggert  <eggert@twinsun.com>
12066         * Makefile.maint (wget_files): Remove ansi2knr.c.
12067         (ansi2knr.c-url_prefix): Remove.
12069 2002-10-16  Akim Demaille  <akim@epita.fr>
12071         Because of caching, some files that no longer exist and are no
12072         longer required can still cause errors.
12073         Reported by Alexandre Duret-Lutz.
12075         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
12076         to frozen files in @ARGV, as @ARGV must remain being a list of
12077         files.  Rather, at M4 call sites, use this...
12078         (&files_to_options): New function.
12079         (&freeze): Use &error.
12080         (&up_to_date): If a file that was included according to the cache
12081         is no longer there, then the output is out dated.
12082         (&main): Don't even check whether a file is up to date is anyway
12083         --force is given.
12084         * tests/tools.at (autom4te cache): New.
12086 2002-10-16  Akim Demaille  <akim@epita.fr>
12088         * bin/autoconf.as: Kill dead options.
12089         * bin/autoupdate.in (&parse_args): Kill old options.
12090         * bin/autoreconf.in (&parse_args): Remove dead options.
12091         Factor some code.
12092         (&autoreconf): Report the directories we enter *and leave*, so
12093         that error messages can be easily located, and use GNU Make
12094         format, so that Emacs' compile mode understands us.
12095         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
12096         if some file was changed instead of `print'.
12097         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
12098         (&parse_args): Remove the dead options.
12099         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
12100         autoheader's quiet mode.
12101         (AT_CHECK_AUTOUPDATE): Likewise.
12102         * tests/tools.at (autoupdate): Adjust.
12103         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12105 2002-10-11  Akim Demaille  <akim@epita.fr>
12107         No longer use CPP to check for the existing of headers: use CC to
12108         check for compilability.
12110         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
12111         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
12112         (_AC_CHECK_HEADER_NEW): Rename as...
12113         (AC_CHECK_HEADER): this.
12115         * lib/autotest/general.m4 (AT_INIT): Include the failed test
12116         numbers in the Subject suggestion.
12118 2002-10-11  Akim Demaille  <akim@epita.fr>
12120         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
12121         Suggest using AC_CHECK_DECLS instead.
12123 2002-10-11  Akim Demaille  <akim@epita.fr>
12125         * tests/torture.at (AC_ARG_VAR): Have configure report the value
12126         of `precious'.
12128 2002-10-11  Akim Demaille  <akim@epita.fr>
12130         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
12131         file name to enable parallel executions.
12132         From Sam Varshavchik.
12134 2002-10-08  Akim Demaille  <akim@epita.fr>
12136         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
12137         aclocal invocation, as Gettext macros might not be visible to
12138         aclocal.
12139         Instead of blindly running autopoint, scan configure.ac (not the
12140         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
12141         Reported by Paul D. Smith.
12143 2002-10-08  Paul Eggert  <eggert@twinsun.com>
12145         Work around problems found when POSIXLY_CORRECT=1 is set.
12146         None of this seems to have anything to do with POSIX, really,
12147         but it's how Perl getopt works.
12148         * bin/autom4te.in (parse_args): Configure GetOpt with
12149         "permute", too.
12150         * doc/autoconf.texi (Invoking autom4te):
12151         --warning -> --warnings.
12152         * lib/autom4te.in: --warning -> --warnings.
12154 2002-09-28  Akim Demaille  <akim@epita.fr>
12156         * doc/autoconf.texi (autom4te.cache): New section.
12158 2002-09-28  Akim Demaille  <akim@epita.fr>
12160         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
12161         (Automake-preselections): Update.
12162         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
12164 2002-09-28  Akim Demaille  <akim@epita.fr>
12166         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
12167         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
12168         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
12169         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
12171 2002-09-28  Akim Demaille  <akim@epita.fr>
12173         * tests/torture.at (Configuring subdirectories): Be robust to
12174         users who use config.site to require for a cache: in this case,
12175         the two last configure runs, using two different sets of
12176         arguments, trigger a legitimate error.
12178 2002-09-28  Akim Demaille  <akim@epita.fr>
12180         * tests/m4sh.at (Functions Support, Functions and return Support):
12181         New.
12183 2002-09-28  Akim Demaille  <akim@epita.fr>
12185         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
12186         autoheader are Perl programs.
12187         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
12188         (autom4te): Specify that the sources are in the $srcdir.
12189         * doc/autoconf.texi (Installation Directory Variables): Adjust.
12191 2002-09-28  Akim Demaille  <akim@epita.fr>
12193         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
12194         (tm_zone): Move their rules to...
12195         * lib/autoconf/types.m4: here, using AN_ macros.
12196         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
12197         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
12198         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
12199         * lib/autoconf/programs.m4: here.
12200         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
12201         (ETAGS_FOR_AUTOCONF): New.
12202         Use it.
12204 2002-09-28  Akim Demaille  <akim@epita.fr>
12206         * lib/autoconf/autoscan.m4: New file.
12207         * lib/autoconf/autoconf.m4: Include it.
12208         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
12209         that were listed in the original autoscan.list.
12210         * lib/autoconf/headers.m4: Similarly with headers.
12211         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
12212         (.m4.m4f): Don't pass --prepend-include, since that's done by
12213         tests/autom4te itself.
12214         * lib/autoscan/Makefile.am: Include freeze.mk.
12215         (autoscan.list): New target --this file is no longer a source.
12216         (autoscan.pre): New file.
12218 2002-09-28  Akim Demaille  <akim@epita.fr>
12220         * bin/autoscan.in (@kinds): Make them singular.
12221         Adjust all uses.
12222         (&init_tables): When --debug, report the list of rules to ease
12223         tracking changes in autoscan.list.
12224         * lib/autoscan/autoscan.list (function): Strip comments, sort.
12226 2002-09-28  Akim Demaille  <akim@epita.fr>
12228         * lib/autoscan/functions, lib/autoscan/headers,
12229         * lib/autoscan/identifiers, lib/autoscan/makevars,
12230         * lib/autoscan/programs: Merge into...
12231         * lib/autoscan/autoscan.list: this.
12232         * bin/autoscan.in (&init_tables): Adjust.
12234 2002-09-28  Akim Demaille  <akim@epita.fr>
12236         * lib/autoscan/functions, lib/autoscan/headers,
12237         * lib/autoscan/identifiers, lib/autoscan/makevars,
12238         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
12239         `functions' line is now prefixed with `function:'.
12240         * bin/autoscan.in (&init_tables): Adjust.
12242 2002-09-28  Akim Demaille  <akim@epita.fr>
12244         From now on, autoscan files must always map a macro name to a
12245         word: there is no `default' macro for autoscan.
12247         * bin/autoscan.in (&init_tables): Reject entries with no macro at
12248         all.
12249         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
12250         explicit.
12252 2002-09-28  Akim Demaille  <akim@epita.fr>
12254         * bin/autoscan.in (%c_keywords): Remove.
12255         (&used): Keep only track of the words we might be interested in.
12256         (&output_kind): It is no longer needed to look for non active
12257         checks.
12259 2002-09-27  Akim Demaille  <akim@epita.fr>
12261         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
12262         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
12263         * lib/autoscan/functions: Adjust.
12264         * doc/autoconf.texi (Particular Functions): Adjust.
12266 2002-09-27  Akim Demaille  <akim@epita.fr>
12268         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
12269         from /tmp.
12270         Thanks to Bill Moseley and Paul Eggert.
12271         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
12272         the tmpdir must be created.
12273         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
12274         dir be in the build tree, instead of $TMPDIR.
12276 2002-09-27  Akim Demaille  <akim@epita.fr>
12278         * bin/autoscan.in: Improve the comments.
12279         (&parse_args): Drop obsolete undocumented options.
12280         (&output_kind): Output warnings.
12281         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
12282         (getwd): Trigger a warning.
12284 2002-09-26  Akim Demaille  <akim@epita.fr>
12286         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
12287         Reported by Ralf Corsepius.
12288         * doc/autoconf.texi (autoreconf Invocation): Likewise.
12290 2002-09-26  Akim Demaille  <akim@epita.fr>
12292         Single suffix rules and seperated dependencies are not portable.
12294         * doc/autoconf.texi (Installation Directory Variables): Update.
12295         (Limitations of Make): Some about `Single Suffix Rules and
12296         Separated Dependencies'.
12297         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
12298         (ifnames, autoscan, autom4te): Un-factor into several rules.
12300 2002-09-25  Paul Eggert  <eggert@twinsun.com>
12302         * BUGS (Interoperability bugs): New section.  Mention libtool
12303         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
12305 2002-09-24  Paul Eggert  <eggert@twinsun.com>
12307         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
12308         make handles suffix-rules differently from GNU make.
12310         * bin/Makefile.am (SUFFIXES, .in): Remove.
12311         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
12312         Move the body of the old .in rule here.
12314 2002-09-16  Akim Demaille  <akim@epita.fr>
12316         i960 compilers create `b.out' files by default.
12317         Reported by Ralf Corsepius.
12319         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
12320         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
12322 2002-09-13  Paul Eggert  <eggert@twinsun.com>
12324         * doc/autoconf.texi (Particular Headers): Remove obsolete
12325         reference to `struct timezone' in the description of
12326         AC_HEADER_TIME.
12328 2002-09-13  Akim Demaille  <akim@epita.fr>
12330         Version 2.54.
12332         * config/config.sub, config/config.guess: Update.
12333         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
12334         * Makefile.am: Adjust.
12336 2002-09-13  Akim Demaille  <akim@epita.fr>
12338         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
12339         reading config.log when the compiler is rejected.
12340         Suggested by Guido Draheim.
12342 2002-09-13  Akim Demaille  <akim@epita.fr>
12344         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
12345         (chdir_init) might hang when stat'ing mounted directories.
12346         Reported by Vance Shipley.
12348 2002-09-12  Akim Demaille  <akim@epita.fr>
12350         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
12351         the lists.
12353 2002-09-12  Akim Demaille  <akim@epita.fr>
12355         * doc/autoconf.texi (Defining Symbols): Present two different
12356         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
12357         difference between 1 argument calls, and 2-3 argument calls.
12359 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
12361         * doc/autoconf.texi: Review grammar and punctuation.
12363 2002-09-11  Paul Eggert  <eggert@twinsun.com>
12365         * doc/autoconf.texi: Fix minor formatting, spelling, and
12366         grammatical typos.
12367         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
12368         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
12369         is obsolescent.
12371 2002-09-11  Akim Demaille  <akim@epita.fr>
12373         * doc/autoconf.texi (Questions): Rename as...
12374         (FAQ): this.
12375         (Defining Directories): New.
12377 2002-09-09  Akim Demaille  <akim@epita.fr>
12379         * doc/autoconf.texi (Making testsuite Scripts): Update.
12380         Suggested by Nishio Futoshi.
12382 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
12384         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
12385         plain `@' is wanted.
12387 2002-09-09  Akim Demaille  <akim@epita.fr>
12389         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
12390         `duplicates', since the algorithm was too naive and could keep
12391         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
12392         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
12393         Reported by Ralf Corsepius.
12394         * tests/torture.at (Configuring subdirectories): Exercise these
12395         cases.
12397 2002-09-09  Akim Demaille  <akim@epita.fr>
12399         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
12400         looking for a replacement file.
12401         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
12402         directory is relative.
12403         * doc/autoconf.texi (Generic Functions): Clarify the replacement
12404         directory definition.
12405         Reported by Andreas Schwab and Jim Meyering.
12407 2002-09-06  Akim Demaille  <akim@epita.fr>
12409         * doc/autoconf.texi (Setting Output Variables): Clarify what
12410         precious variables are.
12411         Suggested by Pontus Skoeld.
12413 2002-09-05  Akim Demaille  <akim@epita.fr>
12415         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
12416         (ifnames, autoscan, autom4te): Since we don't only depend on
12417         configure.ac variables (such as VERSION etc.), but also on prefix
12418         and so forth, depend on Makefile, not configure.ac.
12419         Reported by Alexandre Duret-Lutz.
12420         * doc/autoconf.texi (Installation Directory Variables): Adjust.
12422 2002-09-05  Kevin Ryde  <user42@zip.com.au>
12424         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
12425         doesn't seem to be confined to ia64, just say "some versions".
12427 2002-09-04  Akim Demaille  <akim@epita.fr>
12429         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
12430         Automake 1.6c.
12431         * Makefile.am (maintainer-clean-local): Remove.
12432         (MAINTAINERCLEANFILES): Remove COPYING.
12434 2002-09-03  Paul Eggert  <eggert@twinsun.com>
12436         * doc/autoconf.texi (Configuration Commands): Remove obsolete
12437         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
12438         Brinkmann.
12440 2002-09-03  Akim Demaille  <akim@epita.fr>
12442         * configure.ac: Bump to 2.53d.
12443         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
12444         as of today, on Automake's team suggestion.
12446 2002-09-03  Akim Demaille  <akim@epita.fr>
12448         Version 2.53c.
12450 2002-09-02  Akim Demaille  <akim@epita.fr>
12452         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
12453         SITE_MACRO_DIR.
12454         * configure.ac: Disable SITE_MACRO_DIR.
12456 2002-09-02  Jim Meyering  <meyering@lucent.com>
12458         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
12459         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
12460         Also, tweak grammar: s/make sure to/be sure to/.
12462 2002-09-02  Paul Eggert  <eggert@twinsun.com>
12464         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
12465         directory names are generally preferable to physical names.
12467 2002-09-02  Akim Demaille  <akim@epita.fr>
12469         * lib/Autom4te/General.pm (&update_file): s/die/error/.
12470         Reported by Raja R. Harinath.
12471         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
12472         * bin/autoupdate.in: Use error instead of die.
12474 2002-09-01  Paul Eggert  <eggert@twinsun.com>
12476         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
12477         ordinary shell concatenation rather than echo+tr+sed command that
12478         runs afoul of a long-line-related sed bug in Solaris 8.
12480         * bin/autoheader.in (parse_args): --warning -> --warnings.
12482         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
12483         stdout, as traditional "ls" does.
12484         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
12485         _AC_COMPILER_EXEEXT_O): Likewise.
12486         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
12488         * bin/autoconf.as: Add --prepend-include option.  This patch was
12489         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
12490         but bin/autoconf.in is generated automatically from bin/autoconf.as.
12492         * bin/autoconf.in, configure: Regenerate.
12494         * doc/autoconf.texi (Special Shell Variables): Mention
12495         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
12497         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
12498         MAILPATH and set PS1, PS2, PS4 to default values, to work
12499         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
12500         For LC_ALL etc, first try to set to "C" as POSIX requires and as
12501         the Autoconf documentation specifies; fall back to "unset" only if
12502         this fails.  Use a shell for-loop for this rather than an m4 loop,
12503         to shorten the output script.
12505 2002-08-30  Paul Eggert  <eggert@twinsun.com>
12507         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
12508         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
12509         for the CDPATH problem.  Document PWD.
12510         (Limitations of Builtins): Document the problem that "cd $foo" and
12511         "ls $foo" may refer to different directories in shells conforming
12512         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
12513         example, since the old example is now out of date.
12515         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
12516         FOO" and "ls FOO" talk about different directories; this catches
12517         problems when POSIX 1003.1-2001 "cd" fails due to symlink
12518         spaghetti.
12520         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
12521         of rolling our own unset.
12522         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
12523         in practice we needn't worry about CDPATH if unset doesn't work.
12525         * Makefile.in, aclocal.m4, bin/Makefile.in,
12526         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
12527         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
12528         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
12529         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
12530         tests/Makefile.in: Regenerate with Automake 1.6.3.
12532         * config/config.guess, config/config.sub, config/mkinstalldirs:
12533         Update.
12535         * configure: Regenerate with self.
12537 2002-08-30  Kevin Ryde  <user42@zip.com.au>
12539         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
12540         default output.
12542 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12544         * bin/autom4te.in (Request::load): Correctly test for "do" read
12545         failure.
12547 2002-08-29  Akim Demaille  <akim@epita.fr>
12549         * lib/Autom4te/General.pm (&xqx): New.
12550         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
12551         hand, which is not portable.
12552         (&error): New.
12553         * bin/autom4te.in: Use them.
12554         Use &error instead of die.
12555         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
12556         Adjust.
12558 2002-08-17  Paul Eggert  <eggert@twinsun.com>
12560         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
12561         default list of compilers to try, since it was long ago superseded
12562         by the ksh fc builtin.  Suggested by Steven G. Johnson.
12564 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
12566         * doc/autoconf.texi (Invoking autom4te): End the option table,
12567         fixing a bug introduced by the previous patch.
12568         (Limitations of Make): Add a 'target lookup' subentry in the
12569         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
12571 2002-07-29  Mark D. Roth  <roth@feep.net>
12573         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
12574         options and use $AUTOM4TE_PATH.
12575         * doc/autoconf.texi: Remove documentation of autom4te
12576         --include-envvar and --site-macro-subdir options and document
12577         use of $AUTOM4TE_PATH.
12578         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
12579         arguments from each language section.
12581 2002-07-29  Paul Eggert  <eggert@twinsun.com>
12583         * doc/install.texi: Include copyright symbol in copyright notice.
12585         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
12586         Replace with:
12587         (AM_MAKEINFOFLAGS): New macro.
12588         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
12589         * Makefile.am (INSTALL): Use the new macros.
12590         Use -o rather than --output, since "missing" does not grok --output.
12592 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
12594         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
12595         comments do not always work. Never trust the exit status of
12596         `make -k'.
12598 2002-07-24  Kevin Ryde  <user42@zip.com.au>
12600         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
12601         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
12603 2002-07-23  Paul Eggert  <eggert@twinsun.com>
12605         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
12606         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
12607         apparently treats PATH="nonexistent" as if it contained ".".
12608         Bug reported by Stefan `Sec' Zehl.
12610 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
12612         * doc/autoconf.texi (Limitations of Make): Mention the special
12613         handling of the obj/ directory by BSD make.
12615 2002-07-20  Kevin Ryde  <user42@zip.com.au>
12617         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
12618         backslashes.
12620 2002-07-19  Akim Demaille  <akim@epita.fr>
12622         * doc/autoconf.texi (Function Portability): `exit'.
12623         (Programming in M4sh): Ethymology of M4sh.
12625 2002-07-19  Akim Demaille  <akim@epita.fr>
12627         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
12629 2002-07-18  Akim Demaille  <akim@epita.fr>
12631         Version 2.53b.
12633 2002-07-18  Akim Demaille  <akim@epita.fr>
12635         * config/config.guess, config/config.sub: Update.
12637 2002-07-18  Akim Demaille  <akim@epita.fr>
12639         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
12640         Automake's parts.
12642         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
12643         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
12644         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
12646 2002-07-18  Akim Demaille  <akim@epita.fr>,
12647             Alexandre Duret-Lutz  <duret_g@epita.fr>
12649         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
12650         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
12652 2002-07-17  Russ Allbery  <rra@stanford.edu>
12654         * doc/autoconf.texi (Initializing configure): Clarify the
12655         description of the tarname default.
12657 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
12659         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
12660         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
12661         latter was not run.
12663 2002-07-17  Akim Demaille  <akim@epita.fr>
12665         * lib/Autom4te/General.pm (find_file): Browse the directories in
12666         the order they are given.
12668 2002-07-17  Akim Demaille  <akim@epita.fr>
12670         * tests/wrapsh.as, tests/wrappl.as: Merge into...
12671         * tests/wrapper.as: this.
12672         * tests/Makefile.am, configure.ac: Adjust.
12674 2002-07-17  Mark D. Roth  <roth@feep.net>
12676         * configure.ac: Add --enable-site-macro-dir option.
12677         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
12678         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
12679         --site-macro-subdir options.
12680         * bin/autoconf.in: Add --prepend-include option.
12681         * bin/autoheader.in: Add --prepend-include option.
12682         * bin/autoreconf.in: Add --prepend-include option.
12683         * bin/autoscan.in: Add --prepend-include option.
12684         * bin/autoupdate.in: Add --prepend-include option.
12685         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
12686         macro directory, remove note that include path directories are
12687         used in reverse order, and document --prepend-include option.
12688         * lib/autom4te.in: Use --prepend-include instead of --include.
12689         * tests/wrapsh.in: Use --prepend-include instead of --include.
12691 2002-07-17  Akim Demaille  <akim@epita.fr>
12693         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
12694         tarnames.
12695         * doc/autoconf.texi (Initializing configure): Adjust.
12697 2002-07-17  Akim Demaille  <akim@epita.fr>
12699         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
12700         (_AC_FUNC_MALLOC): New.
12701         (AC_FUNC_MALLOC): Use the latter.
12702         Define HAVE_MALLOC to 0 if broken.
12703         * doc/autoconf.texi (Particular Functions): Adjust.
12705 2002-07-16  Akim Demaille  <akim@epita.fr>
12707         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
12708         * doc/autoconf.texi (C Compiler): Adjust.
12710 2002-07-09  Akim Demaille  <akim@epita.fr>
12712         * doc/autoconf.texi: Properly set the ``header'' part.
12714 2002-07-09  Akim Demaille  <akim@epita.fr>
12716         * doc/autoconf.texi (Systemology): Some about Darwin.
12718 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
12720         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
12721         Don't use AC_REQUIRE in AU_DEFUN.
12723 2002-07-09  Art Haas  <ahaas@neosoft.com>
12725         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
12727 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
12729         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12730         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
12731         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
12732         so that Emacs setups GNU style for perl-mode and cperl-mode.
12734 2002-06-27  Paul Eggert  <eggert@twinsun.com>
12736         * config/install-sh: Quote $src.  Prefer || to test's -o option,
12737         as per "Limitations of Builtins".
12738         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
12739         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12741         * tests/mktests.sh: Use grep instead of fgrep, as per
12742         "Limitations of Builtins".
12744 2002-06-15  Paul Eggert  <eggert@twinsun.com>
12746         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
12747         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
12748         so that we consistently test the just-built programs.
12749         * tests/wrappl.as: Likewise.
12751 2002-06-12  Paul Eggert  <eggert@twinsun.com>
12753         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
12754         name, so that symlinks to 'autoconf' work properly.  Bug reported
12755         by Bruno Haible.
12756         * bin/autoheader.in (AUTOM4TE): Likewise.
12757         * bin/autoreconf.in (autoconf, autoheader): Likewise.
12758         * bin/autoscan.in (autom4te): Likewise.
12759         * bin/autoupdate.in (autom4te): Likewise.
12761         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
12762         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
12763         on Solaris 2.5.1.
12765 2002-06-11  Andreas Schwab  <schwab@suse.de>
12767         * doc/autoconf.texi: Add more dir entries.
12769 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
12771         * bin/autom4te.in ($cache): Don't define using `$me', the name
12772         of the cache should not depend on the name under which autom4te
12773         was installed.
12775 2002-06-07  Akim Demaille  <akim@epita.fr>
12777         * tests/tools.at (autoconf: forbidden tokens, basic)
12778         (autoconf: forbidden tokens, exceptions): Adjust to the change of
12779         words in autom4te.in.
12781 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
12783         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
12784         _AC_LANG_PROGRAM_C_F77_HOOKS.
12786 2002-06-07  Akim Demaille  <akim@epita.fr>
12788         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
12789         rename as...
12790         (AC_REPLACE_FNMATCH): this.
12791         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
12792         AC_FUNC_FNMATCH_GNU.
12794 2002-06-07  Akim Demaille  <akim@epita.fr>
12796         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
12797         Rosetta Stone for Unix.
12799 2002-06-07  Akim Demaille  <akim@epita.fr>
12801         * bin/autom4te.in (warn_forbidden): When rejecting a token,
12802         suggest m4_pattern_allow.
12803         Suggested by Adam J. Richter.
12805 2002-06-07  Akim Demaille  <akim@epita.fr>
12807         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12808         ac_config_libobj_dir.
12809         (AC_CONFIG_LIBOBJ_DIR): New.
12810         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
12811         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
12812         Use ac_config_libobj_dir to find the replacement files.
12813         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
12814         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
12815         (AC_REPLACE_FNMATCH_GNU): these.
12816         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
12817         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
12818         * tests/mktests.sh (ac_exclude_list): Don't check
12819         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
12821 2002-06-06  Paul Eggert  <eggert@twinsun.com>
12823         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
12824         if ln doesn't work.
12825         * NEWS: Likewise.
12826         * doc/autoconf.texi (Configuration Links): Likewise.
12827         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
12829 2002-06-05  Paul Eggert  <eggert@twinsun.com>
12831         * config/config.guess, config/config.sub, config/texinfo.tex:
12832         Update from masters.
12834 2002-05-29  Paul Eggert  <eggert@twinsun.com>
12836         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
12837         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
12838         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
12839         Likewise.
12840         * lib/autoconf/Makefile.am (check-local): Likewise.
12841         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
12842         * lib/autoconf/types.m4 (commentary only): Likewise.
12843         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
12844         * lib/autotest/Makefile.am (check-local): Likewise.
12845         * lib/m4sugar/Makefile.am (check-local): Likewise.
12846         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
12847         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
12849         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
12850         * doc/autoconf.texi (Particular Programs): Document them.
12851         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
12852         * NEWS: Likewise.
12854 2002-05-27  Paul Eggert  <eggert@twinsun.com>
12856         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
12857         * NEWS, doc/autoconf.texi (Particular Types): Document it.
12858         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
12859         instead of AC_MBSTATE_T, which never existed.
12861 2002-05-23  Akim Demaille  <akim@epita.fr>
12863         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
12864         version of Autoconf that is discussed.
12866 2002-05-22  Paul Eggert  <eggert@twinsun.com>
12868         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
12869         from the default list of compilers to try.  Suggested by
12870         Kate Hedstrom.
12871         * NEWS: Document the above.
12872         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
12874 2002-05-17  Paul Eggert  <eggert@twinsun.com>
12876         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
12877         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
12878         This improves on an earlier suggestion by H. Peter Anvin.
12880 2002-05-16  Paul Eggert  <eggert@twinsun.com>
12882         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
12883         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
12884         Both macros now accept an optional source-dir arg.
12885         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
12887         * NEWS: Document this.
12888         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
12890         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
12891         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
12892         not for GNU extensions; this undoes part of the 2000-11-03 change,
12893         reverting to 2.13-compatible behavior.
12894         Add new optional argument DIR.
12895         (AC_FUNC_FNMATCH_GNU): New macro.
12897         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
12899 2002-05-08  Paul Eggert  <eggert@twinsun.com>
12901         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
12902         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
12903         and it causes a 'test' syntax error if it fails.
12904         Bug reported by Stephen Gildea.
12906         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
12907         If prototypes are supported, use them to check this at compile-time,
12908         instead of trying to check it at run-time.  If we must do a run-time
12909         check, assume that setvbuf is standard when cross-compiling, as
12910         nonstandard setvbuf occurs only on ancient and unlikely hosts.
12911         Bug reported by Paul D. Smith.
12913         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
12914         argument specifying location of getloadavg.c.  This removes a
12915         FIXME.  This idea was taken from Jim Meyering's implementation in
12916         textutils.
12917         * doc/autoconf.texi (Particular Functions): Document this.
12918         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
12919         that's what the code does; this fixes a bug reported by
12920         Paul D. Smith.
12922 2002-05-03  Akim Demaille  <akim@epita.fr>
12924         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
12925         autopoint instead of gettextize.
12926         ($uses_alocal): Rename as...
12927         ($uses_aclocal): this.
12928         * doc/autoconf.texi (autoreconf Invocation): Adjust.
12929         Suggested by Bruno Haible.
12931 2002-05-03  Akim Demaille  <akim@epita.fr>
12933         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
12935 2002-04-29  Paul Eggert  <eggert@twinsun.com>
12937         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
12938         files to be 1 second older; just set them to be the same time.
12939         Also, sleep 1 second after the first aclocal, to work around
12940         problems with sub-second time stamps on the input files.
12942 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
12944         * doc/autoconf.texi: Mention "set -e -x" lossage
12945         under node "Limitations of Builtins".
12947 2002-04-29  Akim Demaille  <akim@epita.fr>
12949         * doc/install.texi: Better wording for setting variables when
12950         running configure.
12951         From Christian Cornelssen.
12953 2002-04-29  Akim Demaille  <akim@epita.fr>
12955         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
12956         of lack of $LINENO support, then the test will compare the $LINENO
12957         in testsuite vs. the lineno in the test file.  This is wrong, of
12958         course.
12959         Be sure to protect it.
12960         Reported by Patrick Welche.
12962 2002-04-25  Akim Demaille  <akim@epita.fr>
12964         * doc/autoconf.texi (Obsolete Macros): Typo.
12965         Reported by Vladimir Volovich.
12967 2002-04-25  Akim Demaille  <akim@epita.fr>
12969         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
12970         than some of the input files, hence, on the second run of aclocal,
12971         if some of its input are younger, make them older.
12972         Suggested by Paul Eggert.
12974 2002-04-25  Akim Demaille  <akim@epita.fr>
12976         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
12977         Thanks to Paul Eggert.
12979 2002-04-25  Akim Demaille  <akim@epita.fr>
12981         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
12982         and ac_subst_vars be sh variables containing the list of
12983         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
12984         DEFAULT diversion.
12985         (_AC_INIT_PREPARE): Use them to log them.
12986         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
12987         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
12988         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
12989         _AC_SUBST_FILES and _AC_SUBST_VARS.
12990         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
12992 2002-04-24  Akim Demaille  <akim@epita.fr>
12994         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
12995         autoheader, so that automake does not complain about a missing
12996         config.h.in that was to be created.
12998 2002-04-23  Akim Demaille  <akim@epita.fr>
13000         * bin/autoheader.in (parse_args): --warning takes an argument.
13001         Fixes PR/220.
13003 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
13005         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
13006         and bb.out when cleaning up.
13008 2002-04-22  Akim Demaille  <akim@epita.fr>
13010         Version 2.53a.
13012 2002-04-22  Akim Demaille  <akim@epita.fr>
13014         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
13016 2002-04-22  Akim Demaille  <akim@epita.fr>
13018         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
13019         comma.
13020         Reported by Gregory Giannoni.
13022 2002-04-22  Akim Demaille  <akim@epita.fr>
13024         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
13025         Fixes false failures on Darwin.
13027 2002-04-21  Paul Eggert  <eggert@twinsun.com>
13029         * TODO, bin/autoupdate.in, doc/autoconf.texi,
13030         lib/autoconf/general.m4, lib/autoconf/libs.m4,
13031         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
13032         tests/tools.at: Minor spelling and grammar fixes.
13034 2002-04-20  Paul Eggert  <eggert@twinsun.com>
13036         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
13037         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
13038         * lib/autotest/general.m4 (AT_INIT): Likewise.
13039         * tests/atgeneral.m4 (AT_INIT): Likewise.
13041 2002-04-19  Paul Eggert  <eggert@twinsun.com>
13043         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
13044         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
13045         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
13046         lib/autoconf/functions.m4, lib/autoconf/general.m4,
13047         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
13048         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
13049         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
13050         Minor spelling and grammar fixes.
13052         * doc/autoconf.texi: Follow the outline suggested in the GNU
13053         Sample Texts sections of the Texinfo 4.2 manual.  Most
13054         importantly, this makes sure that the copyright notices appear in
13055         all output formats.  You probably need Texinfo 4.2 to generate
13056         the manual now.
13058         Fix some bugs when using "$@" when there might be zero positional
13059         arguments in cases where this matters.
13061         * bin/autoconf.as: Rewrite so that the problem does not come up.
13062         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
13063         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
13064         * lib/autotest/general.m4 (AT_INIT): Likewise.
13066         * bin/autoheader.in: Use 'case' statement to work around problem.
13067         * bin/auto4mte.in: Likewise.
13068         * bin/autoreconf.in: Likewise.
13069         * bin/autoscan.in: Likewise.
13070         * bin/autoupdate.in: Likewise.
13071         * bin/ifnames.in: Likewise.
13073         * doc/autoconf.texi (Shell Substitutions): Document the problem.
13075         * lib/autotest/general.m4 (AT_INIT):
13076         Use Zsh alias to work around problem.
13077         * tests/atgeneral.m4 (AT_INIT): Likewise.
13079         * tests/c.at: We can't have zero arguments, so remove workaround
13080         that is not portable to Zsh.
13082 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
13084         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
13085         from aclocal.m4 too.
13087 2002-04-12  Akim Demaille  <akim@epita.fr>
13089         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
13091 2002-04-10  Akim Demaille  <akim@epita.fr>
13093         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
13094         workaround for ${1+"$@"}.
13095         * doc/autoconf.texi (Shell Substitutions): Explain it.
13096         From Oliver Kiddle and Peter Stephenson.
13098         Have M4sh perform minimal shell sanitizing.
13100         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
13101         part into...
13102         (_AS_PREPARE): this new macro.
13103         (AS_PREPARE): New.
13104         (AS_INIT): Invoke AS_SHELL_SANITIZE.
13105         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
13107         Adjust Autoconf and Autotest.
13109         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
13110         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
13111         * lib/autotest/general.m4 (AT_INIT): Likewise.
13112         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
13113         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
13114         AS_SHELL_SANITIZE.
13116         Use this M4sh to generate Autoconf's shell scripts.
13118         * tests/wrapsh.as: New, precursor of wrapsh.in.
13119         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
13120         on Autotest and M4sh.
13121         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
13122         (wrapsh.in): New target.
13123         * bin/autoconf.as: New, precursor of autoconf.in.
13124         (autoconf.in): New target.
13126 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
13128         * doc/autoconf.texi (Limitations of Make): Mention the issue
13129         with indented comments in rules.
13131 2002-04-09  Andreas Schwab  <schwab@suse.de>
13133         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
13134         ac_top_builddir when setting ac_abs_top_builddir.
13136 2002-04-06  Kevin Ryde  <user42@zip.com.au>
13138         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
13139         (Portable Shell): Cross reference to Systemology.
13141 2002-04-05  Akim Demaille  <akim@epita.fr>
13143         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
13144         directories when descending in a SUBDIRS.
13145         Reported by Ezra Peisach.
13147 2002-04-04  Andreas Schwab  <schwab@suse.de>
13149         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
13150         contains no literal separators.
13152 2002-04-03  Akim Demaille  <akim@epita.fr>
13154         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
13155         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
13156         Use dnl, not the KILL diversion.
13157         Extracted from...
13158         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
13159         (AC_CONFIG_LINKS): here.
13160         Adjust.
13161         Don't use the KILL diversion, as it kills spurious output, which
13162         results in failures being hidden.
13163         Use m4_defn where appropriate.
13164         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
13165         after the second argument.
13166         Use m4_defn.
13167         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
13168         syntax, as it is provided by M4sugar.
13169         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
13171 2002-04-03  Andreas Schwab  <schwab@suse.de>
13173         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
13174         expanded if $# <= 2.
13176         * bin/autoreconf.in (autoreconf): Run automake after rerunning
13177         aclocal.
13179 2002-04-03  Akim Demaille  <akim@epita.fr>
13181         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
13182         (_AC_COMPILER_EXEEXT_REJECT): New.
13183         Also recognize *.bb and *.bbg as compilation byproducts.
13184         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
13185         (_AC_COMPILER_OBJEXT): Use them.
13186         Fixes Debian #138666.
13188 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
13190         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
13192         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
13193         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
13194         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
13195         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
13196         (AC_C_CONST): Same.
13197         (AC_C_INLINE): Same.
13198         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
13199         * doc/autoconf.texi, NEWS: Document.
13200         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
13201         AC_C_CROSS.
13203 2002-04-02  Akim Demaille  <akim@epita.fr>
13205         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
13206         _AS_MKDIR_P_PREPARE.
13208 2002-03-28  Kevin Ryde  <user42@zip.com.au>
13210         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
13211         to avoid versions of HP C which don't allow that.
13213 2002-03-27  Paul Eggert  <eggert@twinsun.com>
13215         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
13216         (AS_SHELL_SANITIZE): Invoke it.
13217         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
13219 2002-03-26  Akim Demaille  <akim@epita.fr>
13221         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
13223 2002-03-26  Akim Demaille  <akim@epita.fr>
13225         * doc/autoconf.texi (Introduction): The GNATS base moved.
13227 2002-03-25  Paul Eggert  <eggert@twinsun.com>
13229         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
13230         as POSIX requires, as it doesn't work with Zsh.
13231         * doc/autoconf.texi (Assignments): Document the problem.
13233 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
13235         * doc/autoconf.texi (Limitations of Make): Mention more issue
13236         about VPATH, overriding of macros in sub-makes, and handling of
13237         SHELL.
13239 2002-03-21  Paul Eggert  <eggert@twinsun.com>
13241         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
13242         problem with here-document buffer boundaries.
13244         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
13245         when reinvoking the shell, to work around problems with installers
13246         who put strange things like "cd" commands in their environments.
13248 2002-03-19  Akim Demaille  <akim@epita.fr>
13250         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
13251         From Aaron Ucko.
13253 2002-03-19  Akim Demaille  <akim@epita.fr>
13255         * bin/autoscan.in (scan_file): Specify the location in `&used'
13256         invocations.
13257         From Nicolas Joly.
13259 2002-03-19  Akim Demaille  <akim@epita.fr>
13261         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
13262         From Nishio Futoshi.
13264 2002-03-19  Akim Demaille  <akim@epita.fr>
13266         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
13268 2002-03-18  Paul Eggert  <eggert@twinsun.com>
13270         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
13271         (Limitations of Usual Tools): Add mkdir section.
13273         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
13274         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
13275         back on AS_DIRNAME to compute prefixes otherwise; this is
13276         roughly what mkinstalldirs does.  That way, we need not have
13277         our own filename disassembler.  The old disassembler did not
13278         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
13280         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
13281         Create at_test_all by a series of assignments,
13282         not by a single assignment of a long string.  The latter causes ksh
13283         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
13284         presumably because of a buffer overrun.
13286 2002-03-14  Paul Eggert  <eggert@twinsun.com>
13288         * lib/autotest/general.m4 (at_times_skip):
13289         Renamed from at_times.  Now a boolean.
13290         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
13291         says 'times: not found'.
13293 2002-03-14  Akim Demaille  <akim@epita.fr>
13295         * bin/autoreconf.in (&study_gettextize): New.
13296         (&autoreconf): Handle newest gettextize.
13297         Rerun aclocal if needed.
13298         Suggested by Andreas Schwab.
13300 2002-03-13  Akim Demaille  <akim@epita.fr>
13302         * doc/autoconf.texi (Special Shell Variables): More about IFS.
13304 2002-03-13  Akim Demaille  <akim@epita.fr>
13306         * doc/autoconf.texi (Header Portability): New.
13307         Add information about stdint.h and inttypes.h from Paul Eggert.
13309 2002-03-13  Akim Demaille  <akim@epita.fr>
13311         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
13312         -p'.
13313         From Bob Proulx.
13315 2002-03-12  Akim Demaille  <akim@epita.fr>
13317         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
13318         m4_require.
13320 2002-03-11  Andreas Schwab  <schwab@suse.de>
13322         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
13323         does not do it if --with-lispdir is given.
13325 2002-03-08  Akim Demaille  <akim@epita.fr>
13327         Version 2.53.
13329 2002-03-08  Akim Demaille  <akim@epita.fr>
13331         * doc/autoconf.texi (Subdirectories): Clarify that the
13332         subdirectory should exist.
13334 2002-03-08  Akim Demaille  <akim@epita.fr>
13336         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
13338 2002-03-08  Akim Demaille  <akim@epita.fr>
13340         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
13341         aliases the actual variables, and modifications of the former
13342         affect the latter.
13344 2002-03-08  Akim Demaille  <akim@epita.fr>
13346         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
13347         because of C-c: have m4 output in tmp files, then mv them.
13349 2002-03-08  Akim Demaille  <akim@epita.fr>
13351         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
13352         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
13353         * bin/ifnames.in: Copyright update.
13355 2002-03-08  Akim Demaille  <akim@epita.fr>
13357         * doc/autoconf.texi (Invoking autom4te): New.
13359 2002-03-05  Akim Demaille  <akim@epita.fr>
13361         * doc/autoconf.texi (Specifying Names): Clarification suggested by
13362         Kevin Ryde.
13364 2002-03-05  Akim Demaille  <akim@epita.fr>
13366         Version 2.52i.
13368 2002-03-04  Akim Demaille  <akim@epita.fr>
13370         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
13371         * lib/autoconf/general.m4 (AC_INIT): More informative error
13372         message for LIBOBJ.
13374 2002-03-04  Akim Demaille  <akim@epita.fr>
13376         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
13377         parallel builds.
13379 2002-03-04  Akim Demaille  <akim@epita.fr>
13381         * doc/autoconf.texi (Transforming Names): Equality between target
13382         and host is irrelevant.
13383         (Specifying Names, Canonicalizing): Remove all references to the
13384         backward compatibility hooks.  Rather, collect them all into...
13385         (Hosts and Cross-Compilation): this new section.
13386         * doc/install.texi (System Type): Ditto.
13387         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
13388         that `--host' implies cross-compilation.
13390 2002-03-04  Akim Demaille  <akim@epita.fr>
13392         * doc/autoconf.texi (Evaluation Macros): New.
13393         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
13394         useless.
13395         (_m4_foreach): Define the variant with immediate evaluation so
13396         that it contains exactly the items, not an expression which
13397         evaluation is the current item.
13398         (m4_re_string, m4_re_word): Don't over quote them.
13400 2002-03-04  Akim Demaille  <akim@epita.fr>
13402         Instead of having stacking `shift's evaluated at the end, let
13403         `foreach' loops immediately evaluate them.
13405         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
13406         $*.  This is the n-th time I change my mind, but hopefully this is
13407         the last...
13408         (m4_lquote): New.
13409         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
13410         efficient.
13411         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
13412         it was only a hack for m4_text_wrap.
13413         (m4_car2): Remove, replaced by...
13414         (m4_cdr): New.
13415         (_m4_foreach): Adjust.
13416         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
13417         m4_bpatsubst for clarification.
13419 2002-03-04  Akim Demaille  <akim@epita.fr>
13421         * doc/autoconf.texi (Changequote is Evil): New.
13423 2002-03-03  Kevin Ryde  <user42@zip.com.au>
13425         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
13426         on old systems like SunOS.
13428 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
13430         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13431         lib/autoconf/functions.m4, lib/autoconf/general.m4,
13432         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
13433         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
13434         of messages.
13436 2002-02-28  Akim Demaille  <akim@epita.fr>
13438         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
13439         message to be sent.
13441 2002-02-28  Kevin Ryde  <user42@zip.com.au>
13443         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
13445 2002-02-25  Akim Demaille  <akim@epita.fr>
13447         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
13448         From Akinori Musha.
13450 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
13452         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
13453         translate \r\n to \n.
13455 2002-02-07  Akim Demaille  <akim@epita.fr>
13457         Version 2.52h.
13459 2002-02-07  Akim Demaille  <akim@epita.fr>
13461         Fix Autoconf PR/209.
13462         Also reported by Frank Denis.
13464         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
13466 2002-02-07  Akim Demaille  <akim@epita.fr>
13468         Fix Autoconf PR/207:
13469         AC_PREFIX_PROGRAM fails with dashed program names
13471         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
13472         variable when looking for the prefix program.
13473         Now it also works for shell variables.
13475 2002-02-07  Akim Demaille  <akim@epita.fr>
13477         * doc/autoconf.texi (Limitations of Builtins): More about
13478         case/esac.
13480 2002-02-06  Akim Demaille  <akim@epita.fr>
13482         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
13483         case/esac, some shells don't support it.
13484         Reported by Zack Weinberg.
13485         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
13487 2002-02-06  Akim Demaille  <akim@epita.fr>
13489         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
13490         sure not to introduce newlines in at_groups.
13491         * lib/autotest/Makefile.am (autotest.m4f): Typo.
13493 2002-02-06  Akim Demaille  <akim@epita.fr>
13495         * tests/torture.at (Configuring subdirectories): Skip if aclocal
13496         is not available.
13498 2002-02-05  Paul Eggert  <eggert@twinsun.com>
13500         * doc/autoconf.texi (Specific Compiler Characteristics):
13501         Describe HP-UX cc bug workaround more accurately.
13502         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
13503         not unsigned long.
13504         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
13505         cross-compilers, too.  This undoes some of the most recent change
13506         to this file.
13508 2002-02-05  Akim Demaille  <akim@epita.fr>
13510         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
13511         to make sure they are up to date when `check' is run.
13513 2002-02-05  Akim Demaille  <akim@epita.fr>
13515         * doc/autoconf.texi (Making testsuite Scripts): Document
13516         package.m4.
13518 2002-02-05  Akim Demaille  <akim@epita.fr>
13520         * lib/freeze.mk: New.
13522 2002-02-05  Akim Demaille  <akim@epita.fr>
13524         Implement `autom4te --freeze'.
13526         * bin/autom4te.in (&freeze): New.
13527         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
13528         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
13530 2002-02-05  Akim Demaille  <akim@epita.fr>
13532         * bin/autom4te.in (&parse_args): Implement `frozen files are
13533         optional are the sum of the previous files on the command line'.
13534         Also, pass `--reload-state=' on them, so...
13535         (handle_m4): don't.
13536         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
13537         (M4sh): Rely on M4sugar.
13538         (Autotest, M4sh, M4sugar): Use frozen files.
13540 2002-01-31  Akim Demaille  <akim@epita.fr>
13542         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
13543         * doc/autoconf.texi (Initializing configure): Adjust.
13545 2002-01-30  Akim Demaille  <akim@epita.fr>
13547         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
13548         alphanumeric to `-' instead of `_'.
13550 2002-01-30  Akim Demaille  <akim@epita.fr>
13552         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
13553         for plain code, the other for cross-compilation code.  The latter
13554         is now run with GCC only.
13555         * doc/autoconf.texi (Compilers and Preprocessors): New.
13557 2002-01-30  Akim Demaille  <akim@epita.fr>
13559         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
13560         values.
13561         * doc/autoconf.texi (Initializing configure): Explain how to
13562         change AC_INIT default values.
13564 2002-01-29  Akim Demaille  <akim@epita.fr>
13566         * tests/torture.at (Configuring subdirectories): Use configure.in,
13567         so that aclocal 1.4 works.
13568         Reported by Alexandre Duret-Lutz and Larry Schmitt.
13570 2002-01-28  Akim Demaille  <akim@epita.fr>
13572         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
13573         needs an argument.
13575 2002-01-28  Akim Demaille  <akim@epita.fr>
13577         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
13578         AUTOTEST_PATH *after* it was set.
13579         Don't put `.' in the PATH: the user should be precise and `./' if
13580         needed.  In addition, given that the test suite does some `cd', if
13581         `.' is in the path, the `tested programs' sections will report
13582         programs found in the test suite's directory, while during the
13583         tests (performed in their own directory), these programs are no
13584         longer visible.  In other words, the results is confusing and
13585         useless.
13586         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
13588 2002-01-24  Akim Demaille  <akim@epita.fr>
13590         Version 2.52g.
13592 2002-01-24  Akim Demaille  <akim@epita.fr>
13594         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
13595         * doc/autoconf.texi: Finally add Akim as an author.
13597 2002-01-24  Akim Demaille  <akim@epita.fr>
13599         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
13600         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
13601         Bourne. Use /bin/sh.
13602         From Andreas Buening.
13604 2002-01-24  Akim Demaille  <akim@epita.fr>
13606         * config/config.guess, config/config.sub, config/texinfo.tex:
13607         Update from masters.
13609 2002-01-24  Akim Demaille  <akim@epita.fr>
13611         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
13612         * config/auxdir.m4, config/cond.m4, config/depend.m4,
13613         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
13614         * config/missing.m4, config/sanity.m4, config/select.m4,
13615         * config/strip.m4: Remove, to ease sync'ing with any version of
13616         Automake.
13618 2002-01-24  Akim Demaille  <akim@epita.fr>
13620         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
13621         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
13622         Reported by Geir Ove Myhr.
13624 2002-01-21  Akim Demaille  <akim@epita.fr>
13626         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
13628 2002-01-21  Akim Demaille  <akim@epita.fr>
13630         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
13631         message on invalid options.
13632         * bin/autom4te.in (parse_args): Don't use
13633         Autoconf::General::getopt with non valid options.
13635 2002-01-17  Jim Meyering  <meyering@lucent.com>
13637         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
13638         $ac_cv_exeext so we don't use an old, invalid, cached value.
13640 2002-01-11  Akim Demaille  <akim@epita.fr>
13642         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
13643         Meyering.
13644         * doc/autoconf.texi (Function Portability): Document the strnlen
13645         limitation.
13646         (Particular Functions): Document AC_FUNC_STRNLEN.
13647         * lib/autoscan/functions: Adjust.
13649 2002-01-06  Akim Demaille  <akim@epita.fr>
13651         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
13652         package.m4, since is really depends upon configure.ac, not
13653         configure.
13654         * doc/autoconf.texi (testsuite Scripts): Adjust.
13655         * tests/Makefile.am (package.m4): New.
13656         EXTRA_DIST it since its a source.
13658 2002-01-06  Akim Demaille  <akim@epita.fr>
13660         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
13661         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
13662         and PACKAGE_BUGREPORT from here...
13663         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
13664         arguments.
13665         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
13666         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
13667         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
13668         * tests/tools.at (autoheader): Adjust.
13669         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
13671 2002-01-06  Akim Demaille  <akim@epita.fr>
13673         * bin/autoscan.in (scan_file): Use `&used'.
13675 2002-01-03  Akim Demaille  <akim@epita.fr>
13677         * doc/autoconf.texi (Output): Improved wording regarding use of
13678         AC_OUTPUT.
13679         From Olly Betts.
13681 2001-12-18  Kevin Ryde  <user42@zip.com.au>
13683         * doc/autoconf.texi (Function Portability): Add notes on sscanf
13684         sometimes needing writable input.
13686 2001-12-17  Jim Meyering  <meyering@lucent.com>
13688         * doc/autoconf.texi (New Macros): Tweak wording.
13690 2001-12-14  Akim Demaille  <akim@epita.fr>
13692         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
13693         trailing files, don't apply `-rf' to files which might not be
13694         created by configure (core, core.*, and *.core), but just `rm -f'.
13695         Suggested by Jonathan Kamens.
13697 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
13699         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
13701 2001-12-14  Akim Demaille  <akim@epita.fr>
13703         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
13705 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
13707         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
13708         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
13709         abs_srcdir, top_srcpath to abs_top_srcdir.
13710         (_AC_OUTPUT_FILES): Adjust.
13711         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
13712         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
13713         * tests/wrappl.in, tests/wrapsh.in: Adjust.
13715 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
13717         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
13718         C/Fortran linking on HP/UX, by extracting the Fortran library
13719         search path from the LPATH line in the $F77 -v output.
13721 2001-12-12  Kevin Ryde  <user42@zip.com.au>
13723         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
13724         forbidden file descriptors table.
13726 2001-11-26  Akim Demaille  <akim@epita.fr>
13728         * bin/autoscan.in (%c_keywords): Build it at top level.
13729         Map to 1 in order to simplify its uses.
13731 2001-11-26  Akim Demaille  <akim@epita.fr>
13733         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
13734         Remove $filepath, useless.
13735         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
13736         variables, they are really part of the tokens.
13737         Split the input line on spaces and then look for tokens.
13738         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
13739         because of `lex$U.$(OBJEXT)'.
13740         (&scan_files): Use "@list" instead of join.
13741         * doc/Makefile.am (CLEANFILES): Add *.fns.
13743 2001-11-26  Akim Demaille  <akim@epita.fr>
13745         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
13746         Remove, replaced by...
13747         * tests/wrappl.in: Be common for all the Perl executables.
13748         In particular autoscan and autoheader want -I.
13749         * configure.ac: Adjust.
13750         * lib/autoscan/headers: errno.h is portable.
13752 2001-11-26  Akim Demaille  <akim@epita.fr>
13754         * bin/autoscan.in (used): New.
13755         Use it.
13757 2001-11-26  Akim Demaille  <akim@epita.fr>
13759         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
13760         directives.
13761         (&scan_sh_file): Remove a duplicate pattern.
13762         (&check_configure_ac): Use long options.
13763         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
13765 2001-11-26  Akim Demaille  <akim@epita.fr>
13767         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
13768         Before, having a line containing the opening of a multi line
13769         comment made the whole line be ignored.
13771 2001-11-26  Akim Demaille  <akim@epita.fr>
13773         * doc/autoconf.texi (Using an Autotest Test Suite): New.
13774         (testsuite Scripts): Be one of its subsection.
13775         (Autotest Logs): New.
13777 2001-11-26  Akim Demaille  <akim@epita.fr>
13779         Test groups are now run two directories deeper.
13781         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
13782         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
13783         at_top_builddir.
13784         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
13785         top_srcdir, builddir and top_builddir.
13786         Use `at_*dir' relatively to the directory containing the
13787         suite, use `*dir' when relatively to the current group dir.
13789 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
13791         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
13792         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
13793         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
13794         spelling errors.
13796 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
13798         * doc/autoconf.texi (Using System Type): Add an example of `case
13799         $host' usage so people quit using `case $target' everywhere.
13801 2001-11-22  Akim Demaille  <akim@epita.fr>
13803         * doc/autoconf.texi (Installation Directory Variables): Englishoes
13804         spotted by Jim Meyering.
13806 2001-11-16  Paul Eggert  <eggert@twinsun.com>
13808         This patch implements a `long double' suggestion by Oliver Kiddle.
13810         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
13811         static, to catch errors if the value isn't known at compile-time
13812         and the compiler supports dynamic arrays.  Change its name from
13813         `_array_' to `test_array' to avoid potential name clashes.
13814         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
13815         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
13816         better than double.  Catch a bug in GCC 2.95.2 x86.
13817         * doc/autoconf.texi (C Compiler): Document the above.
13818         * NEWS: Likewise.
13820 2001-11-13  Akim Demaille  <akim@epita.fr>
13822         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
13823         hand.
13824         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
13826 2001-11-13  Akim Demaille  <akim@epita.fr>
13828         * lib/autotest/general.m4 (AT_INIT): After having run the test
13829         group, go back to the initial directory, not to at_suite_dir.
13831 2001-11-13  Akim Demaille  <akim@epita.fr>
13833         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
13834         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
13835         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
13836         option.
13837         (AT_CHECK_CONFIGURE): Use absolute paths.
13838         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
13839         The problem is still the old one: there is no means in M4 (that I
13840         know about) to create a defining macro, because there is no means
13841         to create `$1' etc., therefore, the defining macro ``swallows''
13842         all the arguments meant to the defined macro.
13844 2001-11-13  Akim Demaille  <akim@epita.fr>
13846         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
13847         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
13848         configure.ac.
13849         * tests/aclocal.m4: Remove, as it is no longer used.
13851 2001-11-13  Akim Demaille  <akim@epita.fr>
13853         * lib/autotest/general.m4: Change `tests?' into `groups?' in
13854         variable names when referring to a single test group, or to
13855         `suite' when referring to the whole test suite.
13856         `at_last_test' is removed: m4 compute at_format itself.
13857         (at_stdout, at_stder1, at_stderr): New variables.
13858         (AT_CHECK): Use them.
13860 2001-11-13  Akim Demaille  <akim@epita.fr>
13862         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
13863         in PATH.
13864         Create `testsuite.dir/003/run' instead of `testsuite.003'.
13865         Do it as soon as a test fails, don't wait till the end of the test
13866         suite.
13867         Don't remove $as_me.[0-9]*, since these files no longer exist.
13869 2001-11-13  Akim Demaille  <akim@epita.fr>
13871         * tests/tools.at: Use absolute paths, since we are no longer run
13872         in place.
13874 2001-11-13  Akim Demaille  <akim@epita.fr>
13876         Now that tests are running in their own private dir, there is no
13877         need to list the files to remove at the end of tests groups.
13879         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
13880         (AT_data_files, at_data_files): Remove.
13881         (AT_CLEANUP, AT_DATA): Simplify.
13882         (AT_INIT): Adjust.
13883         Remove the group dir if !debug && !failed.
13884         * tests/atspecific.m4: Adjust.
13886 2001-11-13  Akim Demaille  <akim@epita.fr>
13888         Start a new layout for Autotest: `testsuite' creates
13889         `testsuite.dir' in which the at-check-line etc. files are to be
13890         found, and `testsuite.dir/003' where the test group 3 is run.
13892         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
13893         at_check_line_file, at_format, at_test_normalized, at_group_dir
13894         are new variables.
13895         Create the directories.
13896         Use absolute paths for at- files.
13897         (AT_CHECK): Adjust.
13899 2001-11-11  Michael Matz  <matz@kde.org>
13901         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
13902         (m4_car2): New.
13903         (m4_car): Properly quote arguments.
13905 2001-11-13  Akim Demaille  <akim@epita.fr>
13907         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
13908         with stricter rules on LIBOBJS.
13910 2001-11-12  Paul Eggert  <eggert@twinsun.com>
13912         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
13913         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
13914         __PROTOTYPES too.
13916 2001-11-12  Akim Demaille  <akim@epita.fr>
13918         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
13920 2001-11-12  Akim Demaille  <akim@epita.fr>
13922         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13923         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
13924         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
13925         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
13926         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
13927         specify to what the macro should be defined (typically to 1).
13929 2001-11-12  Akim Demaille  <akim@epita.fr>
13931         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
13932         From Jim Meyering.
13934 2001-11-12  Akim Demaille  <akim@epita.fr>
13936         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
13937         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
13938         definition used by Automake where LEX is +/- "${missing} lex" and
13939         `missing' itself contains variables.
13941 2001-11-12  Akim Demaille  <akim@epita.fr>
13943         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
13944         Now that M4sh pushes BODY, the comments were output at the end of
13945         the test suites.
13947 2001-11-08  Akim Demaille  <akim@epita.fr>
13949         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
13950         that we can trace macros from aclocal.m4.
13951         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
13952         obsoleted, and redirect to the former anyway.
13953         Reported by Ralf Corsepius.
13955 2001-11-08  Akim Demaille  <akim@epita.fr>
13957         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
13958         processed only if present.
13959         * tests/torture.at (Configuring subdirectories): Use autoreconf
13960         instead of successive calls to autoconf.
13961         Add a nonexistent subdirectory to exercise the patch above.
13962         Reported by Ralf Corsepius.
13964 2001-11-08  Kevin Ryde  <user42@zip.com.au>
13966         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
13967         doesn't accept .S files.
13969 2001-11-07  Akim Demaille  <akim@epita.fr>
13971         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
13972         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
13973         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
13974         * bin/autom4te.in (warn_forbidden): New.
13975         (handle_output): Use it.
13976         Read m4_pattern_forbid with messages.
13978 2001-11-05  Akim Demaille  <akim@epita.fr>
13980         * bin/autom4te.in (--normalize): Remove.
13981         * lib/autom4te.in: Adjust.
13983 2001-11-05  Akim Demaille  <akim@epita.fr>
13985         * tests/Makefile.am (testsuite): Rename this target as...
13986         ($(TESTSUITE)): this.
13987         From Nicolas Joly.
13989 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
13991         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
13992         the --prefix option, also remove it's argument.
13994 2001-11-05  Akim Demaille  <akim@epita.fr>
13996         * doc/autoconf.texi (testsuite Invocation): Update.
13997         (Writing testsuite.at): Update.
13999 2001-11-03  Akim Demaille  <akim@epita.fr>
14001         * doc/autoconf.texi: s/@code/@command/ where appropriate.
14003 2001-11-03  Akim Demaille  <akim@epita.fr>
14005         * lib/Autom4te/General.pm: (&catfile, &canonfile)
14006         (&file_name_is_absolute): New, wrappers around routines from
14007         File::Spec.
14008         Use and export them.
14009         (&find_configure_ac): Optionally take a directory where to look at.
14010         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
14011         the arguments.
14012         Default @ARGV to `.', not find_configure_ac.
14013         (&autoreconf): Argument is a directory.
14014         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
14015         * doc/autoconf.texi (autoreconf Invocation): Update.
14017 2001-11-03  Akim Demaille  <akim@epita.fr>
14019         * lib/Autom4te/General.pm (@export_vars, @export_subs)
14020         (@export_forward_subs): New.
14021         Add basename, dirname, and fileparse.
14022         (@EXPORT): Adjust.
14023         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
14024         Don't look for aclocal flags if we already know aclocal is not
14025         used.
14026         Move aclocal.m4t only if it exists.
14027         Reported by Ezra Peisach.
14029 2001-11-03  Akim Demaille  <akim@epita.fr>
14031         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
14032         passed on command line, defaulting to ./configure.ac if present.
14033         (&maybe_autoreconf, File::Find): Remove, unused.
14034         (&autoreconf): If autoconf is not used, don't try to trace.
14036 2001-11-02  Akim Demaille  <akim@epita.fr>
14038         * configure.ac: Bump to 2.52g.
14040 2001-11-02  Akim Demaille  <akim@epita.fr>
14042         Version 2.52f.
14044 2001-11-02  Akim Demaille  <akim@epita.fr>
14046         * config/config.guess, config/config.sub, doc/standards.texi:
14047         * config/lispdir.m4: Update from masters.
14048         * configure.ac: Bump to 2.52f.
14050 2001-11-02  Akim Demaille  <akim@epita.fr>
14052         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
14053         Don't run aclocal when aclocal.m4 is not from aclocal.
14054         From Ezra Peisach.
14055         Don't run libtoolize and gettextize if --install is not given.
14057 2001-11-01  Paul Eggert  <eggert@twinsun.com>
14059         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
14060         be invoked before _AS_LINENO_PREPARE.
14061         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
14062         than character ranges.
14064         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
14065         invoking AS_BASENAME.  Set the locale variables to 'C' if
14066         possible, as POSIX requires this to get the traditional
14067         behavior.
14068         * doc/autoconf.texi (Special Shell Variables): Describe the above.
14070 2001-10-31  Paul Eggert  <eggert@twinsun.com>
14072         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
14073         with {}, as that triggers a bug in Bash 2.05.
14075         (_AS_LINENO_PREPARE): Use Sed rather than
14076         Awk.  Fix the sed prepass to work even if there are multiple
14077         instances of $LINENO on the same line.  Do not substitute for
14078         other variables like $LINENOT.  Do not check file dates; such a
14079         check is unreliable on sufficiently fast machines, and removing
14080         the check makes the code simpler and more reliable.  Check for
14081         output and chmod failures.
14083         * doc/autoconf.texi (Special Shell Variables): Document
14084         the above.
14086 2001-10-31  Akim Demaille  <akim@epita.fr>
14088         * tests/Makefile.am (atconfig): Remove this target, Automake
14089         handles it now.
14091 2001-10-31  Akim Demaille  <akim@epita.fr>
14093         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
14094         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
14095         provided, while it is optional.
14096         * configure.ac: Adjust.
14098 2001-10-26  Paul Eggert  <eggert@twinsun.com>
14100         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
14101           lib/Autom4te/Struct.pm:
14102         Require Perl 5.005_03 instead of just 5.005, as some tests fail
14103         with 5.005_02.
14105         * doc/autoconf.texi (Special Shell Variables): Document some
14106         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
14108         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
14109         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
14110         eval $LINENO is not portable in practice.
14112 2001-10-24  Akim Demaille  <akim@epita.fr>
14114         * lib/Autom4te/General.pm (backname): New.
14116 2001-10-24  Akim Demaille  <akim@epita.fr>
14118         * m4/: Remove, merged into...
14119         * config/: here.
14121 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
14123         * doc/autoconf.texi (Shellology): Mention the problems with bash
14124         2.05's use of ANSI quoting in its `set' builtin.
14126 2001-10-22  Paul Eggert  <eggert@twinsun.com>
14128         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
14129         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
14130         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
14131         POSIX decided to standardize on the int flavor of strerror_r.
14132         Always do char* test, as there's no reason not to.
14133         Assign to a char* var, to catch strerror_r that returns int*.
14135         * doc/autoconf.texi (Particular Functions):
14136         Document the above changes.  Also, document the fact that
14137         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
14139         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
14141 2001-10-20  Akim Demaille  <akim@epita.fr>
14143         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
14144         the executable was missing from the log.
14146 2001-10-20  Akim Demaille  <akim@epita.fr>
14148         * lib/Autom4te/General.pm (&update_file): If destination is
14149         unchanged, remove the source.
14150         (&up_to_date_p): Don't be verbose, be debug.
14151         * bin/autoreconf.in: No longer support --m4dir.
14152         (&autoreconf): Display the full path of the configure.ac we are
14153         studying.
14154         Trace it only once.
14155         Be sure to honor --force with gettextize.
14156         Always run aclocal.
14157         * doc/autoconf.texi: Adjust.
14159 2001-10-20  Akim Demaille  <akim@epita.fr>
14161         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
14162         Remove, dead.
14163         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
14164         `intl' is already present, as it refuses unless --force.
14165         (&parse_args): Use -I, --include instead of the old Autoconf
14166         options.
14167         ($localdir, $autoconf_dir): Remove.
14168         (@include): New.
14169         (&maybe_autoreconf): New, to preserve $_ for File::Find.
14171 2001-10-19  Jens Petersen  <petersen@redhat.com>
14173         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
14174         * doc/autoconf.texi (Particular Programs): Likewise.
14176 2001-10-19  Akim Demaille  <akim@epita.fr>
14178         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
14179         file in @configure_input@.
14180         Don't mention `automatically' in addition to `generated'.
14181         * tests/torture.at (#define header templates): Adjust.
14183 2001-10-19  Akim Demaille  <akim@epita.fr>
14185         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
14186         comment, explain how to install automatic mode selection.
14187         From Russ Allbery.
14189 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
14191         * bin/autoreconf.in (autoreconf): Display the path to the
14192         configure.ac being studied.
14194 2001-10-18  Paul Eggert  <eggert@twinsun.com>
14196         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
14197         long, to work around a bug in the HP C compiler version HP92453-01
14198         B.11.11.23709.GP.
14200         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
14201         (AS_BASENAME_EXPR): New macro.
14202         (AS_BASENAME_SED): Do not assume GNU sed semantics.
14203         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
14204         and fall back on 'sed' only if the other two fail.  This makes
14205         AS_BASENAME act more like AS_DIRNAME.
14206         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
14207         contains white space.
14208         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
14209         Use AS_DIRNAME, since I think it's now DOS-friendly.
14210         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
14211         Allow "dirname //FOO" to return either / or //, as POSIX allows
14212         either behavior.
14214 2001-10-10  Akim Demaille  <akim@epita.fr>
14216         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
14217         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
14218         From Eric Sharkey.
14220 2001-10-10  Akim Demaille  <akim@epita.fr>
14222         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
14223         m4_define, since...
14224         (_AS_ECHO_N): AS_REQUIREs it.
14226 2001-10-10  Akim Demaille  <akim@epita.fr>
14228         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
14229         (AC_INCLUDES_DEFAULT): Move to...
14230         * lib/autoconf/headers.m4: here.
14231         * lib/autoconf/types.m4: Comment changes.
14232         * doc/autoconf.texi: Specify where the default includes are used
14233         in the macro prototypes.
14235 2001-10-09  Akim Demaille  <akim@epita.fr>
14237         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
14238         transition code.
14240 2001-10-08  Akim Demaille  <akim@epita.fr>
14242         * bin/autoreconf.in (&autoreconf): Remove debugging code.
14243         (&parse_args): Pass verbosity/debugging options to subtools when
14244         --debug, not when --verbose.
14245         * lib/autom4te.in (Autoreconf-preselections): New.
14246         (Autoconf): Use it.
14248 2001-10-08  Akim Demaille  <akim@epita.fr>
14250         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
14252 2001-10-08  Akim Demaille  <akim@epita.fr>
14254         * doc/autoconf.texi (autoreconf Invocation): Adjust.
14255         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
14257 2001-10-08  Akim Demaille  <akim@epita.fr>
14259         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
14260         (Syntax of the shell scripts): Don't.
14261         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
14262         bother with $force since...
14263         * lib/Autom4te/General.pm: does.
14265 2001-10-08  Akim Demaille  <akim@epita.fr>
14267         * bin/autoreconf.in: Rewrite in Perl.
14268         * configure.ac: Adjust.
14269         * lib/Autom4te/General.pm (&up_to_date_p): New.
14270         * bin/autom4te.in (&up_to_date_p): Use it.
14271         Rename as...
14272         (&up_to_date): this.
14274 2001-10-08  Akim Demaille  <akim@epita.fr>
14276         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
14277         (m4_list_cmp): Use $0 to reinvoke yourself.
14278         (m4_patsubsts): New.
14279         (m4_strip, m4_version_unletter): Use it.
14280         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
14282 2001-10-08  Akim Demaille  <akim@epita.fr>
14284         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
14285         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
14286         * lib/autoconf/types.m4, lib/autotest/general.m4,
14287         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
14288         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
14289         m4_bregexp, m4_bpatsubst, and m4_bmatch.
14290         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
14292 2001-10-08  Akim Demaille  <akim@epita.fr>
14294         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
14296 2001-10-08  Akim Demaille  <akim@epita.fr>
14298         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
14299         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
14300         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
14301         * tests/tools.at, tests/m4sh.at: Use it.
14302         * tests/m4sh.at: Don't rely on Autoconf macros.
14303         (DIRNAME_TEST): Also exercise the expr variant.
14304         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
14305         preferred M4sugar extension is now `.4s'.
14306         * tests/README: Remove.
14308 2001-10-08  Akim Demaille  <akim@epita.fr>
14310         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
14311         (m4_provide_if): this.
14312         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
14313         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
14314         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
14315         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
14317 2001-10-08  Akim Demaille  <akim@epita.fr>
14319         Use `add-log-current-defun-function' for ChangeLog creation.
14320         Suggested by Tom Tromey.
14322         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
14323         (autotest-mode): Adjust.
14324         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
14325         'comment-region onto `C-c ;'.
14326         Comments are `#', not `dnl'.
14327         (autoconf-current-defun): New.
14328         (autoconf-font-lock-keywords): Recognize `m4_defun'.
14330 2001-10-08  Akim Demaille  <akim@epita.fr>
14332         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
14333         * lib/m4sugar/m4sh.m4: here.
14334         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
14335         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
14336         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
14337         include handle the m4_pattern_*, no longer push the
14338         BODY diversion nor set the /bin/sh line, AS_INIT does it.
14339         * lib/autotest/general.m4 (AT_INIT): Likewise.
14340         * tests/base.at: Adjust the tests to use AS_INIT.
14341         * tests/tools.at (AT_DATA_FORBIDDEN): New.
14342         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
14343         Autoconf.
14345 2001-10-07  Paul Eggert  <eggert@twinsun.com>
14347         * doc/autoconf.texi (config.status Invocation):
14348         CONFIG_SHELL defaults to a shell that supports LINENO if available.
14350         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
14351         shell does not support LINENO, and if CONFIG_SHELL is unset or
14352         empty, and if we can find a shell that does support LINENO,
14353         then set CONFIG_SHELL to that shell and then re-execute
14354         ourselves with CONFIG_SHELL.
14356 2001-10-05  Paul Eggert  <eggert@twinsun.com>
14358         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
14359         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
14360         build of $(TESTSUITE).
14362 2001-10-05  Akim Demaille  <akim@epita.fr>
14364         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
14365         iff we are a bareword.
14366         Reported by Raja R Harinath.
14368 2001-10-05  Akim Demaille  <akim@epita.fr>
14370         * tests/m4sh.at (LINENO): New.
14371         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
14372         PATH_SEPARATOR before using it.
14373         Fix the absolute path case/esac pattern.
14374         Provide $0 as fallback for as_myself.
14375         Reported by Raja R Harinath.
14377 2001-10-05  Akim Demaille  <akim@epita.fr>
14379         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
14380         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
14382 2001-10-05  Akim Demaille  <akim@epita.fr>
14384         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
14385         (AS_SHELL_SANITIZE): here.  Use it.
14386         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
14387         From Paul Eggert.
14389 2001-10-04  Akim Demaille  <akim@epita.fr>
14391         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
14392         combination of Awk and sed to replace $LINENO.
14394 2001-10-02  Paul Eggert  <eggert@twinsun.com>
14396         * doc/autoconf.texi (Limitations of Builtins): You can't use
14397         "source"; it's not portable.  Remove confusing and
14398         somewhat-incorrect example involving "." and "/".
14400         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
14401         compatibility with POSIX shells.
14403 2001-10-02  Akim Demaille  <akim@epita.fr>
14405         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
14406         instead of exec'ing to preserve $0 and $@.
14408 2001-10-01  Akim Demaille  <akim@epita.fr>
14410         * tests/testsuite (AT_INIT) <at_pass_list>: New.
14411         Don't run twice the same test.
14413 2001-10-01  Akim Demaille  <akim@epita.fr>
14415         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
14416         No longer output the list of tests.
14417         <--list>: New option.
14418         <--full-help>: Remove.
14419         Complete the short/long options duality.
14420         Various small adjustments.
14422 2001-10-01  Akim Demaille  <akim@epita.fr>
14424         * doc/autoconf.texi: Use @kbd for user input.
14425         Always use `$' as shell prompt.
14427 2001-09-30  Paul Eggert  <eggert@twinsun.com>
14429         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
14430         Don't use nested parenthesization.  This patch was originally
14431         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
14432         but somehow it didn't get incorporated then.
14433         * doc/autoconf.texi (Limitations of Usual Tools):
14434         Clarify remark about sed and nested parenthesization.
14436         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
14437         Report an error if the size cannot be determined even though
14438         the type exists.
14439         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
14440         Check for `expr' arithmetic overflow, and for compilation failure,
14441         and invoke a new argument $4 if either is discovered.
14442         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
14443         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
14445 2001-09-28  Akim Demaille  <akim@epita.fr>
14447         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
14448         * m4/lispdir.m4: New.
14449         * aclocal.m4, configure.ac: Adjust.
14451 2001-09-28  Akim Demaille  <akim@epita.fr>
14453         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
14454         (AT_TESTED): this.
14455         (AT_INIT): More the wrapped section to where it will be expanded.
14456         Output `AT_tested' only when existing.
14457         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
14459 2001-09-27  Akim Demaille  <akim@epita.fr>
14461         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
14462         generates too many bug reports.
14464         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
14465         status when executing the ACTION-IF-FALSE.
14466         * tests/base.at (AC_TRY_*): Rename as...
14467         (AC_TRY_COMMAND): this.
14468         (AC_RUN_IFELSE): New.
14469         * tests/compile.at (Extensions, C keywords)
14470         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
14471         (Broken/missing compilers, AC_PROG_CPP with warnings)
14472         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
14473         * tests/c.at (Extensions, C keywords)
14474         (Broken/missing compilers, AC_PROG_CPP with warnings)
14475         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
14476         (AC_PROG_CPP requires AC_PROG_CC): here and...
14477         * tests/fortran.at (GNU Fortran 77): there.
14478         * doc/autoconf.texi (autoconf Invocation): Fix the example:
14479         AC_TRY_RUN is about compilation, not shell commands.
14480         (Test Programs): AC_TRY_RUN works as used to be advertised.
14482 2001-09-27  Akim Demaille  <akim@epita.fr>
14484         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
14485         Raja R Harinath:
14486         Be sure to detect when $LINENO always returns the same value.
14487         Look for the original script, basename($0) is certainly not
14488         enough.
14489         Pass the CLI arguments to `$as_me.lineno'.
14491 2001-09-25  Akim Demaille  <akim@epita.fr>
14493         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
14494         Be sure the close and reopen the LOG fd before and after using tee
14495         to extend the log.
14496         <at_tests_pattern>: Adjust to the new format of at_help_all.
14498 2001-09-23  Akim Demaille  <akim@epita.fr>
14500         * bin/autom4te.in (parse_args): There can be several invocations
14501         of --language now.
14503 2001-09-23  Akim Demaille  <akim@epita.fr>
14505         * doc/autoconf.texi (Top): Wrap in @ifnottex.
14507 2001-09-23  Akim Demaille  <akim@epita.fr>
14509         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
14510         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
14511         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
14512         builddir, buildpath, top_builddir, and top_buildpath.
14513         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
14514         the current directory.
14515         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
14516         variables *before* changing the current directory.
14517         Skip nonexistent dirs.
14518         * doc/autoconf.texi (Preset Output Variables): Document these
14519         variables.
14521         * lib/autotest/general.m4: Do not reset AT_victims.
14522         Don't compute at_srcdir nor at_top_srcdir.
14524         * tests/tools.at: Hence use top_srcdir.
14526         * tests/Makefile.am, tests/autoconf, tests/autoheader,
14527         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
14528         Remove.
14529         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
14530         * tests/wrapsh.in, tests/autoupdate.in: New.
14531         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
14532         * configure.ac: Build the position independent wrappers.
14534         * man/Makefile.am: Now that test wrappers are position
14535         independent, use them and drop dark envvar magic.
14537 2001-09-23  Akim Demaille  <akim@epita.fr>
14539         * doc/autoconf.texi (Common Shell Constructs): Rename as...
14540         (Programming in M4sh): this.
14541         Promote to @section.
14543 2001-09-23  Akim Demaille  <akim@epita.fr>
14545         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
14546         Pass $at_debug_args to the rerun test suite.
14547         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
14548         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
14549         From Paul Eggert.
14551 2001-09-23  Akim Demaille  <akim@epita.fr>
14553         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
14555 2001-09-23  Akim Demaille  <akim@epita.fr>
14557         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
14558         over-escaping.
14560 2001-09-23  Akim Demaille  <akim@epita.fr>
14562         * lib/Autom4te/General.pm (&debug): New.
14563         * bin/autom4te.in ($language): Move to...
14564         (parse_args): here.
14565         Handle --language in languages.
14566         * lib/autom4te.in (Automake-selections, Autoheader-selections)
14567         (Autoscan-selections): New.
14568         (Autoconf): Adjust.
14570 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
14572         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
14573         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
14574         to match current versions from CVS Automake.
14576 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
14578         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
14579         for $LINENO.
14581 2001-09-22  Akim Demaille  <akim@epita.fr>
14583         * lib/autoconf/autotest.m4: Create `package.m4'.
14584         * tests/Makefile.am (package.m4): Remove.
14586 2001-09-22  Akim Demaille  <akim@epita.fr>
14588         Rely on `$LINENO' when possible instead of `__oline__'.
14590         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
14591         `$LINENO' support replacement when not supported.
14592         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
14593         them explicitly to be sure they are not output before this section
14594         (via m4_require).  Cosmetic only.
14595         * lib/autoconf/c.m4, lib/autoconf/general.m4,
14596         * lib/autoconf/programs.m4: Replace all the occurrences of
14597         `__oline__' with `$LINENO'.
14598         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
14600 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
14602         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
14603         character (u: -> ue) in a code comment.
14604         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
14605         it works.
14607 2001-09-21  Akim Demaille  <akim@epita.fr>
14609         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
14610         Suggested by Jim Meyering.
14612 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14614         * lib/autoconf/programs.m4: Use extensions listed in
14615         $ac_executable_extensions when looking for programs.
14617 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14619         * lib/autoconf/general.m4: Fix a small Englisho.
14620         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
14621         setting up ac_dir_suffix and ac_top_builddir.
14622         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
14624 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14626         * doc/autoconf.texi (File System Conventions): Clarify the use of
14627         PATH_SEPARATOR.
14628         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
14629         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
14630         be used instead of ':'.
14631         * lib/autotest/general.m4: Replace occurrences of ':' in
14632         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
14634 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14636         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
14637         arguments.  Fixed a typo.
14639 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14641         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
14642         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
14644 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14646         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
14647         * bin/autoupdate.in: Ditto.
14648         * bin/autoheader.in: Reworded a few comments.
14649         * bin/autoconf.in: Reworded help text for a few options.
14650         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14651         * bin/autoscan.in, bin/autoupdate.in: Ditto.
14653 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
14655         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
14656         already have $file).  Set output files to binary mode (helps avoid
14657         CR issues on DOSish systems).
14659 2001-09-19  Akim Demaille  <akim@epita.fr>
14661         * lib/autotest/general.m4: Englishoes.
14662         From Tim Van Holder and Alexey Mahotkin.
14664 2001-09-18  Paul Eggert  <eggert@twinsun.com>
14666         * doc/autoconf.texi (Common Shell Constructs): New node,
14667         documenting AS_DIRNAME.
14668         (Limitations of Usual Tools): Refer to it when discussing dirname.
14669         Also, update discussion of POSIX standard to reflect latest draft.
14671         * lib/autoconf/c.m4:
14672         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
14674         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
14675         Do not pass a first argument with leading '-'
14676         to expr, by parenthesizing initial integers that might be negative.
14678         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
14679         now merely checks whether it is an error to pass an argument
14680         to getpgrp.
14682         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
14683         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
14684         whether it is a (compile-time) error to pass an argument to
14685         getpgrp.  This simpler test supports the revised documentation,
14686         and is all that AC_FUNC_GETPGRP's users really need.
14688 2001-09-18  Akim Demaille  <akim@epita.fr>
14690         * doc/autoconf.texi (Limitations of Make) <$<>: New.
14692 2001-09-18  Akim Demaille  <akim@epita.fr>
14694         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
14695         `{}'.
14696         * lib/autotest/general.m4 (AT_INIT): Adjust.
14698 2001-09-18  Paul Wagland  <paul@wagland.net>
14700         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
14701         correctly.
14702         Add test for AS_BASENAME.
14703         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
14704         added test. It now correctly handles /1/2/3/, returning '3' not ''.
14705         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
14706         * tests/base.at: Fixed the expected responses. The old ones were
14707         one line out...
14708         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
14709         the documentation claims it should (and how it behaved in 2.13).
14711 2001-09-18  Akim Demaille  <akim@epita.fr>
14713         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
14714         the AC_CONFIG_COMMANDS invocation.
14715         This also solves the name clash problems.
14716         Don't set the package's ID.
14717         * lib/m4sugar/Makefile.am (version.m4): Revamp.
14718         No longer to be shipped.
14719         (version.in): Remove.
14720         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
14721         * lib/autoconf/status.m4: Adjust.
14722         Use `m4_PACKAGE_STRING'.
14723         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
14724         the only optional argument is the name of the test suite.
14725         Expect `package.m4' to define the package signature.
14726         * lib/autom4te.in (Autotest): Add `package.m4?'.
14727         * tests/Makefile.am (package.m4): New.
14728         * tests/suite.at: ifnames is a victim.
14730 2001-09-18  Akim Demaille  <akim@epita.fr>
14732         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
14733         AC_LIBSOURCE, AC_CONFIG_FILES.
14734         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
14735         program version string doesn't match the package's.
14736         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
14737         after `(cached)'.
14739 2001-09-17  Paul Eggert  <eggert@twinsun.com>
14741         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14742         Allow expression to return any value that can fit into unsigned long
14743         (not int, as before).  Check for output errors.
14745 2001-09-17  Bruno Haible  <haible@ilog.fr>
14747         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
14748         Always include <stdio.h> and <stdlib.h>. Evaluate
14749         the expression in an extra function before these includes. Call
14750         fprintf "%d" only after ensuring the argument is of type 'int'.
14751         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
14753 2001-09-17  Paul Eggert  <eggert@twinsun.com>
14755         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
14756         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
14757         fatal errors, and AC_CHECK_LIB causes it to include libraries even
14758         when they don't exist.
14760         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
14761         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
14762         need it.
14764         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
14765         version with the version used by fileutils 4.1, except use
14766         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
14767         we don't need it.
14769         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
14771 2001-09-13  Akim Demaille  <akim@epita.fr>
14773         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
14774         _first_.
14775         Reported by Gerrit P. Haase.
14777 2001-09-13  Akim Demaille  <akim@epita.fr>
14779         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
14780         m4_defn'ing is valid.
14782 2001-09-13  Akim Demaille  <akim@epita.fr>
14784         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
14785         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
14786         Use it.
14788 2001-09-13  Akim Demaille  <akim@epita.fr>
14790         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
14791         m4_match.
14792         (m4_re_escape): New.
14793         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
14794         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
14795         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
14796         Likewise.
14797         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
14798         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
14799         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
14800         AT_tests_all for consistency.
14801         Set at_victims.
14802         (AT_VICTIMS): Similar to AT_KEYWORDS.
14803         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
14805 2001-09-13  Akim Demaille  <akim@epita.fr>
14807         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
14809 2001-09-13  Akim Demaille  <akim@epita.fr>
14811         * lib/autotest/general.m4 (AT_INIT): Create and remove
14812         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
14813         test suites can cohabit.
14815 2001-09-13  Akim Demaille  <akim@epita.fr>
14817         * tests/mktests.sh: Don't output banners for empty test files.
14819 2001-09-13  Akim Demaille  <akim@epita.fr>
14821         Test suites can be run independently of configure.
14823         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
14824         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
14825         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
14826         ECHO_N etc.
14827         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
14828         and at_c.
14829         * lib/autotest/general.m4: Use ECHO_*.
14831 2001-09-13  Akim Demaille  <akim@epita.fr>
14833         * bin/ifnames.in: Rewrite in Perl.
14834         * configure.ac: Don't look for AWK.
14835         * tests/tools.at (AWK portability): Remove.
14836         (Syntax of the shell scripts): Don't check ifnames.
14837         (AT_CHECK_PERL_SYNTAX): New.
14838         (Syntax of the Perl scripts): Check ifnames.
14839         * tests/ifnames: New.
14841 2001-09-13  Akim Demaille  <akim@epita.fr>
14843         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
14844         test group titles.
14845         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
14846         Remove all the other keywords.
14848 2001-09-10  Akim Demaille  <akim@epita.fr>
14850         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
14851         SETUP: no longer used.
14852         Support -k, --keywords.
14853         <at_help>: Be `no', `short', or `long'.
14854         <at_help_all>: New variable.
14855         (AT_KEYWORDS): New.
14856         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
14857         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
14858         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
14859         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
14860         No longer fill the HELP diversion.
14861         (AT_CLEANUP): Use them.
14862         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
14863         (m4_list_append): Remove.
14865         Spread a few keywords in the Autoconf test suite.
14867 2001-09-10  Akim Demaille  <akim@epita.fr>
14869         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
14870         PATH_SEPARATOR, let M4sh compute it.
14871         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
14872         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
14873         Move to...
14874         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
14875         Simplify when the path is not a literal.
14876         (AS_UNAME): Use it to report PATH.
14877         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
14878         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
14879         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
14880         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
14881         normalize the path, and to look for victims.
14882         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
14883         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
14885 2001-09-07  Akim Demaille  <akim@epita.fr>
14887         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
14888         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
14889         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
14890         related variables into `at_package_*'.
14891         * lib/autotest/general.m4 (AT_VICTIMS): New.
14892         (AT_INIT): Adjust for stand-alone/embedded test suites.
14893         (AS_MESSAGE_LOG_FD): Define and use it.
14894         * tests/suite.at (AT_VICTIMS): Use it.
14895         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
14896         at_version.
14898 2001-09-07  Akim Demaille  <akim@epita.fr>
14900         Move toward possibly stand-alone test suites.
14902         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
14903         in addition, it introduces useless differences in logs.
14904         (AT_INIT): Let atconfig and atlocal be both optional.
14905         Adjust PATH computation.
14906         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
14908 2001-09-07  Akim Demaille  <akim@epita.fr>
14910         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
14911         m4sugar/version.m4.
14913 2001-09-05  Akim Demaille  <akim@epita.fr>
14915         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
14916         to avoid GCC warnings.
14917         From Uwe Seimet.
14919 2001-09-05  Akim Demaille  <akim@epita.fr>
14921         * bin/autom4te.in: --language is -l, not -s.
14923 2001-09-05  Akim Demaille  <akim@epita.fr>
14925         Be ready to handle filenames as stupid as `dnl.at', for if even
14926         the maintainer is dumb enough to do that...
14928         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
14929         excellence in M4 quotation: consider `__file__' is active.
14931         And BTW, when invoking m4, pass the --include in the right order:
14932         the wrong one.
14934         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
14935         4m.
14937 2001-09-05  Akim Demaille  <akim@epita.fr>
14939         * lib/Autom4te/XFile.pm: New lib file.
14940         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
14941         * bin/autoheader.in: Use it.
14943 2001-09-05  Akim Demaille  <akim@epita.fr>
14945         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
14946         defined.
14948 2001-09-05  Akim Demaille  <akim@epita.fr>
14950         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
14951         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
14953         * bin/autoscan.in: Use `getopt' and `find_files' etc.
14954         Add -I, --include support.
14955         * doc/autoconf.texi (autoscan Invocation): Adjust.
14957 2001-09-05  Akim Demaille  <akim@epita.fr>
14959         CVS GNU M4 doesn't like `undefine(undefined)'.
14961         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
14962         New, extracted from main.
14963         Use IO::File wherever possible.
14964         (input.m4): Be constant, use -I instead of hard coding $tmp.
14965         Therefore be a quoted heredoc.
14966         Don't invoke `_au_disable', since ac was not loaded, but just
14967         `unm4.m4'.
14969 2001-08-31  Akim Demaille  <akim@epita.fr>
14971         Version 2.52d.
14973 2001-08-31  Akim Demaille  <akim@epita.fr>
14975         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
14976         previous patch.
14977         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
14979 2001-08-31  Akim Demaille  <akim@epita.fr>
14981         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
14982         serious problems handling heredocs in heredocs.
14983         Reported by Nicolas Joly.
14985 2001-08-31  Akim Demaille  <akim@epita.fr>
14987         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
14988         (Making testsuite Scripts): Update.
14990 2001-08-31  Akim Demaille  <akim@epita.fr>
14992         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
14994 2001-08-31  Akim Demaille  <akim@epita.fr>
14996         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
14997         (testsuite Scripts): There is no such thing as `atconfig.in'.
14998         And actually one diagram is missing: test suite runtime.
15000 2001-08-31  Akim Demaille  <akim@epita.fr>
15002         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
15003         inverse order.
15005 2001-08-31  Akim Demaille  <akim@epita.fr>
15007         * bin/autoupdate.in (@include): `installcheck' revealed the path
15008         to m4sugar was lacking!
15010 2001-08-31  Akim Demaille  <akim@epita.fr>
15012         * man/Makefile.am (.x.1): We really have to pass
15013         autom4te_perllibdir.
15015 2001-08-31  Akim Demaille  <akim@epita.fr>
15017         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
15018         debug scripts, in particular passing explicitly listed tests to
15019         run is stupid.
15021 2001-08-31  Akim Demaille  <akim@epita.fr>
15023         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
15024         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
15025         Use directly autom4te, not autoconf.
15026         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
15028 2001-08-31  Akim Demaille  <akim@epita.fr>
15030         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
15031         * bin/autoheader.in (%symbol): Strip arguments of macros.
15033 2001-08-31  Akim Demaille  <akim@epita.fr>
15035         * doc/autoconf.texi: Catch up -I, --include changes.
15037 2001-08-31  Akim Demaille  <akim@epita.fr>
15039         * bin/autom4te.in (&parse_args): Die on unknown languages.
15040         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
15041         need for autoconf.
15042         Promote --include over --macrodir and other obsolete options.
15044 2001-08-31  Akim Demaille  <akim@epita.fr>
15046         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
15047         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
15048         * bin/autom4te.in ($autoconf): Pass --force.
15049         `print $out' doesn't print `$_' but `$out'.
15050         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
15051         (autoheader): Pass --force since the test suite goes too fast for
15052         the time stamps.
15053         Adjust to the new autoheader messages.
15055 2001-08-31  Akim Demaille  <akim@epita.fr>
15057         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
15058         Check the completeness of the #template.
15059         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
15060         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
15061         invocation.
15063 2001-08-31  Akim Demaille  <akim@epita.fr>
15065         * lib/Autom4te/General.pm (&find_file, &update_file): New.
15066         * bin/autoupdate.in, bin/autoheader.in: Adjust.
15067         Drop AC_MACRODIR dead for real.
15068         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
15069         `autoheader: `config.hin' is created'.
15070         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
15072 2001-08-31  Akim Demaille  <akim@epita.fr>
15074         * bin/autoheader.in: Rewrite in Perl.
15075         * tests/autoheader: Adjust.
15077 2001-08-31  Akim Demaille  <akim@epita.fr>
15079         * bin/autoconf.in (--include, -I): New option.
15080         Map --localdir, --autoconf-dir onto it.
15081         Forward autom4te's options instead of interpreting them.
15082         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
15083         There is no such envvar since the inception of autom4te.cfg.
15084         * bin/autom4te.in (&parse_args): Uniquify `@include'.
15085         * bin/autoupdate.in: Adjust, and perform more control.
15086         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
15087         * tests/autoconf: Dittowise.
15089 2001-08-31  Akim Demaille  <akim@epita.fr>
15091         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
15092         * bin/autom4te.in (&find_file): Support `FILE?' standing for
15093         optionally `FILE'.
15094         Use -e, not -f, since /dev/null for instance is OK.
15095         (&parse_args): Adjust.
15096         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
15098 2001-08-31  Akim Demaille  <akim@epita.fr>
15100         * configure.ac: Also find tested executables in bin.
15101         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
15102         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
15103         installed peer executables, only PATH is allowed to resolve it.
15104         Pass `autoconf_dir' via options, not via invisible envvars.
15105         * lib/Autom4te/General.pm (&find_peer): Remove.
15106         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
15107         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
15108         * man/Makefile.am: Let help2man rely on PATH instead of trying to
15109         find the executables for it.
15110         * tests/Makefile.am: Major cleanup.  Too lazy to document...
15111         * tests/atlocal.in: Remove all the obscure envvar manipulations.
15112         We only need PERL.
15113         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
15114         indeed related to running the test suite, while passing
15115         --autoconf-dir and others is related to running non installed
15116         Autoconf executables.  So don't do that, leave it to...
15117         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
15118         * tests/autoscan: New.
15119         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
15120         refer to library files: rely on --language.
15122 2001-08-29  Akim Demaille  <akim@epita.fr>
15124         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
15125         s/--set/--language/.
15127 2001-08-29  Akim Demaille  <akim@epita.fr>
15129         * doc/autoconf.texi: Strip the @nodes.
15130         Suggested by Paul Eggert.
15131         (Initializing configure): Typo.
15133 2001-08-29  Akim Demaille  <akim@epita.fr>
15135         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
15136         Suggested by Paul Eggert.
15138 2001-08-29  Akim Demaille  <akim@epita.fr>
15140         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
15141         download in a tmp dir.
15143 2001-08-29  Akim Demaille  <akim@epita.fr>
15145         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
15146         case insensitive OSes out there :(
15147         From Tim Van Holder.
15149 2001-08-29  Akim Demaille  <akim@epita.fr>
15151         * lib/autom4te.in: New.
15152         * lib/Makefile.am (edit, autom4te.cfg): New.
15153         * bin/autom4te.in (BEGIN): Simplify.
15154         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
15155         (&load_configuration): New.  Use it.
15156         (&parse_args): Support --mode, --set, and --melt.
15157         * bin/autoconf.in: Simplify and adjust.
15158         * tests/Makefile.am (AUTOMAKE): Use --set.
15159         * tests/atlocal.in: Adjust.
15160         * BUGS: distcheck and check are weak.
15162 2001-08-29  Akim Demaille  <akim@epita.fr>
15164         * lib/autotest/general.m4: Use
15165                 foo=`(command) 2>/dev/null`
15166         not
15167                 foo=`command` 2>/dev/null
15168         (at-devnull): Rename as...
15169         (AT-devnull): this.
15170         (--clean): Remove AT-* files too.
15171         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
15172         Reported by Nicolas Joly.
15174 2001-08-28  Akim Demaille  <akim@epita.fr>
15176         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
15177         quotes inside single quotes.
15178         Reported by Nicolas Joly.
15180 2001-08-28  Kevin Ryde  <user42@zip.com.au>
15182         * doc/autoconf.texi (Function Portability): Mention C right shifts.
15184 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
15186         * lib/autotest/general.m4: Reword some messages.
15187         (AT_INIT): Check for the `times' builtin before using it.
15188         Support test ranges as arguments to the testsuite.
15189         Have -e imply -d as the help text suggested.
15191 2001-08-27  Akim Demaille  <akim@epita.fr>
15193         * Makefile.maint: Formatting changes.
15194         (do-po-update, po-update, cvs-update, update): New targets.
15195         (AMTAR): Remove.
15197 2001-08-27  Akim Demaille  <akim@epita.fr>
15199         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
15200         <at_cmd_line>: New.
15201         Pass it to debug-*.sh scripts.
15202         <AUTOTEST_PATH>: May contain absolute dir names.
15204 2001-08-27  Akim Demaille  <akim@epita.fr>
15206         * lib/autotest/general.m4 (AT_INIT): Log the command line.
15207         Support `VAR=VAL' as arguments.
15208         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
15209         may be set via the command line.
15211 2001-08-27  Akim Demaille  <akim@epita.fr>
15213         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
15214         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
15215         first the build dirs, then the src dirs.
15216         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
15218 2001-08-27  Akim Demaille  <akim@epita.fr>
15220         * lib/autotest/general.m4 (AT_INIT): Output the definition of
15221         at_data_files earlier.
15222         (--clean, -c): New option.
15223         * tests/Makefile.am: Use this option.
15225 2001-08-27  Akim Demaille  <akim@epita.fr>
15227         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
15228         `ac_top_builddir' to mimic Automake's vocabulary, which much more
15229         readable.
15230         Adjust callers.
15231         * doc/autoconf.texi (Configuration Actions): Document the vars
15232         available in commands.
15233         Emphasize the risks of collisions in init-cmds.
15235 2001-08-27  Akim Demaille  <akim@epita.fr>
15237         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
15238         (Initializing configure): this new node.
15240 2001-08-27  Akim Demaille  <akim@epita.fr>
15242         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
15244 2001-08-27  Akim Demaille  <akim@epita.fr>
15246         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
15247         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
15248         New file.
15249         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
15251 2001-08-27  Akim Demaille  <akim@epita.fr>
15253         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
15254         to...
15255         * lib/autoconf/autoheader.m4: this new file.
15256         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
15257         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
15258         Move to...
15259         * lib/autoconf/autoupdate.m4: this new file.
15261 2001-08-27  Akim Demaille  <akim@epita.fr>
15263         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
15264         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
15265         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
15266         -> ac_dir).
15267         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
15268         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
15270 2001-08-27  Akim Demaille  <akim@epita.fr>
15272         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
15273         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
15274         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
15275         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
15276         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
15277         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
15278         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
15279         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
15280         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
15281         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
15282         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
15283         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
15284         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
15285         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
15286         (_AC_OUTPUT_SUBDIRS): Move to...
15287         * lib/autoconf/status.m4: this new file.
15288         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
15289         * tests/Makefile.am, tests/suite.at: Adjust.
15291 2001-08-27  Akim Demaille  <akim@epita.fr>
15293         Automake 1.5.
15295         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
15296         (AMTAR): Help automake define it.
15297         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
15298         needed, 1.5 can have a macro and a target with the same name.
15299         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
15300         * m4/strip.m4: New.
15301         * m4/init.m4, m4/sanity.m4: Update.
15302         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
15303         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
15304         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
15305         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
15307 2001-08-27  Akim Demaille  <akim@epita.fr>
15309         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
15311         * lib/autoconf/version.in: Remove.
15312         * lib/m4sugar/version.in: New.
15313         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
15314         Adjust callers.
15315         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
15316         the name of the directory they're in, instead of the filename,
15317         since version.m4 is now in m4sugar, but m4_acversion must not be
15318         classified as an Autoconf macro.
15319         ($input_m4): Don't qualify the path to m4sugar.
15320         Rather, pass autoconf_dir to m4.
15321         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
15322         * tests/suite.at: Require 2.52c.
15324 2001-08-27  Akim Demaille  <akim@epita.fr>
15326         testsuite.log should include config.log.
15328         * lib/autotest/autotest.m4: New.
15329         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
15330         * tests/suite.at : Adjust.
15331         (AT_INIT): Log config.log.
15332         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
15333         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
15334         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
15335         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
15336         of config.log on traps.
15337         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
15338         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
15339         for config.status'.
15340         Open the log as soon as possible.
15341         Use the same log introduction as configure's.
15343 2001-08-22  Paul Eggert  <eggert@twinsun.com>
15345         * doc/autoconf.texi (Indices): New node.
15346         Move indices out of the top level menu and into this submenu.
15348 2001-08-22  Akim Demaille  <akim@epita.fr>
15350         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
15351         AC_TRY_COMMAND.
15352         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
15354 2001-08-22  Akim Demaille  <akim@epita.fr>
15356         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
15357         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
15358         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
15359         * lib/autoconf/programs.m4: here.
15360         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
15361         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
15362         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
15363         * lib/autoconf/programs.m4: here.
15364         (_AC_DECL_YYTEXT): Rename as...
15365         (_AC_PROG_LEX_YYTEXT_DECL): this.
15366         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
15367         * tests/Makefile.am, tests/suite.am: Adjust.
15369 2001-08-22  Akim Demaille  <akim@epita.fr>
15371         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
15372         Move to...
15373         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
15374         here.
15375         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
15376         * lib/autoconf/functions.m4: here.
15377         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
15378         (AH_CHECK_LIB): Move to...
15379         * lib/autoconf/libs: this new file.
15380         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
15381         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
15382         * lib/autoconf/libs.m4: here.
15383         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
15385 2001-08-22  Akim Demaille  <akim@epita.fr>
15387         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
15388         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
15389         (AC_SITE_LOAD): Better logging of config.site.
15391 2001-08-20  Akim Demaille  <akim@epita.fr>
15393         * configure.ac (AT_CONFIG): Fix the path.
15394         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
15395         can be used.
15397 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
15399         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
15400         program with AC_LANG_PROGRAM before feeding it to
15401         AC_COMPILE_IFELSE.  Cleanup grep usage.
15403 2001-08-20  Akim Demaille  <akim@epita.fr>
15405         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
15406         * NEWS, README, README-alpha, TODO, tests/README: This package is
15407         `Autoconf', not `autoconf' (the executable).
15409 2001-08-20  Akim Demaille  <akim@epita.fr>
15411         Info readers seem to need `Index' in the index node title :(
15413         * doc/autoconf.texi: Reverse the 2001-08-15 change which
15414         simplified index node names.
15416 2001-08-20  Akim Demaille  <akim@epita.fr>
15418         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
15419         arguments are not literals.
15420         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
15421         Specify the output variables, and macros defined.
15423 2001-08-20  Akim Demaille  <akim@epita.fr>
15425         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
15426         (Examining Syntax) <AC_TRY_COMPILE>
15427         (Examining Libraries) <AC_TRY_LINK>
15428         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
15429         their arguments.
15430         Reported by Werner Lemberg.
15432 2001-08-20  Akim Demaille  <akim@epita.fr>
15434         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
15435         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
15436         Load atlocal late enough to dump it in the log.
15437         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
15439 2001-08-20  Akim Demaille  <akim@epita.fr>
15441         * tests/torture.at (Configuring subdirectories): New test.
15442         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
15443         looking for.
15444         * m4/atconfig.m4: Be sure the let $[0] be expandable.
15445         (top_srcdir): Fix its computation.
15447 2001-08-20  Akim Demaille  <akim@epita.fr>
15449         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
15450         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
15451         test suite lives.
15452         Create `atconfig' automagically.
15453         Configure atlocal.in if present.
15454         * tests/atconfig.in: Remove.
15455         * tests/atlocal.in: New.
15456         * tests/Makefile.am: Adjust.
15458 2001-08-20  Akim Demaille  <akim@epita.fr>
15460         Huh!?!?!  There are still some user EOF tags used, which prevents
15461         their use in AC_CONFIG_COMMANDS for instance...
15463         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
15464         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
15465         `_CSEOF', or `_ATEOF', as appropriate.
15466         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
15467         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
15469 2001-08-20  Akim Demaille  <akim@epita.fr>
15471         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
15472         * tests/semantics.at, tests/tools.at, tests/torture.at:
15473         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
15475 2001-08-20  Akim Demaille  <akim@epita.fr>
15477         Autotest invokes M4sh's initialization.
15479         * lib/autotest/general.m4: Adjust the diversion names.
15480         (AT_INIT): Run AS_INIT.
15481         Use the BINSH diversion to invoke /bin/sh.
15482         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
15483         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
15485 2001-08-20  Akim Demaille  <akim@epita.fr>
15487         Let M4sh have its own diversions.
15489         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
15490         (_m4_divert(NOTICE)): Rename as...
15491         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
15492         (_m4_divert(HEADER-COMMENT)): these.
15493         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
15494         (_m4_divert(NOTICE)): New, for Libtool.
15495         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
15496         long ago with `_m4_divert(GROW)'.
15497         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
15499 2001-08-20  Akim Demaille  <akim@epita.fr>
15501         * tests/base.at, tests/compile.at, tests/foreign.at,
15502         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
15503         * tests/semantics.at, tests/suite.at, tests/tools.at,
15504         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
15506 2001-08-20  Akim Demaille  <akim@epita.fr>
15508         * bin/autom4te.in (handle_output): Handle @__@.
15510 2001-08-20  Akim Demaille  <akim@epita.fr>
15512         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
15513         * lib/autotest/general.m4: Adjust the license.
15515 2001-08-17  Paul Eggert  <eggert@twinsun.com>
15517         * doc/autoconf.texi (Function Portability): Mention snprintf,
15518         following up on a suggestion by Kevin Ryde.
15520 2001-08-17  Akim Demaille  <akim@epita.fr>
15522         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
15523         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
15525 2001-08-17  Akim Demaille  <akim@epita.fr>
15527         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
15528         `$0.log' as for projects where testsuite is in src, we'd have
15529         testsuite.log created in src.
15531 2001-08-17  Akim Demaille  <akim@epita.fr>
15533         * bin/autom4te.in (&parse_args): Recognize --normalize.
15535 2001-08-17  Akim Demaille  <akim@epita.fr>
15537         Start implementing the AC_CHECK_HEADER transition scheme.
15539         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
15540         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
15541         (AC_CHECK_HEADER): Use them.
15543 2001-08-17  Akim Demaille  <akim@epita.fr>
15545         * doc/autoconf.texi: Work around Texinfo buglets.
15546         (Transformation Rules): One example is enough, users are expected
15547         to have their brains on. And BTW, use DESTDIR.
15548         (dvar): New macro.  Use it.
15550 2001-08-17  Akim Demaille  <akim@epita.fr>
15552         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
15553         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
15554         looking for ChangeLogs.
15556 2001-08-17  Akim Demaille  <akim@epita.fr>
15558         * bin/autom4te.in: --normalize is a new option.
15559         * bin/autoconf.in: Use it.
15561 2001-08-17  Akim Demaille  <akim@epita.fr>
15563         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
15564         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
15566 2001-08-16  Paul Eggert  <eggert@twinsun.com>
15568         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
15569         start, not at end.
15571 2001-08-15  Akim Demaille  <akim@epita.fr>
15573         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
15574         Use it.
15576 2001-08-15  Akim Demaille  <akim@epita.fr>
15578         * doc/autoconf.texi (pr): New index.
15579         (prindex, findex): Use, merge, and output them.
15580         (Environment Variable Index, Output Variable Index)
15581         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
15582         (Autotest Macro Index): Rename as...
15583         (Environment Variables, Output Variables,Preprocessor Symbols)
15584         (Autoconf Macros, M4 Macros, Autotest Macros): these.
15585         * doc/install.texi: Use @command.
15586         (Environment Variables): Rename as...
15587         (Defining Variables): this.
15589 2001-08-15  Akim Demaille  <akim@epita.fr>
15591         * doc/autoconf.texi (Function Portability): sprintf's return
15592         value.
15593         From Kevin Ryde.
15595 2001-08-15  Akim Demaille  <akim@epita.fr>
15597         * Makefile.maint (CVS): New.
15598         (local-check): Run changelog-check. last.
15599         (alpha): Don't depend upon local-check, since...
15600         (cvs-dist): depends upon it.
15602 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
15604         * tests/Makefile.am: Use a clean-local rule to remove
15605         autom4te.cache (it's a directory, not a file.
15606         * Makefile.am: Ditto (but maintainer-clean-local).
15608 2001-08-15  Akim Demaille  <akim@epita.fr>
15610         * bin/autom4te.in (@m4_warning): New.
15611         (&handle_m4): Use it.
15612         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
15613         warnings are issued at each run.
15614         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
15615         is in the src tree.
15617 2001-08-15  Akim Demaille  <akim@epita.fr>
15619         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
15620         don't waste time running `autoupdate --version' works.
15621         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
15623 2001-08-13  Akim Demaille  <akim@epita.fr>
15625         * doc/autoconf.texi (ma): Rename this index as...
15626         (ac): this.
15628 2001-08-13  Akim Demaille  <akim@epita.fr>
15630         * Makefile.am: Remove dead code and dead comments.
15631         (pdf, html): New targets.
15632         * doc/autoconf.texi (Using Autotest): New chapter.
15633         * doc/Makefile.am (pdf): New targets.
15634         (CLEANFILES): Adjust.
15636 2001-08-13  Akim Demaille  <akim@epita.fr>
15638         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
15639         duration of the test suite.
15641 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
15643         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
15644         endianness for comparison instead of relying on AT_CHECK_ENV.
15646 2001-08-11  Paul Eggert  <eggert@twinsun.com>
15648         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
15649         to the INSTALL file.
15651 2001-08-11  Paul Eggert  <eggert@twinsun.com>
15653         * NEWS: The autoconf manual now is distributed under the terms
15654         of the GNU Free Documentation License.
15656         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
15657         Add an appendix "Copying This Manual" for the FDL.
15659         * doc/fdl.texi: New file, from
15660         <http://www.gnu.org/licenses/fdl.texi>.
15662         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
15664 2001-08-10  Paul Eggert  <eggert@twinsun.com>
15666         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
15667         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
15668         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
15669         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
15670         m4/sanity.m4, tests/README, tests/aclocal.m4,
15671         tests/atspecific.m4, tests/base.at, tests/compile.at,
15672         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
15673         tests/semantics.at, tests/suite.at, tests/tools.at,
15674         tests/torture.at: Add copyright notice.
15676         * tests/mktests.sh: Update year in copyright notice.
15678 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
15680         * tests/semantics.at (AC_C_BIGENDIAN): New test.
15682 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
15684         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
15685         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
15686         * doc/autoconf.texi (C Compiler Characteristics): Update
15687         documentation for AC_C_BIGENDIAN.
15689 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
15691         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
15692         magic values from an object file when cross-compiling.
15693         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
15695 2001-08-10  Akim Demaille  <akim@epita.fr>
15697         * bin/autom4te.in (&handle_output): Don't use `grep' with side
15698         effects.
15699         Suggested by Russ Allbery.
15701 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
15703         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
15704         current $prefix to the sub-configures.
15706 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
15708         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
15709         extension (needed on BeOS).  Reported by Guido van Rossum.
15711 2001-08-09  Akim Demaille  <akim@epita.fr>
15713         * bin/autom4te.in ($icache): Load it only if older than autom4te.
15715 2001-08-07  Akim Demaille  <akim@epita.fr>
15717         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
15718         removed.
15719         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
15720         No need to remove the files before and after the each test, before
15721         each test and at the end of the suite is enough.
15722         Display only the children `times', not the shell's.
15723         If the test failed or was skipped, at-times is not available.
15725 2001-08-07  Akim Demaille  <akim@epita.fr>
15727         Always produce testsuite.log, including when there are no
15728         failures.  This helps getting information on skipped tests, and
15729         duration of the tests.  Err, implement the latter btw.
15731         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
15732         Dump information on the first run of each test.
15733         (AT_CLEANUP): Create `at-times' containing the duration of the
15734         test group.
15736 2001-08-07  Akim Demaille  <akim@epita.fr>
15738         The use of `dumpstat' revealed that `len' was used although it
15739         should not.  m4_text_wrap was using it, but in the Autoconf world
15740         where it is legal.  Hence (i) test M4sh in its own world, not
15741         Autoconf's, and (ii), ahem, fix the bug :)
15743         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
15744         does not like `' instead of [].
15745         (AT_INIT): Forbid `^_?AT_'.
15746         And don't output such tokens.
15747         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
15748         `script.as', and `autom4te.cache'.
15749         Remove `empty' and `macro' which are no longer used.
15750         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
15751         * tests/m4sugar.at: Use it.
15752         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
15754 2001-08-07  Akim Demaille  <akim@epita.fr>
15756         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
15758 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
15760         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
15762 2001-08-04  Akim Demaille  <akim@epita.fr>
15764         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
15765         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
15766         AC_TRY_LINK.
15767         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
15768         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
15769         (AC_F77_MAIN): Likewise.
15771 2001-08-04  Akim Demaille  <akim@epita.fr>
15773         Don't rely on M4sugar outputting the patterns in files, since we
15774         might process the output _without_ running m4, hence without these
15775         files.
15777         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
15778         * bin/autom4te.in (@Request::includes): Remove, unused.
15779         (@Request::source): Rename as...
15780         (@Request::input): this.
15781         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
15782         (&handle_output): Fetch the patterns from the traces.
15783         `$forbidden' and `$allowed' are constant: use m//o.
15784         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
15785         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
15787 2001-08-04  Akim Demaille  <akim@epita.fr>
15789         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
15790         autoconf', i.e., in addition to caching traces, cache the output.
15792         * bin/autom4te.in (Request::cache): Rename as...
15793         (Request::id): this.
15794         ($cache, $icache, $tcache, $ocache): New.
15795         (&handle_m4): Save M4 output in the cache instead of $tmp.
15796         (&handle_output): Adjust.
15797         (&up_to_date_p): Check that the output cache is up to date too.
15798         (top level): Run `&handle_m4' iff force or the cache is invalid.
15799         Run `&handle_output' if the output cache is more recent.
15801 2001-08-04  Akim Demaille  <akim@epita.fr>
15803         * bin/autom4te.in ($force): New.
15804         (&parse_args, &print_usage): -f, --force is a new option.
15805         (&handle_output): CPP directives might have spaces after `#'.
15806         (&parse_args): The first file only can be frozen.
15808 2001-08-04  Akim Demaille  <akim@epita.fr>
15810         Don't let autom4te compute the `include' traces several times:
15811         first check that the trace cache file is up to date, and then
15812         compare its timestamp with that of the output.
15814         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
15815         the preamble.  Don't require 5.005 as Autom4te::General does it,
15816         and better yet (use `use', not `require'!).
15817         * lib/Autom4te/Struct.pm: Rename the last occurrences of
15818         Class::Struct as Autom4te::Struct.
15819         * lib/Autom4te/General.pm (File::stat): Use it.
15820         (&mtime): New, export it.
15821         * bin/autom4te.in: Use it.
15822         Declare `$req' is invalid if it is outdated.
15823         Don't declare it valid before saving it if something went wrong.
15825 2001-08-04  Akim Demaille  <akim@epita.fr>
15827         Autom4te shall not encode Autoconf data, and preselecting traces
15828         must be proposed to the users.
15830         * bin/autom4te.in (@required_trace): Remove.
15831         (@preselect): New.
15832         (&parse_args, &print_usage): -p, --preselect is a new option.
15833         (&up_to_date_p): Adjust.
15834         * bin/autoconf.in: Preselect some Autoconf macros.
15836 2001-08-04  Akim Demaille  <akim@epita.fr>
15838         * tests/tools.at (autoconf --trace: user macros): Check traces on
15839         macros invoked without arguments, and macros invoked with multiple
15840         lines arguments.
15842 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
15844         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
15845         arguments.
15847 2001-08-03  Akim Demaille  <akim@epita.fr>
15849         * bin/autoconf.in ($@): Work around the usual sh bug.
15850         From Nicolas Joly.
15852 2001-08-03  Akim Demaille  <akim@epita.fr>
15854         Clean up the handling of the M4 builtins tracing exception.
15856         * bin/autom4te.in (Request::request): Don't complete M4 builtins
15857         trace requests.
15858         (@m4_builtins): Rename as...
15859         (@m4_builtin): this.
15860         (%m4_builtin_alternate_name): New.
15861         (&parse_args): Complete the trace requests with alternate names.
15862         (&handle_traces): Hence no longer do it here.
15863         (&trace_requests): Remove, unused.
15865 2001-08-03  Akim Demaille  <akim@epita.fr>
15867         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
15868         m4_if, and m4_wrap.
15870 2001-08-03  Akim Demaille  <akim@epita.fr>
15872         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
15873         (m4_divert_pop): Dump the whole diversion stack when a diversion
15874         mismatch happens.
15875         * bin/autom4te.in (&handle_output): Remember of the first
15876         occurrence of a possibly undefined macro, not the last.
15877         Complain about the possibly undefined macros in the same order as
15878         the appear in the output.
15879         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
15880         * tests/tools.at (autoconf: forbidden tokens, basic)
15881         (autoconf: forbidden tokens, exceptions): No longer sort
15882         autoconf's stderr, as it is now deterministic.
15883         Check that `dnl' is caught.
15885 2001-08-01  Akim Demaille  <akim@epita.fr>
15887         * configure.ac: Bump to 2.52c.
15889 2001-08-01  Akim Demaille  <akim@epita.fr>
15891         Version 2.52b.
15893         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
15895 2001-08-01  Akim Demaille  <akim@epita.fr>
15897         Version 2.52a.
15899 2001-08-01  Akim Demaille  <akim@epita.fr>
15901         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
15902         `die'.
15903         (&END): New.
15904         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
15905         `END', as `Autom4te::General::END' will be triggered.
15906         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
15907         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
15908         system to run `mv', `rm', and `cmp'.
15910 2001-08-01  Akim Demaille  <akim@epita.fr>
15912         * lib/Autom4te/General.pm (&unique): New.
15913         * bin/autoscan.in (&output): Use it to issue trace requests once.
15915 2001-08-01  Akim Demaille  <akim@epita.fr>
15917         * lib/Autom4te/General.pm: New.
15918         * bin/autom4te.in (Autom4te::General): Use it.
15919         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
15920         (&find_configure_ac, &find_slave): Remove.
15921         * bin/autoscan.in: Likewise.
15922         * bin/autoupdate.in: Likewise.
15924 2001-08-01  Akim Demaille  <akim@epita.fr>
15926         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
15927         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
15928         * bin: here, new directory.
15929         * lib/Autoconf: Rename as...
15930         * lib/Autom4te: this, to please case insensitive junkie OSes.
15932 2001-08-01  Akim Demaille  <akim@epita.fr>
15934         * autom4te.in ($m4): Handle the --nesting-limit.
15935         * autoconf.in (M4): Remove.
15937 2001-08-01  Akim Demaille  <akim@epita.fr>
15939         * autoconf.in ($AWK): Remove, no longer used.
15940         * test/tools.at: Use AT_CHECK_AUTOCONF.
15941         (AWK portability): Remove, for autoconf no longer uses AWK.
15942         (Syntax of the Perl scripts): New.
15943         * configure.ac: autoconf no longer needs an AWK with a good
15944         regexp engine.
15945         Use a static test on AC_PACKAGE_VERSION.
15946         * autom4te.in (&up_to_date_p): Output depends on the arguments.
15947         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
15948         * tests/atconfig.in (PERL): New.
15950 2001-08-01  Akim Demaille  <akim@epita.fr>
15952         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
15953         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
15954         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
15955         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
15956         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
15957         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
15958         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
15959         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
15960         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
15961         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
15962         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
15963         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
15964         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
15965         * lib/autoconf/c.m4: here, new file.
15967         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
15968         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
15969         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
15970         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
15971         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
15972         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
15973         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
15974         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
15975         (AC_F77_FUNC): Move to...
15976         * lib/autoconf/fortran.m4: here, new file.
15978 2001-08-01  Akim Demaille  <akim@epita.fr>
15980         * acfunctions.m4: Rename as...
15981         * lib/autoconf/functions.m4: this.
15982         * acgeneral.m4: Rename as...
15983         * lib/autoconf/general.m4: this.
15984         * acheaders.m4: Rename as...
15985         * lib/autoconf/headers.m4: this.
15986         * aclang.m4: Rename as...
15987         * lib/autoconf/lang.m4: this.
15988         * acoldnames.m4: Rename as...
15989         * lib/autoconf/oldnames.m4: this.
15990         * acspecific.m4: Rename as...
15991         * lib/autoconf/specific.m4: this.
15992         * actypes.m4: Rename as...
15993         * lib/autoconf/types.m4: this.
15994         * autoconf.m4: Rename as...
15995         * lib/autoconf/autoconf.m4: this.
15997         * m4sugar.m4: Rename as...
15998         * lib/m4sugar/m4sugar.m4: this.
15999         * m4sh.m4: Rename as...
16000         * lib/m4sugar/m4sh.m4: this.
16002         * tests/atgeneral.m4: Rename as...
16003         * lib/autotest/general.m4: this.
16005         * acfunctions: Rename as...
16006         * lib/autoscan/functions: this.
16007         * acheaders: Rename as...
16008         * lib/autoscan/headers: this.
16009         * acidentifiers: Rename as...
16010         * lib/autoscan/identifiers: this.
16011         * aclibraries: Rename as...
16012         * lib/autoscan/libraries: this.
16013         * acmakevars: Rename as...
16014         * lib/autoscan/makevars: this.
16015         * acprograms: Rename as...
16016         * lib/autoscan/programs: this.
16018 2001-08-01  Akim Demaille  <akim@epita.fr>
16020         * doc/autoconf.texi: Moving/deleting open files is not portable.
16021         Portability issues for `.' (source), and more information about sed.
16023 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
16025         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
16026         which has a special meaning and is not a reference to libibmil.a.
16027         Reported by Matteo Frigo.
16029 2001-07-25  Pavel Roskin  <proski@gnu.org>
16031         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
16032         output.
16034 2001-07-25  Akim Demaille  <akim@epita.fr>
16036         * autoconf.in: Try to define the variables before using them.
16037         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
16038         instead of `$perllibdir'.
16039         * tests/atconfig.in ($autom4te_perllibdir): Export it.
16041 2001-07-25  Akim Demaille  <akim@epita.fr>
16043         * autoconf.in (ac_LF_and_DOT): Remove, unused.
16045 2001-07-24  Akim Demaille  <akim@epita.fr>
16047         Let autoconf use autom4te for traces.
16049         * autoconf.in ($task, task trace): Remove, merely pass --trace to
16050         autom4te.
16051         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
16052         (Because I found no way for autom4te to accept `-').
16053         * autom4te.in (&Request::request): Beware of M4 builtins.
16054         (END): Don't try to remove the content of an empty dir.
16055         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
16056         (&handle_output): Set a default value to `$forbidden'.
16057         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
16058         ($autoconf): Pass --debug and --verbose.
16059         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
16060         cache.
16062 2001-07-24  Akim Demaille  <akim@epita.fr>
16064         Let autoconf use autom4te to create configure.
16066         * autoconf.in ($automate): New var.
16067         (task script): Use autom4te.
16068         * autom4te.in (File::Spec): Use it.
16069         (&find_file): New.
16070         (&parse_args): --warning is -W, not -w.
16071         Find the top level files.
16072         (&handle_m4): Pass the warnings flags.
16073         Don't report verbosely m4's failures, unless requested.
16074         (&handle_output): Don't complain for forbidden tokens in comments.
16075         Be sure to report all the forbidden tokens within a single line.
16076         (&trace_format_to_m4): Preserve `$_'.
16077         (&handle_traces): Sort the output macros.
16078         (&up_to_date_p): Find the files before trying to get its time stamp.
16080 2001-07-24  Akim Demaille  <akim@epita.fr>
16082         * Makefile.am: Ship, build and install Autom4te.
16083         (SUBDIRS): Add lib.
16084         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
16085         * configure.in: Require Perl.
16086         * man/autom4te.in: New.
16088 2001-07-19  Paul Eggert  <eggert@twinsun.com>
16090         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
16091         example, rather than (exit 1); exit (which isn't portable).
16093 2001-07-18  Akim Demaille  <akim@epita.fr>
16095         Version 2.52.
16097 2001-07-18  Akim Demaille  <akim@epita.fr>
16099         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
16100         was run, while they are needed also when it is expanded.
16101         Reported by Nicolas Joly.
16103         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
16104         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
16105         AC_F77_DUMMY_MAIN being expanded.
16107 2001-07-18  Akim Demaille  <akim@epita.fr>
16109         * configure.in: Bump to 2.51a.
16111 2001-07-17  Akim Demaille  <akim@epita.fr>
16113         Version 2.51.
16115 2001-07-17  Akim Demaille  <akim@epita.fr>
16117         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
16118         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
16120 2001-07-17  Akim Demaille  <akim@epita.fr>
16122         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
16123         used.  Well, then use the prototypes when you can, and runtime as
16124         a last resort.
16125         Reported by Artur Frysiak
16127         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
16128         (AC_FUNC_GETPGRP): Use it.
16129         First try to compile with 0-ary or 1-ary calls.
16131 2001-07-17  Akim Demaille  <akim@epita.fr>
16133         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
16134         replacement type.
16135         From Paul Eggert.
16137 2001-07-17  Akim Demaille  <akim@epita.fr>
16139         * Makefile.maint: Sync. with cppi 1.10.
16141 2001-07-17  Akim Demaille  <akim@epita.fr>
16143         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
16144         AC_F77_DUMMY_MAIN has been run.
16145         From Pavel Roskin and Steven G. Johnson.
16147 2001-07-17  Akim Demaille  <akim@epita.fr>
16149         * configure.in: Rename as...
16150         * configure.ac: this.
16152 2001-07-17  Akim Demaille  <akim@epita.fr>
16154         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
16155         rules.
16156         From Marc Espie.
16157         * Makefile.maint (release-archive-dir): Rename as...
16158         (release_archive_dir): this, so that it can be specialized in
16159         Makefile.
16161 2001-07-14  Akim Demaille  <akim@epita.fr>
16163         * configure.in: Bump to 2.50d.
16165 2001-07-14  Akim Demaille  <akim@epita.fr>
16167         Version 2.50c.
16168         * Makefile.maint (alpha): Typo.
16170 2001-07-14  Akim Demaille  <akim@epita.fr>
16172         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
16174 2001-07-14  Akim Demaille  <akim@epita.fr>
16176         * config/config.guess, config/config.sub, config/texinfo.tex
16177         * doc/standards.texi, doc/make-stds.texi: Update.
16179 2001-07-14  Akim Demaille  <akim@epita.fr>
16181         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
16183 2001-07-14  Akim Demaille  <akim@epita.fr>
16185         * Makefile.maint (maintainer-check): Rename as...
16186         (maintainer-distcheck): this.
16187         (changelog-check, static-check): New.
16188         Use them.
16190 2001-07-14  Kevin Ryde  <user42@zip.com.au>
16192         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
16193         for CXX is g++, not gcc.
16195 2001-07-14  Akim Demaille  <akim@epita.fr>
16197         * doc/autoconf.texi (Files): New subsection.
16199 2001-07-14  Akim Demaille  <akim@epita.fr>
16201         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
16202         of...
16203         (Generic Compiler Characteristics): this.
16204         (C++ Compiler): New subsection.
16206 2001-07-14  Akim Demaille  <akim@epita.fr>
16208         * autoscan.in: Use IO::File.
16209         Adjust all the routines to use it.
16210         ($log): New file (autoscan.log).
16211         (output): Dump detailed logs into $log, and a shortened version to
16212         stderr.
16213         (&scan_makefile): Refine the regexp catching tokens in the code.
16214         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
16215         and the `configure.ac' checking feature.
16217 2001-07-12  Akim Demaille  <akim@epita.fr>
16219         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
16220         Reported by Michael Elizabeth Chastain.
16222         * autoconf.in: Refuse such AWK.
16223         * configure.in: Likewise.
16224         * Makefile.am (acversion.m4): Do not use move-if-change this file
16225         has dependencies.
16226         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
16228 2001-07-10  Jens Petersen  <petersen@redhat.com>
16230         * autoscan.in (&scan_makefile): Improve programs regexp to parse
16231         things like "g++", "file.c" and "some-conf" as tokens.
16232         (&scan_file): Match C++ files extensions.
16233         If the filename extension is C++ then ask for c++.
16235 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
16237         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
16238         AC_TRY_LINK_FUNC, to check whether defining a dummy
16239         main-like routine is needed for linking with F77 libs.
16241 2001-07-05  Pavel Roskin  <proski@gnu.org>
16243         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
16244         after using break.
16245         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
16246         linking.
16248 2001-07-05  Akim Demaille  <akim@epita.fr>
16250         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
16251         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
16252         Makes' lives.
16253         Reported by Nicolas Joly.
16255 2001-07-04  Akim Demaille  <akim@epita.fr>
16257         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
16258         up.
16259         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
16260         warnings from compilers.
16261         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
16262         for all the compilers, not only GNU.  Hence move from here...
16263         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
16265 2001-07-04  Akim Demaille  <akim@epita.fr>
16267         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
16268         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
16269         AC_COMPILE_IFELSE.
16271 2001-07-04  Akim Demaille  <akim@epita.fr>
16273         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
16274         the ``strings.h'' change claimed below.
16276 2001-07-04  Akim Demaille  <akim@epita.fr>
16278         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
16280 2001-07-04  Akim Demaille  <akim@epita.fr>
16282         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
16283         strings.h if usable with string.h.
16284         Suggested by Paul Eggert.
16286 2001-07-04  Akim Demaille  <akim@epita.fr>
16288         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
16289         From Jens Petersen.
16291 2001-07-03  Akim Demaille  <akim@epita.fr>
16293         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
16294         etc. in the log.
16296 2001-07-03  Akim Demaille  <akim@epita.fr>
16298         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
16299         compiler, not the preprocessor.
16300         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
16301         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
16302         the right thing.
16303         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
16304         earlier if there are.
16306 2001-07-03  Akim Demaille  <akim@epita.fr>
16308         * autoscan.in ($initfile): Remove.
16309         (&find_file): Rename as...
16310         (&scan_file): this.
16311         Immediately scan the current file, instead of gathering them, and
16312         later having them handled by &scan_files.
16313         (&scan_files): Merely invoke Find::File.
16314         Adjust.
16316 2001-07-02  Akim Demaille  <akim@epita.fr>
16318         * autoscan.in: Formatting changes, matching the invocation order.
16319         (File::Find): Use it instead of Perl 4's `find.pl'.
16320         (&wanted): Rename as...
16321         (&find_file): this.
16323 2001-07-01  Pavel Roskin  <proski@gnu.org>
16325         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
16326         break in the argument to AC_TRY_LINK_FUNC.
16327         (AC_F77_MAIN): Remove conftest* after using break in the
16328         argument to AC_TRY_LINK.
16330 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
16332         Add alternate 'main' routine detection for linking C/C++ with Fortran,
16333         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
16335         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
16336         dummy alternate main is required even if the user provides her own
16337         'main'.
16338         (AC_F77_MAIN): New macro to detect whether it is possible to
16339         provide an alternate 'main' function name, using the 'main' from
16340         the Fortran libraries.
16341         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
16342         cross-language link tests can be performed successfully.
16343         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
16344         after $LIBS, for consistency; this should be the general rule since
16345         the user may want to link to Fortran libraries that require $FLIBS.
16346         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
16348 2001-06-29  Pavel Roskin  <proski@gnu.org>
16350         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
16351         at-stdout and at-stderr instead of removing the newline
16352         from the echo output, which is not guaranteed to work.
16354 2001-06-28  Jens Petersen  <petersen@redhat.com>
16356         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
16357         confdefs.h when non-zero.
16359 2001-06-28  Akim Demaille  <akim@epita.fr>
16361         * configure.in: Bump to 2.50c.
16363 2001-06-26  Akim Demaille  <akim@epita.fr>
16365         Version 2.50b.
16367 2001-06-26  Akim Demaille  <akim@epita.fr>
16369         Version 2.50a.
16371 2001-06-25  Pavel Roskin  <proski@gnu.org>
16373         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
16374         argument, AUTOCONF-FLAGS.
16375         * tests/mktests.sh (update_exclude_list): Add
16376         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
16377         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
16378         AC_FUNC_WAIT3 with "-W no-obsolete".
16380 2001-06-25  Akim Demaille  <akim@epita.fr>
16382         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
16384 2001-06-25  Akim Demaille  <akim@epita.fr>
16386         * autoscan.in (%macro): Now maps from word to list of macros.
16387         (&init_tables): Die when a word which is already handled by
16388         explicit macros is mapped to the default macro.
16389         (&print_unique): Remove, inlined in...
16390         (&output_kind): here.
16391         (File::Basename): Use it.
16392         (&output): Sort the CONFIG_FILES.
16393         * acheaders: Normalize.
16394         * acfunctions: Likewise.
16396 2001-06-25  Akim Demaille  <akim@epita.fr>
16398         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
16399         characteristics in the logs.
16400         Suggested by Mo DeJong.
16402 2001-06-24  Akim Demaille  <akim@epita.fr>
16404         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
16405         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
16406         * doc/autoconf.texi (Autoconf 2.13): New section.
16408 2001-06-24  Akim Demaille  <akim@epita.fr>
16410         * autoconf.in (Task traces): Separate the error messages from the
16411         traces to improve robustness.
16413 2001-06-23  Akim Demaille  <akim@epita.fr>
16415         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
16416         three as failures are unlikely, and speed matters.
16418 2001-06-23  Akim Demaille  <akim@epita.fr>
16420         * doc/autoconf.texi (Redefined M4 Macros): New.
16422 2001-06-23  Akim Demaille  <akim@epita.fr>
16424         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
16425         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
16426         5.3.
16428 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
16430         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
16431         config.status targets to after the evaluation of the INIT-CMDS.
16432         Double quote config.status targets (used to be single quoted).
16434 2001-06-23  Akim Demaille  <akim@epita.fr>
16436         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
16437         Check the content of the created file.
16438         Check the ./config.status command line invocation.
16440 2001-06-23  Akim Demaille  <akim@epita.fr>
16442         * tests/foreign.at (Libtool): Reject prehistoric versions.
16444 2001-06-23  Akim Demaille  <akim@epita.fr>
16446         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
16447         preexisting files matching a.*.
16449 2001-06-23  Akim Demaille  <akim@epita.fr>
16451         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
16452         stderr.
16453         * doc/autoconf.texi (AC_ARG_VAR): Update.
16455 2001-06-21  Akim Demaille  <akim@epita.fr>
16457         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
16458         precious variables have changed.
16459         * tests/torture.at (AC_ARG_VAR): Adjust.
16461 2001-06-21  Akim Demaille  <akim@epita.fr>
16463         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
16464         but some sed choke on multiple `;', and other tools (e.g.,
16465         Automake), include the separator themselves.
16467         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
16469 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
16471         * doc/autoconf.texi (Functions Portability): Rename as...
16472         (Function Portability): this.
16473         (Function Portability): Document potential problems with unlink().
16475 2001-06-19  Paul Eggert  <eggert@twinsun.com>
16477         * NEWS, doc/autoconf.texi: Document quadrigraphs.
16479 2001-06-18  Akim Demaille  <akim@epita.fr>
16481         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
16483 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
16485         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
16486         (_AC_FUNC_VFORK): this.
16487         Remove AC_DEFINEs and don't guess cross-compilation values.
16488         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
16489         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
16490         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
16491         vfork doesn't work.
16492         Guess values if cross-compiling, but warn.
16493         * acfunctions: Add AC_FUNC_FORK.
16494         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
16495         and vfork appropriately.
16497 2001-06-18  Akim Demaille  <akim@epita.fr>
16499         * doc/autoconf.texi (Functions Portability): New section.
16501 2001-06-18  Akim Demaille  <akim@epita.fr>
16503         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
16504         in $M4.
16505         Suggested by Andreas Schwab.
16507 2001-06-18  Akim Demaille  <akim@epita.fr>
16509         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
16510         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
16511         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
16512         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
16513         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
16514         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
16515         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
16516         the converse).
16518 2001-06-18  Akim Demaille  <akim@epita.fr>
16520         * doc/autoconf.texi (ms): New index.
16521         (Macro Index): Rename as...
16522         (Autoconf Macro Index): this.
16523         (M4 Macro Index): New appendix.
16524         (Programming in M4): New chapter.
16525         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
16526         (Quoting): Rename as...
16527         (M$ Quotation): this.
16528         Be part of `Programming in M4).
16530 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
16532         * tests/torture.at (AC_ARG_VAR): Set variables and export them
16533         in separate statements for compatibility with Tru64 v5.1.
16535 2001-06-17  Akim Demaille  <akim@epita.fr>
16537         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
16538         current values of the precious variables, not the previously
16539         cached values.
16540         Pass precious variables which are set to config.status.
16541         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
16542         * tests/torture.at (AC_ARG_VAR): New.
16544 2001-06-15  Paul Eggert  <eggert@twinsun.com>
16546         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
16547         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
16548         and explain why and how to replace them.
16549         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
16550         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
16552 2001-06-15  Akim Demaille  <akim@epita.fr>
16554         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
16555         Reported by Bruno Haible.
16557         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
16558          (_AC_ARG_VAR_PRECIOUS): to here.
16560 2001-06-15  Pavel Roskin  <proski@gnu.org>
16562         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
16563         an unused pointer use cast to this type and `if' statement to
16564         avoid warnings from the compiler.
16565         (AC_HEADER_TIME): Likewise.
16566         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
16567         in `if' statement to avoid warnings from the compiler. Declare
16568         ac_aggr static to avoid the need to initialize it.
16570 2001-06-14  Akim Demaille  <akim@epita.fr>
16572         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
16573         Macros'.
16575 2001-06-13  Akim Demaille  <akim@epita.fr>
16577         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
16578         Suggested by Alexander Mai.
16580 2001-06-13  Akim Demaille  <akim@epita.fr>
16582         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
16583         sys/types.h and sys/stat.h, and check for them.
16585 2001-06-13  Akim Demaille  <akim@epita.fr>
16587         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
16588         INCLUDES.
16590 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
16592         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
16593         succeeds and only try adding libdnet upon a failure.
16595 2001-06-12  Akim Demaille  <akim@epita.fr>
16597         * autoscan.in (&output_kind): Output the comment only if it exists.
16598         (%kind_comment): Add entry for `programs'.
16599         (&output_programs): Use &output_kind.
16600         (&output_functions, &output_identifiers, &output_headers)
16601         (&output_programs): Inline, and remove.
16603 2001-06-12  Akim Demaille  <akim@epita.fr>
16605         * autoscan.in (%kind_comment): New.
16606         (output_kind): New.
16607         (output_functions, output_identifiers, output_headers): Use it.
16609 2001-06-12  Akim Demaille  <akim@epita.fr>
16611         * autoscan.in (&print_unique): Take `$kind' and `$word' as
16612         arguments, to factor indirections into `%macro' and `%used'.
16613         (%generic_macro): Fix a typo.
16615 2001-06-12  Akim Demaille  <akim@epita.fr>
16617         * aclibraries: New.
16618         * autoscan.in (@kinds): Add `libraries'.
16619         Use `@kinds' instead of hard coded lists.
16620         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
16621         Remove, replaced by...
16622         (%used): this.
16624 2001-06-12  Akim Demaille  <akim@epita.fr>
16626         * autoscan.in (%functions_macros %headers_macros)
16627         (%identifiers_macros %programs_macros %makevars_macros): Remove,
16628         replaced by...
16629         (%macro): New.
16631 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
16633         * aclang.m4 (AC_NO_EXECUTABLES): Override
16634         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
16636 2001-06-11  Akim Demaille  <akim@epita.fr>
16638         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
16639         trailing new line.
16640         Reported by Andreas Schwab.
16642 2001-06-11  Akim Demaille  <akim@epita.fr>
16644         * Makefile.am, Makefile.maint: Typos.
16646 2001-06-09  Akim Demaille  <akim@epita.fr>
16648         * doc/autoconf.texi (Here-Documents): New section, gathering
16649         documentation about here-documents.
16650         Use `href', not `uref', and other changes.
16652 2001-06-09  Akim Demaille  <akim@epita.fr>
16654         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
16655         chapter.
16657 2001-06-09  Akim Demaille  <akim@epita.fr>
16659         * doc/autoconf.texi (Limitations of Builtins): Complete the
16660         description of the here-docs penalties with Alexandre Oliva's
16661         explanations.
16663 2001-06-01  Paul Eggert  <eggert@twinsun.com>
16665         * doc/autoconf.texi: Talk about here documents and speedups.
16666         Do not use "echo" on arbitrary strings.
16667         Spell "here-documents" consistently with the standard.
16669 2001-06-09  Akim Demaille  <akim@epita.fr>
16671         * doc/autoconf.texi (Concept Index): Introduce it.
16672         Regenerate the menus.
16674 2001-06-09  Akim Demaille  <akim@epita.fr>
16676         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
16677         * config/prev-version.txt: New.
16678         * config/move-if-change: New, for GNU libc.
16680 2001-06-06  Pavel Roskin  <proski@gnu.org>
16682         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
16684 2001-06-06  Akim Demaille  <akim@epita.fr>
16686         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
16687         properly when $1 is not a literal.
16688         Fixes PR Autoconf/187, reported by Bram Moolenaar.
16690 2001-06-06  Akim Demaille  <akim@epita.fr>
16692         Invoking AC_COPYRIGHT before AC_INIT fails.
16694         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
16695         * acgeneral.m4 (_m4_divert(VERSION_FSF))
16696         (_m4_divert(VERSION_USER)): New.
16697         (AC_COPYRIGHT): $2 is the diversion to use.
16698         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
16699         (AC_INIT): Remove dead comments as now it's commutative.
16701 2001-06-06  Akim Demaille  <akim@epita.fr>
16703         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
16704         PR autoconf/187.
16706 2001-06-05  Akim Demaille  <akim@epita.fr>
16708         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
16709         can be empty.
16710         `*dir' variables cannot be NONE.
16711         Reported by Mark Kettenis.
16713 2001-06-05  Paul Eggert  <eggert@twinsun.com>
16715         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
16717 2001-06-04  Akim Demaille  <akim@epita.fr>
16719         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
16720         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
16721         (AC_TR_SH): Move as...
16722         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
16723         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
16724         (AS_TR_SH): these.
16725         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
16726         (_AS_TR_SH_PREPARE): New.
16727         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
16728         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
16730 2001-06-02  Akim Demaille  <akim@epita.fr>
16732         * Makefile.am (.m4.m4f): Pass the options first.
16733         Fixes PR autoconf/182.
16735 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
16737         GNU getopt, when POSIXLY_CORRECT does not permute options and
16738         arguments.  So pass the options first.
16739         Fixes PR autoconf/184.
16741         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
16742         (run_m4): Remove files.
16743         (run_m4f): Remove.
16744         Update remainder of script to use them.
16745         (for warning in): Do not use a literal comma as it will not be
16746         split by IFS.
16748 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
16750         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
16751         Fortran compilers to check.
16752         (_AC_PROG_F77_V): Add '-###' as a possible option to print
16753         information on library and object files.
16754         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
16755         to check.
16757 2001-06-02  Akim Demaille  <akim@epita.fr>
16759         * autom4te.in (Request::@request): Declare with `vars', not `my',
16760         as it prevents updates via `do FILENAME'.
16762 2001-06-02  Akim Demaille  <akim@epita.fr>
16764         * configure.in (standards_texi): Remove, dead code.
16766 2001-06-02  Akim Demaille  <akim@epita.fr>
16768         * autom4te.in: New.
16770 2001-06-02  Pavel Roskin  <proski@gnu.org>
16772         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
16773         for signals other than 0 - exit with code 1.
16774         * m4sh.m4 (AS_TMPDIR): Likewise.
16775         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
16776         * autoheader.in: Likewise.
16777         * autoreconf.in: Likewise.
16778         * tests/torture.at (Signal handling): New test for the above.
16780 2001-06-01  Akim Demaille  <akim@epita.fr>
16782         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
16783         message.
16785 2001-05-31  Akim Demaille  <akim@epita.fr>
16787         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
16788         Add copyright and comments.
16789         * acheaders: Add stdint.h.
16790         Suggested by Paul Eggert.
16792 2001-05-31  Akim Demaille  <akim@epita.fr>
16794         * atgeneral.m4 (AT_INIT): Use $SHELL.
16795         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
16797 2001-05-31  Akim Demaille  <akim@epita.fr>
16799         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
16800         stdint.h.
16801         From Paul Eggert and Lars Hecking.
16803 2001-05-31  Akim Demaille  <akim@epita.fr>
16805         * tests/base.at: Adjust line numbers in error messages.
16807 2001-05-31  Akim Demaille  <akim@epita.fr>
16809         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
16810         to emit the bangshe line.
16811         Reported by David Carter.
16813 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
16815         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
16816         Fortran (95) compilers to check.
16818 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
16820         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
16821         Macro Archive URL.
16823 2001-05-23  Pavel Roskin  <proski@gnu.org>
16825         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
16826         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
16827         (AC_PROG_CXXCPP): Likewise.
16829 2001-05-22  Akim Demaille  <akim@epita.fr>
16831         * config: New directory.
16832         * configure.in: AC_CONFIG_AUX_DIR it.
16833         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
16835 2001-05-22  Akim Demaille  <akim@epita.fr>
16837         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
16838         * autoupdate.in: Specify the Emacs mode.
16839         * acversion.m4.in: Rename as...
16840         * acversion.m4: this.
16841         * tests/Makefile.am (CLEANFILES): More garbage.
16843 2001-05-22  Akim Demaille  <akim@epita.fr>
16845         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
16846         Rename as...
16847         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
16848         these.
16850 2001-05-21  Akim Demaille  <akim@epita.fr>
16852         * configure.in: Bump to 2.50a.
16855         -----
16857         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
16858         Software Foundation, Inc.
16860         Copying and distribution of this file, with or without
16861         modification, are permitted provided the copyright notice and this
16862         notice are preserved.