Document zsh bug with empty commands.
[autoconf.git] / ChangeLog
blob88f41711356f5726c5adc7b0077f14325131df0e
1 2009-05-13  Eric Blake  <ebb9@byu.net>
3         Document zsh bug with empty commands.
4         * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
5         more problems with $?.
7 2009-05-11  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
9         Also try X11R7 when looking for X11 files, for NetBSD.
10         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
11         with X11R7 in the name.
13 2009-05-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15         Limit stderr logging for C compiler version.
16         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
17         internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
18         an optional additional argument to limit the number of lines of
19         stderr output logged, defaulting to 10.
20         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
21         _AC_DO_LIMIT for capturing compiler version output.  Also test
22         -qversion, for the IBM xlc compiler.
23         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
24         * THANKS: Update.
25         Report by Christian Rössel and John R. Cary against Libtool.
27 2009-04-24  Eric Blake  <ebb9@byu.net>
29         Fix quoting of m4 macros in AT_CHECK.
30         * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
31         escapes, to avoid shell syntax errors caused by late macro
32         expansion.
33         * NEWS: Document this change.
34         * tests/autotest.at (Metacharacters in command from M4 expansion):
35         New test.
37         manual: Use consistent spelling of here-document.
38         * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
39         (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
40         spelling.
41         Reported by Ralf Wildenhues.
43         Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
44         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
45         undocumented semantics, where unbalanced " cannot be used in the
46         stdout/stderr argument.
47         (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
48         the text is used in double-quoted context.
49         * tests/autotest.at (unquoted output): New test.
50         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
51         shell expansions are handled.
53         Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
54         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
55         of new spelling...
56         (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
57         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
58         rename.
59         * NEWS: Likewise.
60         * tests/autotest.at (Binary output, Cleanup): Adjust tests.
61         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
62         Likewise.
63         Reported by Ralf Wildenhues.
65 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67         New test to ensure autom4te cache file locking works.
68         * tests/tools.at (autom4te cache locking): New test.
69         Report by Eric Blake.
71 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
73         manual: another grammar improvement.
74         * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
75         pronunciation of `FCFLAGS_f90'.
77 2009-04-23  Eric Blake  <ebb9@byu.net>
79         Change FOO placeholder to use @var{text} instead.
80         * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
81         to AC_CONFIG_@var{ITEMS}.
82         * doc/autoconf.texi (config.status Invocation): Likewise.
83         (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
84         (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
86 2009-04-22  Eric Blake  <ebb9@byu.net>
88         Add m4_argn.
89         * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
90         * NEWS: Document it.
91         * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
92         <m4_car, m4_cdr>: Improve documentation.
93         * tests/m4sugar.at (m4 lists): New test.
95 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97         Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
98         * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
99         and AC_PROG_CC_C99 prefer extended over strict conformance modes.
100         Report by Vincent Lefèvre.
102 2009-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104         Revert bogus change in last commit.
105         * doc/autoconf.texi (Initialization Macros): Revert change.
106         Spotted by Eric Blake.
108         manual: fix trivial grammar errors.
109         * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
110         (Limitations of Usual Tools, Pretty Help Strings)
111         (config.status Invocation): Fix `a' vs. `an' errors.
112         Report by Eric Blake.
114 2009-04-21  Eric Blake  <ebb9@byu.net>
116         Shuffle maintainer-specific rules.
117         * Makefile.am (maintainer-check-tests): Delete.
118         (autom4te-update): Move...
119         * cfg.mk (autom4te-update): ...here.
120         (fetch): Depend on autom4te-update.  Split...
121         (gnulib-update): ...into new rule.  Import move-if-change from
122         gnulib.
123         * maint.mk (maintainer-distcheck): Absorb former maintainer-check
124         rule.
125         * build-aux/move-if-change: New file, undistributed.
126         * .gitattributes: Handle new upstream file.
127         * .gitignore: Ignore maintainer cruft.
128         * HACKING: Update maintainer instructions.
129         * build-aux/config.guess: Update from upstream.
130         * build-aux/config.sub: Likewise.
131         * build-aux/gendocs.sh: Likewise.
132         * build-aux/texinfo.tex: Likewise.
133         * doc/gendocs_template: Likewise.
134         * doc/standards.texi: Likewise.
136 2009-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
138         Sync autom4te perl modules from Automake.
139         * lib/Autom4te/Channels.pm: Sync from Automake.
140         * lib/Autom4te/FileUtils.pm: Likewise.
141         * lib/Autom4te/XFile.pm: Likewise.
143         Adjust channel definitions for new Automake `ordered' flag.
144         * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
145         `ordered' flag to zero for channels `fatal', `automake', and
146         `verb'.  This has currently no effect on actual semantics but
147         avoids a consistency check needed for Automake's usage of the
148         Channels.pm code.
150         manual: clarify m4_if synopsis.
151         * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
152         m4_if in the presence of more than three arguments.
154         Improve and clarify `config.status' usage documentation.
155         * doc/autoconf.texi (config.status Invocation): Fix markup in
156         synopsis.  Use `tag' instead of `file' notation for the
157         non-option arguments, to be consistent with the documentation
158         of the AC_CONFIG_* macros.
159         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
160         use `tag' notation for non-option arguments.
161         Report by John Calcote.
163 2009-04-15  Eric Blake  <ebb9@byu.net>
165         Test that autotest handles binary output.
166         * tests/autotest.at (Binary output): New test.
167         Suggested by Ralf Wildenhues.
169         Add stdout-nolog and ignore-nolog to AT_CHECK.
170         * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
171         (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
172         (AT_DIFF_STDOUT(ignore-nolog)): New macros.
173         * tests/autotest.at (Logging): New test.
174         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
175         new logging actions.
176         * NEWS: Likewise.
177         Reported by Ralf Wildenhues.
179         Teach AT_CHECK about hard failures.
180         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
181         <at_fn_check_status, at_fn_group_postprocess>: Handle hard
182         failures.
183         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
184         AT_CHECK_NOESCAPE and exit status 99.
185         * NEWS: Likewise.
186         * tests/autotest.at (Hard fail, Cleanup): New tests.
188 2009-04-14  Eric Blake  <ebb9@byu.net>
190         Fix yesterday's regression in AS_IF.
191         * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
192         branch; it is up to the user to avoid syntax errors.
193         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
195 2009-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
197         Add traces for AM_SILENT_RULES.
198         * lib/autom4te.in (Automake-preselections): Trace
199         AM_SILENT_RULES.
201 2009-04-13  Eric Blake  <ebb9@byu.net>
203         Improve documentation related to expanded-before-required.
204         * doc/autoconf.texi (Expanded Before Required): Add a case study.
205         (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
206         running a compile test will AC_REQUIRE the compiler check.
207         (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
208         (C Compiler) <AC_PROG_CC>: Mention the fact that only first
209         invocation of this macro checks for $EXEEXT, and that many other
210         macros use it via AC_REQUIRE.
211         Reported by Andreas Schwab.
213         Mention latest rules about make and set -e.
214         * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
215         that make must use set -e.
216         (Limitations of Builtins) <set>: Clarify more about set -e
217         behavior.
219         Improve documentation about if exit status.
220         * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
221         exit status bugs don't affect modern targets.
222         Reported by Andreas Schwab.
224         Add cross-reference to new macros.
225         * doc/autoconf.texi (Text processing Macros) <m4_normalize>
226         <m4_strip>: Reference the new m4_ifblank.
227         Suggested by Mike Frysinger.
229         Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
230         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
231         (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
232         including a macro with an empty expansion.
233         * NEWS: Mention this.
234         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
235         tests.
236         Reported by Mike Frysinger.
238         Add m4_blank and friends.
239         * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
240         (m4_default_nblank_quoted): New macros.
241         * NEWS: Document them.
242         * doc/autoconf.texi (Conditional constructs): Likewise.
243         * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
244         Suggested by Mike Frysinger.
246 2009-04-13  Eric Blake  <ebb9@byu.net>
248         Finish upgrade to GFDL 1.3.
249         * doc/autoconf.texi (copying): Use correct license; comment change
250         was missed on 2008-11-04.
252 2009-04-10  Eric Blake  <ebb9@byu.net>
254         Test parallel handling of syntax error.
255         * tests/autotest.at (parallel syntax error): New test.
256         Suggested by Ralf Wildenhues.
258 2009-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
260         Document awk and config.status line length limitations.
261         * doc/autoconf.texi (Configuration Actions): The input to
262         config.status should have reasonable line length.
263         (Limitations of Usual Tools): Document IRIX, HP-UX awk input
264         line length limit.
265         Report by Bruno Haible.
267         Skip `Multiple languages' test if CC is a C++ compiler.
268         * tests/compile.at (Multiple languages): Before starting the
269         test proper, build and run a configure script that tests the
270         C compiler only, and skips the test if this is found to be a
271         C++ compiler.
272         Report by Eric Blake.
274         Note that AC_DEFUN is needed for aclocal.
275         * doc/autoconf.texi (Coding Style): Public third-party macros
276         should be AC_DEFUN'ed.
277         Report by John Calcote.
279 2009-04-10  Eric Blake  <ebb9@byu.net>
281         Add undocumented _AS_CLEAN_DIR.
282         * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
283         in previous patch.
284         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
285         macro.
286         * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
287         Reported by Ralf Wildenhues.
289 2009-04-09  Eric Blake  <ebb9@byu.net>
291         Avoid problems caused by deleting in-use directory.
292         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
293         remove the contents of $at_group_dir, not the directory itself.
295         Fix regression in empty test.
296         * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
297         use in empty test.  Fixes regression introduced 2009-04-06.
298         (_AT_CHECK): Undo fallback when a test is not empty.
299         (AT_CLEANUP): Expand AT_ingroup before deleting.
301 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
303         Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
304         * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
305         not crosscompiling to an obsolete system.
307 2009-04-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
309         Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
310         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
311         Automake relies on this macro.
313 2009-04-06  Eric Blake  <ebb9@byu.net>
315         Reduce testsuite size.
316         * tests/statesave.m4: New file.
317         * tests/Makefile.am (EXTRA_DIST): Distribute it.
318         * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
319         repeating inline definition of AC_STATE_SAVE.
320         (AT_CHECK_ENV): Factor code...
321         (_AT_CHECK_ENV): ...into shell function.
322         * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
324         Handle shell comments in AT_CHECK.
325         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
326         test correctly.  Latent bug in handling shell comment was first
327         fixed 2008-11-20, but regressed two patches later.
328         * tests/autotest.at (Shell comment in command): New test.
329         * NEWS: Document the fix.
331         Hard fail any test with syntax errors.
332         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
333         Guarantee test failure on syntax error, rather than inheriting
334         status from previous test.
335         * tests/autotest.at (Syntax error): New test.
337 2009-03-31  Eric Blake  <ebb9@byu.net>
339         Beta Release Version 2.63b.
340         * NEWS: Mention the release.
341         * README: Clarify that this is a beta release.
342         * build-aux/texinfo.tex: Synchronize from upstream.
343         * .x-sc_trailing_blank: Exempt more upstream files.
345 2009-03-30  Eric Blake  <ebb9@byu.net>
347         Fix testsuite failures under zsh.
348         * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
349         set by zsh -c 'emulate sh'.
350         Reported by Ralf Wildenhues.
352         For now, skip parallel tests under less-tested shells.
353         * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
354         (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
355         (Fallacy, Skip, errexit, Long test source lines)
356         (Debugging a successful test, Debugging script and environment)
357         (Debugging a failed test, Using atlocal)
358         (Choosing where testsuite is run): Adjust callers.
359         (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
360         under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined.  Makes
361         it easier to avoid testsuite hangs for users with dash or other
362         less-tested shell.
363         (parallel test execution, parallel truth, parallel fallacy)
364         (parallel skip, parallel errexit)
365         (parallel autotest and signal handling): Use it.
366         * BUGS: Mention this.
368 2009-03-24  Andris Pavenis  <andris.pavenis@iki.fi>  (tiny change)
370         Fix awk substitution of carriage returns on DJGPP.
371         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
372         generation of ac_cs_awk_cr.
373         * THANKS: Update.
375 2009-03-24  Aaron W. LaFramboise  <aaronenvelope277@aaronwl.com>  (tiny change)
377         Work around cygwin bash igncr mode.
378         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
379         bash carriage returns if ac_cr lost \r from ``.
380         * THANKS: Update.
381         Suggested by Eric Blake.
383 2009-03-24  Eric Blake  <ebb9@byu.net>
385         Fix underquoted example in manual.
386         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
387         Properly m4-quote #.
388         * THANKS: Update spelling.
389         Reported by Matěj Týč.
391 2009-03-18  Eric Blake  <ebb9@byu.net>
393         Manual: mention more expr pitfalls.
394         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
395         Mention HP-UX limitation, and $ ambiguity.
396         * THANKS: Update.
397         Reported by Jens Schmidt, in http://bugs.debian.org/466990.
399 2009-03-17  Jim Meyering  <meyering@redhat.com>
401         Manual: fix a typo.
402         * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
404 2009-03-17  Eric Blake  <ebb9@byu.net>
406         Use test consistently in examples.
407         * doc/autoconf.texi (Subdirectories, Caching Results)
408         (Common Shell Constructs, Prerequisite Macros, Coding Style)
409         (Changed Results, Particular Programs, Defining Symbols):
410         Protect against arbitrary user strings.
411         (Multiple Cases): Mention why $fstype does not need protection.
412         Reported by Reuben Thomas.
414         Improve confusing section names.
415         * doc/autoconf.texi (Specifying Names): Rename node...
416         (Specifying Target Triplets): ...to this.
417         (Generic Programs): Adjust references.
418         * doc/install.texi (System Type): Touch up formatting.
419         * THANKS: Update.
420         Reported by Tim Freeman, in http://bugs.debian.org/312873.
422         Remove historical inaccuracy.
423         * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
424         #!/bin/sh needing a space.
425         Reported by Reuben Thomas.
427         Recommend AS_HELP_STRING more prominently.
428         * doc/autoconf.texi (External Software): Reduce mention of
429         hand-written help strings.
430         Reported by Reuben Thomas.
432 2009-03-16  Eric Blake  <ebb9@byu.net>
434         Fix 'make pdf'.
435         * doc/autoconf.texi (Balancing Parentheses): Fix usage of
436         @itemize.
437         Reported by Ralf Wildenhues, fix suggested by Karl Berry.
439 2009-03-14  Eric Blake  <ebb9@byu.net>
441         Resync upstream files.
442         * GNUmakefile: Run 'make fetch'.
443         * build-aux/announce-gen: Likewise.
444         * build-aux/config.guess: Likewise.
445         * build-aux/config.sub: Likewise.
446         * build-aux/gnupload: Likewise.
447         * build-aux/texinfo.tex: Likewise.
448         * build-aux/vc-list-files: Likewise.
449         * doc/gnu-oids.texi: Likewise.
450         * doc/standards.texi: Likewise.
452 2009-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
454         New test for SunStudio `restrict' handling.
455         * tests/c.at (AC_C_RESTRICT and C++): New test.
456         Prompted by bug report from Rolf Vandevaart.
458 2009-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
460         Manual: testsuite depends on package.m4.
461         * doc/autoconf.texi (Making testsuite Scripts): In the example
462         makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
464 2009-03-02  Allan Caffee  <allan.caffee@gmail.com>  (tiny change)
466         Fix a typo in comment for AS_LITERAL_IF.
467         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
468         out of date when this function was moved/renamed in 59ecd766.
469         * THANKS: Update.
471 2009-03-02  Eric Blake  <ebb9@byu.net>
473         Improve wording for AS_ESCAPE.
474         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
475         up documentation.
476         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
477         Reported by Ralf Wildenhues.
479 2009-02-24  Eric Blake  <ebb9@byu.net>
481         Use pkgdatadir consistently.
482         * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
483         * lib/Makefile.am (edit): Likewise.
484         * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
485         (M4sugar): Use @pkgdatadir@, not @datadir@.
486         * bin/autoheader.in ($datadir): Likewise.
487         * bin/autom4te.in ($datadir): Likewise.
488         * bin/autoreconf.in ($datadir): Likewise.
489         * bin/autoscan.in ($datadir): Likewise.
490         * bin/autoupdate.in ($datadir): Likewise.
491         * bin/ifnames.in ($datadir): Likewise.
492         * doc/autoconf.texi (Installation Directory Variables): Update
493         example to be consistent; focus on $(bindir) as an autoconf
494         variable, and mention that $(pkgdatadir) comes from automake.
495         Reported by Reuben Thomas.
497 2009-02-19  Eric Blake  <ebb9@byu.net>
499         Use m4_translit more efficiently in AS_ESCAPE.
500         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
501         of set separately from rest.
502         (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
503         callers.
504         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
505         characters in translit request.
506         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
507         Document the macro.
508         * NEWS: Likewise.
510         Mention recently documented macros.
511         * NEWS: Update list of new documentation.
513 2009-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
515         Add index for config.site.
516         * doc/autoconf.texi (Site Defaults): Add index for config.site.
517         * THANKS: Update.
518         Report by Stephen P. Schaefer.
520 2009-02-12  Eric Blake  <ebb9@byu.net>
522         Fix m4_set speed regression introduced 2008-12-18.
523         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
524         creating larger argument on each iteration.
525         (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
526         (_m4_set_contents_2): Adjust all four-argument callers.
528 2009-02-05  Eric Blake  <ebb9@byu.net>
530         Mention new AC_DEFUN_ONCE clients.
531         * NEWS: Mention recent semantic changes.
532         Reported by Ralf Wildenhues.
534 2009-02-03  Eric Blake  <ebb9@byu.net>
536         Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
537         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
538         AC_DEFUN_ONCE, since this is a one-shot macro.
539         (AC_PROG_INSTALL): Likewise.
541 2009-02-03  Eric Blake  <ebb9@byu.net>
543         Mention that packagers should not pre-set CFLAGS.
544         * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
545         advice given by automake on handling variables reserved by GNU
546         Coding Standards.
547         Reported by Karl Berry.
549         Document lib64 in config.site.
550         * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
551         Mention use of lib64.
552         * THANKS: Update.
553         Reported by Tom Browder, with help from Peter Breitenlohner.
555 2009-01-28  Eric Blake  <ebb9@byu.net>
557         Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
558         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
559         AC_DEFUN_ONCE, since this is a one-shot macro.
560         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
561         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
562         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
564 2009-01-28  Eric Blake  <ebb9@byu.net>
566         Reduce blank lines in AC_DEFUN_ONCE macros.
567         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
568         line when a defun_once macro is required.
569         (_m4_defun_once): New helper macro, for less memory use.
570         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
572         Silence another false positive expand-before-require.
573         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
574         (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
575         that caused a diversion change, not just diversion number.
576         (m4_require): Factor...
577         (_m4_require_check): ...into new macro, which also checks whether
578         diversion that performed the expansion has been collected.
579         * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
580         Reported by Ralf Wildenhues.
582 2009-01-28  Eric Blake  <ebb9@byu.net>
584         Fix AC_C_RESTRICT for Sun Studio 12 C++.
585         * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
586         __restrict__ rather than _Restrict, which still trips up Sun
587         Studio 12 C++.
588         * THANKS: Update.
589         Reported by Rolf Vandevaart.
591 2009-01-28  Eric Blake  <ebb9@byu.net>
593         Fix years in copyright notices.
594         * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
595         undocumented for now.
596         * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
597         m4_PACKAGE_URL.
598         (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
599         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
600         (AC_COPYRIGHT): Add undocumented third parameter.
601         (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
602         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
603         * lib/autotest/general.m4 (AT_INIT): Likewise.
604         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
605         (AT_COPYRIGHT): Add undocumented third parameter.
606         * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
607         parameter; the generic copyright given by autotest is sufficient
608         since we are the package that owns autotest.
610 2009-01-27  Eric Blake  <ebb9@byu.net>
612         Use URLs in --help output, part 3: testsuite.
613         * doc/autoconf.texi (Writing Testsuites): Mention autotest
614         namespace.
615         (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
616         (Making testsuite Scripts): Document AT_PACKAGE_URL.
617         * tests/Makefile.am (package.m4): Follow our own advice.
618         * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
619         package.m4.  Enhance --help output.
620         (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
622         Use URLs in --help output, part 2: configure.
623         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
624         date.
625         (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
626         AC_PACKAGE_URL.
627         (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
628         (_AC_INIT_HELP): Use it in './configure --help' output.
629         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
630         './config.status --help'.  Bump copyright date.
631         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
632         new parameter.
633         * NEWS: Likewise.
634         * tests/tools.at (autoheader): Adjust test.
635         * tests/torture.at (@%:@define header templates)
636         (Torturing config.status): Likewise.
638         Use URLs in --help output, part 1: autoconf executables.
639         * bin/autoconf.as (usage): Make output consistent with recent
640         change in gnulib version-etc module.
641         * bin/autoheader.in ($help): Likewise.
642         * bin/autom4te.in ($help): Likewise.
643         * bin/autoreconf.in ($help): Likewise.
644         * bin/autoscan.in ($help): Likewise.
645         * bin/autoupdate.in ($help): Likewise.
646         * bin/ifnames.in ($help): Likewise.
648 2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
650         Quote traced macros passed from autom4te to M4.
651         * bin/autom4te (handle_m4): Apply shell_quote to macro names.
652         * tests/tools.at (autom4te --trace and unusual macro names): New
653         test.
654         * THANKS: Update.
656 2009-01-26  Eric Blake  <ebb9@byu.net>
658         Improve AC_DEFUN_ONCE semantics.
659         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
660         rather than warning, on second use, and make sure first use never
661         occurs out of order.
662         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
663         Enhance test.
664         * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
665         (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
666         * NEWS: Document this.
667         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
668         AC_DEFUN_ONCE.
669         (Prerequisite Macros) <AC_REQUIRE>: Likewise.
670         (Expanded Before Required): Likewise.
671         (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
672         Reported by Bruno Haible, with suggestion by Paolo Bonzini.
674 2009-01-24  Eric Blake  <ebb9@byu.net>
676         Fix typos in recent patches.
677         * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
678         * doc/autoconf.texi (Expanded Before Required): Fix typos.
679         Reported by Ralf Wildenhues.
681         Revert change to AC_DIR_HEADER.
682         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
683         AC_HEADER_DIRENT no longer triggers a warning, and helps the user
684         who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
685         Reported by Paolo Bonzini.
687 2009-01-22  Eric Blake  <ebb9@byu.net>
689         Silence a false positive expand-before-require case.
690         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
691         which a macro was provided.
692         (m4_require): Compare diversion numbers, rather than m4_require
693         nesting, when determining direct requires.
694         * tests/m4sugar.at (m4@&t@_require: nested): Test it.
695         Reported by Ralf Wildenhues, affecting Libtool.
697 2009-01-21  Eric Blake  <ebb9@byu.net>
699         Fix out-of-order expansion with expand-before-require.
700         * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
701         required macro when issuing expand-before-require warning.
702         * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
703         (Expanded Before Required): New node.
704         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
705         * NEWS: Mention this fix.
706         Suggested by Bruno Haible.
708         Warn if macro is provided before indirectly required.
709         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
710         provided since last outermost defun.
711         (_m4_defun_pro_outer): Empty the set.
712         (_m4_require_call): Distinguish between direct and indirect
713         requires, and remove required macros from the set.
714         (m4_require): Check the set, in order to warn.
715         * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
716         test case for direct requires.
718 2009-01-20  Eric Blake  <ebb9@byu.net>
720         Clean up some bugs caught by preliminary dependency validation.
721         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
722         AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
723         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
724         (_AS_SHELL_SANITIZE): Fix quoting bugs.
726 2009-01-19  Eric Blake  <ebb9@byu.net>
728         Improve AC_REQUIRE documentation.
729         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
730         and mention interaction with AC_REQUIRE.
731         (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
732         ordering constraint bug, and how to fix it.
733         * tests/m4sugar.at (m4@&t@_require: nested): New test.
735         Speed up m4_require.
736         * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
737         always be defined, as either empty or a number.
738         (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
739         as a stack, rather than a one-shot macro.
740         (_m4_require_call): Expect third argument to be pre-expanded.
741         (m4_divert_require, m4_require): Adjust clients accordingly.
742         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
744 2009-01-17  Eric Blake  <ebb9@byu.net>
746         Avoid underfull hbox.
747         * doc/autoconf.texi (Installation Directory Variables): Reword to
748         fit on line.
750 2009-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
752         Ignore `set -e'-related failure of NetBSD sh.
753         * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
754         fails to finish EXIT trap after set -e.
756 2009-01-06  Eric Blake  <ebb9@byu.net>
758         Maintainer cleanups.
759         * cfg.mk (web-manual): Use new feature of gendocs.
760         (fetch): Fetch gendocs.
761         * Makefile.am (EXTRA_DIST): Distribute new file.
762         * doc/Makefile.am (EXTRA_DIST): Likewise.
763         * .gitattributes: Ignore whitespace in upstream files.
764         * HACKING (Other web updates): Update Free Software Directory
765         instructions.
766         (Upload): No longer mention xdelta.
767         * maint.mk (xd-delta): Likewise.
768         * build-aux/gendocs.sh: New upstream file.
769         * doc/gendocs_template: Likewise.
770         * build-aux/announce-gen: Resync from upstream.
771         * build-aux/config.guess: Likewise.
772         * build-aux/config.sub: Likewise.
773         * build-aux/gnupload: Likewise.
774         * build-aux/texinfo.tex: Likewise.
776 2008-12-30  Eric Blake  <ebb9@byu.net>
778         Make it easier to track diversion bugs.
779         * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
780         internal macros, which are easier to trace than m4_builtin.
781         (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
782         (m4_undivert): Use them.
783         (_m4_require_call): Likewise.  Use fewer macros.
784         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
786 2008-12-26  Bruno Haible  <bruno@clisp.org>
788         Improve multiarch detection.
789         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
790         indicating a universal build more reliable.
792 2008-12-28  William Pursell  <bill.pursell@gmail.com>  (tiny change)
794         Use AS_CASE in documented example.
795         * doc/autoconf.texi (Using the System Type): Use AS_CASE in
796         example instead of raw case.
798 2008-12-23  Eric Blake  <ebb9@byu.net>
800         Make m4_dumpdef more useful with M4 1.6.
801         * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
802         (m4_init): Install it for new enough m4.
803         * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
804         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
805         lack of sorting.
807 2008-12-24  Bruno Haible  <bruno@clisp.org>
809         Improve INSTALL for HP-UX.
810         * doc/install.texi (Particular Systems): For HP-UX, also recommend
811         -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
812         HP-UX 11.11.
814 2008-12-22  Bruno Haible  <bruno@clisp.org>
816         Improve INSTALL for Haiku.
817         * doc/install.texi (Particular Systems): Add a recommendation
818         which prefix to use on Haiku.
820 2008-12-19  Eric Blake  <ebb9@byu.net>
822         Fix typo in previous commit.
823         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
824         Fix typo.
826         Document some recently added macros.
827         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
828         parameter.
829         * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
830         <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
831         new macros.
832         (Set manipulation Macros) <m4_set_map_sep>: Likewise.
833         * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
834         * NEWS: Document new macros.
836 2008-12-18  Eric Blake  <ebb9@byu.net>
838         Fix separator in m4_stack_foreach_sep.
839         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
840         from prefix.
841         * tests/m4sugar.at (m4@&t@_stack): Enhance test.
843 2008-12-18  Eric Blake  <ebb9@byu.net>
845         Mention limitation of M4 1.4.x on builtin tokens.
846         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
847         ramification of M4 1.4.x's inability to pass builtin tokens
848         through text macros.
849         (Evaluation Macros) <m4_curry>: Likewise.
850         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
851         * NEWS: Mention subtle change in m4_dumpdef semantics.
853         Document m4_version_prereq.
854         * doc/autoconf.texi (Number processing Macros)
855         <m4_version_prereq>: Add documentation.
856         * NEWS: Mention it.
857         Reported by Bruno Haible.
859 2008-12-10  Jim Meyering  <meyering@redhat.com>
861         AC_HEADER_ASSERT: don't say assertions are disabled when they're not
862         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
863         report "checking whether to enable assertions... no", when they are
864         in fact enabled.  This is solely a bug in the output of configure.
865         In spite of saying "no", NDEBUG was not defined in that case.
866         Also, as noted by Eric Blake, leave assertions enabled upon
867         --enable-assert=INVALID.
869 2008-12-09  Eric Blake  <ebb9@byu.net>
871         Fix m4_location inside m4_wrap with m4 1.4.5.
872         * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
873         inside wrapped text if older m4 is detected.
874         Reported by William Pursell.
876 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
877         and Eric Blake  <ebb9@byu.net>
879         Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
880         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
881         rather than treating it as a synonym for --disable-assert.
882         * NEWS: Document the fix.
884 2008-12-06  William Pursell  <bill.pursell@gmail.com>  (tiny change)
886         Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
887         treat --enable-assert and --disable-assert equivalently.
888         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
890 2008-12-05  William Pursell  <bill.pursell@gmail.com>  (tiny change)
892         Fix some typos and grammatical errors in documentation.
893         * doc/autoconf.texi: Clean up some bad use of English.
895 2008-12-03  Eric Blake  <ebb9@byu.net>
897         Improve AC_STATE_SAVE.
898         * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
899         process by hoisting the uniqueness check into sed.
900         * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
901         MacOS bug.
903 2008-12-02  Eric Blake  <ebb9@byu.net>
905         Avoid MacOS readdir bug in testsuite.
906         * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
907         duplicated ls entries.
908         * THANKS: Update.
909         Reported by Bruce Dugan and others.
911 2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
913         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
914         error messages about `set -m'.
916 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
918         Fix a couple of test failures with dash.
919         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
920         exit status of `cd'.
921         * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
922         regeneration, to avoid timing effects.
924 2008-11-25  Eric Blake  <ebb9@byu.net>
926         Add m4_cleardivert.
927         * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
928         * lib/autotest/general.m4 (AT_INIT): Use it.
929         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
930         * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
931         * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
932         it.
933         * NEWS: Likewise.
934         Suggested by Paolo Bonzini.
936         Add safety check for m4_expand vs. diversions.
937         * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
938         diverted text.
939         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
940         safety check.
942 2008-11-24  Eric Blake  <ebb9@byu.net>
944         Fix typo in AS_MESSAGE_LOG_FD patch.
945         * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
947 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
949         More reliable signal handling in Autotest.
950         * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
951         Start parallel jobs in their own process group, enabling job
952         control in the shell if possible, for better signal handling.
953         Deal with INT, TERM, and HUP in the testsuite driver.  In the
954         parallel driver, propagate TSTP to jobs either as TSTP or as
955         STOP (to avoid fork bombs with ksh).
956         Inside the job processes, add PIPE handler to write back the
957         job token, so the master process does not hang.
958         Disable the parallel driver if job control is not provided or if
959         trap does not understand signal names.
960         * tests/autotest.at (parallel autotest and signals): New test,
961         exercises INT, TERM, and PIPE, serial and parallel, with and
962         without `make' in the loop.
963         Kudos to Richard Stevens for writing APUE.
965 2008-11-22  Eric Blake  <ebb9@byu.net>
967         Fix testsuite failure on Solaris.
968         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
969         failure status to 1.
971 2008-11-21  Eric Blake  <ebb9@byu.net>
973         Clean up AS_MESSAGE_LOG_FD usage.
974         * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
975         (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
976         (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
977         usage.
978         (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
979         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
980         (AS@&t@_MESSAGE_FD): New test.
981         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
982         Give more details about fd manipulation.
983         (File Descriptor Macros): Describe M4sh defaults for the fds.
985 2008-11-21  Eric Blake  <ebb9@byu.net>
987         Use shell function for AS_ERROR.
988         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
989         new shell function.
990         (AS_ERROR): Use it.
991         (_AS_LINENO_PREPARE): Break circular dependency.
992         (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
994 2008-11-21  Eric Blake  <ebb9@byu.net>
996         Fix typos in recent testsuite improvements.
997         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
998         Fix typo.
999         * NEWS: Clarify the potential impact to users.
1000         * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
1001         AT_DATA_M4SUGAR.
1002         (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
1003         (unusual file names): Test that the recent echo fix does not
1004         regress.  Fix quoting bug that made the test a no-op.
1005         Reported by Paolo Bonzini and Ralf Wildenhues.
1007 2008-11-21  Eric Blake  <ebb9@byu.net>
1009         Use modern m4sh constructs in autoconf.
1010         * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
1011         than AS_EXIT.
1013         Change the semantics of AS_EXIT without argument.
1014         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
1015         even if it is 0.
1016         (AS_ERROR): Guarantee non-zero status.
1017         * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
1018         we want non-zero status.
1019         * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
1020         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
1021         the documentation.
1022         <AS_SET_STATUS>: Don't overly restrict implementation.
1023         (Printing Messages) <AC_MSG_ERROR>: Describe better default.
1024         Suggestions by Paolo Bonzini and Ralf Wildenhues.
1026 2008-11-21  Eric Blake  <ebb9@byu.net>
1028         Add @anchors within Builtins and Usual Tools lists.
1029         * doc/autoconf.texi (Limitations of Builtins)
1030         (Limitatations of Usual Tools): Add anchors for tools called out
1031         by name.  Adjust callers to narrow in on tool of interest.
1033         Move case statement style discussion to m4 quoting section.
1034         * doc/autoconf.texi (Limitations of Builtins): Move comparison of
1035         quoting styles...
1036         (Balancing Parentheses): ...to this new node.
1037         Suggested by Ralf Wildenhues.
1039 2008-11-20  Eric Blake  <ebb9@byu.net>
1041         Factor more common code out of AT_CHECK into shell function.
1042         * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
1043         starts with -.  Move preparations...
1044         (AT_INIT) <at_fn_check_prepare_trace>
1045         <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
1046         ...into these new shell functions.
1047         <at_fn_check_newline>: Inline into only caller.
1048         (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
1050 2008-11-20  Eric Blake  <ebb9@byu.net>
1052         Handle version numbers as decimal, even if they start with 0.
1053         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
1054         interpreting leading zeros as octal.
1056 2008-11-20  Eric Blake  <ebb9@byu.net>
1058         Speed up AT_CHECK.
1059         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
1060         third and fourth arguments once.
1061         (_AT_CHECK): Don't re-expand expected output.  Rearrange code for
1062         fewer scans of arguments.
1063         (AT_CHECK): Update caller.
1064         (AT_INIT) <at_fn_filter_trace>: Drop parameter.
1065         * tests/m4sugar.at (m4@&t@_split): Protect test with
1066         quadrigraphs.
1068         Fix XFAIL related to AT_CHECK.
1069         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
1070         first argument once.
1071         (_AT_CHECK): Don't re-expand commands.
1072         * tests/autotest.at (Multiline command from M4 expansion): Remove
1073         XFAIL.
1074         * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
1075         * NEWS: Document the fallout.
1077 2008-11-20  Eric Blake  <ebb9@byu.net>
1079         Reduce forks in AC_DEFINE.
1080         * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
1081         (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
1082         AC_DEFINE_UNQUOTED.
1083         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
1084         * tests/torture.at (Substitute and define special characters):
1085         (Define to a 2000-byte string): Enhance tests to cover
1086         AC_DEFINE_UNQUOTED.
1087         (@%:@define header templates): Enhance test to cover #.
1089 2008-11-20  Eric Blake  <ebb9@byu.net>
1091         Improve m4_expand robustness, part 2.
1092         * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
1093         comments, by wrapping old implementation...
1094         (_m4_expand): ...as this, and renaming old core...
1095         (_m4_expand_): ...to this.
1096         (m4_text_box): Use lighter-weight _m4_expand.
1097         * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
1098         (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
1099         * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
1100         * tests/m4sugar.at (m4@&t@_expand): Enhance test.
1101         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
1102         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
1103         functionality.
1105         Improve m4_expand robustness, part 1.
1106         * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
1107         unbalanced `)'.
1108         * tests/m4sugar.at (m4@&t@_expand): New test.
1110 2008-11-20  Eric Blake  <ebb9@byu.net>
1112         Add m4_chomp, m4_esyscmd_s.
1113         * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
1114         New macros.
1115         * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
1116         them.
1117         (Text processing Macros) <m4_chomp>: Likewise.
1118         * NEWS: Likewise.
1119         * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
1121         Remove _m4_index.
1122         * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
1123         to make callers guarantee a match.
1124         (m4_init): Adjust caller.
1125         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
1126         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
1128         Describe different hacks for balancing ')' in case statements.
1129         * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
1130         exposition on various quoting styles.
1132 2008-11-20  Eric Blake  <ebb9@byu.net>
1134         Speed up _AS_QUOTE.
1135         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
1136         (_AS_QUOTE): ...here, delete unused second paramenter, and factor
1137         choice into...
1138         (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
1140 2008-11-20  Alfred G. de Wijn  <dwijn@iluvatar.eu.org>  (tiny change)
1142         For consistency, make temporary variable match language name.
1143         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
1144         Match the save/test variables' names to the FFLAGS/FCFLAGS being
1145         saved.
1146         * THANKS: Update.
1148 2008-11-19  Eric Blake  <ebb9@byu.net>
1150         Improve testsuite generation.
1151         * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
1152         (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@.  Use
1153         fewer macros.
1155 2008-11-18  Eric Blake  <ebb9@byu.net>
1157         Use fn for shell functions, func for autoconf CHECK_FUNCS.
1158         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
1159         function names.
1160         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
1161         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
1162         (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
1163         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
1164         (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
1165         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
1166         (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
1167         * lib/autotest/general.m4 (AT_INIT): Likewise.
1168         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
1169         (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
1170         (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
1171         (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
1172         * doc/autoconf.texi (Shell Functions): Likewise.
1174 2008-11-18  Eric Blake  <ebb9@byu.net>
1176         Alter default value of AS_EXIT.
1177         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
1178         parameter be optional.
1179         (AS_EXIT): Use it to make better default.
1180         (_AS_DETECT_BETTER_SHELL): Use new default.
1181         * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
1182         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
1183         * tests/m4sh.at (AS@&t@_EXIT): Update test.
1184         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
1185         new default behavior.
1186         (Limitations of Builtins) <trap>: Adjust to use new default.
1187         * NEWS: Mention the semantic change.
1188         Suggested by Ralf Wildenhues.
1190         Update example to match actual Tru64 behavior.
1191         * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
1192         the example.
1193         Reported by Ralf Wildenhues.
1195         Add AS_SET_STATUS, make AS_EXIT more efficient.
1196         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
1197         macros.
1198         (AS_EXIT): Rewrite to avoid forks.
1199         (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
1200         (AS_PREPARE, _AS_PREPARE): Add new preparation.
1201         * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
1202         Document.
1203         * NEWS: Mention new macro.
1204         * tests/m4sh.at (AS@&t@_EXIT): New test.
1205         (BASENAME_TEST): Sort.
1207         Document Tru64 bug with 'set -e'.
1208         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
1209         bug in mixing 'set -e' with 'trap .. 0'.
1210         Reported by Ralf Wildenhues.
1212         Document a Solaris /bin/sh bug with 'set -e'.
1213         * doc/autoconf.texi (Shell Functions): Mention the bug.
1215 2008-11-17  Eric Blake  <ebb9@byu.net>
1217         Detect empty list in AS_FOR.
1218         * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
1219         properly.
1220         * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
1221         Reported by Paolo Bonzini.
1223 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1225         Use a different workaround for an automake quirk.
1226         * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1227         (distclean_generic): New helper variable, to fool automake.
1228         ($(distclean_generic)): Depend on clean-local, to prevent
1229         the race in the two rules with accessing and removing
1230         $(TESTSUITE).
1231         Report by Eric Blake.
1233         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
1234         unbalanced parentheses from last change.
1235         Spotted by Eric Blake, fix suggested by Paolo Bonzini.
1237         Fix exit status of expr version of as_func_arith.
1238         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
1239         status of 1 of expr also as success, to avoid failure if the
1240         computation result is zero.  Fixes test failures with IRIX sh,
1241         where the expr variant of as_func_arith is used.
1243         Do not use read-only variable $status.
1244         * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
1245         $status, for zsh.
1247 2008-11-15  Eric Blake  <ebb9@byu.net>
1249         Use the new AS_FOR function.
1250         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
1251         abstraction for cleaner code.
1252         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
1254         Add AS_FOR, undocumented for now.
1255         * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
1256         * tests/m4sh.at (AS@&t@_FOR): New test.
1257         Suggested by Paolo Bonzini.
1259 2008-11-13  Eric Blake  <ebb9@byu.net>
1261         Optimize single-argument loop.
1262         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
1263         loop only has one argument.
1264         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
1266 2008-11-13  Eric Blake  <ebb9@byu.net>
1268         Fix AS_ESCAPE usage bugs.
1269         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
1270         (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
1271         escapes.
1272         (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
1273         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
1274         caveat due to conditional AS_ESCAPE.
1275         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1277 2008-11-12  Eric Blake  <ebb9@byu.net>
1279         Whitespace reduction in configure.
1280         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
1281         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
1282         Likewise.
1283         (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
1284         depend on it.
1286 2008-11-12  Eric Blake  <ebb9@byu.net>
1288         Make M4sh, not autoconf, guarantee sane $SHELL.
1289         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
1290         SHELL...
1291         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
1292         * doc/autoconf.texi (Initialization Macros): Document the effect
1293         on SHELL.
1294         * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
1295         Reported by Ralf Wildenhues.
1297 2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1299         Wrap keywords in `testsuite --list' output.
1300         * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
1301         avoid lint warnings from gawk, wrap keyword lists to stay below
1302         80 characters per line if possible.
1303         * tests/autotest.at (Keyword wrapping): New test.
1305         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
1307         * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
1308         typos.
1310 2008-11-10  Eric Blake  <ebb9@byu.net>
1312         Work around <=m4-1.4.9 bug in m4_format.
1313         * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
1314         (m4_init): Only use it in older m4.
1315         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
1316         m4_format bug in older m4.
1317         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
1318         Reported by Bob Proulx.
1320 2008-11-10  Eric Blake  <ebb9@byu.net>
1322         Match upstream standards.texi.
1323         * doc/standards.texi: Resync from upstream.
1324         * doc/fdl-1.3.texi: Rename...
1325         * doc/fdl.texi: ...to this.
1326         * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
1327         users.
1328         * doc/autoconf.texi (GNU Free Documentation License): Likewise.
1329         * cfg.mk (fetch): Likewise.
1331         Yet more FDL 1.3 fallout.
1332         * NEWS: Mention manual license change.
1334 2008-11-10  Eric Blake  <ebb9@byu.net>
1336         Avoid some regex uses.
1337         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
1338         than m4_bpatsubst to grab string prefix.
1339         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
1340         (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
1341         (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
1342         m4_bpatsubst to change bytes.
1343         (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
1344         m4_bmatch to find byte.
1345         (_AC_CONFIG_COMPUTE_DEST): New helper macro.
1347         Use more efficient macros in AC_CONFIG_SUBDIRS.
1348         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
1349         m4_map_args_w.
1350         (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
1351         (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
1353         Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
1354         * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
1355         and avoid typo.
1356         (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
1357         (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
1358         helper macros.
1359         (AC_LIBSOURCES): Use m4_map_args.
1361         Use more efficient macros in AC_CHECK_TYPES.
1362         * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
1363         m4_map_args_sep.
1364         (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
1366         Use more efficient macros in AC_CHECK_HEADERS.
1367         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
1368         (AH_CHECK_HEADERS_DIRENT): Rename...
1369         (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
1370         argument, rather than a list.
1371         (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
1372         Adjust callers to use m4_map_args_w.
1373         (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
1374         (_AC_CHECK_HEADER_ONCE): New helper macro.
1376         Use more efficient macros in AC_CHECK_FUNCS.
1377         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
1378         (_AH_CHECK_FUNC): ...and take only one argument, rather than a
1379         list.
1380         (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
1381         m4_map_args_w.
1382         (_AC_CHECK_FUNC_ONCE): New helper macro.
1383         (AC_REPLACE_FUNCS): Use m4_map_args_w.
1385         Use more efficient macro in AT_INIT.
1386         * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
1388 2008-11-10  Eric Blake  <ebb9@byu.net>
1390         More FDL 1.3 fallout.
1391         * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
1392         * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
1393         dependency changes.
1394         * doc/fdl.texi: Delete.
1395         * doc/gnu-oids.texi: New upstream file.
1396         * doc/standards.texi: Resync from upstream.
1397         * doc/make-stds.texi: Likewise.
1398         * build-aux/announce-gen: Likewise.
1399         * build-aux/texinfo.tex: Likewise.
1401 2008-11-10  Clinton Roy  <clinton.roy@gmail.com>  (tiny change)
1403         Pass autoreconf -I to aclocal -I
1404         * bin/autoreconf.in (parse_args): Pass --include to aclocal.
1405         * doc/autoconf.texi (autoreconf Invocation): Updates for above.
1406         * NEWS: Document it.
1407         * THANKS: Update.
1409 2008-11-10  Eric Blake  <ebb9@byu.net>
1411         Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
1412         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
1413         * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
1414         the print workaround.
1415         Idea by Paolo Bonzini.
1417 2008-11-10  Eric Blake  <ebb9@byu.net>
1419         Provide a section on all tools allowed in GNU Coding Standards.
1420         * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
1421         <wait>: Add section.
1422         (Limitations of Usual Tools) <awk>: Make table entry consistent.
1423         <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
1425 2008-11-09  Paolo Bonzini  <bonzini@gnu.org>
1427         Balance parentheses in _AC_CACHE_DUMP.
1428         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
1429         without introducing \).
1431 2008-11-07  Eric Blake  <ebb9@byu.net>
1433         Further doc updates for AC_CHECK_HEADER change.
1434         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
1435         new default, and make it more obvious that using [-] is generally
1436         broken.
1438 2008-11-07  Eric Blake  <ebb9@byu.net>
1440         * ChangeLog: Enforce UTF-8 encoding.
1442 2008-11-06  Eric Blake  <ebb9@byu.net>
1444         Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
1445         * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
1446         argument to speed up check.
1448 2008-11-06  Eric Blake  <ebb9@byu.net>
1450         Speed up AC_CHECK_TYPE.
1451         * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
1452         regex when enough arguments are present.
1454 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
1456         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
1457         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
1458         sequence when the program's stderr was empty, while providing a
1459         conftest.err file even in that case.
1460         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
1462 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
1464         Change `present but cannot be compiled' behavior to use compiler result.
1465         * NEWS: Document it.
1466         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
1467         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
1468         and adjust warning.
1469         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
1471 2008-11-05  Eric Blake  <ebb9@byu.net>
1473         Add m4_map_args_w.
1474         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
1475         for now.
1476         (_m4_split): Allow user control over separator.
1477         (m4_split): Adjust caller.
1478         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
1479         m4_map_args_w.
1480         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
1481         (M4 loops): Test new interface.
1483         Use m4_set_map_sep in more places.
1484         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
1485         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
1486         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
1487         Enhance documentation.
1488         <m4_set_foreach>: Mention faster alternative.
1489         (Looping constructs) <m4_foreach>: Likewise.
1491         Unify m4_set_foreach and m4_set_map.
1492         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
1493         for now.
1494         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1495         (m4_set_map): Adjust callers.
1497         Use _m4_foreach in more places.
1498         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
1499         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
1500         m4_foreach.
1501         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
1502         instead of m4_foreach or m4_map_args.
1504         Unify _m4_foreach and _m4_map.
1505         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
1506         (_m4_foreach): ...this.
1507         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
1508         (m4_map_args, m4_map_args_sep): Adjust callers.
1509         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
1510         (_m4_foreach): ...to this, overwriting old definition.
1512 2008-11-04  Eric Blake  <ebb9@byu.net>
1514         Add m4_map_args_sep, undocumented for now.
1515         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
1516         (_m4_map): Change API to cover more of m4_map*.
1517         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
1518         (m4_map_args): Delete.
1519         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
1520         test.
1522         Improve m4_for performance.
1523         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
1524         avoid m4_define by some clients.
1525         (m4_for): Adjust caller.
1526         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
1527         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
1528         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
1529         (_m4_list_cmp): Likewise.
1531 2008-11-04  Eric Blake  <ebb9@byu.net>
1533         Adjust expected output.
1534         * tests/torture.at (Missing templates): Reflect added quoting.
1535         Detected by Bob Proulx's buildbot.
1537         Reject arguments with leading =.
1538         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
1539         missing variable name, with fewer forks.  Quote invalid arguments
1540         in message, in case they include spaces.
1541         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
1542         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
1543         * lib/autotest/general.m4 (AT_INIT): Likewise.
1544         * tests/base.at (configure arguments): Test this.
1545         Reported by Jeff Squyres.
1547 2008-11-04  Eric Blake  <ebb9@byu.net>
1549         Upgrade to FDL 1.3.
1550         * cfg.mk (fetch): Add fdl-1.3.texi.
1551         * .gitattributes: Likewise.
1552         * doc/autoconf.texi (GNU Free Documentation License): Point to new
1553         upstream version.
1554         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
1555         (standards_TEXINFOS): Mention current dependence on older license.
1556         * doc/fdl-1.3.texi: New upstream file.
1557         * GNUmakefile: Resync from upstream.
1558         * build-aux/announce-gen: Likewise.
1559         * build-aux/texinfo.tex: Likewise.
1561 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1563         Point at AM_SUBST_NOTMAKE.
1564         * doc/autoconf.texi (Setting Output Variables): Add cross
1565         reference to new Automake macro AM_SUBST_NOTMAKE.
1567 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1569         Eliminate a fork per invocation of AC_LANG_CONFTEST.
1570         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
1571         AC_LANG_SOURCE(C).
1572         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
1573         top of confdefs.h, which also works around cpp deficiencies.
1574         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
1575         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
1576         (AC_LANG_CONFTEST()): New.
1578 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1580         Reorganize definition of languages.
1581         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
1582         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
1583         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
1584         Replace definitions with usage of AC_LANG_DEFINE.
1585         (Sections 2b, 2c): Delete.
1586         (Sections 1b, 1c): Move after section 2a.
1587         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
1588         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
1589         with usage of AC_LANG_DEFINE.
1590         (AC_LANG_ERLANG): Define using AU_DEFUN.
1591         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
1592         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
1593         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
1594         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
1595         definitions with usage of AC_LANG_DEFINE.
1596         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
1598 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
1600         Use preprocessor in cpp tests.
1601         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
1603 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
1605         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
1606         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
1607         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
1608         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
1609         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
1610         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
1611         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
1612         Give better name.
1614 2008-10-31  Eric Blake  <ebb9@byu.net>
1616         Support multiple undiverts and dumpdefs at once.
1617         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
1618         arguments.
1619         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
1620         <m4_undivert>: Document argument list change.
1621         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
1622         them.
1624         Simplify diversion stack handling.
1625         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
1626         avoid extra newlines.
1627         (m4_divert_stack_push): Compute location here, rather than caller.
1628         (m4_divert_push): Update caller.
1629         (m4_divert): Likewise, and also adjust current diversion name.
1630         (m4_divert_pop): Simplify rule that diversion stack must never go
1631         empty.
1632         (_m4_require_call): Bypass diversion stack when collecting
1633         required macro text.
1634         (m4_init): Set current diversion without requiring m4_init.
1635         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
1636         * lib/autotest/general.m4 (AT_INIT): Likewise.
1637         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
1638         text to run prior to m4sugar cleanup.
1639         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
1640         optional argument.
1641         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
1642         * NEWS: Undo blurb about m4_divert.
1643         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
1645         Simplify expansion stack handling.
1646         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
1647         always output 'top level'.
1648         (_m4_expansion_stack_entry): New macro, to format the string only
1649         when needed.
1650         (m4_expansion_stack_push): Only push a macro name.
1651         (m4_warn, _m4_defun_pro): Update callers.
1652         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
1653         (_m4_defun_epi, m4_fatal): Inline the calls.
1654         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
1656 2008-10-30  Eric Blake  <ebb9@byu.net>
1658         Better documentation of AC_CHECK_HEADER's fourth argument.
1659         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
1660         how to suppress compiler or preprocessor header check.
1661         Reported by Jeff Squyres.
1663 2008-10-30  Eric Blake  <ebb9@byu.net>
1665         Fix LINENO testsuite failure.
1666         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
1667         undocumented _AS_PREPARE, and move unset earlier in script.
1669         Update LINENO documentation.
1670         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1671         (Special Shell Variables) <LINENO>: Mention that LINENO support in
1672         child scripts may be broken.  Modernize example.
1674 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1676         Do not check for $LINENO in generated scripts.
1677         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
1678         and explain why.
1680 2008-10-30  Eric Blake  <ebb9@byu.net>
1682         Don't check for non-POSIX extensions in suggested tests.
1683         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
1684         we still use += if available, but should not reject shells (like
1685         dash) that don't provide it.
1686         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
1687         Reported by Paolo Bonzini.
1689 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1691         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
1692         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
1693         with a given CONFIG_SHELL, move it to SHELL.
1694         (AS_INIT_GENERATED): Re-export SHELL.
1696 2008-10-30  Eric Blake  <ebb9@byu.net>
1698         Work around Solaris /bin/sh case bug.
1699         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
1700         a non-empty command list.
1701         (AS_CASE): Always guarantee that a case will match.
1702         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
1703         Solaris bug, and mention AS_CASE.
1705 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
1707         Require _AS_CR_PREPARE where appropriate.
1708         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
1709         (AS_PREPARE): Require _AS_CR_PREPARE.
1711         Avoid walking the entire PATH when looking for a better shell.
1712         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
1713         as the PATH is walked.
1715         Add third argument to _AS_PATH_WALK
1716         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
1717         (_AS_PATH_WALK): Add third optional argument.
1719         Trim down the length of the shell function test.
1720         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
1722 2008-10-29  Eric Blake  <ebb9@byu.net>
1724         Fix LINENO detection to work around bash and pdksh limitations.
1725         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
1726         that we can choose which of two tests to trust.
1727         (_AS_RUN): Set flag when alternate shell is running.
1728         (_AS_DETECT_EXPAND): New macro.
1729         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
1731 2008-10-29  Eric Blake  <ebb9@byu.net>
1733         Mention proper fix for zsh users.
1734         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
1735         version known to work.
1736         Suggested by Paolo Bonzini.
1738         Document current beta-quality status.
1739         * configure.ac: Reflect fact that change to git-version-gen
1740         produces -, but not always a letter, on non-release builds.
1741         * BUGS: Mention known issues.
1742         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
1743         debugging platforms with deficient shells.
1745 2008-10-29  Eric Blake  <ebb9@byu.net>
1747         Alter signature of AS_INIT_GENERATED.
1748         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
1749         manage here-doc and chmod in place.  This also allows future
1750         changes for optimizing the child via diversion/m4_wrap magic.
1751         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
1752         caller.
1753         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1754         Update the documentation.
1756 2008-10-29  Eric Blake  <ebb9@byu.net>
1758         Use _m4_stack_reverse in m4_set.
1759         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
1760         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
1761         implementation.
1762         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1763         (m4_set_map): Adjust callers to new API.
1765         Add m4_stack_foreach_sep.
1766         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
1767         (m4_stack_foreach_sep_lifo): New macros.
1768         (_m4_stack_reverse): Adjust prototype, to support it.
1769         (m4_copy): Use fewer macros.
1770         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
1771         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
1773 2008-10-29  Bruno Haible  <bruno@clisp.org>
1775         Mention Sun WorkShop 6.2 OpenMP bug.
1776         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
1778 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
1780         Rewrite handling of diversion and expansion stack.
1781         * NEWS: Document stricter requirement on m4_init.
1782         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
1783         _m4_divert_n_stack.
1784         (_m4_divert_stack_push): New.
1785         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
1786         m4_popdef.
1787         (m4_divert_push): Use _m4_divert_stack_push.
1788         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
1789         pop _m4_divert_stack instead of m4_divert_stack.
1790         (m4_expansion_stack): New.  Update comment above it.
1791         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
1792         _m4_expansion_stack instead of m4_expansion_stack.
1793         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
1794         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
1795         instead of the definition, and compensate for the trailing newline
1796         in the expansion.
1797         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
1798         _m4_expansion_stack instead of m4_expansion_stack.
1799         (m4_newline): Expand first argument after the newline.
1800         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
1801         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
1802         * tests/tools.at (whitespace in file names, the empty token): Likewise.
1804 2008-10-28  Eric Blake  <ebb9@byu.net>
1806         Reduce forks while searching for better shell.
1807         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
1808         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
1809         already does the job.
1810         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
1811         0 context.
1813         Undo needless efforts to protect $2 in $2_t.
1814         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
1815         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
1817 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1819         Fix parallel test execution output lossage.
1820         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
1821         standard output and standard error before the test, use append
1822         mode for writing.
1823         * THANKS: Update.
1824         Caught by Bob Proulx' build daemons, analysis and suggested fix
1825         by Stéphane Chazelas.
1827 2008-10-28  Eric Blake  <ebb9@byu.net>
1829         Use m4_map_args in more places.
1830         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
1831         (m4_undefine, m4_combine): Use m4_map_args, rather than
1832         m4_foreach.
1834 2008-10-28  Eric Blake  <ebb9@byu.net>
1836         Override m4 1.4.x dumpdef, as it breaks autom4te.
1837         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
1838         (m4_copy): Formatting touchup.
1839         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
1840         semantic differences as well as m4_dumpdefs.
1841         * NEWS: Likewise.
1842         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
1844 2008-10-28  Eric Blake  <ebb9@byu.net>
1846         Allow m4sugar to be used without autom4te, such as in bison.
1847         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
1848         alternate escape sequences can be used.
1849         (m4_text_box): Likewise.  Don't output quadrigraphs.
1850         (m4_qdelta): Delete unused macro.
1852 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1854         Add m4_stack_foreach and m4_stack_foreach_lifo.
1855         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
1856         (m4_stack_foreach, m4_stack_foreach_lifo): New.
1857         (m4_copy): Use m4_stack_foreach and m4_curry.
1858         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
1859         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
1860         * tests/m4sugar.at (m4_stack_foreach): New test.
1862 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1864         use a shell function for AC_TYPE_INTx_T
1865         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
1866         New.
1867         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
1869 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1871         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
1872         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
1873         _AC_CHECK_HEADER_NEW): Likewise.
1874         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
1876 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
1878         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
1879         (AC_CHECK_MEMBER): Define and use a shell function.
1881 2008-10-27  Eric Blake  <ebb9@byu.net>
1883         Prefer m4_fatal over AC_FATAL.
1884         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
1885         (AC_CHECK_MEMBER): Use non-obsolete macro name.
1886         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
1887         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
1888         Likewise.
1889         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
1890         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
1891         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
1893 2008-10-27  Eric Blake  <ebb9@byu.net>
1895         Avoid raw carriage return in scripts.
1896         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
1897         via tr, rather than with literal byte.
1898         * THANKS: Update.
1899         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
1901 2008-10-27  Eric Blake  <ebb9@byu.net>
1903         Use AS_VAR_ARITH.
1904         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
1905         clients with AS_VAR_ARITH instead.
1906         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
1907         macro.
1908         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
1909         * tests/torture.at (Torturing config.status): Likewise.
1910         * tests/tools.at (autom4te --force): Likewise.
1912         Add AS_VAR_ARITH.
1913         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
1914         (AS_VAR_ARITH): New macros.
1915         (_AS_PREPARE, AS_PREPARE): Emit preparation.
1916         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
1917         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
1918         Document new macro.
1919         (Limitations of Usual Tools) <expr>: Mention portability problem
1920         if first argument starts with -.
1921         (Shell Substitutions) <$((expression))>: Mention it.
1922         * NEWS: Likewise.
1924 2008-10-27  Eric Blake  <ebb9@byu.net>
1926         Use read, rather than `cat`, for safe one-line files.
1927         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
1928         known that the file has only one line and no \.
1929         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
1931 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1933         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
1934         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
1935         (_AC_COMPUTE_INT_BODY): New.
1936         (AC_COMPUTE_INT): Define and use a shell function.
1938 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1940         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
1941         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
1942         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
1944 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1946         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
1947         (AC_CHECK_DECL): Use a shell function.
1949 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
1951         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
1952         _AC_CHECK_HEADER_NEW): Use a shell function.
1954 2008-10-25  Eric Blake  <ebb9@byu.net>
1956         Track recent copyright assignments.
1957         * AUTHORS: Update.
1959 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
1960         and Eric Blake  <ebb9@byu.net>
1962         Use a shell function for _AC_CHECK_HEADER_MONGREL.
1963         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
1964         macro.
1965         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
1967 2008-10-25  Eric Blake  <ebb9@byu.net>
1969         Simplify _AS_PREPARE handling of functions.
1970         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
1971         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
1972         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
1973         this task easier.
1974         (_AS_LINENO_PREPARE): Make more efficient.
1975         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
1976         (_AS_UNSET_PREPARE): Avoid blank newline.
1977         (AS_INIT): Emit as_func_unset alongside other functions.
1979 2008-10-25  Eric Blake  <ebb9@byu.net>
1981         Document AS_EXIT.
1982         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
1983         this macro.
1984         (Limitations of Builtins): Mention AS_EXIT.
1985         * NEWS: Mention it.
1987         Use AS_EXIT in autoconf.as.
1988         * bin/autoconf.as: Consistently use AS_EXIT.
1990 2008-10-24  Eric Blake  <ebb9@byu.net>
1992         Fix m4 underquoting in AC_PROG_INSTALL.
1993         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
1994         character ranges.
1996         Speed up AC_CHECK_HEADER.
1997         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
1999 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
2000         and Eric Blake  <ebb9@byu.net>
2002         Use a shell function for AC_CHECK_FUNC.
2003         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
2004         (AC_CHECK_FUNC): Use a shell function.
2005         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
2007 2008-10-24  Eric Blake  <ebb9@byu.net>
2009         Work around fact that gnulib-tool doesn't use m4_copy.
2010         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
2011         define, so that an initial location is present, to account for
2012         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
2014         Make m4_defun_init more robust.
2015         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
2016         names, and correct number of arguments.
2017         (m4_copy): Also set up location of the copy.
2018         (m4_defun): When copied, use current macro name, not original.
2019         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
2020         Update test.
2022         Optimize clients of AS_REQUIRE.
2023         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
2024         argument.
2025         (m4_defun_init): New undocumented macro.
2026         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
2027         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
2028         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
2029         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
2030         simplify these macros once the one-shot initialization is
2031         complete.
2032         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
2033         test.
2035         Improve m4_copy.
2036         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
2037         public use.
2038         (_m4_copy): New macro, which preserves pushdef stacks.
2039         (_m4_defun_pro_outer): Bypass it, for speed.
2040         (m4_init): Bypass new implementation, since it breaks on m4_defn.
2041         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
2042         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
2043         now that m4_copy checks this.
2044         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
2045         this, as well as m4_rename.
2046         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
2047         renaming builtins, since it breaks on m4_ifdef.
2048         * NEWS: Likewise.
2049         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2051 2008-10-24  Eric Blake  <ebb9@byu.net>
2053         AC_FUNC_GETGROUPS: Revert regression.
2054         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
2055         ac_cv_func_getgroups_works=no when it is not available.
2057 2008-10-23  Eric Blake  <ebb9@byu.net>
2059         Whitespace cleanup.
2060         * lib/autoconf/fortran.m4: Consistently use tabs.
2062 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
2064         For gfortran on sh, ignore -little.
2065         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
2066         list of ignored arguments.
2067         * THANKS: Update.
2069 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
2071         Eliminate empty lines after AC_*_IFELSE.
2072         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2073         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
2075 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
2077         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
2078         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
2079         Return a boolean status code based on $ac_status.
2081 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
2083         Ensure actions can look at conftest* files.
2084         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
2085         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
2086         Move rm commands, except IPA files and Apple debug symbols...
2087         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
2088         _AC_RUN_IFELSE): ...in here.
2089         * tests/compile.at: Add regression test.
2091 2008-10-23  Eric Blake  <ebb9@byu.net>
2093         Remove excess dnl from m4sh.
2094         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
2095         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
2096         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
2097         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
2098         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
2099         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
2100         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
2101         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
2102         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
2103         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
2105 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
2106         and Eric Blake  <ebb9@byu.net>
2108         Use a shell function for _AC_RUN_IFELSE.
2109         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
2110         (_AC_RUN_IFELSE): Use a shell function.
2111         (_AC_RUN_LOG): Avoid subshell for logging.
2113 2008-10-23  Eric Blake  <ebb9@byu.net>
2115         Formatting tweak: balance () with m4sh case statements.
2116         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
2117         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
2118         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
2119         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
2120         allow output of strategic shell comments.
2121         (AS_VERSION_COMPARE): Use AS_CASE.
2122         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
2124 2008-10-22  Jim Meyering  <meyering@redhat.com>
2126         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
2127         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
2128         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
2129         it is set to "yes" in the environment and configure is run on
2130         a system like mingw that lacks the getgroups function, it would
2131         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
2132         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
2134 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
2135         and Eric Blake  <ebb9@byu.net>
2137         Use a shell function for _AC_LINK_IFELSE.
2138         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
2139         (_AC_LINK_IFELSE): Use a shell function.
2141 2008-10-22  Eric Blake  <ebb9@byu.net>
2143         Fix autoconf logging commands.
2144         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
2145         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
2146         (_AC_DO_ECHO): Likewise, and use fewer dnl.
2147         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
2149 2008-10-22  Eric Blake  <ebb9@byu.net>
2151         Fix testsuite failure.
2152         * tests/mktests.sh (ac_exclude_list): Don't generate test for
2153         AC_REQUIRE_SHELL_FN.
2155 2008-10-21  Eric Blake  <ebb9@byu.net>
2157         Improve wording related to automake and autotest.
2158         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
2159         relation to automake.  Mention dependency on package.m4.
2160         Consolidate examples.  Define AUTOM4TE.
2161         * THANKS: Update.
2162         Reported by William Pursell.
2164 2008-10-21  Eric Blake  <ebb9@byu.net>
2166         Allow AS_VAR_SET_IF in shell lists.
2167         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
2168         line.
2169         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
2170         provided by AS_VAR_SET_IF.
2171         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
2172         clients.
2173         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2174         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
2176         Allow AS_VAR_IF in shell lists.
2177         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
2178         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
2179         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
2180         Likewise.
2181         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
2182         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
2183         (_AC_CHECK_HEADER_DIRENT): Likewise.
2184         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
2185         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
2186         Likewise.
2187         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
2189         Allow AS_CASE in shell lists.
2190         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
2191         side effects.  Allow continuation of script on same line as esac.
2192         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
2193         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
2194         * NEWS: Document the subtle change.
2196         Allow AS_IF in shell lists.
2197         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
2198         side effects.  Allow continuation of script on same line as fi.
2199         (_AS_DETECT_BETTER_SHELL): Adjust clients.
2200         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
2201         given by AS_IF.
2202         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
2203         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
2204         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
2205         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2206         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
2207         (Polymorphic Variables): Move mention of dnl to the only two
2208         AS_VAR functions that need it.
2210 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
2211         and Eric Blake  <ebb9@byu.net>
2213         Use a shell function for _AC_COMPILE_IFELSE.
2214         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
2215         (_AC_COMPILE_IFELSE): Use a shell function.
2217 2008-10-21  Eric Blake  <ebb9@byu.net>
2219         Use AS_VAR_APPEND.
2220         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
2221         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
2222         (_AC_LIBOBJS_NORMALIZE): Likewise.
2223         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
2224         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
2225         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
2226         * lib/autotest/general.m4 (AT_INIT): Likewise.
2228         Add AS_VAR_APPEND.
2229         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
2230         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
2231         (AS_PREPARE, _AS_PREPARE): Emit preparation.
2232         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
2233         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
2234         Document new macro.
2235         <AS_VAR_SET>: Mention ramification of `""` rules.
2236         * NEWS: Mention new macro.
2238 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
2239         and Eric Blake  <ebb9@byu.net>
2241         Use a shell function for _AC_PREPROC_IFELSE.
2242         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
2243         (_AC_PREPROC_IFELSE): Use a shell function.
2244         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
2245         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
2246         been provided.
2248 2008-10-21  Eric Blake  <ebb9@byu.net>
2250         Add banners to generated files.
2251         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
2252         existing banner.
2253         (AS_INIT): Add new banners at strategic points.
2254         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
2255         make consistent with other banners.
2256         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
2258 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
2260         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
2261         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
2262         (m4_divert(SHELL_FN)): New.
2264 2008-10-20  Eric Blake  <ebb9@byu.net>
2266         Avoid unportable use of echo in testsuite.
2267         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
2268         contains backslash.
2270 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
2272         Make sure that nested AS_REQUIRE do not lose the desired diversion.
2273         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
2274         passing it to m4_divert_require, so that its content is not used
2275         anymore.
2276         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
2278 2008-10-18  Eric Blake  <ebb9@byu.net>
2280         Document bugs in { } handling.
2281         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
2282         empty list.
2284         Fix some testsuite failures introduced two days ago.
2285         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
2286         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
2287         API.
2288         Reported by Ralf Wildenhues.
2290 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2292         Show how to extract single substitutions from config.status.
2293         * doc/autoconf.texi (config.status Invocation): Show example
2294         using `--file=-'.
2296 2008-10-17  Eric Blake  <ebb9@byu.net>
2298         Add m4_curry.
2299         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
2300         * tests/m4sugar.at (m4@&t@_map_args): Rename...
2301         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
2302         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
2303         currying as a way to add parameters.
2304         (Evaluation Macros) <m4_curry>: Document the new macro.
2305         * NEWS: Likewise.
2307         Improve suggested test filtering.
2308         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
2309         extracted from...
2310         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
2311         check for an empty required set.
2313         Add m4_set_map.
2314         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
2315         * tests/m4sugar.at (m4@&t@_set): Enhance test.
2316         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
2317         Document it.
2318         * NEWS: Likewise.
2320         Document m4_map_args.
2321         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
2322         Rename...
2323         (m4_map_args, m4_map_args_pair): ...to these names, and document.
2324         (m4_version_unletter): Use the interface.
2325         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
2326         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
2327         Perform same renames.
2328         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
2329         * tests/m4sugar.at (m4@&t@_map_args): New test.
2330         (recursion): Adjust caller.
2331         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
2332         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
2333         this interface.
2334         * NEWS: Mention the new macros.
2336 2008-10-17  Eric Blake  <ebb9@byu.net>
2338         Reduce vertical whitespace in configure.
2339         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
2340         m4 side effect initializations.
2341         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
2343 2008-10-17  Eric Blake  <ebb9@byu.net>
2345         Document AS_VAR interfaces.
2346         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
2347         (Polymorphic Variables): New node.
2348         * NEWS: Update accordingly.
2350         Test AS_VAR interfaces.
2351         * tests/m4sh.at (AS@&t@_VAR): New test.
2352         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
2353         _AS_TR_SH_PREPARE at top level, rather than argument collection.
2354         (AS_TR_SH): Support command substitution.
2356         Add AS_VAR_COPY.
2357         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
2358         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
2359         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
2360         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2361         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
2363         Sort AS_VAR_* interfaces.
2364         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
2365         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
2366         no code changes.
2368 2008-10-16  Eric Blake  <ebb9@byu.net>
2370         Allow comments before functions emitted by m4sh.
2371         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
2372         argument.  Supply closing comment, to ease readability.
2373         (_AS_MKDIR_P_PREPARE): Adjust caller.
2374         (_AS_UNSET_PREPARE): Add comment.
2376         Add AS_FUNCTION_DESCRIBE.
2377         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
2378         * lib/autotest/general.m4 (AT_INIT): Use it.
2380 2008-10-16  Eric Blake  <ebb9@byu.net>
2382         Speed up m4_qlen with caching.
2383         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
2384         (m4_qlen): Cache results for speed.
2386 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
2388         Add a testcase using more then one language.
2389         * tests/compile.at (Multiple languages): New test.
2391 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
2393         Fix Libtool's config.lt test.
2394         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
2395         expanding it.
2397 2008-10-15  Eric Blake  <ebb9@byu.net>
2399         Break circular require chain in _AS_LINENO_PREPARE.
2400         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
2401         disabled when reporting LINENO failure, since logging requires
2402         LINENO.
2403         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
2404         not m4_rename, since the latter is undocumented.
2405         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
2406         m4_rename, as it does not yet handle pushdef stacks.
2407         Reported by Ralf Wildenhues.
2409 2008-10-15  Eric Blake  <ebb9@byu.net>
2411         Cleanups to previous patches.
2412         * doc/autoconf.texi (Portable Shell): Minor edits.
2413         (Limitations of Builtins): Touch up wording.
2414         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
2415         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
2417 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2419         Updates to shell portability documentation.
2420         * doc/autoconf.texi: Updates all references to "Portable Shell" and
2421         "Limitations of Builtins" to use three-argument commands.
2422         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
2423         (Portable Shell): Move here discussion about "Where is the POSIX
2424         shell?"  Mention that M4sh provides a SVR2 shell and takes care
2425         of unsetting variables if necessary.  Talk about M4sh and not only
2426         Autoconf-generated scripts.
2427         (Special Shell Variables): Talk about M4sh and not only
2428         Autoconf-generated scripts.  Don't talk about things that Autoconf
2429         does not do.  Mention problems of $LINENO with shell functions.
2430         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
2431         discussion of eval bugs before discussion on proper use of eval.
2432         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
2433         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
2434         * NEWS: Update list of documented M4sh macros.
2436 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2438         Assume a (possibly buggy) `unset' is present after a
2439         `better shell' was found.
2440         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
2441         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
2442         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
2443         alias for AS_UNSET, for backwards compatibility.
2444         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
2445         the shell does not support unset.
2446         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
2447         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
2448         (AS_UNSET): Assume it is there but it might fail if the variable is
2449         not set.  Use it throughout instead of $as_unset.
2451 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2453         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
2454         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
2455         m4_require of _AS_DETECT_BETTER_SHELL.
2456         (_AS_CLEANUP): Add it here.
2457         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
2458         to _AS_CLEANUP.
2459         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
2460         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
2461         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
2462         (AS_INIT): Add m4_provide of itself.
2464 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2466         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
2467         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
2468         "test x$foo = xyes".
2470 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2472         Trim down the size of the better-shell test.
2473         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
2474         snippets into shell variables.
2475         (_AS_RUN): Rewrite.
2477 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2479         Support a stack of LINENO values for AS_MESSAGE.
2480         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
2481         the line number emitted to the log file.
2482         (AS_LINENO_PUSH, AS_LINENO_POP): New.
2483         * tests/m4sh.at (LINENO Stack): New test.
2485 2008-10-14  Eric Blake  <ebb9@byu.net>
2487         Correct previous patch.
2488         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
2489         all.
2491         Document shell function environment pitfall.
2492         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
2493         Solaris /bin/sh.
2495 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
2497         Use m4_require to implement AS_REQUIRE.
2498         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
2499         (m4_require): Pass it.
2500         (m4_divert_require): New.
2501         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
2502         Remove comment about differences with m4_require.
2503         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
2504         the expected behavior.
2505         (Nested AS_REQUIRE_SHELL_FN): New test.
2507 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2509         Test AS_LINENO_PREPARE.
2510         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
2512 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2514         Test AS_ME_PREPARE.
2515         * tests/m4sh.at (as_me): New test.
2517 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2519         Add and document AS_INIT_GENERATED.
2520         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
2521         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
2522         * doc/autoconf.texi (Initialization macros): Document it.
2524 2008-10-13  Eric Blake  <ebb9@byu.net>
2526         Use consistent shell function style.
2527         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
2528         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
2529         functions.
2531 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
2533         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
2534         contributors under m4 rather than shell comments.
2536 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2538         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
2539         * doc/autoconf.texi (Initialization macros): Document them.
2540         (Portable Shell): Refer to AS_LINENO_PREPARE.
2541         * NEWS: Mention them.
2543         * bin/autoconf.as: Invoke AS_ME_PREPARE.
2544         * lib/autotest/general.m4: Likewise.
2546 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2548         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
2550 2008-10-10  Eric Blake  <ebb9@byu.net>
2552         Fix _AS_MKDIR_P usage.
2553         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
2554         match implementation.
2555         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
2556         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
2557         wording to better match behavior.
2559 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2561         * doc/autoconf.texi: Be less wary of shell functions.
2562         * NEWS: Document the increased use of shell functions.
2564 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
2566         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
2567         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
2568         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
2569         (_AS_PREPARE): Define shell functions.
2570         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
2571         Define shell functions.
2573 2008-10-09  Eric Blake  <ebb9@byu.net>
2575         Only prepare $as_me if it will be used.
2576         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
2577         preparation.
2578         (_AS_ECHO_LOG): Depend on $LINENO preparation.
2579         (AS_MESSAGE): Depend on $as_me preparation.
2580         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
2582 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
2584         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
2585         until the M4SH-INIT diversion using _AS_ME_PREPARE.
2586         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
2587         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
2588         before _AS_LINENO_PREPARE.
2589         (AS_PREPARE): Include all the AS_REQUIREs manually.
2590         (_AS_ME_PREPARE): New.
2591         (_AS_LINENO_PREPARE): Use m4_defun.
2593 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
2595         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
2596         require _AS_EXPR_PREPARE.
2597         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
2598         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
2600 2008-10-08  Eric Blake  <ebb9@byu.net>
2602         Resync from gnulib.
2603         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
2604         (fetch): ...into new target.
2605         (executable-update): Delete, now that it is unused.
2606         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
2607         (wget-update, cvs-update): Likewise.
2608         * HACKING (Update the foreign files): Document new procedure.
2609         * GNUmakefile: Resync from upstream, via new 'make fetch'.
2610         * build-aux/config.guess: Likewise.
2612 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2614         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
2615         (AS_INIT): Do not call it.
2617 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2619         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
2620         _AS_UNSET_PREPARE in M4SH-SANITIZE.
2622 2008-10-08  Eric Blake  <ebb9@byu.net>
2624         Avoid repeating required shell tests in suggested set.
2625         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
2626         Use m4_set, rather than m4_expand_once/m4_append.
2627         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
2628         required tests out of suggested tests.
2629         Reported by Paolo Bonzini.
2631 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
2633         Add m4sh keyword to all m4sh.at tests.
2634         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
2635         pastos.
2637 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2639         Document AS_VERSION_COMPARE.
2640         * doc/autoconf.texi (Programming in M4sh): Document
2641         AS_VERSION_COMPARE.
2642         * NEWS: Update.
2644         Do not write to testsuite log fd before initialization.
2645         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
2646         Define fds only when initializing the log fd so early error
2647         messages do not try to write to it.
2648         * tests/autotest.at (Startup error messages): New test.
2649         * NEWS: Document this 2.63 regression.
2651 2008-10-07  Eric Blake  <ebb9@byu.net>
2653         Ensure _AS_CLEANUP is defined.
2654         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
2655         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
2657         Improve m4sh maintainability.
2658         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
2659         code change.
2661         Fix m4 quoting in previous patch.
2662         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
2663         name prior to invoking AS_REQUIRE.
2664         Reported by Ralf Wildenhues.
2666 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
2667         and Eric Blake  <ebb9@byu.net>
2669         Add a separate diversion for shell functions.
2670         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
2671         (AS_REQUIRE): Accept diversion parameter.
2672         (AS_REQUIRE_SHELL_FN): Use it.
2674 2008-10-06  Eric Blake  <ebb9@byu.net>
2676         Add m4_default_quoted.
2677         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
2678         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
2679         * doc/autoconf.texi (Conditional constructs): Document it.
2680         * NEWS: Likewise.
2682         Fix build with case-insensitive make, again.
2683         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
2684         Reported via Keith Marshall, originally by newthinker in
2685         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
2687 2008-10-06  Bruno Haible  <bruno@clisp.org>
2689         Warn about /usr/ucb on Solaris.
2690         * doc/install.texi (Particular Systems): Recommend putting
2691         /usr/ucb late in PATH, if at all.
2693 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2695         Fix more testsuite hang corner cases.
2696         * lib/autotest/general.m4: Use the serial code path if no test
2697         is to be run.
2698         * tests/autotest.at (parallel test execution): Test -j and -jN
2699         with `-k notmatched'.
2701 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2703         Fix hang with `testsuite -k notmatched'.
2704         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
2705         to one.  Fixes hang with `-k notmatched'.
2707 2008-10-02  Eric Blake  <ebb9@byu.net>
2709         Document more binary file portability traps.
2710         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
2711         reader that NUL and sed don't always mix.
2712         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
2714 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2716         Implement parallel Autotest test execution: testsuite --jobs.
2717         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
2718         (AT_INIT): <at_jobs>: New variable.
2719         Accept -j, -jN, --jobs[=N], document them in --help output.
2720         Implement parallel driver loop using a FIFO, enabled with --jobs
2721         and if mkfifo works; otherwise, fall back to sequential loop.
2722         (AT_SETUP): Store, do not output summary progress line if
2723         parallel.
2724         * tests/autotest.at (parallel test execution, parallel truth)
2725         (parallel fallacy, parallel skip): New tests.
2726         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
2727         the mkfifo requirement, and that --errexit may cause concurrent
2728         jobs to finish.
2729         * NEWS: Update.
2731 2008-09-20  Eric Blake  <ebb9@byu.net>
2733         Fix sample isinf definition.
2734         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
2735         first.
2736         * THANKS: Update.
2737         Reported by David Cournapeau.
2739 2008-09-16  Eric Blake  <ebb9@byu.net>
2741         Fix Erlang regression, introduced 2006-11-17.
2742         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
2743         caused by underquoting.
2744         * NEWS: Mention this fix.
2745         * THANKS: Update.
2746         Reported by BJ Terry.
2748 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2750         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
2752         Mention Solaris sh ':' redirection bug.
2753         * doc/autoconf.texi (File Descriptors): Redirecting ':'
2754         in a loop causes bogus optimization with Solaris sh.
2756 2008-09-10  Eric Blake  <ebb9@byu.net>
2758         Avoid testsuite bug when autom4te cache is disabled by user.
2759         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
2760         cache, even if user normally disabled it.
2761         Reported by Bruno Haible.
2763         Avoid testsuite bug in presence of verbose config.site.
2764         * tests/base.at (Input/Output): Nullify config.site during test.
2765         Reported by Bob Friesenhahn.
2767 2008-09-09  Eric Blake  <ebb9@byu.net>
2769         Release Version 2.63.
2770         * NEWS: Mention the release.
2772         Formatting tweaks to the manual.
2773         * doc/autoconf.texi (Introduction, Systemology)
2774         (File System Conventions, Portable C and C++)
2775         (Floating Point Portability): Allow URLs to split as needed.
2776         (Indices): Add entries, to work around texinfo bug on indices that
2777         start too close to a page break.
2778         (Particular Functions): Mention ftello.
2779         (Introduction, Language Choice): Use @enddots at sentence end.
2781         Resync from gnulib.
2782         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
2783         although for now, they are still manually sync'd.
2784         * build-aux/gnupload: Update.
2785         * build-aux/config.sub: Likewise.
2786         * GNUmakefile: Likewise.
2788 2008-09-06  Eric Blake  <ebb9@byu.net>
2790         Mention that Automake already supports VPATH.
2791         * doc/autoconf.texi (Build Directories): Details in this section
2792         only apply to users avoiding automake.
2793         * THANKS: Update.
2794         Reported by Matej Tyc.
2796         Relax tone when warning about cross-compiler names.
2797         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
2798         with poorly named tools; the issue has been reported too many
2799         times in the last four years to pull support.
2800         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
2801         documentation accordingly.
2802         * THANKS: Update.
2803         Reported by Josef Tran and others, wording suggested by Ralf
2804         Wildenhues.
2806 2008-09-01  Eric Blake  <ebb9@byu.net>
2808         Improve AC_C_BIGENDIAN.
2809         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
2810         universal builds require a config header.
2811         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
2812         AH_HEADER at the last possible moment, so that users can use
2813         AC_CONFIG_HEADER after this macro.
2814         Reported by Stepan Kasal.
2816         Fix manual date information.
2817         * doc/autoconf.tex: UPDATED refers to the day the manual was
2818         built, not the release date of Autoconf.
2819         Based on a bison patch by Akim Demaille.
2821 2008-08-27  Eric Blake  <ebb9@byu.net>
2823         Fix off-by-one bug in _m4_shiftn.
2824         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
2825         all arguments.
2826         * tests/m4sugar.at (M4 loops): Test it.
2827         Reported by Akim Demaille.
2829 2008-08-26  Eric Blake  <ebb9@byu.net>
2831         Improve INSTALL formatting.
2832         * doc/install.texi [!autoconf]: Ensure first paragraphs are
2833         indented like all others in a plain text rendering.
2834         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
2835         Reported by Bruno Haible.
2837 2008-08-26  Stepan Kasal  <skasal@redhat.com>
2839         Check for case sensitive make.
2840         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
2841         * configure.ac: ... called here.
2842         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
2843         ($(srcdir)/INSTALL): ...this, but enclose the rule in
2844         "if MAKE_CASE_SENSITIVE".
2846 2008-08-26  Eric Blake  <ebb9@byu.net>
2848         Update invocation documentation.
2849         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
2850         (autoreconf Invocation): Mention -v.
2851         (autom4te Invocation): Tie --freeze to -F, not -f.
2852         (autoupdate Invocation): Mention --prepend-include.
2853         * doc/install.texi (configure Invocation): Mention --help=short,
2854         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
2855         * bin/autoscan.in ($help): Omit space before `...'.
2856         * bin/ifnames.in ($help): Likewise.
2857         * bin/autoconf.as (Usage): Likewise.
2858         * bin/autoreconf.in ($help): Likewise.
2859         * bin/autoheader.in ($help): Likewise.
2860         * bin/autom4te.in ($help): Likewise.
2861         * bin/autoupdate.in ($help): Likewise.
2862         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
2863         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
2864         --file correctly.
2866         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
2867         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
2868         (files_to_options): Avoid inheriting __m4_version__ from frozen
2869         file if current M4 does not support it.
2871 2008-08-25  Eric Blake  <ebb9@byu.net>
2873         Adjust to recent m4 1.6 change to support m4_debugmode(d).
2874         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
2875         freeze-time decision of using faster 1.6 implementation...
2876         (m4_init): ...to a runtime decision, and add use of new debugmode
2877         flag.
2879 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
2881         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
2882         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
2883         __APPLE_CC__ with possible -arch flags.
2884         * NEWS: Document it.
2886 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2888         * NEWS: Fix typo.
2890 2008-08-22  Eric Blake  <ebb9@byu.net>
2892         * TODO: Add an item for additional m4sugar looping constructs.
2893         Suggested by Ralf Wildenhues.
2895         Add reminder to keep dual implementations in sync.
2896         * lib/m4sugar/m4sugar.m4: Add comments.
2897         * lib/m4sugar/foreach.m4: Likewise.
2898         Suggested by Ralf Wildenhues.
2900 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
2902         Format warning and error messages to match GCS.
2903         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
2904         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
2905         messages with a lowercase letter, end them without punctuation.
2906         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
2907         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
2908         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
2909         Likewise.
2910         * tests/fortran.at (GNU Fortran): Likewise.
2911         * tests/torture.at (Deep Package): Likewise.
2913 2008-08-21  Eric Blake  <ebb9@byu.net>
2915         Avoid extra side effects in m4sugar list expansion.
2916         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
2917         around...
2918         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
2919         duplicate side effects.
2920         (m4_version_compare): Adjust caller.
2921         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
2922         (_m4_list_cmp_raw): ...to match m4sugar.
2923         * doc/autoconf.texi (Looping constructs): Document the behavior of
2924         side effects.
2925         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
2926         Ensure only one side effect.
2927         (recursion): Fix test typo.
2928         Reported by Ralf Wildenhues.
2930 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2932         * TODO: Add item for compiler default flags.
2933         Suggested by Bruno Haible.
2935         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
2936         back to 1000.
2938 2008-08-21  Eric Blake  <ebb9@byu.net>
2940         Formatting improvements.
2941         * doc/autoconf.texi: Use @file and @command, rather than @code,
2942         where appropriate.
2944         Document another make bug.
2945         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
2946         make, GNU make <= 3.80.
2948         Tweak wording about SHELL in Makefile.
2949         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
2950         the importance of proper SHELL settings.
2951         Reported by Bruno Haible, in
2952         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
2954 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2956         Avoid timestamp races for updated input.
2957         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
2958         second script.
2959         * tests/tools.at (autotools and whitespace in file names): Add
2960         --force for repeated invocations.
2962 2008-08-20  Bruno Haible  <bruno@clisp.org>
2964         Add section to INSTALL about particular systems.
2965         * doc/install.texi (Particular systems): New node.
2966         * doc/autoconf.texi: Adjust menus.
2968 2008-08-19  Bruno Haible  <bruno@clisp.org>
2969         and Peter O'Gorman  <peter@pogma.com>
2971         Mention universal binaries in INSTALL.
2972         * doc/install.texi (Compiling For Multiple Architectures): Explain
2973         how to create universal binaries on MacOS X.
2975 2008-08-19  Jim Meyering  <jim@meyering.net>
2976             Eric Blake  <ebb9@byu.net>
2977             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2979         Avoid shell parse errors after interrupt due to empty ``.
2980         * doc/autoconf.texi (Shell Substitutions): Document the issue.
2981         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
2982         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
2983         "test AS_VAR_GET([...]) = yes"
2984         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
2985         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
2986         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
2987         (_AC_CHECK_HEADER_DIRENT): Likewise.
2988         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
2989         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
2990         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
2991         temporary variable to work around the issue.
2992         * tests/foreign.at (Libtool): Quote result of command
2993         substitution.
2995 2008-08-18  Eric Blake  <ebb9@byu.net>
2997         Test m4_transform without tickling shell bugs.
2998         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
2999         something more manageable.
3000         * tests/m4sugar.at (recursion): Move stress test of
3001         m4_transform_pair here.
3002         Reported by Ralf Wildenhues.
3004         Let 'git diff' give better context for doc updates.
3005         * .gitattributes (*.texi*): Add new entry.
3006         * README-hacking: Mention how to use it.
3007         Inspired by a coreutils patch by Jim Meyering.
3009 2008-08-15  Eric Blake  <ebb9@byu.net>
3011         Fix m4_map regression from 2007-10-16.
3012         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
3013         (m4_map): Ignore empty sublists.  For a list consisting of only an
3014         empty sublist, this restores 2.61 behavior of being a no-op.
3015         (m4_map_sep): Likewise, and expand separator.
3016         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
3017         (_m4_map): Rewrite, to be common base for all four variants.
3018         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
3019         * tests/m4sugar.at (m4@&t@_map): Add tests.
3020         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
3021         macros, and mention ramifications of expanded separator.
3022         * NEWS: Mention the change.
3024 2008-08-14  Eric Blake  <ebb9@byu.net>
3026         Implement m4_transform_pair, to speed up AS_IF.
3027         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
3028         macros, undocumented for now.
3029         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
3030         the m4 1.4.x counterparts.
3031         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
3032         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
3034 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3036         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
3037         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
3038         warn about previous AC_CANONICAL_TARGET.
3039         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
3040         unusable in the non-cross-compiling case.
3041         * NEWS, THANKS: Update.
3042         Report by Dave Erickson.
3044 2008-08-12  Eric Blake  <ebb9@byu.net>
3046         Optimize m4_bmatch.
3047         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
3048         implementation for m4 1.4.x.
3049         * tests/m4sugar.at (m4@&t@_bmatch): New test.
3050         (recursion): Test the linear nature.
3051         * NEWS: Document the fix.
3053         Fix m4_cond corner case.
3054         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
3055         implementation allows concatenation with subsequent text.
3056         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
3058         Add test for m4_cond.
3059         * tests/m4sugar.at (m4@&t@_cond): New test.
3060         Reported by Ralf Wildenhues.
3062 2008-08-06  Eric Blake  <ebb9@byu.net>
3064         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
3065         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
3066         unique key for the AH_VERBATIM.
3067         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
3068         * NEWS: Mention the fix.
3069         Reported by Andreas Schwab, analyzed by Stepan Kasal.
3071         Add linear m4_cond for m4 1.4.x.
3072         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
3073         (_m4_cond): ...this, for fewer macros per iteration.
3074         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
3075         * tests/m4sugar.at (recursion): Test it.
3076         * NEWS: Document the linear guarantee.
3078         Speed up diversion handling.
3079         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
3080         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
3081         expansions.
3083         AC_C_CHAR_UNSIGNED is not strictly necessary.
3084         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
3085         portable alternative to this macro.
3086         * THANKS: Update.
3087         Reported by Hallvard B Furuseth.
3089         Update some files from upstream.
3090         * GNUmakefile: Update.
3091         * build-aux/announce-gen: Likewise.
3092         * build-aux/config.guess: Likewise.
3093         * build-aux/config.sub: Likewise.
3094         * build-aux/git-version-gen: Likewise.
3095         * build-aux/texinfo.tex: Likewise.
3096         * build-aux/vc-list-files: Likewise.
3097         * doc/make-stds.texi: Likewise.
3098         * doc/standards.texi: Likewise.
3100 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3102         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
3103         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
3104         whitespace in $ac_config_files and $ac_config_headers.
3105         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
3106         Report by Andreas Schwab and Per Øyvind Karlsen.
3107         * THANKS: Update.
3109 2008-07-30  Eric Blake  <ebb9@byu.net>
3111         Fix bugs in previous version of m4_bpatsubsts.
3112         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
3113         allow concatenation with subsequent text.
3114         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
3116 2008-07-29  Eric Blake  <ebb9@byu.net>
3118         Add linear m4_bpatsubsts for m4 1.4.x.
3119         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
3120         about anchors, even for only one substitution.
3121         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
3122         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
3123         Clarify behavior with regard to quoting.
3124         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
3125         (m4@&t@_bpatsubsts): New test.
3126         * NEWS: Document the linear guarantee.
3128         Tweak m4_do semantics.
3129         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
3130         subsequent text.
3131         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
3132         arguments, and avoid infinite loop.
3133         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
3134         behavior.
3135         * tests/m4sugar.at (m4@&t@_do): New test.
3137         Optimize m4_for.
3138         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
3139         (_m4_for): Take additional parameter, for fewer m4_indir calls.
3140         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
3141         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
3142         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
3143         semantic change caused by the optimization.
3144         * tests/m4sugar.at (M4 loops): Test the new semantics.
3146         One more m4_list_cmp tweak.
3147         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
3148         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
3149         * tests/m4sugar.at (recursion): Test both directions of list
3150         disparity.
3152         Add m4_reverse, and improve m4_list_cmp.
3153         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
3154         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
3155         m4_reverse'd list.
3156         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
3157         counterpart.
3158         * tests/m4sugar.at (recursion): Test it.
3159         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
3160         it.
3161         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
3162         * NEWS: Mention new macro.
3164 2008-07-28  Eric Blake  <ebb9@byu.net>
3166         Avoid _m4_shiftn for m4 1.6 speedup.
3167         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
3168         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
3169         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
3171         Implement O(n) unique element set creation.
3172         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
3173         (m4_set_contains, m4_set_contents, m4_set_delete)
3174         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
3175         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
3176         (m4_set_size, m4_set_union): New macros.
3177         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
3178         m4 1.4.x.
3179         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
3180         new m4_set API for the set most likely to be large.
3181         * doc/autoconf.texi (Set manipulation Macros): New node.
3182         * NEWS: Mention new macros.
3183         * tests/m4sugar.at (m4@&t@_set): New test.
3185 2008-07-25  Eric Blake  <ebb9@byu.net>
3187         Avoid infinite aclocal loop.
3188         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
3189         that aclocal doesn't insist on finding m4sugar/foreach.m4.
3191         Provide O(n) replacement macros for M4 1.4.x.
3192         * lib/m4sugar/foreach.m4: New file.
3193         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
3194         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
3195         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
3196         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
3197         linear on 1.4.x].
3198         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
3199         older M4 is assumed.
3200         (m4_map_sep): Optimize.
3201         (m4_max, m4_min): Refactor, by adding...
3202         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
3203         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
3204         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
3205         file.
3206         * tests/m4sugar.at (M4 loops): Add a stress test that takes
3207         forever if m4_foreach and friends are quadratic.
3208         * NEWS: Mention this.
3210 2008-07-21  Eric Blake  <ebb9@byu.net>
3212         Ignore undefined macros, necessary with m4 1.6.
3213         * bin/autoupdate.in (_au___undefine): New macro,...
3214         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
3215         Reported by Ralf Wildenhues.
3217         Resync with gnulib.
3218         * GNUmakefile: Grab from upstream, to fix issue where 'make
3219         install' would allow installation of stale version string.
3221 2008-07-19  Eric Blake  <ebb9@byu.net>
3223         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
3224         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
3225         through all variables, per POSIX and newer m4.
3226         (_m4_text_wrap): Exploit the looping capabilities.
3227         * tests/m4sugar.at (m4@&t@_defn): Test this.
3228         * NEWS: Document it.
3229         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
3230         <m4_undefine>: Likewise.
3232         Reduce overhead of m4_builtin([defn]).
3233         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
3234         internal macros, which are slightly more efficient than
3235         m4_builtin([defn]) and company.
3236         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
3237         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
3238         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
3239         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
3240         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
3241         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
3242         (m4_version_prereq): Use them.
3244         Use warnings from m4 when available.
3245         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
3246         define slower wrapper if m4 will warn on our behalf; key off of
3247         __m4_version__, added alongside the new warnings in m4 1.6.
3248         * tests/m4sugar.at (m4@&t@_defn): New test.
3250 2008-07-18  Eric Blake  <ebb9@byu.net>
3252         Add m4_joinall.
3253         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
3254         * tests/m4sugar.at (m4@&t@_join): Test them.
3255         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
3256         m4_joinall.
3257         * NEWS: Likewise.
3259 2008-07-17  Stepan Kasal  <skasal@redhat.com>
3260         and Eric Blake  <ebb9@byu.net>
3262         Improve documentation of config.h.in template rules.
3263         * doc/autoconf.texi (Header Templates): Mention rules on comments
3264         and whitespace, and that the user cannot rely on #undef to survive
3265         through config.status.
3267 2008-07-16  Eric Blake  <ebb9@byu.net>
3269         Revert m4_prepend; it is less efficient, and unused by bison.
3270         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
3271         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
3272         (_m4_grow_uniq_1): Rename back...
3273         (_m4_append_uniq): ...to this.
3274         * NEWS: Revert NEWS blurb.
3275         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
3276         * tests/m4sugar.at (m4@&t@_prepend): Delete.
3278 2008-07-15  Eric Blake  <ebb9@byu.net>
3280         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
3281         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
3282         definition for non-Autoconf clients of m4sugar.
3284 2008-07-14  Eric Blake  <ebb9@byu.net>
3286         Tighten bound of potential speed of m4_append.
3287         * doc/autoconf.texi (Text processing Macros) <m4_append>
3288         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
3289         O(n log n).
3290         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
3291         Analysis by Bruno Haible.
3293 2008-07-11  Eric Blake  <ebb9@byu.net>
3295         Inherit improvements from bison's fork of m4sugar.
3296         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
3297         find version.texi, since bison does not provide it.
3298         (m4_prepend): Add new macro, from bison.
3299         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
3300         completeness.
3301         (_m4_append_uniq): Rename...
3302         (_m4_grow_uniq_1): ...to this to share implementation, and
3303         optimize initial assignment.
3304         (m4_append_uniq_w): Adjust caller.
3305         * NEWS: Document new macros.
3306         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
3307         speed consideration.
3308         <m4_prepend>: Document the new prepend variants.
3309         * tests/m4sugar.at (m4@&t@_prepend): New test.
3311         Work around M4 1.6 warning on undefined macros.
3312         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
3313         not already available as builtins.
3315 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3317         * doc/autoconf.texi (@dvar): Remove trailing newline.
3318         (@ovar): Likewise.  Fix macro documentation.
3320 2008-07-02  Stepan Kasal  <skasal@redhat.com>
3322         Add quotes to the header of autoscan-generated source.
3323         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
3325 2008-06-28  Andreas Schwab  <schwab@suse.de>
3327         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
3328         (autoconf Invocation): Likewise.
3329         (autoreconf Invocation): Likewise.
3330         (autoheader Invocation): Likewise.
3331         (autom4te Invocation): Likewise.
3333 2008-06-19  Eric Blake  <ebb9@byu.net>
3335         Add comment explaining recent patch.
3336         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
3337         of * vs. ? globbing.
3339 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3341         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
3342         linking a file to itself.
3343         Report by Bruno Haible.
3345 2008-06-19  Eric Blake  <ebb9@byu.net>
3347         Resync with gnulib.
3348         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
3349         Reported by Stepan Kasal.
3351 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3353         Reorganize autotest files, factorize for parallel execution.
3354         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
3355         earlier in the file.
3356         (AT_INIT): Create line number cache in
3357         $at_suite_dir/at-source-lines.
3358         <at_helper_dir>: New directory at-groups below $at_suite_dir.
3359         Add comment explaining the new directory structure.
3360         (at_func_group_prepare, at_func_group_postprocess): New shell
3361         functions to factorize per-test group work.  Keep the actual
3362         test execution outside of a shell function in order to avoid
3363         zsh 4.x exit status bugs.
3364         <at_check_line_file, at_status_file, at_stdout, at_stder1>
3365         <at_stderr, at_test_source>: Turn these into per-group files
3366         below $at_helper_dir.  Also store test results there in files
3367         named pass, fail, xpass, xfail, skip.  Let the parent collect
3368         results from $at_helper_dir.  Adjust summary statistics
3369         computation and result output.
3371 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3373         Fix '#undef variable /* comment */' transform in config headers.
3374         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
3375         undefined preprocessor macros that are followed by a comment
3376         in the header template, do not create nested comments in the
3377         output.
3378         * tests/torture.at (@%:@define header templates): Extend test.
3379         * NEWS: Update.
3380         Report by Karsten Hopp <karsten@redhat.com>.
3382 2008-06-09  Eric Blake  <ebb9@byu.net>
3384         Mark AC_TYPE_SIGNAL as obsolete.
3385         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
3386         * doc/autoconf.texi (Function Portability): Update documentation.
3387         (Particular Types): Move AC_TYPE_SIGNAL...
3388         (Obsolete Macros): ...here, and mention why.
3389         * NEWS: Mention the change.
3391         Allow lib64 as a default X library location.
3392         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
3393         * NEWS: Mention the change.
3394         * THANKS: Update.
3395         Reported by Brad Walker.
3397 2008-06-05  Eric Blake  <ebb9@byu.net>
3399         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
3400         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
3401         converting it to lower case.
3402         * tests/autotest.at (Keywords and ranges): Test this.
3403         * NEWS: Document the fix.
3404         * THANKS: Update.
3405         Reported via Karsten Hopp, by Jochen Schmitt in
3406         https://bugzilla.redhat.com/show_bug.cgi?id=449973
3408 2008-06-03  Eric Blake  <ebb9@byu.net>
3410         Fix 'make dist' regression from 2008-05-08.
3411         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
3412         GNUmakefile's _autoconf rule removes INSTALL.
3414 2008-05-27  Eric Blake  <ebb9@byu.net>
3416         Document Solaris /bin/sh redirection pitfall.
3417         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
3419 2008-05-14  Eric Blake  <ebb9@byu.net>
3421         Improve documentation of ! issues.
3422         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
3423         Reported by Noah Misch.
3425         Document some FreeBSD shell bugs.
3426         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
3427         in compound pipe commands.
3428         <export>: Mention difference of exporting an undefined variable.
3429         (Shell Functions): Mention loss of $? in entry to shell functions.
3430         Extracted from the git mailing list.
3432 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
3434         Work around MSYS and Cygwin bugs when dealing with trailing space.
3435         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
3436         even when platform bugs are tickled.
3437         Reported by Keith Marshall and Eric Blake.
3439 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3441         Let AC_MSG_FAILURE report pwd.
3442         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
3443         Output $ac_pwd along with fatal failure.
3444         * tests/torture.at (Deep Package): Extend test.
3445         Reported numerous times against GCC, and probably other packages.
3447 2008-05-12  Eric Blake  <ebb9@byu.net>
3449         Enforce --help and --version compliance.
3450         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
3452 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
3454         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
3455         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
3456         ($(abs_srcdir)/INSTALL): ...with this.
3458 2008-05-06  Eric Blake  <ebb9@byu.net>
3460         Fix typo.
3461         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
3463         Avoid overfull \hbox.
3464         * doc/autoconf.texi (Versioning): Reword to fit line size.
3466         Document $(( )) pitfalls.
3467         * doc/autoconf.texi (Shell Substitutions): Mention octal
3468         vs. decimal.  Mention autotest's at_func_arith.
3470         Improve behavior of './testsuite 01'.
3471         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
3472         Alter usage to eval its arguments, in order to normalize away
3473         leading zero.  All callers updated.
3474         * tests/autotest.at (Keywords and ranges): Test range
3475         normalization with leading 0.
3477 2008-04-26  Eric Blake  <ebb9@byu.net>
3479         Mention Solaris /usr/ucb/tr pitfall.
3480         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
3481         Reported by Bruno Haible and Jim Meyering.
3483 2008-04-24  Eric Blake  <ebb9@byu.net>
3485         Mention m4sugar's internal quote strings.
3486         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
3487         in m4sugar, and how to still output it literally.
3488         * tests/m4sugar.at (m4@&t@_split): And test it.
3489         Reported by Joel E. Denny.
3491 2008-04-23  Eric Blake  <ebb9@byu.net>
3493         Allow unbalanced () in m4_expand.
3494         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
3495         quotes.
3496         (m4_noquote, _m4_split): Use consistent complex quote.
3497         * tests/autotest.at (Left paren, Right paren): Test this.
3498         (Parentheses): Ensure new quadrigraphs still work.
3499         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
3500         * NEWS: Mention the fix.
3501         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
3502         require quadrigraphs for ().
3503         (Evaluation Macros) <m4_expand>: Relax the restriction against
3504         unbalanced ().
3505         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
3506         (Writing Testsuites) <AT_SETUP>: Likewise.
3507         Reported by Joel E. Denny, fix suggested by Noah Misch.
3509 2008-04-22  Eric Blake  <ebb9@byu.net>
3511         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
3512         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
3513         (handle_traces): Likewise.
3514         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
3515         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
3516         * doc/autoconf.texi (Quadrigraphs): Document them.
3517         (Evaluation Macros) <m4_expand>: Enhance documentation.
3518         (Text processing Macros) <m4_text_box>: Document cases where
3519         quadrigraphs can help for problemetic unbalanced parentheses.
3520         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
3521         (Writing Testsuites) <AT_SETUP>: Likewise.
3522         (Limitations of Builtins) <case>: Consolidate text on unbalanced
3523         parentheses, and add an example of creative comments.
3524         * NEWS: Document the addition.
3525         Reported by Joel E. Denny.
3527 2008-04-16  Eric Blake  <ebb9@byu.net>
3529         Document pdksh exec behavior.
3530         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
3531         subsection.
3532         Discovered by Jim Meyering.
3534 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3536         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
3537         arguments to the inner suite.
3538         (errexit, input from stdin): New tests.
3540 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3542         * NEWS: Post-release update.
3544 2008-04-10  Eric Blake  <ebb9@byu.net>
3546         AC_AUTOCONF_VERSION might contain arbitrary macro names.
3547         * doc/autoconf.texi (Versioning): Mention problem with expansion.
3548         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
3550 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
3552         Flush buffered output before exit.
3553         * bin/autom4te.in (handle_output): Explicitly close file.
3554         * THANKS: Update.
3555         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
3557 2008-04-08  Eric Blake  <ebb9@byu.net>
3559         Generate web docs for 2.62.
3560         * doc/autoconf.texi (Evaluation Macros): Fix typo.
3561         (Notices): Use recommended means to escape RCS keyword.
3562         * cfg.mk (gnulib_dir): New macro.
3563         (web-manual): New target.
3565 2008-04-05  Eric Blake  <ebb9@byu.net>
3567         Release Version 2.62.
3568         * NEWS: Mention the release.
3570 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
3571         and Eric Blake  <ebb9@byu.net>
3573         Return back to GPLv2+, until the text of the exceptions is
3574         finalized, reverting the change from 2007-07-03 and the first
3575         part of the change from 2007-07-20.
3576         * COPYING: Revert to GPLv2.
3577         * COPYINGv3: New file, since some auxiliary build tools, used for
3578         building autoconf and not installed, are GPLv3.
3579         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
3580         * NEWS: Remove mention of GPLv3.
3581         * README: Clarify situation regarding GPLv3.
3583 2008-04-05  Eric Blake  <ebb9@byu.net>
3585         Prepare for release.
3586         * maint.mk (announcement): Avoid deleted option.
3587         * cfg.mk (release_archive_dir): Use default.
3588         * build-aux/gnupload: New file, from automake/gnulib.
3589         * Makefile.am (EXTRA_DIST): Distribute it.
3590         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
3591         from syntax check.
3593 2008-04-05  Jim Meyering  <meyering@redhat.com>
3594         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3596         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
3597         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
3598         is the EOL marker, skip a step that would remove and translate
3599         carriage return bytes.
3600         * THANKS: Update.
3601         Reported by Elbert Pol.
3603 2008-04-05  Eric Blake  <ebb9@byu.net>
3605         Avoid some autoreconf -Wall warnings.
3606         * configure.ac: Use proper quoting, to be a good example.
3607         (PACKAGE_NAME): Remove setting covered by autoconf.
3608         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
3609         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
3610         automake.
3611         (html, autoconf_1.html, standards_1.html): Likewise.
3612         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
3613         * Makefile.am (html): Likewise.
3614         * doc/autoconf.texi (Quoting and Parameters): Add missing section
3615         name.
3616         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
3617         warning about our override, until Automake is fixed.
3618         * README-hacking: Document minimum requirements for bootstrap.
3620 2008-04-03  Eric Blake  <ebb9@byu.net>
3622         Fix version number generation in man pages.
3623         * Makefile.am (EXTRA_DIST): Distribute .version.
3624         (.version): New rule.
3625         * man/Makefile.am (common_dep): Depend on .version, not
3626         configure.ac.
3627         (.x.1): Use package name for version string.
3628         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
3629         * build-aux/git-version-gen: Sync from upstream.
3631         More maintainer tweaks: pass 'make maintainer-distcheck'.
3632         * GNUmakefile (_is-dist-target): Sync from upstream.
3633         * build-aux/vc-list-files: Sync from upstream, yet again.
3634         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
3635         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
3636         package.m4.
3637         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
3639         Fix VPATH 'make syntax-check'.
3640         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
3641         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
3642         (author_mark_check): Avoid error message.
3643         * build-aux/vc-list-files: Sync from upstream again.
3644         * build-aux/texinfo.tex: Likewise.
3646         Sync files from upstream, and pass 'make syntax-check'.
3647         * config/announce-gen: Move...
3648         * build-aux/announce-gen: ...here, and sync from gnulib.
3649         * Makefile.am (EXTRA_DIST): Adjust accordingly.
3650         * cfg.mk (announce_gen): Likewise.
3651         (prev_version_file): Delete, relying on default in maint.mk.
3652         (gpg_key_ID): New macro.
3653         (url_dir_list): Rewrite to match coreutils.
3654         * config/prev-version.txt: Move...
3655         * .prev-version: ...here, and adjust to 2.61.
3656         * build-aux/vc-list-files: Sync from coreutils.
3657         * maint.mk: Resynchronize with coreutils, where possible.
3658         (ME): Remove $(srcdir) from definition.
3659         (CVS): Delete.
3660         (GIT, VC, VC-tag): New macros.
3661         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
3662         (VC_LIST, VC_LIST_EXCEPT): ...to this.
3663         (cvs-tag-check): Delete.
3664         (cvs-diff-check): Rename...
3665         (vc-diff-check): ...to this.
3666         (sc_file_system): Allow FHS acronym.
3667         * doc/autoconf.texi (Particular Functions): Recommend
3668         unconditional <config.h>.
3669         * build-aux/config.guess: Sync from upstream (manually).
3670         * build-aux/config.sub: Likewise.
3671         * build-aux/texinfo.tex: Likewise.
3672         * doc/make-stds.texi: Likewise.
3673         * doc/standards.texi: Likewise.
3674         * .gitattributes: Ignore whitespace problems in upstream files.
3676 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3678         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
3679         bug on HP-UX/IA.
3680         Report by Peter O'Gorman.
3682 2008-04-02  Eric Blake  <ebb9@byu.net>
3684         Recommend the just-released M4 1.4.11.
3685         * NEWS: Update recommendation.
3686         * README: Likewise.
3687         * doc/autoconf.texi (Introduction): Likewise.
3688         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
3690 2008-04-01  Eric Blake  <ebb9@byu.net>
3692         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
3693         copyright year.
3695 2008-03-28  Peter O'Gorman  <peter@pogma.com>
3697         Find X11 on Mac OS X too.
3698         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
3699         Check for libX11 with extensions dylib la and dll too.
3700         * THANKS: Update.
3701         Reported by Martin Costabel.
3703 2008-03-28  Eric Blake  <ebb9@byu.net>
3705         Update TODO based on completed tasks.
3706         * TODO (AC_PROG_INSTALL takes multiple files): Done.
3707         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
3708         (AC_COMPILE_IFELSE documentation): Done.
3709         (Tracing builtins): Done, now that we require M4 1.4.5.
3710         (AC_PROG_CC_POSIX suggestion, providing header files)
3711         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
3712         (cache consistency): Done with precious variables.
3714 2008-03-26  Eric Blake  <ebb9@byu.net>
3716         Document --trace=macro:format in --help output.
3717         * bin/autom4te.in (help): Mention optional trace format.
3718         * bin/autoconf.as (usage): Likewise.
3720         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
3721         typos in last patch.
3722         Reported by Ralf Wildenhues.
3724 2008-03-26  Jim Meyering  <meyering@redhat.com>
3726         Fix texinfo syntax error.
3727         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
3729 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3731         Warn, not fail on whitespace-only precious variable differences.
3732         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
3733         precious variable differences less ambiguous with `ugly-quotes'.
3734         If their settings differ only in whitespace, do not fail, but
3735         reuse the old value.
3736         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
3737         an optional status and expected-warning argument.  Fix m4
3738         quotation for initial value.
3739         (AC_ARG_VAR): Also test for whitespace-only differences, and
3740         that the old value is retained in this case.
3741         * doc/autoconf.texi (Setting Output Variables): Document this.
3742         * NEWS: Update.
3743         Report and initial patch by Paolo Bonzini.
3745 2008-03-26  Eric Blake  <ebb9@byu.net>
3747         Document busybox sed bug.
3748         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
3749         restrictions when using back-references.
3750         Reported by Vincent Lefevre:
3751         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
3753         Document Automake interaction with AC_CONFIG_MACRO_DIR.
3754         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
3755         users.
3756         * THANKS: Update.
3757         Reported by Chris Pickett.
3759 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3761         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
3763         * tests/local.at (AT_CHECK_M4): Factorize warning output
3764         normalization.
3765         Suggested by Eric Blake.
3767 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3769         Fix .exe-related test failure on MinGW.
3770         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
3771         for comparing warning output.
3773         Fix Fortran testsuite failures with gfortran 4.3.
3774         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
3775         verbose compiler output, skip lines that set variables; gfortran
3776         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
3777         * THANKS: Update.
3778         Report by Vincent Lefèvre.
3780 2008-03-21  Eric Blake  <ebb9@byu.net>
3782         * GNUmakefile: Resynchronize with gnulib.
3784         Document more uses of $cross_compiling.
3785         * doc/autoconf.texi (Runtime): Document that a temporary override
3786         is permissible.
3787         * THANKS: Update.
3788         Reported by Ineiev, example by Ralf Wildenhues.
3790         Don't swallow $1 in textual local variables.
3791         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
3792         expansion of text arguments, as that swallows $1.
3793         (m4_text_wrap): Likewise, by splitting out...
3794         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
3795         expression for width.
3796         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
3797         (m4@&t@_combine): Likewise.
3799 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3801         Avoid leftover files on Leopard.
3802         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
3803         directory created on darwin.
3804         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
3805         left over from a broken link.
3806         * tests/c.at (AC_NO_EXECUTABLES (working linker))
3807         (AC_NO_EXECUTABLES (broken linker)): New tests.
3808         Report by Gary V. Vaughan.
3810         * lib/autom4te.in (Automake-preselections): Trace
3811         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
3813 2008-03-20  Eric Blake  <ebb9@byu.net>
3815         Kill more CVS references.
3816         * README-cvs: Delete.  See README-hacking instead.
3817         * README-hacking: Update wording, based on older file.
3818         * BUGS: Remove CVS mention.
3820 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3822         * tests/tools.at (autotools and whitespace in file names): Skip
3823         if aclocal is not present.
3825 2008-03-20  Eric Blake  <ebb9@byu.net>
3827         Sync GNUmakefile with gnulib.
3828         * GNUmakefile (Makefile.cfg): Rename...
3829         (cfg.mk): ...to this, and make optional.
3830         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
3831         (Makefile.maint): Rename...
3832         (maint.mk): ...to this.
3833         (all) [!_have-Makefile]: Rename...
3834         (abort-due-to-no-makefile): ...to this, and invoke via
3835         .DEFAULT_GOAL to pick up all targets.
3836         * Makefile.cfg: Rename...
3837         * cfg.mk: ...to this.
3838         * Makefile.maint: Rename...
3839         * maint.mk ...to this.
3840         (ME): Reflect name change.
3841         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
3842         rather than hard-coded name.
3843         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
3844         * Makefile.am (EXTRA_DIST): Reflect file name changes.
3845         * .x-sc_prohibit_atoi_atof: Likewise.
3846         * lib/freeze.mk: Likewise.
3848 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
3850         * doc/autoconf.texi (Introduction): Improve the paraphrase of
3851         Henry Spencer's quotation.
3853 2008-03-19  Eric Blake  <ebb9@byu.net>
3855         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
3856         * bin/autoscan.in (output): Avoid obsolete spelling.
3857         * tests/local.at (AC_STATE_SAVE): Update usage.
3858         * THANKS: Update.
3859         Reported by John Calcote.
3861         Emphasize that ease of configure triumphs over ease of autoconf.
3862         * doc/autoconf.texi (Introduction): Expand on primary
3863         vs. secondary goal of autoconf.
3864         * THANKS: Update.
3865         Inspired by Paul Smith.
3867 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3869         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
3870         $hint, show if the executing program does not exist.
3871         (xsystem_hint): New function, like xsystem but allows to pass
3872         a hint.
3873         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
3874         libtoolize.
3875         Report by Bruce Korb.
3877 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
3879         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
3880         tests/mktests.sh, tests/wrapper.as: Fix typos.
3882 2008-03-12  Eric Blake  <ebb9@byu.net>
3884         Fix yesterday's regression in m4_wrap([$1]).
3885         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
3886         text, since it may contain text that looks like parameters.
3887         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
3889 2008-03-11  Eric Blake  <ebb9@byu.net>
3891         Improve error messages for common testsuite bugs.
3892         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
3893         macros for defining order-enforced macros.
3894         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
3895         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
3896         messages when order violations are detected.
3897         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
3898         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
3899         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
3900         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
3901         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
3902         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
3903         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
3904         (Banner-only test suite): New tests.
3905         Reported by Christopher Hulbert.
3907         Tweak m4_wrap to force FIFO or LIFO semantics.
3908         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
3909         (m4_wrap_lifo, _m4_wrap): New macros.
3910         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
3911         order, prior to m4sugar's.
3912         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
3913         m4_wrap.
3914         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
3915         known order, prior to m4sh's.
3916         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
3917         argument.
3918         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
3919         new behavior.
3920         * tests/m4sh.at (AS_INIT cleanup): New test.
3921         * NEWS: Document the change.
3923 2008-03-10  Eric Blake  <ebb9@byu.net>
3925         Encode nested autotest data.
3926         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
3927         (unusual file names): Likewise.
3928         (m4_pattern_allow): Remove loophole, to make it easier to catch
3929         poorly written tests.
3931         Factor some autotest tests.
3932         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
3933         common initialization.
3934         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
3935         (whitespace in absolute testdir, unusual file names): Use it.
3937 2008-03-06  Eric Blake  <ebb9@byu.net>
3939         Minor documentation fix.
3940         * doc/autoconf.texi (Evaluation Macros): Fix typo.
3942 2008-03-04  Eric Blake  <ebb9@byu.net>
3944         Make AT_CHECK act like a simple command.
3945         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
3946         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
3948 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3950         On MinGW, substitution of CR and 0xFF fails.
3951         * tests/torture.at (Substitute and define special characters):
3952         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
3953         wrong thing for CR.
3955 2008-03-04  Eric Blake  <ebb9@byu.net>
3957         Pull in recent maintainer improvements from coreutils.
3958         * GNUmakefile (_is-dist-target): 'make distclean' should not
3959         trigger autoreconf.
3960         (_dummy): Change directories before removing autom4te.cache.
3961         (check dist distcheck install) [!_have-Makefile]: Provide nicer
3962         diagnostics.
3963         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
3964         builds, after initial bootstrap.
3965         * Makefile.am (distclean-local): Work around current automake bug.
3966         * Makefile.maint (ME): Allow VPATH usage.
3968         Use git-merge-changelog when available.
3969         * .gitattributes: New file.
3970         * README-hacking: Document use of git-merge-changelog.
3972         Work around cygwin bug.
3973         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
3974         "touch 't\'" creates regular file 't'.
3976         Ignore tests that require read-only directories under root.
3977         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
3978         no-write portion if user has root-like privileges.
3980 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3982         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
3984 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3986         autoreconf -m now honors $MAKE.
3987         * bin/autoreconf.in ($run_make): Renamed from ...
3988         ($make): ... this.  Use now as command to run `make',
3989         overridden by $MAKE.  Document this in --help output.
3990         * doc/autoconf.texi (autoreconf Invocation): Document
3991         all environment variables honored by autoreconf.
3992         * NEWS: Update.
3993         Report by Paul Eggert.
3995 2008-03-03  Eric Blake  <ebb9@byu.net>
3997         Documentation improvements.
3998         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
3999         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
4000         that preceeds @dots.  Improve wording.
4001         (Text processing Macros): Drop `1' suffix from metasyntax variable
4002         name that preceeds @dots.
4003         (Number processing Macros): Drop `1' suffix from metasyntax
4004         variable name that preceeds @dots.  Improve wording.
4005         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
4006         Suggested by Ralf Wildenhues.
4008 2008-03-02  Jim Meyering  <meyering@redhat.com>
4010         Don't infloop upon "make dist".
4011         * GNUmakefile: Merge from coreutils.
4012         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
4013         not .version.
4014         * configure.ac (AC_INIT): Use .tarball-version, not .version.
4015         * build-aux/git-version-gen: Update from gnulib.
4017 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4019         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4020         Before using /dev/full, check that it is a writable character
4021         special device.
4022         Report by Benoit Sigoure and Eric Blake.
4024         Actually test that @configure_input@ is expanded correctly.
4025         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4026         Actually check generated file contents for the name of the
4027         generated file, using AC_PROG_FGREP and $FGREP.
4029 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
4031         Be nice with file systems that don't handle unusual characters.
4032         * tests/atlocal.in (func_sanitize_file_name)
4033         (func_sanitize_dir_name): New shell functions.
4034         * tests/tools.at (autom4te and whitespace in file names)
4035         (autotools and whitespace in file names): Use them.
4036         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4037         Cover more potentially problemtic file names.  Use the new
4038         functions.
4040         Properly handle funny file names for headers in config.status.
4041         The test suite did not cover this bug because the code was not
4042         quoting properly the arguments of `rm -f' (which "fails" silently)
4043         as well as the arguments of `diff' (whose output was redirected to
4044         /dev/null so we couldn't see its error message).
4045         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
4046         file names passed to `rm' and `diff'.
4047         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4048         Add a regression test.
4050 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
4051         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4053         Properly expand @configure_input@ in config.status.
4054         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
4055         Escape the backslashes and ampersands in $configure_input before
4056         using it in the sed replacement string to expand @configure_input@.
4057         Report by Eric Blake and Patrick Welche.
4059 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4061         Ignore errors from ./run on w32.
4062         * tests/autotest.at (whitespace in absolute testdir):
4063         Ignore stderr for `./run' which fails to remove the
4064         busy test directory on w32.
4066 2008-02-22  Eric Blake  <ebb9@byu.net>
4068         Improve documentation for writing autotest suites.
4069         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
4070         checks must live inside a test group.
4071         Reported by Christopher Hulbert.
4073 2008-02-21  Eric Blake  <ebb9@byu.net>
4075         Sync git-version-gen from upstream.
4076         * build-aux/git-version-gen: Pull from gnulib.
4077         * configure.ac (AC_INIT): Adjust to new calling convention.
4079 2008-02-12  Eric Blake  <ebb9@byu.net>
4081         Avoid trailing space in config.h with AC_DEFINE([var], []).
4082         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
4083         defines with a comment.
4085 2008-02-08  Eric Blake  <ebb9@byu.net>
4087         Fix texinfo typos in previous patch.
4088         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
4089         Reported by Ralf Wildenhues.
4091         Describe a config.site that can be used for FHS compliance.
4092         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
4093         for FHS.
4094         * THANKS: Update.
4095         Reported by Jules Colding and Ralf Wildenhues.
4097 2008-02-02  Eric Blake  <ebb9@byu.net>
4099         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
4101 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4103         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
4104         again, broken since introduction of `-C dir'.
4105         * tests/autotest.at (Choosing where testsuite is run): Test it.
4107 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4109         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
4111 2008-01-29  Eric Blake  <ebb9@byu.net>
4113         Fix more autotest regressions.
4114         * lib/autotest/general.m4 (AT_LINE): Fix regression from
4115         2007-10-04 when file name is `dnl'.
4116         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
4117         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
4118         yesterday in libtool's testsuite.
4119         (_AT_ARG_OPTION): Detect write failure.
4120         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
4121         make libtool's use kosher.  Document m4_init.
4122         (Programming in M4sh): Document AS_INIT.
4123         (Writing Testsuites): Document limitation of AT_DATA file name.
4124         * tests/autotest.at (unusual file names): New test.
4125         (Banners, Keywords and ranges): Use correct shell.
4127         More corner cases in testsuite VAR=VALUE handling.
4128         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
4129         bug.
4130         <PARSE_ARGS_END>: Also detect leading digits in assignments.
4131         * tests/autotest.at (Using atlocal): Enhance test to catch last
4132         bug.
4134         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
4135         bug.
4137 2008-01-28  Eric Blake  <ebb9@byu.net>
4139         Fix regression in handling VAR=VALUE arguments to testsuite.
4140         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
4141         leading = as invalid.  Defer use of command-line variable
4142         assignments...
4143         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
4144         regression in sourcing files.
4145         * tests/autotest.at (Using atlocal): New test to catch this.
4146         (Debugging a successful test, Choosing where testsuite is run):
4147         Use correct shell.
4148         Reported by Ralf Wildenhues.
4150         Document grep peculiarity.
4151         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
4152         BSD behavior on binary input.
4154         Minor testsuite improvements.
4155         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
4156         forks when sanitizing PATH.  Always output machine information,
4157         not just when atconfig was located.
4159         Add 'testsuite -C dir'.
4160         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
4161         detection...
4162         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
4163         argument.
4164         <DEFAULTS>: Delay computation of variables based on $at_dir...
4165         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
4166         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
4167         <PARSE_ARGS>: Parse new option.
4168         <HELP_TUNING>: Document it.
4169         * tests/autotest.at (Choosing where testsuite is run): New test
4170         for this feature.
4171         (Keywords and ranges): Add test for missing -k argument.
4172         * NEWS: Document this.
4173         * doc/autoconf.texi (testsuite Invocation): Likewise.
4175 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4177         * build-aux/config.guess, build-aux/config.sub,
4178         build-aux/texinfo.tex: Sync from gnulib.
4179         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
4180         Likewise.
4182 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4184         * doc/autoconf.texi (Particular Programs): Do not mention the
4185         Autoconf version in which the AC_PROG_INSTALL change was done.
4186         Suggested by Paul Eggert.
4188 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4190         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
4191         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
4192         mode, we change to the source directory, also set $ac_pwd so we
4193         do not go back to the build tree for the next config subdir.
4194         * tests/torture.at (Deep Package): Extend test to contain two
4195         config subdirs on the top level.
4197         Fix parallel `maintainer-check'.
4198         * Makefile.am (maintainer-check-tests): Depend on `all'.
4199         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
4200         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
4201         Likewise.
4202         (maintainer-check): Serialize the testsuite runs.
4204         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
4205         in feature string for --enable/--with.  Convert to underscore
4206         for variable name.
4208         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
4209         `install -c file1 file2 dir' works.
4210         * doc/autoconf.texi (Particular Programs): Document this.
4211         * NEWS: Update.
4213 2008-01-21  Eric Blake  <ebb9@byu.net>
4215         Improve documentation about default include directives.
4216         * doc/autoconf.texi (Generic Headers, Generic Declarations)
4217         (Generic Structures, Generic Types)
4218         (Generic Compiler Characteristics): Add links to
4219         AC_INCLUDES_DEFAULT.
4220         Reported by Reuben Thomas.
4222 2008-01-15  Eric Blake  <ebb9@byu.net>
4224         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
4226 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4228         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
4229         check_SCRIPTS.  Building the wrappers for `all' allows help2man
4230         to use them for the manpages.
4231         Report by Benoit Sigoure.
4233         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
4235 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4237         Fix some write failure cases in Autotest.
4238         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
4239         upon write failures for --help, --version, --list.
4240         Guard against write failures for intermediate created scripts.
4241         <at_func_create_debugging_script>: Do not make the debugging
4242         script executable if it is not complete.
4244 2007-12-12  Eric Blake  <ebb9@byu.net>
4246         Fix thinko in earlier patch - m4_join isn't defined yet.
4247         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
4248         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
4249         (m4_require): Use m4_do, not m4_join.
4251         Fix some whitespace tests on cygwin.
4252         * tests/tools.at (autom4te and whitespace in file names): Restore
4253         font-lock.  Create $TMPDIR before it might be used.
4255         Fix spurious testsuite failure with M4 1.4.11.
4256         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
4258         Optimize AC_REQUIRE.
4259         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
4260         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
4261         (m4_require): Avoid extra macro calls.
4263 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4265         * tests/torture.at (srcdir): Fix quoting.
4267         Do not pass top_srcdir to configure scripts in testsuite.
4268         * tests/autotest.at (srcdir propagation): Copy install-sh to
4269         source tree.
4270         (my only test): Drop setting of `top_srcdir'.
4271         * tests/base.at (Input/Output): Likewise.
4272         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
4273         config.guess, and config.sub to test source tree.
4274         Drop AC_CONFIG_AUX_DIR setting.
4275         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
4276         * tests/torture.at (Substitute a 2000-byte string): Drop
4277         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
4278         (Substitute a newline, datarootdir workaround): Likewise.
4279         (Define a newline): Adjust for linenumber changes in configure.ac.
4280         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
4282         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
4283         if `pwd` contains whitespace.
4285         Quote $abs_top_srcdir in tests.
4286         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
4287         * tests/tools.at (Syntax of the shell scripts): Likewise.
4289         * tests/m4sh.at (LINENO): Quote $0.
4291         Fix testsuite program wrapper for whitespace in `pwd`.
4292         The problem here is that the usual mantra is that command
4293         variables can contain arguments, thus we cannot just escape
4294         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
4295         $top_builddir/tests directory early in $PATH, so that the
4296         wrappers are found by their plain name.
4297         * tests/wrapper.as: Put $testdir early in $PATH.
4298         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
4300         Proper config.status --file/--header and $srcdir escaping.
4301         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
4302         characters in $ac_file_inputs.
4303         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
4304         accordingly.
4305         * tests/torture.at (datarootdir workaround): Adjust.
4306         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
4308         Fix Autotest for whitespace in `pwd`.
4309         * lib/autotest/general.m4 (AT_INIT)
4310         <at_func_create_debugging_script, Driver Loop>:
4311         Quote $at_group_dir.
4312         * tests/autotest.at (whitespace in absolute testdir): New test.
4314         * lib/autom4te.in: Quote @datadir@.
4316         Proper file name escaping in Autoconf programs and Perl modules.
4317         This includes escaping of characters special to the shell
4318         as well as special to Perl, e.g., leading `<' or `>'.
4319         For example, when $file starts with `>', `open ">$file"'
4320         wrongly tries to append to a different file.
4321         * bin/autoconf.as: Fix quoting for autom4te options.
4322         * lib/Autom4te/General.pm (shell_quote): New function, taken
4323         from coreutils, written by Jim Meyering.
4324         (mktmpdir): Use it.
4325         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
4326         and open_quote.
4327         * bin/autoreconf.in (parse_args): Likewise.
4328         * bin/autoscan.in (main): Likewise.
4329         * bin/autoupdate.in (main): Likewise.
4330         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
4331         * bin/ifnames.in: Likewise, XFile usage fixes.
4332         * tests/tools.at (autom4te and whitespace in file names): Extend
4333         test.  Test twice, with special characters allowed on w32, and the
4334         rest.  Test leading and trailing whitespace, for `open_quote'.
4335         (autotools and whitespace in file names): New, analogous test.
4336         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
4337         by Russ Allbery and Eric Blake.
4339         Sync from Automake.
4340         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
4341         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
4342         * lib/Autom4te/FileUtils.pm (open_quote): New function.
4343         (update_file, contents): Use it.
4345         * Makefile.am (autom4te-update): Rewrite for git.
4347 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4349         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
4351         Fix copyright years.
4352         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
4353         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
4355 2007-12-04  Eric Blake  <ebb9@byu.net>
4357         Manually resync with gnulib, since 'make cvs-update' no longer works.
4358         * build-aux/config.guess: New upstream version.
4359         * build-aux/config.sub: Likewise.
4361         When using older automake, don't downgrade build-aux/texinfo.tex.
4362         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
4363         * doc/Makefile.am (TEXINFO_TEX): Add.
4365 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
4367         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
4368         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
4369         #undef as this runs afoul of our new way of creating config.h.
4370         Problem reported by Jim Meyering in
4371         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
4373 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4375         Fix autom4te for unusual characters in input file names.
4376         * bin/autom4te.in (files_to_options): Quote active characters
4377         for the shell.
4378         * tests/tools.at (autom4te and white space in file names):
4379         New test.
4381         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
4382         Document that Tru64 awk always splits $0.
4384 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
4386         * lib/autotest/general.m4 (AT_INIT): Do not extract the
4387         `#AT_STOP_...' line at the end of each test.
4389 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4391         * lib/autotest/general.m4 (AT_INIT): For awk line number
4392         extraction script, ensure `$at_group' has a defined value
4393         even for the empty set, and properly quote its usage inside
4394         the awk script.
4396 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4398         * doc/autoconf.texi (Shell Functions): New chapter.  Document
4399         IRIX sh $0 issue in functions, move content from ...
4400         (Portable Shell): ... here.
4401         (Shell Script Compiler): Note that shell functions are not
4402         totally unportable any more.
4404 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
4405         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4407         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
4408         extracting the line numbers of the last needed test.
4410 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4412         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
4413         Fix quoting.
4415 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4417         Fix IRIX testsuite debugging failures: $0 in functions.
4418         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
4419         Do not use $0 inside a function, as IRIX sh will set that to the
4420         function name rather than the script invocation name.
4422 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
4423         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4425         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
4426         to extract test scripts.
4427         (AT_INIT): Extract and cache test script line numbers.
4429 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4431         * lib/autotest/general.m4: Revert 2007-11-15 patch and
4432         subsequent fixups; the awk -> here-document conversion trashes
4433         performance too much with AIX sh.
4435 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4437         * tests/local.at: Do not test m4, perl with AT_TESTED.
4439         Diagnose and guard against write errors dealing with config.status.
4440         The general idea is this: all write failures from `configure'
4441         writing `config.status' are indicated by $ac_write_error, which
4442         is only checked at the end.  This is safe because config.status
4443         code is not executed before the file is complete.  Other write
4444         failures, be they inside config.status, or in sub shell/awk
4445         scripts spawned from configure or config.status, typically need
4446         earlier checking, as their results are used right afterwards.
4447         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
4448         before writing config.status, check afterwards.
4449         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
4450         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
4451         Set `ac_write_error' for write failures to config.status.  Barf
4452         upon write failures to temporary files.
4453         Adjust note about closing and reopening the here-document.
4454         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
4455         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
4456         reopening the here-document.
4457         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4458         Ensure `ac_write_error' does not escape into config.status.
4459         Also, add a couple of code paths not yet exercised in the test
4460         suite: a config file with input from stdin, and a config header
4461         output to stdout.
4462         Suggestion for catching write errors by Bruno Haible.
4464 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4466         Avoid error with Tru64 awk and testsuite lines with many words.
4467         * lib/autotest/general.m4 (AT_INIT): In the awk script that
4468         reads the testsuite, set the field separator to an unusual value,
4469         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
4470         even splits the input if $i, i>0, was never accessed in the script.
4472         Revert 2007-10-17 change.
4473         * TODO: Multiline args in config files and headers mean something
4474         different and are not fixed, see
4475         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
4476         Report by Stepan Kasal.
4478         * doc/autoconf.texi (Generic Programs): Fix typo.
4480 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
4482         AC_*_TOOL does not canonicalize the prefix
4483         * doc/autoconf.texi (Generic Programs): Do not say that
4484         the *_TOOL macros canonicalize, they simply use the `host_alias'.
4486 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4488         Diagnose write errors in config.status instantiations.
4489         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
4490         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
4491         on write errors.
4492         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4493         Extend test to also check for some write error failures, using...
4494         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
4495         Report by Bruno Haible.
4497         Indentation fixups.
4498         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
4499         indentation.
4500         (_AT_CHECK): Use less indentation, to save space.
4502 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4504         Add witness macro for @top_build_prefix@ substitution.
4505         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
4506         (_AC_OUTPUT_FILE): Mention it here.
4508 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
4509         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4511         * lib/autotest/general.m4 (at_func_test): Remove.
4512         (AT_INIT): Pre-extract test groups into separate files.
4513         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
4514         Remove at-test-source files together with the $at_group_dir.
4515         * tests/autotest.at (Long test source lines): New test.
4517 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4519         Shell functions and variables may share a namespace.
4520         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
4521         limitation.
4523 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
4525         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
4526         gnulib.
4528 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4530         * lib/autoconf/status.m4: Fix a couple of comment typos.
4532         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
4534 2007-11-13  Jim Meyering  <meyering@redhat.com>
4536         Clean up the rule to create "expr".
4537         * tests/Makefile.am (expr): Don't redirect directly to target.
4538         Redirect just once, not for each echo statement.
4539         Use $@, not literal "expr".
4541 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
4543         Don't worry about preprocessor when testing long long.
4544         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
4545         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
4546         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
4547         These no longer check for preprocessor flaws.
4548         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
4549         Do not check for preprocessor flaws.
4551 2007-11-13  Jim Meyering  <meyering@redhat.com>
4553         Adapt dependencies, now that a version change doesn't modify configure.ac
4554         * GNUmakefile: Remove "make clean" kludge.
4555         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
4556         configure.ac.
4557         Don't redirect directly to target.
4558         Use $@, not literal "version.m4".
4560 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4562         * doc/autoconf.texi (Making testsuite Scripts): Document
4563         ":;{" shorthand as in previous patch.
4565 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4567         * doc/autoconf.texi (Limitations of Builtins): Document problem
4568         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
4569         for the workaround.
4570         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
4571         Use ":;{" shorthand.
4572         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
4574 2007-11-12  Jim Meyering  <meyering@redhat.com>
4576         Add more non-srcdir build support.
4577         * GNUmakefile (dummy): Split a long line.
4578         Add -v option to autoreconf invocation.
4580         Remove the autoreconf-provided INSTALL, so that we regenerate it.
4581         * GNUmakefile (dummy): Remove INSTALL.
4583         Remove racy commands to build scripts in bin/ and tests/.
4584         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
4585         are guaranteed to be built, remove the rules that tried to build
4586         them.  Before, with a parallel build, these rules could lead to
4587         two processes writing tests/wrapper.in concurrently.
4589         Build in man/ only *after* building in bin/ and tests/.
4590         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
4591         in both bin/ and tests/.
4593         Accommodate non-srcdir build-from-checkout.
4594         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
4595         Use git's --git-dir=$srcdir/.git option.
4596         Add quotes, in case tarball_version_file contains shell meta-characters.
4597         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
4598         * configure.ac: Pass "." to git-version-gen.
4600         Avoid spurious test failures due to version skew.
4601         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
4603 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4605         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
4606         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
4607         Remove conftest.dSYM directory.
4608         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
4609         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
4610         Remove `conftest.*' recursively.
4611         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
4612         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4613         Likewise.
4614         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
4615         * THANKS: Update.
4616         Report and analysis by Jeff Squyres and Peter O'Gorman.
4618 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
4620         Fix typos in variable names.
4621         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
4623 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
4625         Document that $((expression)) is not portable.
4626         * doc/autoconf.texi (Shell Substitutions): Here.
4628 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4630         Ignore configure --help* errors due to LINENO-impaired shells.
4631         * tests/torture.at (Configuring subdirectories, Deep Package):
4632         In the --help* tests in read-only trees, make `.' temporarily
4633         writable again for the `stderr' file, and ignore errors due to
4634         the attempt to write configure.lineno.
4635         Report by Patrick Welche.
4637 2007-11-10  Jim Meyering  <meyering@redhat.com>
4639         Generate package.m4 in build-dir, not srcdir.
4640         * tests/Makefile.am (package.m4): Adjust target.
4641         Don't redirect directly to $@.
4642         (CLEANFILES): Add package.m4.
4643         ($(TESTSUITE)): Depend on just-built package.m4, not the one
4644         in $(srcdir).
4645         When running $(AUTOTEST), search "." before searching $(srcdir).
4647         Avoid a race condition that would make parallel "distclean" fail.
4648         * tests/Makefile.am (distclean-generic): Replace the default,
4649         automake-provided rule with an identical one, but with an additional
4650         dependency on distclean-local.  Simply adding the dependency would
4651         cause automake not to emit the rule at all.
4652         * BUGS: Building with -jN works, now.
4654         Distribute git-version-gen.
4655         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
4656         since GNUmakefile is distributed, and requires it for dist* rules.
4658         Remove two more generated files from version control.
4659         * INSTALL: Remove generated file.
4660         * lib/autoscan/autoscan.list: Remove generated file.
4662 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4664         * GNUmakefile (PATH): Remove stray apostrophes; they become
4665         part of PATH, which isn't wanted here.
4667 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4669         New config files output variable `top_build_prefix'.
4670         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
4671         `top_build_prefix'.
4672         * doc/autoconf.texi (Preset Output Variables): Document it.
4673         * NEWS: Update.
4674         Report by Bob Friesenhahn.
4676         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
4677         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
4678         function, to parametrize arithmetic with expr vs. the shell.
4679         Use it where possible.
4680         Suggestion by Benoit Sigoure.
4682 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
4684         Adjust the documentation of autotest WRT atlocal.
4685         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
4686         when using Automake, to write a rule to produce atlocal, since it's
4687         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
4688         distributed, not atconfig.in.
4690 2007-11-04  Eric Blake  <ebb9@byu.net>
4692         Update list information.
4693         * README: Mention new autoconf-commit list.
4694         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
4696 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4698         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
4700         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
4702         * build-aux/.gitignore: Ignore mkinstalldirs.
4704         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
4706 2007-11-03  Jim Meyering  <meyering@redhat.com>
4708         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
4709         * build-aux/git-version-gen: This syncs from coreutils.
4711         Adjust the build procedure so "make check" works reliably.
4712         * README-hacking: Include an extra step between "make" and
4713         "make check" to ensure that the latter passes.
4715         Use just-built tools, when possible.
4716         * GNUmakefile (PATH): Set and export here, ...
4717         (dummy): ... rather than here.
4719 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4720         and Andreas Schwab  <schwab@suse.de>
4722         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
4723         exit status bug.
4725 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4727         * configure.ac (AC_PREREQ): Require version 2.60, for
4728         AC_PROG_SED, AC_PROG_GREP.
4730 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
4731         and Jim Meyering  <meyering@redhat.com>
4732         and Andreas Schwab <schwab@suse.de>
4733         and Eric Blake  <ebb9@byu.net>
4735         Document a bug in GNU Bash with compound commands and redirections.
4736         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
4737         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
4738         workaround.
4740 2007-11-03  Eric Blake  <ebb9@byu.net>
4742         Support m4 1.4.5 in testsuite.
4743         * tests/torture.at (Define a newline): Exclude line numbers in
4744         error message.
4745         Reported by Ralf Wildenhues.
4747 2007-11-03  Jim Meyering  <meyering@redhat.com>
4749         Remove automake-provided files from version control.
4750         * build-aux/elisp-comp: Remove file.
4751         * build-aux/install-sh: Remove file.
4752         * build-aux/missing: Remove file.
4753         * build-aux/mdate-sh: Remove file.
4754         * build-aux/.gitignore: New file.
4755         Suggestion from Ralf Wildenhues.
4757 2007-11-03  Eric Blake  <ebb9@byu.net>
4759         Adjust version comparison to account for git snapshot numbers.
4760         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
4761         component separator.
4762         * doc/autoconf.texi (Number processing Macros)
4763         <m4_version_compare>: Document this change.
4764         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
4766 2007-10-30  Bruno Haible  <bruno@clisp.org>
4768         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
4769         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4770         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
4771         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
4772         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
4773         Suggested by Paul Eggert.
4775 2007-10-28  Jim Meyering  <meyering@redhat.com>
4777         * README-hacking: Autoconf, Automake, and Perl are required to build.
4778         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
4780 2007-10-28  Jim Meyering  <meyering@redhat.com>
4782         README-hacking: Recommend running autoreconf -vi.
4783         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
4784         so that we use just-built tools when they're available.
4785         Suggestions from Ralf Wildenhues.
4787 2007-10-28  Jim Meyering  <meyering@redhat.com>
4789         Make inter-release --version output more useful.
4791         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
4792         which indicates that it is built using the 19th change set
4793         (in _some_ repository) following the "v2.61a" tag, and that 58dd
4794         is a prefix of the commit SHA1.
4795         * build-aux/git-version-gen: New file.
4796         * configure.ac: Run it to set the version.
4797         (AM_INIT_AUTOMAKE): Don't check NEWS here.
4798         * Makefile.am (dist-hook): Arrange so that .version appears only
4799         in distribution tarballs, never in a checked-out repository.
4800         * .gitignore: Add .version here, too.  Just in case.
4801         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
4802         not configure.ac, now that the version number changes automatically.
4804         Ensure that $(VERSION) is up to date for dist-related targets.
4805         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
4806         git-version-gen doesn't match $(VERSION), but only for dist targets.
4808 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4810         Fix `Deep Package' failure with a configure script early in PATH
4811         * tests/torture.at (Deep Package): Add `.' early in PATH.
4812         Report by Jim Meyering.
4814 2007-10-27  Jim Meyering  <meyering@redhat.com>
4816         Remove all generated files from version control.
4817         * aclocal.m4: Remove.
4818         * configure: Remove.
4819         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
4820         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
4821         * README-hacking: New file: how to build from just-checked-out sources.
4823 2007-10-23  Eric Blake  <ebb9@byu.net>
4825         Improve corner case of m4_expand.
4826         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
4827         efficiently.
4828         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
4829         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
4830         documentation.
4832 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4834         * doc/make-stds.texi: Update from gnulib.
4836 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4837         and Eric Blake  <ebb9@byu.net>
4839         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
4840         problem reported by Bruno Haible in
4841         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
4843 2007-10-22  Eric Blake  <ebb9@byu.net>
4845         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
4846         preprocessor.
4848 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4850         Don't check for bug in HP-UX 11.00 cpp.
4851         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4852         Use -1ull rather than -1u, since that causes problems with gnulib; see
4853         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4855 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4857         * tests/autotest.at (Backquote command substitution)
4858         (Multiline backquote command substitution)
4859         (Parenthetical command substitution)
4860         (Multiline parenthetical command substitution): Fix typos in
4861         test names.
4863 2007-10-21  Eric Blake  <ebb9@byu.net>
4865         * configure: Regenerate.
4867 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4869         Fix config status generation with Tru64 ksh.
4870         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
4871         escaping of backslash in here-documents.
4873         Fix `Deep Package' test failure on FreeBSD.
4874         * tests/torture.at (Deep Package): Do not add `.' to $PATH
4875         unnecessarily.  Do not try running `/bin/sh configure' with a
4876         configure script to be found in $PATH, if the shell does not do
4877         this resolution.  Fixes test failure on FreeBSD.
4879         Fix config header generation with AIX awk.
4880         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
4881         script, use helper array D_is_set, as `" 0"' does not evaluate
4882         to true for AIX awk.
4884 2007-10-21  Eric Blake  <ebb9@byu.net>
4886         * tests/autotest.at (Banners): Reinstate test, with typo
4887         corrected.
4889 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4891         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
4892         <at_func_validate_ranges>: ... using this new function.
4893         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
4894         Test --list with ranges and keywords.
4895         (Banners): Remove one now-failing test.
4897 2007-10-20  Eric Blake  <ebb9@byu.net>
4899         Fix testsuite --list subset.
4900         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
4901         back to spaces, before listing subset of tests.
4902         Reported by Ralf Wildenhues.
4904 2007-10-19  Eric Blake  <ebb9@byu.net>
4906         s/parenthesis/parentheses/ where appropriate.
4907         * doc/autoconf.texi: Fix typos.
4908         * lib/m4sugar/m4sugar.m4: Likewise.
4909         Reported by Ralf Wildenhues.
4911         Document m4_expand limitation.
4912         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
4913         unbalanced parse.
4914         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
4915         (Writing Testsuites): Mention limitations inherited from
4916         m4_expand.
4918         Improve AT_BANNER handling.
4919         * lib/autotest/general.m4 (BANNERS): New named diversion.
4920         (TESTS_END): Diversion no longer used.
4921         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
4922         shell function, which prints only as needed, using an associative
4923         array of banner text from a special diversion.
4924         <PARSE_ARGS_END>: No longer need awk to find banners.
4925         <TESTS>: Banners are no longer processed by main driver loop, so
4926         we no longer need case statement.
4927         (AT_BANNER): Rewrite to populate new diversion.
4928         (AT_SETUP): Each test invokes its own banner.  No output is needed
4929         to the TESTS diversion.
4930         * doc/autoconf.texi (Writing Testsuites): Document slight
4931         semantics change.
4932         * tests/autotest.at (AT_BANNERS): Enhance test.
4933         * NEWS: Document AT_BANNER.
4935         Document and test AT_BANNER.
4936         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
4937         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
4938         (AT_CHECK_BANNERS): New test.
4940         Doc touchups.
4941         * doc/autoconf.texi (Text processing Macros) <m4_strip>
4942         <m4_text_wrap>: Clarify and fix typos.
4944 2007-10-18  Eric Blake  <ebb9@byu.net>
4946         Ignore `make dist' changelogs in testsuite.log.
4947         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
4948         directories matching AT_PACKAGE_TARNAME-*.
4950         Fix AT_TESTED, AT_KEYWORDS.
4951         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
4952         occurs in string, as duplicates may be added.
4953         (_m4_append_uniq): New helper macro.
4954         (m4_append_uniq_w): New macro.
4955         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
4956         duplication bug by using new macro.
4957         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
4958         programs with stdin redirected, so programs that don't
4959         understand --version won't try to behave interactively.
4960         * tests/autotest.at (Tested programs): Catch this bug.
4961         * tests/m4sugar.at (m4@&t@_append): Test new macro.
4962         * tests/local.at (AT_TESTED): Add m4, perl.
4963         * doc/autoconf.texi (Text processing Macros): Document
4964         m4_append_uniq_w, and update text on m4_append.
4965         * NEWS: Document the addition.
4967 2007-10-17  Eric Blake  <ebb9@byu.net>
4969         Function cleanup.
4970         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
4971         from m4 macro...
4972         (AT_INIT) <at_func_create_debugging_script>: ...to shell
4973         function.
4974         (AT_INIT): Defer function declarations until after --help,
4975         --version.  Format functions consistently, trying to fit in 80
4976         columns.
4977         (TEST_FUNCTIONS): Based on recent changes, rename...
4978         (TEST_GROUPS): ...to this.
4980         Reject FreeBSD m4.
4981         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
4982         * configure: Regenerate.
4983         Reported by Bob Friesenhahn.
4985         Test recent additions.
4986         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
4987         (m4@&t_max and m4@&t_min): New tests.
4988         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
4989         description.
4991 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4993         * TODO: multiline args in config files and headers work now.
4995         Autotest: do not use shell functions for individual tests.
4996         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
4997         extract the source test source, do not invoke it.
4998         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
4999         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
5000         expect exit status of 1.
5001         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
5003         * lib/autotest/general.m4 (at_func_test): Fix test extraction
5004         script.
5006 2007-10-17  Eric Blake  <ebb9@byu.net>
5008         Fix m4_combine for empty suffix list.
5009         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
5010         * doc/autoconf.texi (Text processing Macros): Document this.
5012         Add m4_combine, based on Libtool's lt_combine.
5013         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
5014         * doc/autoconf.texi (Text processing Macros): Document it.
5015         * NEWS: Likewise.
5017 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5019         Fix `configure --help=recursive' in unconfigured/read-only trees.
5020         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
5021         is not writable, use 'cp -p' in this case, in the hope that it
5022         will not actually be needed.  Still try removing files, in case
5023         of other write errors.
5024         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
5025         use $as_myself, not $0.
5026         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
5027         exist, try again in the the source tree.  This change assumes
5028         that the subpackage configure script is capable of running
5029         --help=recursive in the source tree.
5030         * tests/torture.at (Configuring subdirectories, Deep Package):
5031         Adjust tests to expose both issues, also try invocation as
5032         `sh configure ...' and plain `configure ...' with PATH adjusted.
5033         * NEWS, THANKS: Update.
5034         Report by Hans Ulrich Niedermann.
5036 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5038         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
5039         Problem reported by H.Merijn Brand in
5040         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
5041         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
5042         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5043         Check that preprocessor handles 64-bit ints, too.
5045 2007-10-16  Eric Blake  <ebb9@byu.net>
5047         m4_map is a looping construct.
5048         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
5050         Fix m4_map, and add some more utility macros.
5051         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
5052         (m4_echo, m4_make_list): New documented macros.
5053         (_m4_quote, _m4_shift2): New helper macros.
5054         (m4_map): Change semantics to allow calling macro without
5055         arguments.
5056         (m4_map_sep): Likewise.  Also change semantics to quote separator,
5057         to match m4_join and m4_append.
5058         (m4_version_unletter): Fix use of m4_map.
5059         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
5060         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
5061         (Text processing Macros): Mention m4_dquote as a faster
5062         alternative to joining with commas.
5063         (Looping constructs): Document m4_map, m4_map_sep.
5064         * NEWS: Mention new macros.
5066         A few more m4sugar improvements, to benefit libtool.
5067         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
5068         of expansion by avoiding extra uses of $@.
5069         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
5070         (_m4_cdr): New helper macro.
5071         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
5072         (_m4_shift3): New helper macro.
5073         (_m4_foreach): Swap argument order, and use new macro to reduce
5074         size of expansion.
5075         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
5076         count must be positive.
5078         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
5079         Reported by Ralf Wildenhues.
5081 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5083         * doc/autoconf.texi (Portable Shell): Improve description of zsh
5084         4.x function subshell bug with exit and trap.
5086 2007-10-15  Eric Blake  <ebb9@byu.net>
5088         Enhance AS_HELP_STRING.
5089         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
5090         and reduce number of expansions.
5091         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
5092         and to take indent and wrap column numbers.
5093         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
5094         * doc/autoconf.texi (Pretty Help Strings): Document details about
5095         arguments.
5096         (Text processing Macros): Minor tweaks.
5097         * NEWS: Document this change.
5099         Fix 2007-10-03 regression with AT_SETUP([a, b]).
5100         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
5101         (m4_text_box): Use it.
5102         * lib/autotest/general.m4 (AT_SETUP): Use it.
5103         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
5104         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
5105         * NEWS: Revert caveat about semantics change on comma.
5106         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
5108 2007-10-13  Eric Blake  <ebb9@byu.net>
5110         Change m4_join to match libtool's ltsugar semantics.
5111         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
5112         Ignore empty arguments, using...
5113         (_m4_join): ...this new helper.
5114         * tests/m4sugar.at (m4@&t@_join): New test.
5115         * doc/autoconf.texi (Text processing Macros): Document new
5116         semantics of m4_join.
5118         Make AC_PREREQ faster and more robust.
5119         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
5120         (m4_version_prereq): Inline constant expansions.
5121         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
5122         Rewrite in terms of [] list, not () list.
5123         (_m4_list_cmp, _m4_version_unletter): New helper macros.
5124         (m4_version_unletter): Write wrapper around new implementation to
5125         preserve old semantics.
5126         (m4_version_compare): Pass correct type of list, and avoid
5127         overhead of flattening expressions too early.
5128         (m4_do): Move to be near other quoting macros.
5129         (m4_max, m4_min): Always result in decimal output.
5130         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
5131         Move m4_do...
5132         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
5133         (Text processing Macros): Move m4_version_compare...
5134         (Number processing Macros): ...to this new node; document m4_cmp,
5135         m4_list_cmp, m4_sign, m4_max, m4_min.
5136         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
5137         up on bugs fixed by this patch.
5138         * NEWS: Document new macros.
5140 2007-10-12  Eric Blake  <ebb9@byu.net>
5142         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
5143         (Reporting Messages): Fix underfull hbox.
5145         Some more m4sugar documentation.
5146         * lib/m4sugar/m4sugar.m4: Clean up macro order.
5147         * doc/autoconf.texi (Programming in M4): Lighten the warning on
5148         using m4sugar; it is stabilizing and useful.
5149         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
5150         m4_divert, m4_undivert, __file__, __line__, __oline__.
5151         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
5152         m4_fatal, m4_location, m4_warn.
5153         (Diversion support): New node, documenting m4_divert_push,
5154         m4_divert_pop, m4_divert_text, m4_divert_once.
5155         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
5156         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
5157         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
5158         as obsolescent.
5159         (Printing Messages): Change cross-reference.
5161         Document interaction of recent m4_append change with Libtool HEAD.
5162         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
5163         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
5164         * tests/m4sugar.at (m4@&t@_append): New test.
5165         * NEWS: Document semantics change.
5166         * doc/autoconf.texi (Text processing Macros): Likewise.
5168         s/AC_VERSION/AC_AUTOCONF_VERSION/.
5169         * doc/autoconf.texi (Versioning): Change the name.
5170         * NEWS: Likewise.
5171         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
5172         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
5173         Suggested by Ralf Wildenhues.
5175         Namespace cleanup.
5176         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
5177         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
5178         autoconf namespace.
5179         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
5180         (Programming in M4sh, Macro Names): Beef up description of
5181         namespaces reserved for autoconf.
5182         * configure: Regenerate.
5184 2007-10-12  Eric Blake  <ebb9@byu.net>
5185         and Paolo Bonzini  <bonzini@gnu.org>
5187         Speed up execution of subset of testsuite.
5188         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
5189         (AT_INIT) <at_func_test>: New shell function.
5190         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
5191         (AT_INIT) <at_test_source> New variable, names file that holds
5192         current test function definition.
5193         (AT_SETUP): Start the shell function at_func_test_#, into the
5194         TEST_FUNCTIONS diversion.
5195         (AT_CLEANUP): End the shell function.  Simplify the TESTS
5196         diversion to invoke the function.
5198 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5200         * .gitignore: Ignore tags and TAGS files.
5202 2007-10-11  Eric Blake  <ebb9@byu.net>
5204         Config header generation followup.
5205         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
5206         which won't work with the preprocessor nor with the awk
5207         implementation.
5208         * tests/torture.at (Define a newline): Test raw newline detection,
5209         removing the XFAIL.
5210         * doc/autoconf.texi (Defining Symbols): Document recent change to
5211         allow backslash-newline.
5212         * THANKS: Update.
5214 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5216         * lib/autotest/general.m4: Put function braces in separate line.
5218 2007-10-10  Eric Blake  <ebb9@byu.net>
5220         Avoid some overhead from m4_defn and m4_popdef.
5221         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
5222         pass on first argument, since we are documented that way.
5223         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
5224         check where it is safe to do so.
5225         (m4_append): Likewise, and quote the separator.
5226         (m4_text_box): Likewise, and avoid regex, also be robust to
5227         expansion and quadrigraphs.
5229         Another AC_DEFINE speedup.
5230         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
5231         elision...
5232         (_AC_DEFINE_Q): ...here, and only do it once.
5233         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
5234         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
5235         introduced 2007-10-05.
5237         Whitespace cleanup.
5238         * lib/autoconf/general.m4: Use consistent indentation.
5239         * configure: Regenerate.
5241         * NEWS: Announce recent round of speed optimizations.
5243 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5245         * NEWS: Announce shell function usage in Autotest.
5247 2007-10-10  Eric Blake  <ebb9@byu.net>
5248         and Paul Eggert  <eggert@cs.ucla.edu>
5250         Reduce number of forks at startup.
5251         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
5252         sanitization.
5253         * configure: Regenerate.
5255 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5256         and Paul Eggert  <eggert@cs.ucla.edu>
5258         Use awk for config header generation.
5259         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
5260         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
5261         header machinery for use with awk and placement outside the main
5262         config.status instantiation loop.  Retain multi-line defines
5263         through backslash-newline combinations, do not split the script
5264         any more.
5265         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
5266         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
5267         needed.
5268         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
5269         from define values.
5270         * NEWS: Update.
5271         * tests/torture.at (#define header templates): Extend test by
5272         several more cases: white space before and after `#', macros
5273         with parameters in config.hin and as defines, multi-line macro
5274         values.
5275         (Torturing config.status): Use a define value twice the length
5276         in order to exercise the awk literal string limit.
5277         (Substitute and define special characters): Also try special
5278         delimiter, to exercise the special-case code.
5279         Suggestion by Eric Lemings.
5281 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5283         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
5285 2007-10-09  Eric Blake  <ebb9@byu.net>
5287         Improve header of bin/autoconf.
5288         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
5289         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
5290         from M4sh.
5291         * bin/autoconf.as: Put copyright up front in generated file.
5293         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
5295 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5297         * doc/install.texi (Basic Installation): Document `uninstall'.
5298         * INSTALL: Regenerate.
5299         Suggestion by Roberto Bagnara.
5301 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5303         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
5305         Adjust doc. to match latest gnulib.
5306         * build-aux/texinfo.tex: Sync from gnulib.
5307         * doc/standards.texi: Likewise.
5308         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
5309         Documentation License" and remove the subsection.  This simplifies
5310         the manual a bit and is more like what other GNU projects do
5311         nowadays.
5313 2007-10-08  Eric Blake  <ebb9@byu.net>
5315         Use recent changes.
5316         * configure: Regenerate.
5318         Fix regression in m4_text_wrap from 2007-10-05.
5319         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
5320         (m4_sign): Sort.
5321         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
5322         m4_format.
5323         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
5324         * tests/autotest.at (Long test title, Longer test title): Test
5325         this fix, beyond what AS_HELP_STRING already tests.
5327         Avoid m4 warnings on bad m4_format usage.
5328         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
5329         evaulates to 0.
5330         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
5331         enough arguments are provided.
5333 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
5335         * doc/autoconf.texi (Shell portability): Document shell function
5336         portability.
5338 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
5340         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
5341         at_func_check_skip, at_func_check_status, at_func_filter_trace,
5342         at_func_log_failure shell functions.  Use test -s to avoid
5343         useless diff invocations.
5344         (at_func_check_newline): Renamed from at_check_newline.
5345         (AT_SETUP): Define AT_captured_files to empty.
5346         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
5347         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
5348         the shell functions.
5350 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5352         Don't assume "." is writeable, for commands like "autoconf --version".
5353         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
5354         different heuristic instead, one that doesn't rely on creating
5355         files.
5357         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
5358         correctly.
5360 2007-10-05  Jim Meyering  <meyering@redhat.com>
5362         Avoid makeinfo warnings.
5363         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
5364         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
5366 2007-10-05  Eric Blake  <ebb9@byu.net>
5368         Resolve Python issue 1676135 regarding configure directory args.
5369         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
5370         slashes from directory arguments.
5371         * tests/base.at (configure directories): New test.
5372         * doc/autoconf.texi (Installation Directory Variables): Document
5373         the change.
5374         * NEWS: Likewise.
5375         * THANKS: Update.
5376         Reported by Björn Lindqvist.
5378         Provide better short-circuiting operation.
5379         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
5380         (m4_text_wrap): Use it.  Also avoid useless m4_for.
5381         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
5382         new macro.
5383         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
5384         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
5385         to avoid regexps.
5386         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
5387         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
5388         (Conditional constructs): ...here, to new section.  Also document
5389         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
5390         m4_bpatsubsts, and m4_default.
5391         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
5392         m4_do.
5394 2007-10-04  Eric Blake  <ebb9@byu.net>
5396         Fix recent testsuite failures.
5397         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
5398         that must not be re-expanded after AS_ESCAPE.
5399         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
5400         checking if it is an identifier.
5402         Whitespace cleanup.
5403         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
5404         leading whitespace, as it caused space-tab in testsuite.
5405         (AT_INIT): Avoid trailing newlines in testsuite.
5407         One more round of m4_foreach_w speedups.
5408         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
5409         is present.
5410         (_m4_split): Avoid useless expansions inside definition.  Move
5411         argument defaulting...
5412         (m4_split): ...here.  Change alternate quote to something less
5413         likely to appear in $1.  Also, special case space as regexp...
5414         (m4_foreach_w): ...to avoid regexp on single-term list.
5415         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
5416         useless expansions inside definition.
5417         * tests/m4sugar.at (m4@&t@_split): Add tests.
5419 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
5421         * general.m4 (AT_INIT): Add at_check_newline function.
5422         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
5423         (_AT_CHECK): Don't use at_trace_this.
5425 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
5427         Fix previous commit.
5428         * lib/autotest/general.m4 (AT_LINE): Fix regex.
5430 2007-10-04  Eric Blake  <ebb9@byu.net>
5432         Speed up building testsuites.
5433         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
5434         changed since last time.  Use simpler regex.
5436 2007-10-03  Eric Blake  <ebb9@byu.net>
5438         Optimize checking for identifiers.
5439         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
5440         macros, more efficient than regex on m4_re_word.
5441         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
5442         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
5443         now use @&t@.
5444         * configure: Regenerate.
5446         Remove some XFAILs, and make AT_SETUP output line up.
5447         * lib/autotest/general.m4 (AT_SETUP): Only expand description
5448         once; thereafter, use its expansion, properly quoted.
5449         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
5450         expansion with arguments, and check for aligned output.
5451         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
5452         Add a test for macros with parameters.
5453         * NEWS: Document the semantics change.
5454         * tests/base.at: Fix test titles containing commas.
5455         * tests/compile.at: Likewise.
5456         * tests/tools.at: Likewise.
5457         * tests/torture.at: Likewise.
5459         Another round of regex avoidance.
5460         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
5461         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
5462         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
5463         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
5464         character ranges useful in m4_translit.
5465         (m4_toupper, m4_tolower): Optimize the constant portion of
5466         definition.
5467         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
5468         creates $, and reject [] thanks to AS_TR_SH rewrite.
5469         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
5470         (AS_ESCAPE): Factor...
5471         (_AS_ESCAPE): ...into new macro, with second argument required.
5472         Avoid regex in common case.
5473         (_AS_QUOTE): Use new macro.
5475         Whitespace cleanup.
5476         * lib/autoconf/types.m4: Avoid space-tab.
5477         * lib/m4sugar/m4sh.m4: Use tab consistently.
5479 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5481         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
5482         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
5483         should remove m4_shiftn entirely?
5484         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
5485         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
5486         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
5487         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
5488         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
5490 2007-10-03  Eric Blake  <ebb9@byu.net>
5492         Comment touchups.
5493         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
5495 2007-10-02  Eric Blake  <ebb9@byu.net>
5497         Optimize appending text.
5498         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
5499         expressions.
5501         Optimize recursion.
5502         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
5503         lot of hot spots; optimize it for 2 and 3 shifts.
5505         Optimize AC_PREREQ and other m4sugar numerics.
5506         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
5507         (m4_cmp): Compare arbitrary expressions, without overflow.
5508         (m4_version_unletter): Also recognize capital letters.
5509         (m4_version_compare): Avoid regex when splitting version number
5510         string.
5512 2007-10-01  Eric Blake  <ebb9@byu.net>
5514         Once again, reject IRIX m4.
5515         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
5516         implementations that ignore --trace.
5517         * configure: Regenerate.
5518         Reported by Ralf Wildenhues.
5520         Fix regression in AC_DEFINE([macro(with_arg)]).
5521         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
5522         quotes with a careless m4_substr.
5524 2007-09-30  Eric Blake  <ebb9@byu.net>
5526         Allow nameless iteration.
5527         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
5528         indirectly.
5529         * tests/m4sugar.at (myvar): Test this.
5531 2007-09-29  Eric Blake  <ebb9@byu.net>
5533         Speed optimization: avoid m4 regex when other algorithms work.
5534         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
5535         (_AS_QUOTE_IFELSE): Likewise.
5536         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
5537         (m4_bpatsubsts): Split...
5538         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
5539         regex.
5540         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
5541         (m4_qlen): Optimize on short strings, to avoid regex.
5542         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
5543         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
5544         (AC_DEFINE_TRACE): Likewise.
5546 2007-09-28  Eric Blake  <ebb9@byu.net>
5548         Oops - my earlier 'optimization' caused a regression.
5549         * tests/local.at (AT_CHECK_M4): Fix typo.
5551 2007-09-27  Eric Blake  <ebb9@byu.net>
5552         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5554         Catch even more common AC_CACHE_VAL mistakes.
5555         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
5556         lacks '_cv_', or if AC_SUBST appears in body.
5557         * tests/base.at (AC_CACHE_CHECK): Test this change.
5559 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
5560         and Eric Blake  <ebb9@byu.net>
5562         Autotest no longer caters to Ultrix redirection limitation.
5563         * doc/autoconf.texi (Writing testsuite.at): Remove the
5564         limitation that the first parameter of AT_CHECK cannot
5565         contain redirection.
5566         (File Descriptors): Mention that Ultrix limitation is no longer a
5567         show-stopper in modern code.
5568         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
5569         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
5570         * lib/autotest/general.m4 (AT_CHECK): Update comment.
5572 2007-09-27  Eric Blake  <ebb9@byu.net>
5574         Squelch changeword in m4sugar.
5575         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
5576         feature of m4 1.4.x.
5578         Configure whitespace touchups.
5579         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
5580         installation directories, and avoid TAB, in configure --help
5581         output.
5582         * configure.ac: Avoid extra trailing newline.
5583         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
5584         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
5585         config.status --help output.
5586         * configure: Regenerate.
5588         Fix underquotation in AS_HELP_STRING.
5589         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
5590         argument.
5591         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
5592         first-prefix argument.
5593         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
5594         * NEWS: Document AS_HELP_STRING fix.
5596         Autotest formatting touchups.
5597         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
5598         output.
5599         (PATH): Simplify computation of new PATH.
5601 2007-09-26  Eric Blake  <ebb9@byu.net>
5603         Fix testsuite breakage in last patch.
5604         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
5605         font-lock fix.
5606         * tests/torture.at (@%:@define header templates): Rename, so that
5607         output lines up correctly.
5609         More font-lock happiness.
5610         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
5611         confusion.
5613 2007-09-25  Eric Blake  <ebb9@byu.net>
5615         Typo fixes.
5616         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
5617         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
5619         Improve documentation of M4 parameter expansion.
5620         * doc/autoconf.texi (Quoting and Parameters): New section.
5621         (Quotation and Nested Macros): Improve wording.
5623         Improve C99 detection.
5624         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
5625         avoid deprecation warning with icc.
5626         * THANKS: Update.
5627         Reported by Ted Bullock.
5629 2007-09-24  Jim Meyering  <jim@meyering.net>
5631         Whenever possible, use the vertical bar as sed delimiter.
5632         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
5633         Use "|", not "!".
5634         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
5635         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
5636         * tests/mktests.sh (as_me): Likewise.
5637         * lib/freeze.mk (check-forbidden-patterns): Likewise.
5638         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
5639         * configure: Regenerate.
5640         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
5641         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
5642         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
5643         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
5645 2007-09-22  Jim Meyering  <jim@meyering.net>
5647         Add a comment.
5648         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
5649         2004-05-31 change also with a comment in the code.
5651 2007-09-20  Eric Blake  <ebb9@byu.net>
5653         More contribution housekeeping.
5654         * THANKS: Sort.
5655         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
5657         Ignore additional files, when copying cross-repository.
5658         * .gitignore: Ignore CVS directories, emacs edits.
5659         * .cvsignore: Ignore .git directory, emacs edits.
5661 2007-09-15  Eric Blake  <ebb9@byu.net>
5663         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
5664         * doc/autoconf.texi (Text processing Macros): Remove mention of
5665         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
5666         once again.
5667         (Notices): Move AC_PREREQ...
5668         (Versioning): ...to this new section, alongside the new AC_VERSION
5669         alias for the undocumented m4_PACKAGE_VERSION.
5670         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
5671         * lib/autoconf/general.m4 (AC_VERSION): New macro.
5672         * NEWS: Update to match this rename.
5673         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
5674         m4_PACKAGE_VERSION.
5675         * tests/tools.at (autoconf: AC_VERSION): New test.
5676         Suggested by Paolo Bonzini and Benoit Sigoure.
5678 2007-09-14  Eric Blake  <ebb9@byu.net>
5680         Prepare for conversion to git.
5681         * doc/.cvsignore: Avoid multiple listings on one line.
5682         * bin/.cvsignore: Likewise.
5683         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
5684         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
5685         lib/autoscan/.gitignore, lib/autotest/.gitignore,
5686         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
5687         tests/.gitignore: New files, identical to .cvsignore counterpart.
5689 2007-09-13  Eric Blake  <ebb9@byu.net>
5691         Editing eye-candy.
5692         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
5693         font-lock balance.
5694         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
5695         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
5696         * configure: Regenerate.
5698         Clean up 'make dist' of previous patch.
5699         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
5700         (CLEANFILES): Don't clean the stamp, since we distribute the
5701         generated files pre-built.
5702         (MAINTAINERCLEANFILES): Clean it here instead.
5703         * tests/Makefile.in: Regenerate.
5705         Avoid parallel 'make check' issue.
5706         * tests/Makefile.am (mktests.stamp): New witness.
5707         (TESTSUITE_GENERATED_AT): Use it.
5708         (CLEANFILES): Clean the witness.
5709         * tests/.cvsignore (mktests.stamp): Ignore the witness.
5711         Document another awk pitfall.
5712         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
5713         limitation of field variables in END.
5714         Reported by Gary V. Vaughan.
5716         * AUTHORS: Add missing entries.
5718 2007-09-12  Eric Blake  <ebb9@byu.net>
5720         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
5721         * doc/autoconf.texi (Text processing Macros): Document
5722         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
5723         (Redefined M4 Macros): Document m4_ifndef.
5724         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
5725         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
5726         used it while it was undocumented.
5727         * NEWS: Document this change.
5728         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
5729         * lib/m4sugar/Makefile.in: Regenerate.
5730         * tests/m4sugar.at (m4@&t@_version_compare): New test.
5731         Reported by Bruno Haible.
5733         * doc/autoconf.texi (Generic Compiler Characteristics): Add
5734         missing index entries.
5736 2007-09-11  Eric Blake  <ebb9@byu.net>
5738         Centralize all system extensions checks.
5739         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
5740         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
5741         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
5742         AC_USE_SYSTEM_EXTENSIONS.
5743         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
5744         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
5745         * doc/autoconf.texi (Posix Variants): Reword this section,
5746         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
5747         rather than a series of system-specific checks.
5748         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
5749         AC_MINIX.
5750         * NEWS: Document this change.
5751         * THANKS: Update.
5752         Reported by Martin Koeppe.
5754 2007-09-08  Eric Blake  <ebb9@byu.net>
5756         Clean up obsolete macros references.
5757         * doc/autoconf.texi: Add anchors to support better
5758         cross-referencing.
5759         (Particular Structures): Move obsolete macros descriptions...
5760         (External Software): Likewise.
5761         (Package Options): Likewise.
5762         (Obsolete Macros): ...to here.  Add cross-references to
5763         documentation on replacements.
5764         * NEWS: Mention that these macros have been obsolete for a while
5765         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
5767         Improve M4 path searching during configure.
5768         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
5769         macro.
5770         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
5771         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
5772         parameter, and kill side effects.
5773         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
5774         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
5775         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
5776         is found.
5777         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
5778         allow bootstrapping with autoconf 2.61.
5779         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
5780         * configure: Regenerate.
5781         * doc/autoconf.texi (Generic Programs): Document new macro.
5782         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
5783         macro.
5784         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
5785         * NEWS: Document the change.
5786         * THANKS: Update.
5787         Reported by Hans Aberg.
5789         * doc/autoconf.texi (Generic Programs): Fix typo.
5791 2007-09-06  Eric Blake  <ebb9@byu.net>
5793         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
5794         :, and make it clear that optional @var{path} defaults to $PATH.
5795         (Erlang Compiler and Interpreter): Likewise.
5797         Texinfo cleanup.
5798         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
5799         Reword some paragraphs to avoid overfull, underfull hbox
5800         warnings.  Add index entries to avoid overfull vbox warnings.
5802 2007-09-05  Eric Blake  <ebb9@byu.net>
5804         * NEWS: Adjust wording for AC_CONFIG_LINKS.
5805         Reported by Ralf Wildenhues.
5807 2007-09-03  Eric Blake  <ebb9@byu.net>
5809         * NEWS: Document fixes that have been applied since 2.61a.
5811         Housekeeping.
5812         * THANKS: Update, and convert to UTF-8 encoding.
5813         * AUTHORS: Likewise.
5815 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5817         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
5818         names beginning with `-' again.
5820 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
5821             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5823         * doc/autoconf.texi (Defining Directories): Mention
5824         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
5826 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5828         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
5829         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
5830         * tests/base.at (configure arguments): New test.
5831         * THANKS: Update.
5832         Report by Olaf Lenz.
5834         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
5835         arguments in comment.
5836         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
5838 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
5840         * doc/autoconf.texi (File System Conventions): Index the proper
5841         way of detecting absolute file names.
5843 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5845         * build-aux/config.guess, build-aux/config.sub,
5846         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
5847         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
5848         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
5849         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
5850         sectioning change in fdl.texi.
5852         * bin/autoconf.as: Update --version output to match current GCS.
5853         * bin/autoheader.in: Likewise.
5854         * bin/autom4te.in: Likewise.
5855         * bin/autoreconf.in: Likewise.
5856         * bin/autoscan.in: Likewise.
5857         * bin/autoupdate.in: Likewise.
5858         * bin/ifnames.in: Likewise.
5860 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5862         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
5863         file to itself if source and build trees coincide.
5864         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
5865         test.
5866         Report by Sebastian Freundt <hroptatyr@gna.org>.
5868 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5870         Reword the copyright notices to match what's suggested in GPLv3.
5871         In ChangeLog files, use more-permissive notice rather than GPL, as
5872         per usual GNU standards these days.
5874 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
5876         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
5877         limitation reported by Leo Moisio in
5878         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
5880 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5882         * COPYING: Update to GPLv3.  All uses changed.
5884 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5885         and Paul Eggert  <eggert@cs.ucla.edu>
5887         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
5888         fails on AIX 5.3.
5890 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
5892         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
5893         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
5894         `srcdir' as subdirectory of `builddir'.
5896 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
5898         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
5899         * tests/autotest.at (srcdir propagation): New test.
5900         * THANKS: Update.
5901         Reported by Mike Frysinger.
5903 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5905         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
5906         Problem reported by Fred Kreek in
5907         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
5908         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
5909         (Macro Names, Defining Directories): Don't mention PATH as a name
5910         for a fully qualified file name, as this usage violates the GNU
5911         coding standards and we shouldn't recommend it.
5913         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
5914         string and then assume shell builtins like "test" will work.
5916 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
5918         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
5919         not a valid shell variable name.
5920         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
5921         * tests/torture.at (AC_SUBST: variable name validation): New test.
5922         Reported by Andreas Schwab.
5924 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
5926         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
5927         works with both C and C++.
5929 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
5930             Bruno Haible  <bruno@clisp.org>
5932         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
5933         brand tests.
5935 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5937         * doc/autoconf.texi (Particular Types): Give example of use for
5938         AC_TYPE_INT8_T etc.
5940 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
5942         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
5944 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5946         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
5947         define HAVE_INT8_T, and likewise for similar macros.
5948         Problem reported by Patrick Welche in
5949         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
5951 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
5953         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
5955 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5957         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
5958         choice, since that's what we do with --enable-largefile etc.
5959         Redo indenting and assignments to simplify things a bit, and make
5960         the parens work with Emacs.
5962         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
5963         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
5964         Haible.
5966 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
5968         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
5969         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
5971 2007-05-21  Bruno Haible  <bruno@clisp.org>
5973         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
5974         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
5975         * doc/autoconf.texi (Generic Compiler Characteristics): Move
5976         renamed AC_OPENMP documentation here, from "C compiler".
5977         Mention C++ and Fortran.
5979 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5981         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
5983 2007-05-21  Bruno Haible  <bruno@clisp.org>
5985         * NEWS: Mention AC_C_OPENMP.
5986         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
5987         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
5988         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
5989         macro in the Autoconf macro archive.
5991 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5993         * bin/autom4te.in: Fix typos.
5995 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
5997         * bin/autoconf.as: Handle `-' just like other input files.
5998         * bin/autom4te.in (parse_args): Pass `-' through.
5999         (handle_output): Skip the forbidden token search if we read from stdin.
6000         (up_to_date): Always treat stdin as out of date.
6001         * tests/tools.at (autoconf: input from stdin): New test.
6002         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
6004 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
6006         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
6007         parameters for AT_CLEANUP.
6008         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
6010 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6012         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
6013         * doc/autoconf.texi (C Compiler): Likewise.
6015 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
6017         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
6019 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
6021         * doc/autoconf.texi: Direntry for "autoconf Invocation"
6022         renamed to "autoconf-invocation"
6024         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
6025         in the examples should not use the internal "ac_" prefix.
6027 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
6029         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
6030         * doc/autoconf.texi ($@, case): Document Zsh limitations.
6032 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
6034         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
6035         Reorganize the comments before and in the macro.
6037 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
6039         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
6040         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
6041         section titles and other comments; no code change.
6043 2007-05-01  Kevin Ryde  <user42@zip.com.au>
6045         * doc/autoconf.texi (Particular Programs): Typo
6046         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
6048 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
6050         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
6051         'configure' will fail if the shell lacks proper support for shell
6052         functions.  Suggested by RMS.
6054 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
6056         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
6057         about Solaris /bin/printf '%010000x' 123.  Problem reported by
6058         Bruno Haible.
6060 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
6062         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
6063         for a.* when searching for executables, as this prevents users
6064         from having files like a.c.  Problem reported by Ralf Wildenhues in:
6065         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
6066         This fixes a problem introduced on 2000-12-19.
6068 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6070         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
6071         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
6072         via Bruno Haible.
6074 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
6076         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
6077         AC_CHECK_TYPE, AC_CHECK_TYPES.
6078         * doc/autoconf.texi (Generic types): C types must be type-names
6079         (the C terminology), not type-ids (the C++ term).  C++ types
6080         must not be anonymous.
6081         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
6082         for C++; this drops support for anonymous struct and union types,
6083         which were problematic anyway.
6084         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
6085         for C++.
6087 2007-04-12  Jim Meyering  <jim@meyering.net>
6089         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
6091 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6093         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
6094         to prefer a link source from the build tree, if it exists.
6095         Report by Pallav Gupta <pallavgupta@gmail.com>.
6097 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
6099         * doc/autoconf.texi (Generic Types): Document the restrictions
6100         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
6101         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
6102         with objects too.  Document the restrictions on its use.
6103         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
6104         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
6105         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
6106         works but the latter doesn't, then it's a valid type.
6107         This lets people use function types and so forth.
6108         For C++ there doesn't seem to be a simple solution, so leave it alone.
6109         (AC_CHECK_SIZEOF): Allow argument to be a variable.
6110         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
6111         AC_CHECK_TYPE; that wasn't documented or necessary.
6113 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
6115         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
6116         when cross-compiling.
6118 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
6120         * doc/autoconf.texi (External Software): Fix a typo in the
6121         previous change.
6123 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6125         * doc/autoconf.texi (External Software, Package Options):
6126         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
6128 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6130         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
6131         obsolescent.  Suggested by Bruno Haible.
6132         * NEWS: Document this.
6134 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
6136         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
6137         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
6138         default still has the problem.  Problem reported by Bruce Korb.
6140 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
6141         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6143         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
6144         comment in the generated config.status.
6146 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
6148         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
6150 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
6152         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
6153         command and case statements to make it a bit clearer and describe
6154         more pitfalls.
6156 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
6158         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
6159         checks for unsigned long long int.
6161 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6163         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
6164         nonstandard grep R.E. escape sequences.
6166 2007-03-17  Jim Meyering  <jim@meyering.net>
6168         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
6169         (Limitations of Usual Tools): Also list \< and \>, and mention that
6170         HP-UX's grep, like the one from Solaris, does not support that syntax.
6172 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
6174         * doc/autoconf.texi (Specifying Names): `--host' does not
6175         change the build type.
6177 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
6179         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
6180         suggests AC_CONFIG_HEADERS.
6181         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
6182         AC_CONFIG_HEADERS.  Problem reported by
6183         Peter O'Gorman.
6185 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6187         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
6188         Problem reported by Paolo Bonzini in:
6189         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
6190         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
6191         universal binaries.  Problem reported by Elias Pipping.
6193 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
6195         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
6196         * doc/autoconf.texi (C Compiler): Document this.  There is a new
6197         extra argument ACTION-IF-UNIVERSAL.
6198         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
6199         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
6200         Reindent for sanity's sake.
6202 2007-02-24  Eric Blake  <ebb9@byu.net>
6204         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
6205         copyright.
6206         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
6207         * lib/autotest/general.m4 (AT_INIT): Likewise.
6208         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
6210 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6212         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
6213         status of rm so we know when it failed.
6214         If cleaning of test dir failed before running the test, warn.
6215         Output the line separator in verbose mode before the warning
6216         to make clear the warning belongs to the following test.
6218 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6220         * doc/autoconf.texi (Parentheses): Mention problem with (( in
6221         shells.
6223 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6224         and Paul Eggert  <eggert@cs.ucla.edu>
6226         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
6227         errors introduced in last change.
6229 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6231         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
6232         an actual carriage return.  Use "ac_cr" to contain the actual
6233         carriage return.
6234         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
6235         with traditional Awk and begin.
6236         * tests/torture.at (Limitations of Builtins): Document the problem
6237         with Bash 2.03 printf.
6238         (Substitute and define special characters):
6239         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
6241 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
6243         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
6244         input from /dev/null in awk test, so even Solaris /usr/bin/awk
6245         will not wait for input with a script containing only a BEGIN
6246         rule.
6248 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
6250         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
6251         requirements.
6252         * README: Likewise.
6254 2007-02-02  Eric Blake  <ebb9@byu.net>
6256         * NEWS: Update copyright.
6258         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
6259         broken.
6260         * configure.ac: Update error message.
6261         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
6262         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
6263         by Stepan Kasal:
6264         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
6266 2007-01-31  Eric Blake  <ebb9@byu.net>
6268         * THANKS (people): Update.
6270 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6272         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
6273         latest version.
6274         (Shell Substitutions): Note problems with @{var:=value} etc.
6275         Add a new section for problems with @{#var} etc.  Problem noted
6276         by Ralf Wildenhues.  See:
6277         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
6279 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6281         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
6282         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
6283         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
6284         substitution will still be done by the special code.
6285         Report by Jim Meyering.
6287         * doc/autoconf.texi (File System Conventions): Mention that
6288         $PATH_SEPARATOR is for the build system only.
6289         Report by Keith Marshall.
6291 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6293         * doc/autoconf.texi (Setting Output Variables): Mention that
6294         all non-NUL characters are ok in substituted values.
6295         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
6296         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
6297         carriage return for $AWK, needed for BSD awk.
6298         * tests/torture.at (Substitute and define special characters):
6299         Test all 8 bit non-NUL characters.
6300         Report against Automake by Patrick Welche.
6302 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
6304         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
6306 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6308         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
6309         early on the reader side, drop stderr of the input to avoid
6310         `broken pipe' error output; this may happen even with shell
6311         builtin `echo' of some bash versions.  Reports by Ian Macdonald
6312         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
6314 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6316         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
6317         separate items of `ac_user_opts', to avoid long lines.
6318         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
6320 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6322         * doc/autoconf.texi: Fix some typos.
6324 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6326         Fix some wording problems noted by Paolo Bonzini in:
6327         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
6328         * doc/autoconf.texi (Signed Overflow Examples): Give more
6329         discussion about the allow_superuser_privileges example,
6330         and change it a bit to make things clearer.
6331         (Optimization and Wraparound): Clarify whether the compiler
6332         will generate an infinite loop for the example derived from
6333         Autoconf's mktime test.
6334         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
6335         Also, clarify unsigned multiplication overflow.
6337 2007-01-04  Eric Blake  <ebb9@byu.net>
6339         * bin/Makefile.am (RELEASE_YEAR): New macro.
6340         (edit): Use it to supply correct copyright year to scripts.
6341         * bin/autoconf.as (version): Use it.
6342         * bin/autoheader.in ($version): Likewise.
6343         * bin/autom4te.in ($version): Likewise.
6344         * bin/autoreconf.in ($version): Likewise.
6345         * bin/autoscan.in ($version): Likewise.
6346         * bin/autoupdate.in ($version): Likewise.
6347         * bin/ifnames.in ($version): Likewise.
6349 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6351         * doc/autoconf.texi (Integer Overflow): Revised based on today's
6352         feedback.  The most important changes document what happens when
6353         you convert an out-of-range value to a signed integer type, and
6354         say that (sum < a) != (b < 0) reliably detects overflow when sum =
6355         a + b.
6357         * doc/autoconf.texi (Integer Overflow): Greatly expand and
6358         rewrite, taking notions from the recent discussion on the gcc and
6359         autoconf mailing lists; please see
6360         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
6361         and follow the many links.
6362         (Integer Overflow Basics, Signed Overflow Examples):
6363         (Optimization and Wraparound, Signed Overflow Advice):
6364         (Signed Integer Division): New sections.
6366 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
6368         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
6369         preprocessor macro arguments in traced name.
6370         * doc/autoconf.texi (Defining symbols): Document longstanding
6371         support for AC_DEFINE-ing macros with arguments, and document
6372         behavior when the same variable has multiple AC_DEFINEs.
6373         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
6374         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
6375         macros directly, giving much shorter and simpler code.
6377 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
6379         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
6380         space before "$ac_configure_args" to prevent a 'config.status
6381         --recheck' failure if ac_configure_args doesn't contain a leading
6382         space.  This works around a problem with the XEmacs configure.ac,
6383         which uses the (undocumented) ac_configure_args variable
6384         inconsistently with Autoconf.
6386 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6388         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
6389         Include <limits.h>, and use its INT_MAX to rewrite the
6390         j loop so that it does not overflow 'int'.  Problem reported by
6391         Ralf Wildenhues in
6392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
6393         Play it safe by shifting left by 1 rather than multiplying by 2,
6394         as GCC is less likely to optimize this away when the value
6395         is signed (when it assumes overflow leads to undefined behavior).
6396         Also, don't assume time_t uses two's complement.
6398 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6400         * tests/torture.at (Substitute a 2000-byte string): Avoid using
6401         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
6402         dumps core on it.  Report by Tim Rice.
6404 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
6406         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
6407         --disable-option-checking to --help output even when
6408         AC_PRESERVE_HELP_ORDER is not used.
6409         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
6410         --with argument, rather than argument with [-.] replaced by
6411         underscores.
6412         * NEWS: Fix typo in previous change; the news was in the
6413         wrong section.
6415 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6417         * NEWS: Warnings are now generated by default for unknown
6418         --enable-* and --with-* options.
6419         * doc/autoconf.texi (Option Checking): Renamed from
6420         (Configure Option Checking).  Tighten up the wording a bit.
6421         (External Software, Package Options): Cross-reference to Option
6422         Checking, and use this to shorten our section.
6423         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
6424         "$x" to test "x$foo" != x.
6425         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
6426         Don't warn if $enable_option_checking is "no".
6427         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
6428         ac_unrecognized_opts to the empty string.
6429         Don't echo the unrecognized opts, as this might mishandle
6430         backslashes or leading -.
6431         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
6432         usage next to the other --disable-FEATURE options in the
6433         help string.
6435 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
6437         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
6438         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
6439         Print warning for unrecognized --with and --enable options
6440         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
6441         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
6442         Disable option checking when subdirs are configured.
6443         (AC_OUTPUT): If warnings are enabled, print warning about
6444         unrecognized --with and --enable options at the end of
6445         the configure output (as well as at the beginning).
6446         * doc/autoconf.texi (Option Checking): New node.
6447         Document new option warning functionality.
6449 2006-12-16  Eric Blake  <ebb9@byu.net>
6451         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
6452         * NEWS: Start news for current version.
6454 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6456         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
6457         Define HAVE_GETMNTENT to 1, not to the empty string.
6458         Problem originally reported by Jochen Friedrich in
6459         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
6461         This change prompted by a problem report by Andrey Simonenko in
6462         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
6463         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
6464         object-like macros only, in the traditional portable character
6465         set.
6466         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
6467         Warn about attempts to define things that are not identifiers.
6468         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
6469         awful hack that AC_DEFINEd macro names containing parentheses.
6471 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6473         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
6474         too drastic, even if Texinfo in theory requires it for info mode.
6476         (config.status Invocation): Renamed back from Recreating a
6477         Configuration).
6478         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
6479         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
6481 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6483         * NEWS: Version 2.61a.
6485 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6486         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6488         * NEWS: Document changes with echo and printf, and the lack
6489         of limits on the total size of multi-line values of substituted
6490         variables, and the AC_FUNC_FSEEKO fix.
6492 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6494         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
6495         Writing configure.ac.
6496         (Autoconf Input Layout): Renamed from configure.ac Layout.
6497         (Recreating a Configuration): Renamed from config.status Invocation.
6498         (Obsolete Recreation): Renamed from Obsolete config.status Use.
6499         (acconfig Header): Renamed from acconfig.h.
6500         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
6501         (Writing Testsuites): Renamed from Writing testsuite.at.
6502         (Autom4te Cache): Renamed from autom4te.cache.
6504         * BUGS: Remove mention of VPATH problem, since it's now documented
6505         not to be a bug in the Autoconf build procedure itself, but rather
6506         a problem with the proprietary `make' programs.
6508         * doc/autoconf.texi (Build Directories): Add a cross reference
6509         to VPATH and Make.
6511         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
6512         * doc/standards.texi: Sync from gnulib.
6514         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
6515         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
6516         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
6517         generated automatically.
6519 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6521         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
6522         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
6523         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
6525 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6527         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
6528         `CEOF$ac_eof' special marker, the awk script cannot contain a
6529         line matching `^CEOF', so this is not needed any more.
6530         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
6531         special marker in the test.
6533 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
6535         * tests/tools.at (autom4te preselections): Use `find -newer';
6536         remove one of the sleeps.
6538         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
6539         more readable, using ...
6540         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
6542         * doc/autoconf.texi (autoheader Invocation): Do not double-
6543         quote the parameter of `AH_BOTTOM' in the example.
6545 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
6547         * doc/autoconf.texi (Configuration Headers): Remove the
6548         example with multiple input files.
6549         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
6550         multiple input files.
6552 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6554         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
6555         creating the awk substitution script, handle one input line at a
6556         time, so that the maximum length of a substituted (multi-line)
6557         value is not limited by the size of the sed pattern space.
6558         The trade-off is a slightly repetitive sed script.
6559         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
6560         can only have up to 7 characters, due to Solaris 10 /bin/sed.
6561         * tests/torture.at (Substitute a 2000-byte string): Increase the
6562         test with several long lines, they should not be caught by sed
6563         limits any more.
6565         * tests/tools.at (autom4te preselections): New test, to flag
6566         entries missing from autom4te.cfg.
6567         Report by David Byron <dbyron@hheld.com>.
6569         * tests/torture.at (Substitute a 2000-byte string): Actually use
6570         AC_PROG_AWK, so the last change works as intended.
6571         (Substitute and define special characters): Likewise.
6572         (Substitute a newline): Likewise.
6574         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
6575         instead of `awk' consistently.
6576         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
6577         * tests/torture.at (Torturing config.status): Test both the
6578         result of AC_PROG_AWK and plain awk.
6579         (Substitute a 2000-byte string): Likewise.
6580         (Substitute and define special characters): Likewise.
6581         (Substitute a newline): Likewise.
6583 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6585         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
6586         can be assigned to a function pointer.  Problem reported by
6587         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
6588         part of a patch by Ralf Wildenhues in that same bug report.
6590 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6592         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
6593         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
6595 2006-12-01  Eric Blake  <ebb9@byu.net>
6597         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
6598         cross-compiling from cygwin to mingw.
6599         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
6600         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
6601         to lib/autoconf/c.m4.
6603 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6605         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
6606         string for more reliable failure.  Wrap the entire test that
6607         causes the broken Solaris printf to dump core, in a subshell,
6608         so the segmentation fault message is reliably suppressed.
6609         Fix shell expansion errors by using /usr/ucb/echo always;
6610         avoid an error on systems without it by another subshell.
6611         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
6612         subshell-$as_echo to `as_echo', for better error message.
6614 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6616         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
6617         `BASH_SOURCE' contain a newline, set them to empty, as they may
6618         not be unset.
6620 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
6622         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
6623         years and is too hard to maintain now.  The last straw was
6624         reported by Jerker Baeck in
6625         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
6626         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
6627         * doc/autoconf.texi (Particular Functions): Move
6628         AC_FUNC_SETVBUF_REVERSED from here...
6629         (Obsolete Macros): ... to here.  Say that it does nothing now.
6630         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
6631         Turn into (almost) a no-op.
6633         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
6634         (AC_C_VOLATILE):
6635         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
6636         These macros are obsolescent and new applications shouldn't need them.
6637         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
6638         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
6639         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
6640         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6641         (AC_FUNC_VPRINTF): Likewise.
6642         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
6643         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
6644         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
6646         * doc/autoconf.texi (Setting Output Variables): Mention that
6647         @VAR1@VAR2 has unspecified behavior.  Problem reported by
6648         Ralf Wildenhues.
6649         * NEWS: Mention this.
6651         * Makefile.am: Put only a single '#' into the copyright notice,
6652         so that it's also present in the output file.  Standardize wording
6653         in makefile copyright notices to match GNU coding standards.
6654         * bin/Makefile.am: Likewise.
6655         * doc/Makefile.am: Likewise.
6656         * lib/Makefile.am: Likewise.
6657         * lib/freeze.mk: Likewise.
6658         * lib/autoconf/Makefile.am: Likewise.
6659         * lib/autoscan/Makefile.am: Likewise.
6660         * lib/autotest/Makefile.am: Likewise.
6661         * lib/m4sugar/Makefile.am: Likewise.
6662         * man/Makefile.am: Likewise.
6663         * tests/Makefile.am: Likewise.
6664         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
6665         one-line file.
6667 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6669         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
6670         in the sed script that mangles the awk script: delete up to the
6671         first exclamation mark only.
6672         * tests/torture.at (Substitute and define special characters):
6673         Test '!' too.
6675 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6677         Rewrite config files generation: avoid quadratic growth in
6678         the number of substituted variables by using awk instead of sed
6679         for the bulk of the substitutions.
6680         * NEWS: Mention this.
6681         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
6682         forbidden in the output (and thus input) file.
6683         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
6684         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
6685         generate just one large awk script for substitutions,
6686         eliminating much of the earlier complexity, while adding some
6687         new complexity.  Only expand the substitution templates at
6688         configure time, for smaller configure script size.  If
6689         _AC_SUBST_FILES are used, test 'awk' for working getline support
6690         at config.status time.  If absent, interpolate through the
6691         shell.  The awk script was written with much help
6692         from Paolo Bonzini and Paul Eggert.
6693         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
6694         (_AC_SED_FRAG_NUM): Likewise.
6695         (_AC_SUBST_CMDS): Renamed from...
6696         (_AC_SED_CMDS): ...this.
6697         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
6698         * tests/torture.at (Substitute a 2000-byte string): Also
6699         substitute a line with 1000 words, and a variable with several
6700         long lines.
6701         (Substitute and define special characters): Test awk special
6702         characters, and put substitution input strings `@foo@' in the
6703         output, to test that no recursion happens; test several other
6704         combinations from Paolo Bonzini.
6706 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6708         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
6709         that replaced echo with AS_ECHO where this wasn't necessary.
6710         Problem reportd by Ralf Wildenhues.
6711         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
6712         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
6713         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
6715 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6717         * lib/freeze.mk (GREP): Removed, no need to initialize this.
6719 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
6721         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
6722         that traditional Awk lacks 3-arg "split".  It has it.
6723         Mention that FS must be a single character, and a few other
6724         99-byte limits of traditional Awk.
6725         Mention that if (i in a) doesn't work with traditional Awk.
6727 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6729         * tests/autotest.at (BSx641-newline in command):
6730         (BS-BS-newline in command, BSx640-newline in command):
6731         (Newline-CODE-BS-newline in command):
6732         (Single-quote-BS-newline in command):
6733         (Single-quote-newline-BS-newline in command):
6734         Use printf '%s\n' instead of echo, for portability to hosts
6735         where echo interprets backslashes.  This will break on hosts
6736         that lack printf, but for now let's assume all such hosts
6737         are dead (if not, we should get reports of test failures).
6739 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6741         'echo' has some portability problems, when given a first argument
6742         with a leading '-', or when given any argument containing '\'.
6743         Avoid using 'echo' in these cases.
6744         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
6745         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
6746         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6747         * lib/autotest/general.m4 (AT_INIT): Likewise.
6748         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
6749         argument might be unportable.
6750         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
6751         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
6752         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
6753         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
6754         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
6755         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
6756         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
6757         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
6758         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
6759         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
6760         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
6761         (AC_PROG_MAKE_SET): Likewise.
6762         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
6763         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
6764         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
6765         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
6766         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
6767         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
6768         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
6769         * bin/autoconf.as: Redo verbose flag implementation, as the old
6770         scheme wouldn't work with AS_ECHO.
6771         * lib/autotest/general.m4 (AT_INIT): Likewise.
6772         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
6773         Don't use ECHO_T, since ECHO_N is now reliable.
6774         * lib/autotest/general.m4 (AT_INIT): Likewise.
6775         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
6776         rather than using a here-document to put the script into a file.
6777         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
6778         use AS_ECHO.
6779         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
6780         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
6781         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
6782         bug, but we might as well stop using ECHO_N and ECHO_C internally.
6783         * lib/autotest/general.m4 (AT_SETUP): Likewise.
6784         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
6785         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6786         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
6787         operand, as AS_ECHO requires.  Avoid double file name expansion.
6788         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
6789         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
6790         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
6791         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
6792         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6793         Double-quote strings that would otherwise contain M4 comments.
6794         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
6796         * configure.ac (AC_INIT): Bump to 2.61a.
6797         * NEWS: Likewise.
6799 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6801         Version 2.61.
6803         * configure.ac (AC_INIT): Bump to 2.61.
6804         * NEWS: Likewise.
6806         * tests/autotest.at (Macro with backslash in a test title):
6807         Comment out for now, as this tests neither fails nor passes
6808         reliably.  Problem reported by Ralf Wildenhues.
6810 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6812         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
6813         in previous change, which caused test failures.
6815 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
6817         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
6818         code for --enable, --disable, --with, and --without to...
6819         (_AC_INIT_PARSE_ENABLE): ... a new macro.
6820         * doc/autoconf.texi (Package Options):
6821         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
6823 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6825         Import these changes from config via gnulib:
6827         2006-11-15  Ben Elliston  <bje@gnu.org>
6829         From Josselin Mouette <joss@debian.org>:
6830         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
6832         2006-11-08  Ben Elliston  <bje@gnu.org>
6834         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
6836         2006-11-07  Steve Woodford  <scw@NetBSD.org>
6837                     Ben Elliston  <bje@gnu.org>
6839         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
6840         * build-aux/config.sub (sh5el): New basic_machine.
6843         Import this change from coreutils:
6845         2006-02-13  Jim Meyering  <jim@meyering.net>
6847         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
6850         Import this change from gnustandards via gnulib:
6852         2006-11-15  Karl Berry  <karl@gnu.org>
6854         * standards.texi: core -> memory, throughout.
6855         (CPU Portability): show correct example of calling write
6856         on a char value; thanks to Paul Eggert for the code.
6857         Both of these suggestions from Eugene Y. Vasserman.
6860         Import these changes from texinfo via gnulib:
6862         2006-11-08  Karl Berry  <karl@gnu.org>
6864         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
6865           as well as pdf images, since they are supported in pdftex with
6866           no further ado.
6868         2006-11-05  Karl Berry  <karl@gnu.org>
6870         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
6872 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6874         * NEWS: Document the AC_ARG_WITH change.
6876 2006-11-13  Bruno Haible  <bruno@clisp.org>
6878         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
6879         options, transliterate also dots to underscores.
6880         (_AC_ENABLE_IF): Transliterate also dots to underscores.
6881         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
6882         first argument may also contain dots.
6884 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6886         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
6887         benefit of platforms like Solaris+GCC where it is common to have a
6888         non-working g++ installation.
6890 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6891         and Joel E. Denny  <jdenny@ces.clemson.edu>
6892         and Paul Eggert  <eggert@cs.ucla.edu>
6894         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
6895         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
6896         ./micro-suite.
6898 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6900         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
6901         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
6902         Imported from a similar patch to gnulib by Bruno Haible.
6904 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6906         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
6907         * doc/autoconf.texi (C Compiler): Document them.
6908         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
6909         New macros, taken from gnulib.
6911 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6913         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
6914         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
6915         Matthew Woehlke.
6917 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6919         * tests/torture.at (Configuring subdirectories): Do not skip
6920         Automake 1.10 nor future Automake 11.1 (sic).
6922 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
6923         and Stepan Kasal  <kasal@ucw.cz>
6925         Handle special characters in test case titles correctly.
6926         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
6927         properly.
6928         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
6929         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
6930         argument.  Extend to check titles printed by ./micro-suite and
6931         ./micro-suite -l and the title in micro-suite.log.
6932         (Backquote in a test title,
6933         Single-quote in a test title,
6934         Double-quote in a test title): Don't expect failure anymore.
6935         (Backslash in a test title): Put a non-whitespace character after the
6936         backslash so that Bourne shells might actually see it as an escape
6937         sequence.
6938         (Brackets in a test title,
6939         Pound in a test title,
6940         Comma in a test title,
6941         Quoted Macro in a test title,
6942         Macro in a test title,
6943         Macro with single-quote in a test title): New tests.
6944         (Macro with backquote in a test title,
6945         Macro with double-quote in a test title,
6946         Macro with backslash in a test title): New tests expected to fail.
6947         * tests/torture.at (#define header templates): M4-quote this title in
6948         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
6949         The visible effect was a stray [] in the testsuite output.
6951 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6953         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
6954         `trap ... 0' inside a function, for AIX sh.
6956 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6958         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
6959         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
6960         5363) simply issues a warning when dividing by zero at compile
6961         time.  Problem reported by Elias Pipping.
6963 2006-10-26  Eric Blake  <ebb9@byu.net>
6965         * THANKS: Update.
6966         * doc/autoconf.texi (Evaluation Macros): Improve the example to
6967         show effect on macros that expand with commas.
6968         Reported by Joel E. Denny.
6970         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6971         Also work with M4 1.4.8.
6973 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6975         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
6976         Jim Meyering.
6978 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
6980         * tests/tools.at (autom4te --force): New test, verifies that
6981         `--force' always rewrites the output file.
6983 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6985         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
6986         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
6988 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
6990         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
6992 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6994         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6995         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
6996         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
6997         reported by Nelson H. F. Beebe for Coreutils 6.4.
6999         * tests/tools.at (autoconf --trace: user macros): Remove test
7000         for tracing multiline macros, since m4 1.4.7a uses a different
7001         way to number lines.  Problem reported by Ralf Wildenhues.
7003 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
7005         * bin/autom4te.in (handle_m4): Do not redirect stdin to
7006         /dev/null since the heuristics for interactive behaviour was
7007         fixed in CVS m4.
7009         * bin/autom4te.in: With --force, always refresh the output
7010         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
7012         * bin/autoconf.as: Fix the verbose message at the end.
7014 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7016         * configure.ac (AC_INIT): Bump to 2.60c.
7017         * NEWS: Likewise.
7019 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7021         * NEWS: Version 2.60b.
7023         Import this change from Texinfo:
7024         2006-10-15  Karl Berry  <karl@gnu.org>
7025         * build-aux/texinfo.tex: automake 1.10
7027         * NEWS: Remove AC_CACHE_CHECK_INT.
7028         * doc/autoconf.texi (Caching Results): Likewise.
7029         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
7030         AC_CACHE_CHECK_INT, since it's no longer public.
7031         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
7032         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
7034 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7036         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
7038 2006-10-19  Eric Blake  <ebb9@byu.net>
7040         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
7041         (m4_maketemp): Avoid warnings with M4 1.9a.
7042         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
7043         m4_mkstemp.
7044         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
7045         * NEWS: Likewise.
7047 2006-10-16  Eric Blake  <ebb9@byu.net>
7049         * doc/autoconf.texi (Setting Output Variables): Fix typo.
7051         * bin/autoconf.as (version): Reword to match GNU Coding
7052         Standards.
7053         * bin/autoheader.in (version): Likewise.
7054         * bin/autom4te.in (version): Likewise.
7055         * bin/autoreconf.in (version): Likewise.
7056         * bin/autoscan.in (version): Likewise.
7057         * bin/autoupdate.in (version): Likewise.
7058         * bin/ifnames.in (version): Likewise.
7060 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
7062         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
7063         looking for special shell characters.
7064         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
7065         macro defined by AS_VAR_PUSHDEF before passing it as a
7066         parameter.
7067         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
7068         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
7069         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
7070         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
7071         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
7072         Likewise.
7073         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
7074         AS_VAR_* properly.
7075         * tests/m4sh.at (AS_LITERAL_IF): New test.
7077 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7079         (Imported from Automake.)
7080         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
7081         which incorrectly sets the mode of an existing destination
7082         directory.  In some cases the unpatched install-sh could do the
7083         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
7084         system.  We hope this is rare in practice, but it's clearly worth
7085         fixing.  Problem reported by Alex Unleashed in
7086         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
7087         Also, don't bother to check for -m bugs unless we're using -m;
7088         suggested by Stepan Kasal.
7090 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7092         Import this change from Automake:
7094         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
7095         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
7096         is enabled by default with gnu and gnits strictness.
7097         Report from Bruno Haible.
7099         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
7100         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
7101         gnu and gnits modes.
7103         Import this change from Config:
7105         2006-09-20  Ben Elliston  <bje@gnu.org>
7106         * build-aux/config.sub (score, score-*): New.
7108         Import this change from Gnulib:
7110         2006-09-16  Karl Berry  <karl@gnu.org>
7111         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
7112         to avoid sectioning errors.
7114         Import these changes from Texinfo:
7116         2006-10-04  Karl Berry  <karl@gnu.org>
7117         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
7118         (\quoteexpand): rename to \rquoteexpand.
7119         (\codequoteleft): new def, to look for @set codequotebacktick.
7120         (\lquoteexpand, \quoteexpand): new defs.
7121         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
7122         (\code): must use new \...Char values, since now ` is active.
7124         2006-08-26  Karl Berry  <karl@gnu.org>
7125         * build-aux/texinfo.tex (\textdegree): New command.
7127         2006-08-12  Karl Berry  <karl@gnu.org>
7128         * build-aux/texinfo.tex (error \box0): smaller font.
7130 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7132         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
7134 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
7136         * doc/autoconf.texi (Autoheader Macros): Warn that the text
7137         added to the template can get mangled.
7139 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7141         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
7142         include the default headers, and redefine obstack_chunk_alloc
7143         and obstack_chunk_free.  Fixes false failure with glibc.
7145 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
7147         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
7148         for backward compatibility with Libtool 1.5.22.  Problem reported
7149         by Ralf Wildenhues.
7151 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7153         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
7154         AC_PROG_CC.
7155         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
7157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7159         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
7160         the NonStop platform.
7161         * doc/autoconf.texi (Posix Variants): Likewise.
7162         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
7164         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
7165         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
7166         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
7167         Use a better substitute, by inspecting the output of "ls"
7168         rather than just using ":".
7169         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
7170         rather than AS_EXECUTABLE_P, since we needn't worry about
7171         non-regular files here.
7173         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
7174         due to configuration hassles with this.  See Tonya Underwood's report
7175         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
7176         * doc/autoconf.texi (Special Shell Variables): Likewise.
7178 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7179             Stepan Kasal  <kasal@ucw.cz>
7181         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
7182         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
7184 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
7186         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
7187           initialization which is not inherited through the environment
7188         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
7189         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
7191 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7193         * doc/autoconf.texi (Limitations of Usual Tools): Describe
7194         problems with mkdir -p -m.
7196 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7198         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
7199         comment about ac_cpp_err; it was incorrect, and anyway
7200         ac_cpp_err is being removed below.
7201         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
7202         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
7203         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
7204         nobody uses it.
7205         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
7206         with werror_flag and conftest.err and so forth.  This is more
7207         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
7208         and anyway the user shouldn't normally want to see this gorp logged.
7209         Problem reported by Ralf Wildenhues.
7210         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
7211         empty, not 'no', since the rest of the code uses 'test -z'.
7213 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
7215         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
7216         Use a single call to AC_DO_TOKENS rather than multiple, for
7217         efficiency.
7218         (_AC_LINK_IFELSE): Test that resulting file is executable.
7219         Problem reported by mwoehlke in
7220         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
7222         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
7223         than creating a file to use with test -x; this is much faster.
7225 2006-10-02  Bruno Haible  <bruno@clisp.org>
7227         * lib/autom4te.in (Automake-preselections): Add
7228         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
7230 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
7232         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
7233         standard error, `experr' should be used, not `expout'.
7235 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7237         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
7238         fseeko testing program twice; just use the earlier result.
7239         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
7240         Set cache var to 'unknown' (not 'no') if leaving the macro unset
7241         still doesn't let the program compile.
7242         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
7243         failed.
7245         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
7246         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
7247         include it, without including anything else.
7248         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
7249         expressions.
7250         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
7252 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7254         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
7255         `error.h', and include it, for a `error_at_line' prototype.
7256         Use a nonempty format string in the link test.
7257         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
7258         for a declaration of wait3.
7260 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7262         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
7263         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
7264         can apply to constants too, and that it checks for macro defns.
7265         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
7266         and simply cast the identifier to void.  This handles structure
7267         values.  Problem reported by Ralf Wildenhues.
7268         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
7270 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7272         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
7273         structure, and function symbols.
7275 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7277         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
7278         member.
7280 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7282         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
7283         * README: Likewise.
7284         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7286 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7287         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7289         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
7290         warnings (uninitialized value).
7291         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
7292         present.
7293         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
7294         parentheses.
7295         (AC_STRUCT_TM): Likewise, avoid unused variables.
7297 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7299         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
7300         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
7301         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
7302         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
7303         Report by Olly Betts.
7305 2006-09-19  Eric Blake  <ebb9@byu.net>
7307         * m4/m4.m4: Change copyright.
7308         * configure: Regenerate.
7309         * Makefile.in: Likewise.
7310         * bin/Makefile.in: Likewise.
7311         * doc/Makefile.in: Likewise.
7312         * lib/Makefile.in: Likewise.
7313         * lib/Autom4te/Makefile.in: Likewise.
7314         * lib/autoconf/Makefile.in: Likewise.
7315         * lib/autoscan/Makefile.in: Likewise.
7316         * lib/autotest/Makefile.in: Likewise.
7317         * lib/emacs/Makefile.in: Likewise.
7318         * lib/m4sugar/Makefile.in: Likewise.
7319         * man/Makefile.in: Likewise.
7320         * tests/Makefile.in: Likewise.
7322         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
7323         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
7324         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
7325         --error-output, to avoid warnings with M4 2.0.
7327 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
7329         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
7330           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
7331         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
7333 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
7335         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
7336         expansion of AC_CHECK_FUNCS.
7338 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
7340         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
7341         mistaken comment: the path has to be relative; do not use
7342         the path at runtime.
7344 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7346         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
7347         argument to `--prefix' for sub-configure scripts.
7348         Pass `--silent' to sub-configure scripts.
7349         * tests/torture.at (Configuring subdirectories): Add tests
7350         for both changes.
7351         * doc/autoconf.texi (Setting Output Variables): Fix example to
7352         not show `--silent' being passed to a `configure' re-run.
7354 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7356         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
7357         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
7358         for the existence of the directory at configure-time.  That's
7359         too late, anyway.  Problem reported by Stefan Seefeld.
7361         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
7362         7.1.4 /usr/bin/posix/sh described by Tim Rice in
7363         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
7365 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
7367         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
7368         works with GNU M4 1.4.3 again; make the normalized form
7369         match the current m4 message; fix the description.
7370         * test/tools.at (autom4te cache): Adapt to the change.
7372 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
7374         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
7375         to catch glibc bug 2821
7376         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
7378         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
7379         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
7380         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
7381         assume C89.
7383 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
7385         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
7386         preselections ...
7387         (Autoconf): ... here.
7388         (Autoscan-preselections): Delete.
7390 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
7392         * lib/autom4te.in (Automake-preselections): Preselect
7393         AM_ENABLE_MULTILIB.
7395 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7397         * doc/autoconf.texi (Preset Output Variables): srcdir and
7398         top_srcdir are not necessarily relative.  Problem reported
7399         by Dries Kimpe.
7401 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7403         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
7404         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
7405         accept files with extension `.f'.  For consistency, also prefer
7406         xlf over f77.
7407         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
7408         from last patch.
7410 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
7412         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
7413         of ERLANG_LIB_VER_* variables.
7414         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
7415         variables.
7417 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7418         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7420         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
7421         bugs of Bash 2.01 and 2.05a.
7422         (Fortran Compiler): Document that AC_PROG_CC should be called
7423         before AC_PROG_FC, due to a bug in Autoconf.
7425 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7427         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
7428         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
7429         except the first two arguments are reversed.
7430         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
7431         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
7432         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
7433         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
7434         equivalent to the old AC_COMPUTE_INT.
7435         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
7436         All uses changed to AC_CACHE_CHECK_INT.
7437         * tests/base.at (AC_CACHE_CHECK_INT): New test.
7438         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
7440 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
7442         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
7443         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
7444         programs should use their Gnulib counterparts.
7445         * doc/autoconf.texi (Particular Functions): Likewise.
7446         (Macro Names, testsuite Invocation): Replace uses of these
7447         obsolete macros with uses of non-obsolete macros.
7449 2006-08-29  Eric Blake  <ebb9@byu.net>
7451         * configure.ac (AC_INIT): Bump to 2.60b.
7452         * NEWS: Update.
7454 2006-08-28  Eric Blake  <ebb9@byu.net>
7456         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
7457         mistakenly swapped on 2006-08-15.
7459 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7461         * NEWS: Version 2.60a.
7463 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
7465         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
7466         file created by the PGI compiler.
7468 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
7470         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
7471         simplify the code.
7473 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
7475         Fix Lex library problem reported to us by Julio Garvia.
7476         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
7477         for the default, which the user can override.
7478         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
7479         deal with LEXLIB.
7480         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
7481         didn't work if some values were cached but not others.  Test for
7482         broken lex libraries like native ia64-hp-hpux11.22; see
7483         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
7484         work around the problem by preferring an empty LEXLIB to -lfl or
7485         -ll.  Let the user set LEXLIB='' to indicate no library needed.
7487         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
7488         * README: Likewise.
7489         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7491 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7493         Rework to use more-modern build style.
7494         Many files are renamed; all uses of their names were changed.
7495         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
7496         * .x-sc_useless_cpp_parens: New file.
7497         * build-aux/config.guess: Renamed from config/config.guess.  Update.
7498         * build-aux/config.sub: Renamed from config/config.sub.  Update.
7499         * build-aux/elisp-comp: Renamed from config/elisp-comp.
7500         * build-aux/install-sh: Renamed from config/install-sh.  Update.
7501         * build-aux/mdate-sh: Renamed from config/mdate-sh.
7502         * build-aux/missing: Renamed from config/missing.
7503         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
7504         * build-aux/vc-list-files: Renamed from config/vc-list-files.
7505         * config/Makefile.am: Removed.
7506         * config/mkinstalldirs: Removed.
7507         * config/move-if-change: Removed.
7508         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
7509         * Makefile.am (SUBDIRS): Remove config.
7510         (ACLOCAL_AMFLAGS): Include from m4, not config.
7511         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
7512         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
7513         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
7514         Fail if there's an error.
7515         * Makefile.cfg (move_if_change): Remove.
7516         (wget_files): Remove.
7517         (cvs_executable_files): New macro.
7518         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
7519         (executable-update): Use $(cvs_executable_files).
7520         (local-checks-to-skip): Remove.
7521         * Makefile.maint: Merge from coreutils, plus add our own changes
7522         (gzip_rsyncable): New macro.
7523         (GZIP_ENV): Use it.
7524         (CVS_LIST): Use build-aux/vc-list-files.
7525         (VERSION_REGEXP): New macro.
7526         (local-checks-available): Add patch-check, $(syntax-check-rules),
7527         check-AUTHORS.
7528         (syntax-check-rules): Compute dynamically.
7529         (sc_cast_of_x_alloc_return_value): Work even if no source files.
7530         (sc_cast_of_alloca_return_value): Likewise.
7531         (sc_prohibit_atoi_atof): Simplify regexp.
7532         (sc_no_if_have_config_h, sc_require_config_h):
7533         (sc_prohibit_assert_without_use,
7534         (sc_obsolete_symbols): Check for O_NDELAY.
7535         (sc_texi_notab): Remove.
7536         (sc-changelog): Don't make an exception for '----' lines.
7537         (.re-list): Remove, so we don't have a junk file behind.
7538         (sc_system_h_headers): Remove the need for .re-list.
7539         (sc_the_the):  New rule.
7540         (sc_tight_scope): Simplify.
7541         (sc_trailing_blank): Renamed from sc_trailing_space.
7542         (longopt_re): New macro.
7543         (sc_two_space_separator_in_usage): New rule.
7544         (sc_unmarked_diagnostics): Look at all files under CVS.
7545         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
7546         (news-date-check, changelog-check): Version is OK.
7547         (po-check): Look for lib files even if not in CVS.
7548         (copyright-check): Use $() not ``.
7549         (maintainer-distcheck): Do not depend on changelog-check.
7550         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
7551         Also check for -Wpointer-arith.
7552         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
7553         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
7554         Remove.
7555         (announcement): Add --gpg-key-id arg.
7556         (cvs-sv): Remove.
7557         (move_if_change): Just use mv.
7558         (local_updates: Remove wget-update, po-update.
7559         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
7560         (config.guess-url_prefix, config.sub-url_prefix): Remove.
7561         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
7562         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
7563         ($(get-targets)): Remove.
7564         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
7565         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
7566         (cvs-update): Get from gnulib.
7567         (emut_upload_commands): gnupload is in build-aux now.
7568         (alpha beta major): Add changelog-check.  Check version.
7569         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
7570         (AC_CONFIG_FILES): Remove.
7571         * bin/autoconf.as: Add spaces to avoid distcheck warning.
7572         * config/announce-gen: Sync from coreutils.
7573         * doc/make-stds.texi: Sync from gnulib.
7574         * doc/standards.texi: Likewise.
7575         * man/Makefile.am: Adjust for config -> build-aux renaming.
7576         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
7577         * tests/local.at: Adjust from config -> build-aux renaming.
7578         * tests/tools.at: Likewise.
7579         * tests/torture.at: Likewise.
7581         * NEWS: The C99 check now tests for vararg macros and 64-bit
7582         preprocessor ints.
7583         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
7584         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
7585         64-bit preprocessor ints.  Check for static initialization of
7586         long long.  Remove unnecessary casts.
7588 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7590         * doc/autoconf.texi (Particular Programs): Mention that
7591         @INSTALL@ and @MKDIR_P@ may vary for different output files.
7592         Reported by Alexandre Duret-Lutz.
7594 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7596         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
7597         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
7598         Bill Northcott in
7599         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
7601 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
7603         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
7604         pacify insanely picky compilers.  Problem reported by Eric Blake.
7606         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
7607         longer supported by Sun.
7609 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7611         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
7612         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
7613         -Wundef -Werror".  Problem reported by David Fang in
7614         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
7615         * doc/autoconf.texi (Header Templates, Default Includes):
7616         (Particular Functions, Generic Functions, Header Portability):
7617         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
7618         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
7619         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
7620         Prefer #ifdef to #if.
7621         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
7622         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
7623         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
7624         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
7625         Likewise.
7626         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
7627         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
7628         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
7629         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7630         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
7631         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
7632         this.
7634 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7636         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
7637         problems with arg script text that doesn't end in newline, and
7638         with '-e a...'.  Problems reported by Ralf Wildenhues.
7640 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
7642         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
7643         check for libXt by a check for libX11.
7645 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7647         * doc/autoconf.texi (config.status Invocation): Adjust according
7648         to last change.
7650 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7652         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
7653         --help' should mention that `--version' outputs configuration
7654         settings.  Report by Bruno Haible.
7656 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
7658         Fix test suite failures reported by Pierre in
7659         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
7660         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
7661         the compiler created a file "b.out" when it didn't create anything
7662         at all.
7663         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
7664         Discard stderr too, when invoking the test script.
7666 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
7668         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
7669         in the restoring of the werror flag.
7671 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7673         * doc/autoconf.texi (Volatile Objects): Be even a little
7674         less skeptical about "volatile", after discussion with
7675         Bruno Haible on bug-gnulib.
7676         (Limitations of Usual Tools): Warn about sed stripping
7677         leading white space from text.  From Bruno Haible.
7679 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
7681         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
7682         compiler complains about it, even if things works after the
7683         complaint.  Problem reported by Peter O'Gorman.
7685         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
7686         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
7687         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
7689 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
7691         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
7692         after -R regardless of host.  Patrick Welche reports that this
7693         fixes things on NetBSD 3.99.
7695         * NEWS: Recommend M4 1.4.5.
7696         * README: Likewise.
7697         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7698         * tests/tools.at (autom4te cache): Update wording of diagnostic
7699         to match M4 1.4.5.
7701 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7703         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
7704         under AC_C_VOLATILE.
7705         (Volatile Objects): Be a little less skeptical about what
7706         "volatile" means.  Derived from thoughts by Ben Pfaff in
7707         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
7709 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7711         * doc/autoconf.texi: Fix some typos.
7713 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7715         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7716         more globally, since the 2006-06-30 patch didn't suffice.  Problem
7717         reported by Keith Marshall.  Also, don't bother with builddir2,
7718         since it shouldn't be needed any more.
7720 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
7722         * doc/autoconf.texi (Generic compiler characteristics):
7723         Document AC_COMPUTE_INT.  Fix wrong statements on Default
7724         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
7726         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
7727         (_AC_COMPUTE_INT): Add obsoletion warnings.
7728         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
7729         AC_COMPUTE_INT.
7731         * NEWS: Document change.
7733 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7735         * doc/autoconf.texi (Volatile Objects): New section.
7737         * NEWS: Document previous change.
7739 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7741         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7742         Require that long long int be at least 64 bits wide.  C99 requires
7743         this and enough programs depend on it so we should check for it.
7744         Bruno Haible reports in
7745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
7746         that long long int is 32 bits wide with some nonstandard compilers.
7747         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7749 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7751         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7752         to a nonexistent file, so that we don't have to worry about
7753         a local site configuration that doesn't use /usr/local.
7754         Problem reported by Keith Marshall in
7755         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
7757 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
7759         * doc/autoconf.texi: Be more consistent about using @acronym with
7760         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
7761         quite right (it talked about "OSF/Tru64", even though the
7762         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
7763         and it even mentioned "OSF 4"!) and at this point there's little
7764         reason to talk about OSF any more, since it died in 1994.
7765         (Specific Compiler Characteristics): Simplify example of
7766         negative-size array.
7767         (File Descriptors): Reorder to make the text flow better.
7768         Remove joke about "appreciate the various levels"; I didn't get it.
7769         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
7770         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
7771         (File Descriptors, Limitations of Usual Tools):
7772         Tone down the advice against renaming or removing open files.
7773         (Limitations of Usual Tools): Add a new section, on 'rm'.
7775 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
7777         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
7778         -lXt in LIBS, idea from Karsten Hopp; this was due since
7779         this change:
7781         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7782         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
7783         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
7784         (which belong to Xt, not X itself).  See Debian bug 327655.
7786 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7788         * configure.ac (AC_INIT): Bump to 2.60a.
7789         * NEWS: Update.
7791 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7793         Version 2.60.
7795         * configure.ac, NEWS: Update.
7797 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7799         * config/texinfo.tex: Sync from upstream.
7801         * bin/autom4te.in (handle_traces): Transform the `@S|@'
7802         quadrigraph correctly in traces.
7804         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
7805         Fix typos.
7807         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
7808         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
7809         not defined.
7810         * doc/autoconf.texi (Changed Directory Variables): New node,
7811         to document the whole `datarootdir' business a bit better.
7812         * NEWS: Update.
7813         * tests/torture.at (datarootdir workaround): Extend test.
7814         Prompted by report by Alexandre Julliard.
7816 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7818         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
7819         when using default mode of IBM C 6 for AIX.  Problem and two-line
7820         fix reported by Larry Jones.
7822 2006-06-22  Alexandre Julliard <julliard@winehq.org>
7824         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
7825         about literal '${datarootdir}' if a definition is found in the
7826         output file.
7828 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7830         * NEWS: Use "M4" rather than "m4" when appropriate.
7831         Problem reported by Eric Blake.
7832         * doc/autoconf.texi: Likewise.
7833         Use @acronym around BSD, GCC, and GNU when appropriate.
7834         (Why GNU M4): Renamed from "Why GNU m4".
7835         (Redefined M4 Macros): Mention that Posix
7836         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
7837         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
7838         to int.
7840 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7842         * bin/autom4te.in (handle_output): Do not forbid the empty
7843         pattern.
7844         * tests/tools.at (autoconf: the empty token): New test.
7846 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
7848         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
7849         calls, so that we do not care whether they are LIFO or FIFO;
7850         in the m4_wrap, do not check which diversion is the topmost
7851         one, just check that the stack is balanced at the end.
7852         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
7853         base diversion forever--pop the previous diversion before
7854         opening the new one; consequently, remove the m4_wrap call.
7855         * lib/autotest/general.m4 (AT_INIT): Likewise.
7856         * tests/m4sugar.at: Do not use
7857         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
7859 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7860         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7862         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
7863         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
7864         Rework example of m4wrap token-pasting trouble so that it doesn't
7865         care whether it's LIFO or FIFO.
7866         Fix some "contrary to"s that are awkward in English.
7868 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7870         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
7871         to `yes' instead of `int$1_t' if the type is found, for more
7872         consistent configure output (where $1 is the number of bits).
7873         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
7874         Suggested by Bruno Haible.
7876         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
7877         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
7878         with system headers.  Report by Bruno Haible.
7880 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7882         * config/config.guess, config/config.sub: Sync from upstream.
7884         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
7885         in order to avoid picking up an older installed frozen m4sh.m4f.
7886         Besides an outdated shell startup, this could have been created
7887         by an earlier M4 version with incompatible frozen file format.
7889 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7891         * README: Recommend m4 1.4.4 instead of 1.4.3..
7892         * doc/autoconf.texi: Likewise.
7893         (Special Chars in Names): Say that $(.FOO) is portable, as
7894         suggested by Stepan Kasal.
7895         (Installation Directory Variables, Build Directories):
7896         (Automatic Remaking, Subdirectories, Fortran Compiler):
7897         (Making testsuite Scripts, Defining Directories):
7898         Quote variable usages better.
7899         (Making testsuite Scripts): Add clean-local rule to makefile
7900         snippet, by Eric Blake.
7901         (Installation Directory Variables): Fix table item font.
7902         Reword slightly to clarify.  Generalize advice about
7903         not using special characters to include all file-related
7904         vars, not just VPATH.
7905         (Special Chars in Variables): Warn about special characters in
7906         $(srcdir) too.
7907         (Assignments): Clarify default-value example as suggested by
7908         Ralf Wildenhues in
7909         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
7910         (Special Shell Variables): Note leading ./ or ../, as suggested
7911         by Eric Blake.
7912         (Limitations of Builtins): Under cd, warn about CDPATH.
7913         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
7914         Ralf Wildenhues.
7916 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7918         * doc/autoconf.texi (Configuration Actions): Remove duplicate
7919         `@var', for texi2html.
7920         (Systemology): Some more word wrapping, for DVI output.
7921         (autom4te Invocation): The short option for `--melt' is `-M',
7922         not `-m'.
7924 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7926         * doc/autoconf.texi: More formatting and English tweaks,
7927         many suggested by Ralf Wildenhues.
7928         Reword to avoid "@code{...}'s" and the like, since it's ugly
7929         with Emacs info mode.  discontents -> woes.
7930         Put a few "will"s back.  time stamp -> timestamp.
7931         side-effect -> side effect.
7933 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7935         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
7936         Warn about $@ not persisting.  Problem reported by Julien Danjou in
7937         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
7938         (Special Chars in Names): Renamed from Leading _ in Macro Names.
7939         Mention other special chars, too.
7941 2006-06-14  Eric Blake  <ebb9@byu.net>
7943         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
7945 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7947         * doc/autoconf.texi: Some systematic minor improvements, as
7948         follows.  Use "makefile" when talking about makefiles
7949         generally (which might be named "makefile" or "Makefile" or even
7950         "foo.mk"), "Makefile" when talking about a specific makefile
7951         called "Makefile".  This unclutters the text from weird quotes
7952         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
7953         values" rather than "@var{foo}s" and similar constructs containing
7954         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
7955         English-language improvements.  Change the prefix "sub-" to "sub"
7956         and "re-" to "re".
7957         Put blank lines around examples more consistently.
7958         Avoid "rather" and "very" as intensifiers.
7959         Avoid "will" as an auxiliary.
7960         (Limitations of Make): Split this node into....
7961         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
7962         (Leading _ in Macro Names, Backslash-Newline-Newline):
7963         (Backslash-Newline Comments, Long Lines in Makefiles):
7964         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
7965         (obj/ and Make, make -k Status, VPATH and Make):
7966         (VPATH and Double-colon, $< in Explicit Rules):
7967         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
7968         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
7969         New nodes, resulting from splitup of Limitations of Make.
7970         All cross-references changed.  Raise the top node from
7971         a section to a chapter, and all subnodes accordingly.
7972         Redo the introductory wording to match the new organization.
7973         (Installation Directory Variables): Use an example that is
7974         closer to what Autoconf actually does.  Mention that VPATH's
7975         value should not contain metacharacters or white space.
7976         (Fortran Compiler): Fix a VPATH bug in an example.
7977         (Leading _ in Macro Names): Mention that this problem is no longer
7978         of practical concern.
7979         (VPATH and Make): Reword the advice to make it clearer
7980         that Autoconf and Automake support VPATH in non-GNU make, but
7981         many packages have bugs in this area.
7982         ($< in Explicit Rules): Refer to Build Directories rather
7983         than using a (non-VPATH-safe) example.
7984         (Automatic Rule Rewriting): Mention the sort of disaster that
7985         can ensue with Solaris-style rule rewriting with VPATH.
7987 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7989         * doc/install.texi (Compilers and Options): Weaken the
7990         suggestion to use GNU make for VPATH builds.
7992         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
7993         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
7995         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
7996         in regular expression.
7998 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8000         * doc/autoconf.texi (Installation Directory Variables):
8001         Drop extra @samp from `@table @samp' item.
8002         (Limitations of Usual Tools): Comment fix.
8003         Do not nest @samp just to point to other table items.
8004         (Writing testsuite.at) <AT_CHECK>: The second argument to
8005         `@dvar' is already @samp'ed.
8006         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
8007         do not use @var in the second argument.
8009 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8011         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
8012         $as_shell.exe too.  Problem reported by Andreas Buening in
8013         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
8015 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8017         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
8018         `unused variable' compiler warning, for `-Wall -Werror'.
8019         Reported by Jaap Haitsma in
8020         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
8022 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8024         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
8025         case the compiler dumps core.  Problem reported for
8026         OpenServer 5.0.7 by Tim Rice in
8027         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
8028         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
8029         Likewise.
8031 2006-06-06  Tim Rice <tim@multitalents.net>.
8033         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
8034         "ERROR" only shows up in "make check" output if there is an
8035         error.
8037 2006-06-06  Eric Blake  <ebb9@byu.net>
8039         * tests/tools.at (automatically allowed tokens): Fix typo.
8041 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
8043         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
8045         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
8046         typically overflows on x86 CPUs, even though the C standard
8047         requires otherwise.
8049 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8051         * configure.ac (AC_INIT): Bump to 2.59e.
8052         * NEWS: Update.
8054 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8056         Version 2.59d.
8058         * config/texinfo.tex: Sync from upstream.
8060         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
8061         seen, invoke libtoolize with `--ltdl' argument.
8062         * lib/autom4te.in (Autoreconf-preselections): Adjust.
8063         * NEWS: Update.
8064         Suggested by Eric Blake.
8066 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
8068         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
8069         reported by Ralf Wildenhues.
8070         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
8072 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8074         * THANKS: Update.
8076 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
8078         * doc/autoconf.texi: Modernize some of the references to Solaris.
8080 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
8082         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
8083         message issued by AC_REQUIRE.
8084         * tests/m4sugar.at: Check m4_require's error message.
8085         * tests/base.at: Check AC_REQUIRE's error message.
8086         * tests/local.at (AT_CHECK_M4): New macro, almost identical
8087         to...
8088         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
8089         AT_CHECK_M4.
8090         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
8091         `expout' as the last parameter.
8092         * tests/tools.at: Adapt to the above change.
8094 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
8096         * doc/autoconf.texi (Limitations of Usual Tools): Correct
8097         information about race-free implementations of mkdir.
8099 2006-06-04  Eric Blake  <ebb9@byu.net>
8101         * bin/autoreconf.in (help): Document M4 environment variable.
8102         * bin/autoconf.as (Usage): Likewise.
8103         * bin/autom4te.in (help): Likewise.
8104         * doc/autoconf.texi (autom4te Invocation): Likewise.
8106 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8108         * NEWS: GNU make now recommended for VPATH builds.
8109         Mention that some macros are now documented to be obsolescent.
8110         * doc/autoconf.texi:
8111         Prefer "current" to "modern" to describe
8112         currently-used (albeit perhaps old-fashioned) hosts.
8113         Mention which ancient features no longer need to be worried about.
8114         setgid -> set-group-ID
8115         setuid -> set-user-ID (these are the Posix terms)
8116         Fix some misuses of "only".
8117         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
8118         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
8119         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
8120         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
8121         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
8122         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
8123         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
8124         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
8125         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
8126         Mention that these macros are obsolescent.
8127         (Installation Directory Variables): shall -> should
8128         (File Descriptors): Mention that 0, 1, 2 might get reopened.
8129         Mention that it's now safe to use 3 and 4.
8130         (Limitations of Usual Tools): cp -r is now specified by Posix.
8131         Omit longwinded and obsolescent discussion of cp -f.
8132         Modernize discussion of expr, ls.
8133         (Limitations of Make): Modernize discussion of VPATH builds.
8134         Mention $? as a workaround in some cases.
8135         * doc/install.texi (Basic Installation):
8136         Mention "./configure; make; make install" first.  Be more
8137         specific about why this file is generic.  Remove unnecessary
8138         parens.  Remove misleading "only".  Remove obsolete advice
8139         about csh.  Don't say "configure" takes awhile; say it
8140         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
8141         and CC=c99 rather than CC=c89, as these are blessed by current
8142         Posix.  Recommend GNU make if doing a VPATH build.
8144 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
8146         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
8147         examples involving shell prompts.
8149 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
8150         and Paul Eggert  <eggert@cs.ucla.edu>
8152         * doc/autoconf.texi (Here-Documents): Add details about the
8153         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
8154         use "here-documents" instead of "here documents".
8156 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8158         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
8160 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
8162         * doc/autoconf.texi (File System Conventions): Warn about ":"
8163         anywhere in directory names.
8165 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8167         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
8168         about quoting the case statement, just in case.
8169         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
8170         was fixed in ksh93g; reported by Ralf Wildenhues.
8172 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
8174         * doc/autoconf.texi (System Services): Do not document
8175         overriding EXEEXT via ac_cv_exeext=ext.
8176         (Particular Programs) <AC_PROG_MKDIR_P>:
8177         Document that ${MKDIR_P} understands --.
8178         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
8179         comment.
8181 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8183         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
8184         argument with leading hyphen.  Problem reported by Paul Eggert.
8186 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
8188         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
8189         about quoting ac_try: quote all of it, if any of it seems suspicious.
8190         This means we don't have to worry about ${ or sed any more.
8191         Also, double-quote the case statement, to work around misuses via
8192         underquoting as reported by Ralf Wildenhues in
8193         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
8194         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
8195         undocumented and dangerous macro.
8196         Problem reported by Ralf Wildenhues in
8197         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
8199 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8201         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
8202         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
8203         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
8205 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
8207         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
8208         since evidently some packages rely on the old, broken behavior.
8209         Problem reported by Ralf Wildenhues in
8210         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
8211         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
8212         pre-2006-05-26 definitions, but leave in the comments that
8213         these macros are dangerous and should not be used.
8214         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
8215         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
8216         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
8217         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
8218         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
8220 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8222         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
8223         the use of 'tr', since this is our only use of 'tr'.
8225 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8226         and Paul Eggert  <eggert@cs.ucla.edu>
8228         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
8229         Don't assume 'grep' works on long lines, since AIX grep doesn't.
8231 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8233         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
8234         the output file in the `${datarootdir}' test.
8236 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
8237         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8239         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
8240         mention of `datarootdir' in the input file(s), but literal
8241         `${datarootdir}' in the output file, and we haven't warned yet,
8242         then warn as well: the user may have (erroneously) used
8243         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
8244         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
8245         * tests/torture.at (datarootdir workaround): Extend this test.
8246         * NEWS: Update.
8248 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8249         and Paul Eggert  <eggert@cs.ucla.edu>
8251         * doc/autoconf.texi (autoheader Invocation): The first argument to
8252         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
8253         alternatives and clear up the language a bit.
8255 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
8257         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
8258         ac_config_guess, ac_config_sub, ac_configure.
8259         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
8260         Fix typo that prevented an unnecessary space from being removed.
8261         Problems reported by Ralf Wildenhues in:
8262         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
8264 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
8266         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
8267         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
8268         Don't use the term "thread-safe" to talk about mkdir race
8269         conditions, since the problem is more a process than a thread
8270         issue.  Problem reported by Stepan Kasal in:
8271         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
8272         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
8273         the test for 'install' more closely.  Look at MKDIR_P first.
8274         Look in the PATH, and at /opt/sfw/bin.
8275         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
8276         Don't bother to try mkdir -p, since we already check mkdir --version;
8277         just look at the version number.  (There's no easy way to check
8278         for race-free implementations.)
8279         * tests/tools.at (autoconf: subdirectories): Adjust to above
8280         changes, since MKDIR_P now might end in "/mkdir -p".
8282         * doc/autoconf.texi (autoheader Invocation): Mention that the
8283         first arg of AC_DEFINE_UNQUOTED must be a literal.
8284         Problem reported by Ben Pfaff in
8285         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
8287         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
8288         * doc/autoconf.texi (Special Chars in Variables): New section.
8289         (Preset Output Variables): Warn about special chars in CPPFLAGS.
8290         (Installation Directory Variables): Quote $(datadir) better.
8291         (Limitations of Builtins): Describe some of eval's trickiness.
8293         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
8294         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
8295         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
8296         in front of every arg, not just trailing args.  Quote apostrophes.
8297         (_AC_EVAL_ECHO): New macro.
8298         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
8299         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
8300         removed.
8301         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
8302         exposed by quoting of eval argument.  Put the command on line line
8303         so it logs better.
8304         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
8305         (_AC_PATH_X, AC_PATH_X): Quote more safely.
8306         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
8307         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
8308         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
8309         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
8310         Use eval more safely.
8311         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
8312         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
8313         to be replaced.
8314         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
8315         lines, exposed by quoting of eval argument.
8317 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
8318         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8320         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
8321         initialization of `ac_cv_exeext', do not override it if it was
8322         already set, unless it was set to `no', for compatibility with
8323         Autoconf-2.13, and comment this.
8324         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
8325         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
8326         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
8327         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
8328         Document that this test may be overridden by setting
8329         `ac_cv_exeext'.
8331 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8333         Revert these two patches:
8335         2006-04-06  Eric Blake  <ebb9@byu.net>
8336         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
8337         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
8338         2006-04-01.
8340         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
8341         Clean up _AC_COMPILER_EXEEXT* macros.
8342         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
8343           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
8344           ac_file to the name of the default output file and call
8345           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
8346           initial `rm' of the candidate files...
8347         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
8348           the same list in subsequent `rm' calls, and for the temporary
8349           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
8350           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
8351         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
8352         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
8353           no longer needed) by libtool.  Make it a cache check.
8354         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
8355           copied here by mistake.
8356         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
8357           _AC_COMPILER_EXEEXT.
8358         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
8359           _AC_COMPILER_OBJEXT directly.
8360         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8362 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8364         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
8365         Fix description of how the buggy `sed' works.
8367 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
8369         Sync from Automake:
8371         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
8372         ENOLCK.  Only mention `make -j' when applicable.  Only raise
8373         fatal errors when `make -j' is involved.  Improve error message.
8375 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8377         * doc/autoconf.texi (Here-Documents): We now know more about
8378         the variable expansion in here documents bug.
8379         Thanks to Tim Rice and Stepan Kasal.
8381         * doc/autoconf.texi (Making testsuite Scripts): Add an example
8382         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
8384 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8386         * tests/autotest.at (Multiline command from M4 expansion):
8387         No failure to be expected if the shell quotes newlines in
8388         commands in the `set -x' output.  Report by Tim Rice.
8389         * THANKS: Update.
8391 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8393         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
8394         expansion in the here-documents used by config.status, as that
8395         runs afoul of the Korn shell version M-12/28/93d bug described in
8396         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
8397         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
8398         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
8400 2006-05-23  Jim Meyering  <jim@meyering.net>
8402         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8403         Fix typo introduced with 2006-04-02 change.  It reversed the sense
8404         of the test.
8406 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8408         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
8409         ac_dB slightly, to save bytes in the script.
8410         Max out at 50 lines, rather than 96; this is more likely
8411         (though not guaranteed) to avoid obscure 'sed' failures.
8413 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8415         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
8416         `tr -d -' as bad option argument.  Work around this by deleting
8417         an unrelated character.
8418         Report by Tim Rice <tim@multitalents.net>.
8420 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
8421             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
8422             Stepan Kasal  <kasal@ucw.cz>
8424         * doc/autoconf.texi (Particular Programs): Do not promise that
8425         we always prefer the GNU version of the program, and that we
8426         search according to PATH; both rules can have exceptions.
8427         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
8428         AC_PROG_SED.  Move descriptions of limitations
8429         to the Limitations of Usual Tools section.
8430         (Limitations of Usual Tools) <sed>: Mention script length
8431         limitations with Solaris /usr/ucb/sed.
8432         <grep>: Fix wording for empty alternative.  Mention that -c and
8433         -l should not be combined, and that -E and -F should not be
8434         combined.
8436 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8437         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8439         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
8440         limits in Solaris 8 /usr/ucb/sed by testing a long script.
8442 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
8444         * doc/autoconf.texi (Defining Symbols): Literal parameter of
8445         AC_DEFINE is now passed to m4_pattern_allow.
8446         * NEWS: Mention that; likewise for AC_SUBST.
8447         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
8448         the parameter to m4_pattern_allow.
8449         * tests/tools.at: Add a check for that.
8451 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
8453         * lib/autoconf/status.m4: Fix typos.
8455 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8457         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
8458         only the files that this macro generates.
8460 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8462         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
8463         the HP-UX sed limitation of 99 commands, labels do not count.
8464         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
8465         in the comment.
8466         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
8468 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8470         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
8471         Import the following fix from coreutils:
8473         2006-01-13  Jim Meyering  <jim@meyering.net>
8475         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8476         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
8477         not double-quote uses of that variable, to accommodate the rare
8478         case in which getmntent is available in none of the libraries
8479         checked.  This happens at least on FreeBSD 5.0.
8481 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8483         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
8484         ac_config_guess, ac_config_sub, and ac_configure, since evidently
8485         some other programs unwisely rely on these undocumented vars.
8486         But put in warning comments about them.
8487         Problem reported by Ralf Wildenhues in
8488         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
8489         * NEWS: Document that these variables are intended to go away.
8491 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8493         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
8494         and set the language to C++ (analogous to the equivalent Fortran
8495         tests).
8497         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
8498         * doc/autoconf.texi (C++ Compiler): Document it.
8499         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
8500         * NEWS: Update.
8502 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8504         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
8505         that caused config.status to generate 100-command sed scripts; the
8506         portable limit is 99.
8508 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8510         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
8511         variable `ac_d' instead of `d' to avoid infringing namespace.
8512         Report by Ralf Menzel.
8514 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
8516         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
8517         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
8518         * tests/tools.at (autoconf: subdirectories): New test, taken from
8519         the corresponding problem report by Ralf Wildenhues in:
8520         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
8522         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
8523         Quote some uses of shell variables if they might suffer unexpected
8524         globbing.  This doesn't fix all instances of quoting problems that
8525         I found, just the easy ones that look safe.
8526         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
8527         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
8528         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
8529         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
8530         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
8531         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
8532         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
8533         Likewise.
8534         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
8535         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
8537 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8539         * bin/autoreconf.in ($help): Reword according to the manual.
8540         Suggested by Olly Betts.
8542 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
8543         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8545         * bin/autoreconf.in: Pass the directory argument to
8546         `require_configure_ac'.  Fix comment.
8547         * tests/torture.at (Configuring subdirectories): Expose this.
8548         Reported by Olly Betts.
8550 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8552         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
8553         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
8554         Automake as follows:
8556         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
8557         `$configure_in' instead of `configure.in', to preserve
8558         directory component.
8560 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8562         * config/config.guess, config/config.sub, config/texinfo.tex,
8563         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
8565 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8567         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8568         test for C99 conformance; (bool) 0.5 is an integer constant
8569         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8570         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8572 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8574         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
8575         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
8576         Warn about obsolete install-sh files.  Remove stray sentence
8577         fragment and fix cross reference.
8578         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
8579         install -d; this undoes the 2006-05-10 change.
8580         (MKDIR_P): Mark with AN_MAKEVAR.
8581         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
8582         that we don't require $INSTALL to be thread-safe.  Move comments
8583         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
8584         of AC_PROG_INSTALL.  Output a message saying that we're checking
8585         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
8586         MKDIR_P instead of AC_SUBST.
8587         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
8588         Special magic for MKDIR_P, too.
8589         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
8590         a dnl.
8591         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
8593 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8595         Sync from Automake, as follows:
8597         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8598         * config/install-sh: Initialize IFS, so field splitting isn't
8599         turned off later.
8600         * config/mkinstalldirs: Likewise.
8601         * config/missing: Remove superfluous quotes.  Replace all uses of
8602         `[' by `test', for consistency, and for..
8603         * config/missing (sed_minuso, sed_output): New variables.
8604         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
8605         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
8606         Fixes `missing' to detect `--output' for help2man.  Fixes
8607         PR automake/483.  Report by Dennis J. Linse.
8608         (autom4te): Document in `missing --help'.
8610 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8612         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
8613         * config/install-sh: Don't use 'path' to talk about file names,
8614         as per GNU coding standards.  Close a race condition reported by Ralf
8615         Wildenhues and Stepan Kasal.  There is still a race condition
8616         on hosts that predate Posix 1003.1-1992, but we can't help this.
8617         Don't mishandle weird characters like space on pre-Posix hosts.
8618         Invoke mkdir at most once per dir arg on pre-Posix hosts.
8619         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
8620         AC_PROG_MKDIR_P from AS_MKDIR_P.
8621         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
8622         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
8623         earlier editions are not (including Automake 1.8.3).
8624         Do not suggest mkinstalldirs for thread-safety.
8625         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
8626         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
8627         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
8628         presence of special characters and race conditions.
8629         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
8630         in Autoconf's name space.
8632 2006-05-10  Bruno Haible  <bruno@clisp.org>
8633         and Paul Eggert  <eggert@cs.ucla.edu>
8635         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
8636         from Automake with minor changes.
8637         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
8639 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8641         * config/install-sh: Update to Automake CVS version, as follows:
8642         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
8643         * lib/install-sh: Simplify the expr implementation of dirname.
8644         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8645         * lib/install-sh: Handle --, and diagnose unknown options.
8647 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8649         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
8650         `./autom4te' to create `./testsuite', since the `all' target
8651         will ensure its presence, but `installcheck' should not create
8652         the uninstalled wrappers.
8654         * tests/torture.at (Unusual Automake input files): Skip if we
8655         detect automake < 1.8.
8657 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8659         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
8660         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
8661         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
8662         * NEWS: Update.
8664 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8666         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
8667         munge (multiple) white space and other oddities.
8668         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
8669         single quotes in variable assignment.
8670         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
8671         and similar failures by adding multiple spaces, tabs, and other
8672         special characters.
8673         Report and different test suggested by Francesco Romani
8674         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
8676         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
8677         single quotes, we only need to search for single quotes; this
8678         both simplifies the search pattern, and makes us less
8679         susceptible to `echo' variations for arguments not containing
8680         single quotes.
8681         (_AC_ARG_VAR_VALIDATE): Likewise.
8683 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8685         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
8686         `$*' and IFS concatenation issue with traditional shells and
8687         bash-2.04.  Report by Seanster@Seanster.com.
8689 2006-05-03  Bruno Haible  <bruno@clisp.org>
8691         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
8692         precisely which Mac OS X versions have the od problem.
8694 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8696         * doc/autoconf.texi: Use @option systematically.
8698 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8699         and Bruno Haible  <bruno@clisp.org>
8701         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
8702         about 'od'.
8703         (Integer Overflow): Mention the special case of integer division
8704         overflow.
8706 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8708         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
8709         traditional shells like the Solaris one that do not use the
8710         first IFS character for assembling `$*'.
8711         Prompted by a related report from autoconf_bug@nro.ca.
8713 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8714         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8716         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
8717         Mention more problems with the -e option.
8719 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8721         * NEWS: Typo.
8722         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
8724         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
8725         in URLs to improve DVI formatted output (requires texinfo 4.6).
8726         (System Services, Systemology, Shellology): Likewise.
8727         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
8728         output.
8730         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
8731         continuous text.
8732         (Runtime): Fix macro argument names to match description:
8733         `action-if-found' -> `action-if-true' and similarly.
8734         (Obsolete Macros): Likewise.
8735         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
8736         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
8737         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
8739 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8741         * doc/autoconf.texi (Limitations of Make): Clean up markup.
8743         * ChangeLog: Typo.
8744         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
8745         DVI output.
8747 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8749         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
8750         /bin/sh set unsorted output.
8751         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
8752         * tests/local.at: Likewise.
8754 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8756         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
8757         (Integer Overflow, Null Pointers, Buffer Overruns):
8758         (Floating Point Portability, Exiting Portably): New sections.
8759         (Writing Test Programs): Fix some langauge.  Recommend exiting
8760         with status 1, not merely nonzero.  Clarify exit declaration.
8761         (Run Time): Move C exit status stuff to new Exiting Portably section.
8762         (Systemology): Mention Posix and levenez.  Update v7 reference.
8763         (Portable Shell): Mention the Posix shell.
8765 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
8767         * bin/autoconf.as (me): Replace by as_me.
8769 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8771         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
8772         since as_me isn't set yet.
8774 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8776         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
8777         a few minor bugs in this area.
8779         * doc/autoconf.texi (Programming in M4sh): Comment out the
8780         documentation of AS_BASENAME, for now.
8781         (Shell Substitutions): Do not use AS_DIRNAME in an example.
8782         (Limitations of Builtins) <basename>: Do not refer to
8783         AS_BASENAME.
8784         * bin/autoconf.as (me): Don't use AS_BASENAME.
8785         (dir): Remove the unused variable.
8786         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
8787         AS_DETECT_REQUIRED.  All uses changed.
8788         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
8789         All uses changed.
8790         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
8791         (AS_BASENAME): Use "basename --" to protect against leading "-".
8792         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
8793         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
8794         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
8795         (_AS_DIRNAME_PREPARE): Likewise.
8796         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
8797         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
8798         (AS_DIRNAME): Use "dirname --".
8800 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8802         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
8803         of "run time" and "run-time" changed to "runtime", for consistency.
8804         * lib/autoconf/fortran.m4: Likewise (in comment).
8805         * lib/autoconf/functions.m4: Likewise.
8806         * lib/autoconf/general.m4: Likewise.
8807         * lib/autoconf/headers.m4: Likewise.
8809         * doc/autoconf.texi (Run Time): Document the exit status situation
8810         with more accuracy and detail.
8812 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8814         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
8815         Archive is not officially `GNU' any more.  Update URL.
8816         (Defining Directories): Likewise
8817         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
8819 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8821         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
8822         newline from the `trap' code to finish `config.log'; the NetBSD
8823         /bin/sh resets the exit status after an empty command, as
8824         documented in doc/autoconf.texi.
8825         Reported by Dalibor Topic <robilad@kaffe.org>.
8827 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8829         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
8830         Suggested by Bruno Haible.
8832 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
8834         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
8835         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
8836         Instead, just list the shells that we know work.
8837         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
8838         changed.  Be more cautious about the _cv_ variable.
8839         * tests/tools.at (Syntax of the shell scripts): Check the
8840         _cv_ variable once, at first, to avoid an internal autoconf error
8841         when sh -n does not work.
8843 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8845         * lib/Autom4te/FileUtils.pm: Sync from Automake.
8847 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8849         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
8850         use ">&-" since we're only 99.999% sure that this is portable,
8851         and since the MinGW bug is fixed in a different way.
8852         * lib/autotest/general.m4 (AT_INIT): Likewise.
8854 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
8856         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
8857         before opening config.log, to avoid hitting a bug on MinGW.
8859 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
8861         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
8862         AS_MESSAGE_LOG_FD before reopening it onto the log file.
8863         This works around a MinGW bug reported by Eric Paire.
8864         Make sure that all writes to the log file append to it,
8865         rather than possibly losing data.
8866         * lib/autotest/general.m4 (AT_INIT): Likewise.
8868 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
8870         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
8871         description.
8873 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8875         * NEWS: Update.
8877         * configure.ac (AC_INIT): Bump to 2.59d.
8879 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8881         Version 2.59c.
8883         * Makefile.maint (news-date-check): Do not require a leading `*'
8884         before the release date in NEWS.
8886 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
8887         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8889         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
8890         the instantiated file do not contain the string 'datarootdir'
8891         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
8892         @mandir@, replace the reference '${datarootdir}' by the value.
8893         * tests/torture.at (datarootdir workaround): New test.
8894         * NEWS: Advertise this temporary fixup.
8895         Based on a patch by Bruno Haible, reported and analyzed by
8896         Paul Eggert and Noah Misch.
8898 2006-04-12  Eric Blake  <ebb9@byu.net>
8900         * tests/autotest.at (Debugging a failed test): Fix comment.
8902 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
8904         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
8905         all the changes since 2006-04-07.
8907 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8909         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
8910         succeeded, but `ln -s file dir' failed, take care to remove the
8911         leftover target before the next test, to prevent its spurious
8912         failure; also make sure `ln file dir' works before selecting it.
8913         Thanks to Keith Marshall for pointing this out.
8914         * THANKS: Update.
8916         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
8917         assignments in `at_debug_args', so that we put them correctly
8918         in the `run' script.
8919         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
8920         Reported by Eric Blake.
8922 2006-04-11  Eric Blake  <ebb9@byu.net>
8924         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
8925         top-level tests after micro-suite has been run.   Used in...
8926         (Debugging a successful test, Debugging script and environment),
8927         (Debugging a failed test): ...these new tests.  The first of these
8928         is fixed by...
8929         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
8930         macro, split out from...
8931         (AT_INIT): ...here, so that using -d also generates a run script.
8932         Document that -d inhibits top-level logging.
8933         * doc/autoconf.texi (testsuite Invocation): Document that -d only
8934         inhibits top-level logging; debug scripts are created.
8936         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
8937         check.
8938         * tests/autotest.at (Empty test, Empty check): New test to check it.
8940         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
8941         from gcc.
8943 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
8945         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
8946         the files if a problem appears.  Make the empty *.at files
8947         read-only, too.  Proposed by Ralf Wildenhues.
8949 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8951         * config/Makefile.am: Add comment to force updated Makefile.in.
8953         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
8954         space only patch to this file, this patch causes the Makefile.in
8955         files that include freeze.mk to be updated, and thus have a
8956         newer time stamp again, which in turn makes a pristine CVS
8957         checkout have correct time stamps.
8959         * Makefile.maint (cvs-sv): New macro, to be used..
8960         (config.guess-url_prefix, config.sub-url_prefix)
8961         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
8962         point to CVS text checkout of Gnulib files.
8963         (copyright-check): Bump current year.
8964         (announcement): Do not hard-wire `./announce-gen'.
8965         (cvs-update): Propagate failures of `cvs' and `move-if-change'
8966         correctly.
8967         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
8968         `chmod +x'.
8969         (wget_files): Update config.guess, config.sub, texinfo.tex by
8970         `wget-update', now that their URLs work again.
8972 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8974         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
8975         Problem noted by Paul D. Smith.
8977 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8979         * doc/autoconf.texi: Remove unused words from word list.
8980         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
8981         .x-sc_trailing_space: New files.
8983         * doc/standards.texi: Sync from gnulib.
8985         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
8986         `LIBOBJDIR' as experimental.
8988         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
8989         with a target directory; it's internally implemented as `cp'
8990         anyway, but since Autoconf advertises the possibility to use
8991         a target directory when LN_S is `ln -s', we need to find out.
8992         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
8993         analyzed by Keith Marshall <keith.marshall@total.com>.
8995         * THANKS: Update.
8997 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8999         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
9000         confdefs.h as-is.  In general, if it has backslash-newline or the
9001         like, then it doesn't work either to sort or to remove empty
9002         lines.
9004 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
9006         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
9008 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
9010         * lib/autom4te.in (Automake-preselections): Preselect
9011         _AM_SUBST_NOTMAKE.
9013 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9015         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
9016         apostrophe within a single-quoted string, as this is the usual
9017         tradition and is easier to read than '"'"'.  Don't rely on the
9018         shell treating "$/" like '$/'.  Use a more-consistent indenting
9019         style for the trap.
9021 2006-04-09  Eric Blake  <ebb9@byu.net>
9023         * tests/autotest.at (Backquote command substitution),
9024         (Multiline backquote command substitution): Remove mistaken
9025         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
9026         applied...
9027         (Parenthetical command substitution, Multiline parenthetical
9028         command substitution): here.
9030 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9032         Import macros from gnulib (often changing their name).
9034         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
9035         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
9036         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
9037         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
9038         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
9039         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
9040         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
9041         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
9042         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
9043         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
9044         The manual mentions Gnulib more prominently.
9045         * doc/autoconf.texi (Gnulib): New node.
9046         (Pointers): Add Gnulib URL.
9047         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
9048         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
9049         Gnulib section.
9050         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
9051         suggest a #define rather than a typedef for _Bool, and mention
9052         Gnulib rather than trying to substitute stdbool code.
9053         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
9054         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
9055         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
9056         AC_STRUCT_DIRENT_D_TYPE.
9057         (Particular Types): Mention stdint.h and inttypes.h as standard
9058         headers too.
9059         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
9060         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
9061         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
9062         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
9063         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
9064         (C Compiler): Move AC_C_LONG_DOUBLE to ...
9065         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
9066         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
9067         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
9068         (Coding Style).  Don't mention m4_expand_once.
9069         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
9070         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
9071         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
9072         (AC_CHECK_FUNCS): Use it.
9073         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
9074         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
9075         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
9076         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
9077         (AC_HEADER_ASSERT): New macro.
9078         (AC_HEADER_STDBOOL): Don't assume "#error" works.
9079         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
9080         Catch a bug in an HP-UX C compiler.
9081         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
9082         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
9083         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
9084         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
9085         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
9086         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
9087         New macros.
9089         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
9090         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
9092 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
9094         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
9095         of the warning introduced by the 2001-08-28 change.
9097 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
9098             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9100         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
9101         variables shall be overriden by the cache.
9102         * tests/torture.at (AC_ARG_VAR): Test also with a first value
9103         that contains braces.
9105 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
9107         Revert the patch from 2006-04-01 and only improve
9108         _AS_DETECT_BETTER_SHELL:
9110         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
9111         skip nonexistent directories.
9112         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
9113         only shell candidates which exist.
9114         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
9115         * lib/autotest/general.m4 (AT_INIT): No need to give three
9116         parameters to _AS_PATH_WALK.
9118 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
9119             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9121         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
9122         distinguish m4sugar macros.
9123         * tests/tools.at (autoupdating with aclocal and m4_include):
9124         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
9125         test case by Noah Misch <noah@cs.caltech.edu>.
9127 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
9129         Revert my change from 2006-03-17, in other words:
9130         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
9131           and DUALCASE=1.
9132         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
9133         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
9134           it is set.
9136 2006-04-07  Eric Blake  <ebb9@byu.net>
9138         * doc/autoconf.texi (Programming in M4sh): Document that
9139         AS_MKDIR_P exits the script on failure.
9140         * lib/autotest/general.m4: Remove redundant AS_ERROR.
9142 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9144         * config/elisp-comp, config/install-sh, config/mdate-sh,
9145         config/missing, config/mkinstalldirs: Sync from Automake.
9147         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
9148         from Automake.
9150         * doc/make-stds.texi: Sync from gnulib.
9152 2006-04-06  Eric Blake  <ebb9@byu.net>
9154         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
9155         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
9156         2006-04-01.
9158 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
9159             Eric Blake  <ebb9@byu.net>,
9160             Paul Eggert  <eggert@cs.ucla.edu>,
9161             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9163         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
9164         whether `set' quotes correctly: redirect stderr of the tested
9165         `set', and use a subshell, for Ultrix; use `sed' instead of
9166         `grep' for zsh `set' which may write binary output; match only
9167         at the beginning of a line, to avoid false positives.
9168         In order to avoid false positives by unrelated variables with
9169         multiline content, put the dump algorithm in a subshell and
9170         unset all variables containing newlines (except some which are
9171         special to the shell).  Warn about cache variables that are
9172         unset.
9174 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9176         * config/config.guess, config/config.sub, config/texinfo.tex:
9177         Sync from upstream.
9179         * tests/mktests.sh: Reword comments.
9181         * tests/mktests.sh: Only skip internal macros starting with
9182         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
9183         Update exclusion lists for the test suite to this end:
9184         (AC_ARG_VAR): Do test this now.
9185         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
9186         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
9187         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
9188         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
9190         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
9191         shell issue with double-quoted command substitutions of native
9192         commands.
9193         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
9194         Marshall.
9196         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
9197         no file matches the glob, discard the warning, set `nullglob'.
9198         (syntax-check): Likewise.
9199         (sc_cast_of_x_alloc_return_value): Likewise.
9200         (sc_cast_of_alloca_return_value, sc_error_exit_success)
9201         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
9202         (m4-check): Likewise.
9203         (sc_system_h_headers): Do not print rule on execution.
9204         (sc_tight_scope): Do not fail for non-existing `src' directory.
9205         (sc_changelog): Skip the Copyright footer.
9206         * lib/autoconf/lang.m4: Remove trailing space.
9208         * lib/autoconf/status.m4: More replacements to
9209         <tab><space> where this makes sense.
9211 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
9213         * tests/Makefile.am (maintainer-check-posix):
9214           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
9216         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
9217           ac_config_<foo>s again, sometimes normalized, sometimes not.
9218         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
9219         (AC_CONFIG_COMMANDS): Do not do so here.
9220         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
9221           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
9222           2005-07-25 rewrite.  Noticed by Noah Misch.
9224         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
9225           _AC_PRESERVE_HELP_ORDER, ...
9226         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
9228         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
9229           inside m4_expand_once; it is redundant.
9231         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
9232           for --help from Cygnus `configure.'
9234 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9236         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
9237         on a patch proposed by Ralf Wildenhues.
9239 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9241         * lib/autoconf/status.m4: Replace <space>''<tab> with
9242         <tab><space> where this makes sense.
9244 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
9245             Noah Misch  <noah@cs.caltech.edu>
9247         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
9248         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
9249         * doc/autoconf.texi (Help Formatting): New node.
9250         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
9252 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9254         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
9255         lib/autoconf/specific.m4, lib/autoconf/status.m4,
9256         lib/autoconf/types.m4, lib/autotest/general.m4,
9257         tests/mktests.sh, tests/torture.at: White space cleanup:
9258         remove some SPACE before TAB, or add quoting ('' or @&t@).
9260         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
9262         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
9264 2006-04-05  Eric Blake  <ebb9@byu.net>
9266         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
9267         empty test suite works.
9268         * tests/autotest.at (Empty test suite): Remove xfail.
9270 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
9272         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
9273         TAGS to ac_config_<foo>s.
9274         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
9275         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
9276         normalizing it, consistent it with previous releases.
9277         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
9279 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9281         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
9282         Use simplified args that Eric Blake originally suggested.
9284 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
9286         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
9287         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
9288         Use 'comm' rather than N instances of grep; this also fixes a bug
9289         whereby substrings were incorrectly matched, causing us to not
9290         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
9291         (exclude_list): Exclude empty macros.
9292         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
9294         Use awk rather than grep -E or egrep, to avoid
9295         portability problems with regular expressions containing newlines.
9296         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
9297         Switch from grep to awk syntax.
9298         (ac_exclude_script): Renamed from ac_exclude_egrep.
9299         (au_exclude_script): Renamed from au_exclude_egrep.
9301 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
9303         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
9304         a subdirectory subject to Cygnus `configure'.
9305         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
9307         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
9308         report request when we have no AC_PACKAGE_BUGREPORT.
9310 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9312         * THANKS: Update.
9314         * tests/mktests.sh: Update copyright year in the header of the
9315         generated files.
9317         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
9318         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
9319         typedef'ed restricted pointer, to catch a compiler bug on
9320         HP-UX 11.x, and fix warnings so it passes with -Werror.
9321         (_AC_PROG_CC_C99): Likewise.
9322         Reported by Albert Chin <china@thewrittenword.com>.
9323         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
9325 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
9327         * bin/autoscan.in (subdirs): New global.
9328         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
9329         (output): Emit AC_CONFIG_SUBDIRS as needed.
9330         * tests/autoscan.at (autoscan): Remove XFAIL.
9332 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
9334         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
9336 2006-04-03  Eric Blake  <ebb9@byu.net>
9338         * THANKS: Add myself.
9340 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9342         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
9343         to log, point to testsuite output tree.
9345 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
9347         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
9348         * doc/autoconf.texi (Function Portability): Mention that C++
9349         has trouble with 'exit'.
9350         (Guidelines): Test programs shouldn't use 'exit'.
9351         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
9352         Remove; all uses removed.
9353         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
9354         Return from 'main' instead of calling 'exit'.
9355         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
9356         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
9357         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
9358         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
9359         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
9360         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9361         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
9362         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
9363         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9364         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
9365         * tests/compile.at: Likewise.
9367 2006-04-02  Pavel Roskin  <proski@gnu.org>
9369         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
9371 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9373         Clean up _AC_COMPILER_EXEEXT* macros.
9375         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
9376           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
9377           ac_file to the name of the default output file and call
9378           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
9379           initial `rm' of the candidate files...
9380         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
9381           the same list in subsequent `rm' calls, and for the temporary
9382           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
9383           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
9384         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
9385         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
9386           no longer needed) by libtool.  Make it a cache check.
9387         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
9388           copied here by mistake.
9389         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
9390           _AC_COMPILER_EXEEXT.
9391         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
9392           _AC_COMPILER_OBJEXT directly.
9393         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9395 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9397         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
9398         (AS_DIRNAME): Use it.
9399         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
9401         * tests/*.at: Remove the generated ones.
9403 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9405         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
9407 2006-04-01  Eric Blake  <ebb9@byu.net>
9409         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
9410         directories, unless optional third argument supplied.
9411         (AS_UNAME): Don't optimize PATH walk.
9413         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
9415 2006-04-01  Eric Blake  <ebb9@byu.net>
9416         and Stepan Kasal  <kasal@ucw.cz>
9418         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
9419         and fix some typos.
9421 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
9423         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
9424         Autoconf version number despite a zero- or one-argument AC_INIT.
9426         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
9427         subordinate tools.
9428         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
9429         * doc/autoconf.texi (autoreconf Invocation): Document it.
9431         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
9432         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
9434 2006-04-01  Eric Blake  <ebb9@byu.net>
9436         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
9437         * lib/autotest/general.m4: Be tolerant of existing directory when
9438           rm failed to remove it.
9440 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9442         * bin/autoupdate.in: Redefine m4_location so that warnings print
9443         the correct lines of the input file by subtracting..
9444         (_au__first_line): ..this new definition.
9446         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
9447         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
9448         Remove stray newline in output.
9449         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
9450         AC_DEFUN this for autoconf, including the obsoletion diagnose.
9451         Fixes autoupdating of code where the replacement output contains
9452         m4sugar macros.
9453         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
9454         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
9455          (au_exclude_list): Add AC_LANG_SAVE.
9456         * tests/tools.at: Several new tests for all of this.
9457         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
9458         hairy details.
9459         The AC_LANG_SAVE issue was reported against Libtool by
9460         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
9461         Kristian Kvilekval <kris@cs.ucsb.edu>.
9463 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
9465         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
9466           switch all of them on and of when necessary.  Fixes the bug when
9467           m4sugar macros (e.g., m4_define) were expanded after the first
9468           automatic update (e.g., after AC_PREREQ or AC_INIT).
9470 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
9472         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
9473         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
9475         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
9476         correctly.  Problem reported by Eric Blake.
9477         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
9478         Ralf Wildenhues.
9480 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
9482         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
9483         Tighten up the basename/dirname wording.
9485 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9487         * Makefile.maint (sc_texi_notab): New check: do not use TABs
9488         in texinfo files outside of verbatim environments.
9489         (syntax-check-rules): Update.
9490         * doc/autoconf.texi (Configuration Headers): Conform to it.
9492 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
9494         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
9495           aclocal cannot be given on the command line.
9497 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
9499         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
9500         Give an example for AS_DIRNAME instead of referring to Posix..
9501         (File System Conventions): Put discussion of // versus / here, and
9502         modernize it a bit.
9503         (Limitations of Usual Tools): Add basename.  Remove verbiage
9504         after dirname, since it got moved to the above sections.
9505         All this was inspired by a patch proposed earlier by Eric Blake.
9507 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9509         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
9510         `$0' to protect against spaces.
9511         * lib/autotest/general.m4 (AT_INIT): Likewise.
9512         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
9513         `$0', $as_me.
9515 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9517         * bin/autoscan.in: The value of find_configure_ac should be
9518         checked for existence, so we don't barf over a nonexisting
9519         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
9521 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9523         * bin/autoupdate.in: Fix some typos.
9525 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
9527         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
9529         * lib/autoscan/autoscan.list: Refreshed.
9531 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9533         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
9534         and Erlang related variables.
9536         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
9537         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
9538         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
9539         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
9540         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
9541         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
9542         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
9543         (_AC_PROG_OBJC_G): New macros.
9544         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
9545         * doc/autoconf.texi (Objective C Compiler): New node.
9546         (Preset Output Variables): Document OBJCFLAGS.
9547         (Language Choice): Document `Objective C' language.
9548         (Fortran Compiler): Fix typo.
9549         * NEWS: Updated.
9550         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
9552 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
9554         * doc/autoconf.texi (Default Includes): Fix typo
9555           s/AC_HEADERS_STDC/AC_HEADER_STDC/
9556         (Limitations of Usual Tools): s/unwriteable/unwritable/
9557         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
9558           Fix typos in the comments.
9560 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
9562         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
9563           Factor out the warning to...
9564         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
9565         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
9566         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
9568         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
9569           case `ac_delim' when writing the sed script.
9571         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
9572           moved DUALCASE=1 ...
9573         (AS_SHELL_SANITIZE): ... here.
9574         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
9575           that it is set.
9577         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
9578           AC_SUBST.
9579         (_AC_PATH_PROG): Store the result to VARIABLE.
9580         (AC_PATH_PROG): No need to set VARIABLE again.
9582         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
9583           the first one is usual AT_CHECK_MACRO test, the second one checks
9584           that the same works when cross-compiling.
9585         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
9586         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
9588 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9590         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
9591         the directory `/usr/bin/posix' in the shell search, to prefer
9592         the Posix shell not only in subsequent spawns as with `$BIN_SH'
9593         on Tru64.
9595         * doc/autoconf.texi (contents): To fix texi2html output, hide
9596         `@setcontentsaftertitlepage' for HTML.
9597         (Writing Autoconf Macros): Likewise, insert space after `@c'.
9598         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
9599         `@,{c}'.
9601 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
9603         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
9604           sanitizing...
9605         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
9606         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
9607           why IFS is restored so late; thank you, Ralf, for reminding us.
9609 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
9611         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
9612           variables in the examples.
9614 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9616         * doc/autoconf.texi (several sections): Cleaned up documentation for
9617         macros in erlang.m4.
9619 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9621         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
9622         failure condition for `$(cmd)' style command substitutions.
9623         (Parenthetical command substitution, Multiline parenthetical
9624         command substitution): Use it.
9626         * doc/autoconf.texi (Special Shell Variables): Missing word.
9627         Reported by Keith Marshall <keith.marshall@total.com>.
9629         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
9630         IFS even in case of empty `$PATH'.
9632 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9634         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
9635         `expr' away if there is nothing to do.
9636         < --keywords >: Simplify and robustify argument handling.
9637         Revert erroneous comment from 2005-08-23.  Extend to allow
9638         keyword negation with `!'.
9639         Update help message.  Remove broken code to prevent running
9640         tests multiple times.
9641         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
9642         Update and fix the documentation accordingly.
9643         * tests/autotest.at (Keywords): Renamed to..
9644         (Keywords and ranges): .. this.  Extended to make sure negated
9645         keywords, keywords taken from AT_SETUP arguments, and numeric
9646         test ranges work, and that matching is case-insensitive.
9648 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9650         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
9651         allow to pass unnamed structs even in C++.
9652         (AC_CHECK_SIZEOF):  Likewise.
9653         Also fix quoting error in `AC_MSG_FAILURE' arguments.
9654         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
9655         struct): New tests for unnamed structs, each both native and
9656         cross-compiling.
9658         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
9659         a structure inside a cast, for C++ conformance.
9660         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
9661         Also fix quoting error in `AC_MSG_FAILURE' arguments.
9663         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
9664         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
9665         trying to execute the command `no'.
9667         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
9668         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
9669         expanded outside.
9671         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
9672         example.  Do not emphasize `$%', it is hardly new and special.
9673         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
9675         * doc/autoconf.texi (Limitations of Usual Tools): Document
9676         OpenBSD and traditional `grep' failure to handle multiple
9677         patterns separated by newlines.
9679 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9681         * doc/autoconf.texi (several sections): Add documentation for macros
9682         in erlang.m4.
9684 2006-03-10  Eric Blake  <ebb9@byu.net>
9686         * doc/autoconf.texi (Obsolete Macros): Fix wording of
9687         AC_TRY_LINK_FUNC.
9689 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
9691         * doc/autoconf.texi: Use @acronym more consistently for acronyms
9692         like BSD, GPL, LGPL.  Fix minor English typos.
9693         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
9694         Mention that these macros are becoming obsolete.
9695         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
9696         Use more modern terminology for which standard is what.
9697         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
9698         and to ansi2knr.
9699         (AC_PROG_CXX): Likewise.
9700         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
9701         Remove obsolete discussion about how to port to K&R.
9702         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
9703         the obsolescent AC_HEADER_STDC.
9704         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
9705         can't rely on it.
9707 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9709         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9710         Remove stdin redirection from /dev/null to allow pipe to work.
9712 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9714         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9715         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
9716         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
9717         Ralf Wildenhues.
9719 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9721         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
9722         HP-UX sed is 99 commands, not 100.
9723         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
9724         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
9725         newline for portability.
9726         * tests/torture.at (Torturing config.status): Also test 100
9727         AC_SUBST_FILE invocations.  Fix test to actually verify the
9728         AC_CONFIG_FILES output.
9729         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
9730         command, label, and read-file `r' limits.  Unify HP-UX spelling.
9732         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
9733         non-suffix rule.
9734         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
9735         non-GNU make.
9736         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
9737         * tests/mktests.sh: Small shell portability fixes.
9739 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9741         * doc/autoconf.texi (Caching Results): Fix the examples to use a
9742         recommended quoting style and discard unwanted output.
9744 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9746         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
9747         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
9748         cases, and to work around Tru64 expr bug.
9750 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9752         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
9753         expr bug that turns the result of a regex match into a number if
9754         possible.
9756 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9758         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
9759         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
9760         in section `Specific Compiler Characteristics'.
9762 2006-03-04  Eric Blake  <ebb9@byu.net>
9764         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
9765         variable warning.
9767 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9769         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
9770         order of variable initialization, so even the Solaris 2.6 shell
9771         can create a config header correctly.  Fixes lots of test suite
9772         failures.
9774 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9776         * doc/autoconf.texi (Text processing Macros): New node to
9777         document the m4sugar macros m4_re_escape, m4_tolower,
9778         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
9780 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9782         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
9783         XrmInitialize (0) -> XrmInitialize ().
9784         Reported by Toshio Kuratomi.
9786 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9788         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
9789         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
9790         * doc/autoconf.texi (Programming in M4sh): Adjusted.
9791         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
9792         both macros are defun'ed so that required macros are evaluated
9793         outside.
9795         * doc/autoconf.texi (Prerequisite Macros): State more precisely
9796         where a required macro will be expanded.
9797         (Coding Style): Another reason not to use `m4_define'.
9799 2006-02-21  Eric Blake  <ebb9@byu.net>
9801         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
9803 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9805         * doc/autoconf.texi (Looping constructs): New node, to
9806         document m4_for, m4_foreach, m4_foreach_w, and mention
9807         obsolete AC_FOREACH.
9808         (Obsolete Macros): Document AC_FOREACH.
9809         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
9810         (m4_for): Fix to never loop (almost) endlessly, work correctly
9811         with arithmetic expressions in arguments, a step of zero or
9812         non-integer multiple of the interval, and avoid integer
9813         overflow.
9814         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
9815         m4_foreach_w.
9817 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9819         Add basic support for Erlang, both for configuring Erlang/OTP
9820         tools, and Erlang as a conf test language.
9821         * lib/autoconf/erlang.m4: New file.
9822         * lib/autoconf/autoconf.m4: Add erlang.m4.
9823         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
9824         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
9825         * NEWS: Add short description of new macros.
9826         * THANKS: Add Romain Lenglet.
9828 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9830         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
9831         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
9833 2006-02-15  Eric Blake  <ebb9@byu.net>
9835         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
9836         warning.
9838 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9840         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
9841         (_AS_CASE): Private helper macro.
9842         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
9843         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
9844         Fix syntax of AS_IF description
9845         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
9846         for the AC_REQUIRE mess.
9847         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
9848         AS_SHELL_SANITIZE.
9850 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9852         * doc/autoconf.texi: Minor style cleanup.
9853         Be consistent about spaces after commas.
9854         Insert [] where empty args look a bit funny.
9855         Fix some "i.e." and "e.g." usages.
9856         Try to avoid "X/Y" usages.
9857         Don't be pedantic about "ISO C99"; just say C99.
9858         Prefer GNU style for spaces in front of parens.
9859         (Function Portability): Comment about C89 versus C99
9860         signed integer division.
9861         (Particular Headers): Use current gnulib style for dirent
9862         includes.
9864 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
9865         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9867         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
9868         macros without parameters.
9869         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
9870         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
9871         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
9872         `$#' bug.
9873         (autoupdate): Updated to match AU_ALIAS fix.
9875 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9876         and Paul Eggert  <eggert@cs.ucla.edu>
9878         * doc/autoconf.texi (Programming in M4sh): Document
9879         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
9881 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9883         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
9884         (AS_BOURNE_COMPATIBLE): ..this.
9885         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
9887 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9889         * doc/install.texi (Defining Variables): Tighten up the
9890         CONFIG_SHELL wording.
9892 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
9893         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9895         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
9896         of (set -o) rather than testing whether (set -o posix) succeeds,
9897         to work around a bug in the AIX 5.3 shell.  Problem originally
9898         reportd by Howard Chu for libtool.
9900 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
9902         * doc/autoconf.texi (Running the Compiler, Running the Linker):
9903         Changes the macro arguments in summaries to match the
9904         descriptions.
9906 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
9908         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
9909         hint as ``a workaround for a bug.''
9911 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9913         * bin/autoreconf.in: New option `--no-recursive'.
9914         Improve wording for subpackages a bit.
9915         * doc/autoconf.texi (autoreconf Invocation): Updated.
9916         * NEWS: Updated.
9918         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
9919         in environment of `configure', not the command line.
9920         Reported by Howard Chu <hyc@highlandsun.com>.
9922 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9924         * doc/autoconf.texi (Limitations of Builtins): Document the
9925         problem with "trap -".
9927 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
9929         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
9930         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
9931         messages to differentiate Fortran and Fortran 77 tests.
9932         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
9933         AC_LANG_ASSERT, to allow use in mixed-language projects.
9935 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9937         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
9938         FOO" to "defined (FOO)".
9939         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
9940         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
9941         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
9942         * tests/tools.at (ifnames): Likewise.
9944 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9946         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
9947         * lib/Autom4te/General.pm (mktmpdir): Likewise.
9948         (END): Improve error message a bit.
9949         Reported by Bruce Korb <bkorb@gnu.org>.
9951 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9953         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
9954         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
9956 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
9958         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
9959         requires sys/stream.h.  Reported by Oliver Kiddle.
9961 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9962             Stepan Kasal  <kasal@ucw.cz>
9964         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
9965         before the removals of test dirs, use `find' to avoid modification
9966         of symlinked directories.
9968 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
9970         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
9971         Don't ignore the macro arguments.
9973 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
9975         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
9976         declaration that works for MSVC.
9978 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9980         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
9981         Add `*.map' and `.inf' for Green Hills compiler.
9982         Reported by Stefan Seefeld <stefan@codesourcery.com>.
9984         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
9985         correctly: pad with spaces after FIRST_PREFIX if necessary,
9986         and compute string lenghts with `m4_qlen' instead of `m4_len'.
9987         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
9988         * tests/m4sh.at (AS_HELP_STRING): Test extended.
9989         * NEWS: Updated.
9990         Reported by numerous people, numerous times.
9992 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9994         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
9995         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
9996         * lib/autoconf/general.m4, lib/autoconf/status.m4:
9997         * lib/autotest/general.m4, tests/local.at:
9998         Update copyright year to 2006.
10000         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
10001         sed substitutions.
10002         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
10003         for file names, again.  Reported by Noah Misch.
10004         (Coding Style): Explain that s|a|b| is preferred for file names.
10005         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
10006         (AC_OUTPUT_MAKE_DEFS): Likewise.
10007         * lib/autotest/general.m4 (AT_INIT): Likewise.
10008         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
10009         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
10011         Fix Posix-conformance bugs re use of { command in sed scripts,
10012         and improve the sed-related documentation a bit.
10013         * doc/autoconf.texi (Installation Directory Variables): Use
10014         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
10015         rather than "sed" when talking about Sed in general.
10016         (Particular Programs): Likewise.
10017         (Coding Style): y is like s with respect to / and ,.
10018         (Limitations of Usual Tools): Document the weird restrictions
10019         that Posix has about { }.  Use better quoting.
10020         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
10021         Rewrite to conform to Posix rules about { } in sed scripts.
10022         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
10023         * tests/foreign.at (Libtool): Likewise.
10024         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
10025         Use our own style advice re 's,a,b,' versus 's|a|b|'.
10027 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10029         * lib/autoconf/status.m4: Fix typo.
10031         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
10032         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
10033         `-def', for the benefit of Portland `pgf90 -Mipa'.
10034         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
10036 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10038         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
10039         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
10040         shell from zsh to bash.
10042 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
10044         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
10045           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
10047 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10049         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
10050         parentheses in $(...).  Problem reported by Eric Blake.
10052 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10054         * doc/autoconf.texi (Limitations of Usual Tools):
10055         Mention which characters can be escaped with \ in portable regular
10056         expressions used in grep, sed, expr.  Mention the leading ^ problem
10057         with expr.  Clean up some confusing wording.  Mention which
10058         grep options are portable.
10060 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
10062         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
10064 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10066         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
10067         patch, noted by Ralf Wildenhues.
10069 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10071         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
10072         posix' unconditionally, for pdksh in `native sh' emulation.
10074 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10076         * doc/autoconf.texi (Shellology): Document eval $? problem
10077         with ash.
10078         (Limitations of Builtins): Likewise.
10080 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10082         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
10083         CONFIG_SHELL in the environment of the configure rerun.
10084         * doc/autoconf.texi (Here-Documents, config.status Invocation):
10085         Suggest passing CONFIG_SHELL absolute, and in the environment
10086         rather than as option.
10088 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10090         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
10091         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
10092         Fix macro quoting.  Fix output for n * 98 substituted variables.
10094 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10096         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
10097         `tmp' to avoid file removal race.
10099 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10101         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
10102         ac_clean_files and LIBOBJS.
10104 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10106         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
10107         Factor functionality to..
10108         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
10109         `AC_SUBST($1)' in the public version.
10110         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
10111         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
10112         ac_pt_* variables.
10114 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
10116         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
10117         filesystems.
10119 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10121         * NEWS: Move AH_HEADER mention to right place.
10123 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
10125         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
10126         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
10128 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
10130         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
10131         conftst2.$ac_objext.
10132         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
10134 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
10136         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
10137         conftest.o, to see whether the compiler really obeys; rm the object
10138         file before and after the test and register it with ac_clean_files.
10139         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
10141 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
10143         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
10144         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
10145         code so that the most common case requires less forks.
10147 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
10149         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
10150         not portable; thanks to Paul Eggert and Alexandre.
10152         * NEWS: Fix an old typo.
10154 2005-10-20  Jim Meyering  <jim@meyering.net>
10156         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
10157         the latter'', in two places.
10159 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10161         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
10162         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
10163         the inner workings of AC_LANG_FUNC_LINK_TRY.
10164         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
10165         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
10166         by the function rather than ignoring it.
10167         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
10168         comparing its address.  Intel's interprocedural optimization was
10169         outsmarting the old heuristic.  Problem reported by
10170         Mikulas Patocka.
10172 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
10174         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
10176 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10178         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
10179         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
10181 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
10183         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
10184         before removing it (chmod -R u+rwx); there are three instances of this.
10186 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10187             Stepan Kasal  <kasal@ucw.cz>
10189         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
10190         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
10191         make its content writable before removing it.  Remove an errorneous
10192         comment from the end, where the logs of the failed tests are copied
10193         to the main log file.
10195 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
10197         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
10198           in case the computer is too quick.  Double quote the configure.ac
10199           snippets.
10201         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
10202           problems if the testsuite were running too fast.
10204 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10206         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
10207         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
10208         (which belong to Xt, not X itself).  See Debian bug 327655.
10209         * NEWS: Mention this.
10211 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
10213         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
10215 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10217         * config/move-if-change: Don't output "$2 is unchanged";
10218         suggested by Ben Elliston.  Handle weird characters correctly.
10220 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
10222         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
10223           calls, so that the final expansion of this macro is shorter.
10224           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
10225           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
10226           the cleanup there.  Use AS_VAR_* macros, to be more general.
10227         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
10229         * lib/autoconf/general.m4: Use AS_IF where appropriate.
10231         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
10233 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
10235         * doc/autoconf.texi (Configuration Headers): Add an index entry
10236           for AH_HEADER.
10238 2005-08-26  Pavel Roskin  <proski@gnu.org>
10240         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
10241         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
10242         running xmkmf.
10244 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
10246         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
10247         The previous patch didn't work, so try a better one.
10249 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
10251         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
10252         in the example.  Reported by Bruno Haible.
10253         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
10254         "if $undefined_var;" succeeds with my shell.
10256         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
10257         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
10258         but change the m4_divert_text to m4_divert_once.
10260 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10262         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
10263         Work around bug in Solaris /usr/xpg4/bin/awk.
10264         The bug is present in at least Solaris 8 through 10.
10266 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
10268         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
10269         some evil values and relying on the fact that $* concatenates the
10270         parameters by the first character from IFS.
10272 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
10273             Stepan Kasal  <kasal@ucw.cz>
10275         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
10276         first header appears, define AH_HEADER.
10277         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
10278         Update limitations about when to call AC_CONFIG_HEADERS.
10279         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
10280         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
10281         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
10282         ``Configuration Actions''; fix their index entries.
10284         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
10285         options correctly.  Process N-M as M-N if M is smaller than N.
10286         Process ranges correctly so that N-N will run only N.
10287         Sort and uniquify the tests that will be run.  If there is more
10288         than one test, reinsert the banners for the tests.
10289         * tests/autotest.at (Keywords): Unmark XFAIL.
10291 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
10293         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
10294           before passing the macro name to AH_TEMPLATE.
10296         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
10297           now opens log after option processing; in particular, --version
10298           and --help do not touch config.log.
10300         * Makefile.maint: Revert the change from 2005-08-12.
10302 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
10304         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
10305           common code to...
10306         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
10308 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10310         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
10311         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
10312         Language cleanup.
10314         * doc/autoconf.texi (Defining Symbols, Changed Results):
10315         Prepend to LIBS, not append, in examples.
10317 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
10319         When building in place, set srcdir="."; suggested by Tim Van Holder.
10321         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
10322           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
10323         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
10324         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
10325           does not mean "no --srcdir option".
10327 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10329         * tests/autoscan.at (autoscan): New file.
10330         * tests/suite.at: Use it.
10331         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
10332         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
10334         * tests/autotest.at (Keywords): Test keywords combinations.
10336 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
10338         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
10339           add "2>&1"; gzip 1.2.4 prints help on stderr.
10341 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
10343         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
10344         was pushdef'ed twice while popped only once.  Push it only once.
10345         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
10347 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
10349         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
10350         prefixed by mere "===", not "configure: === ".
10352 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10354         * Makefile.maint: Update from Bison.
10356         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
10357         "<tab>" in comment, so that the point is understandable.
10359 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
10361         Rewrite substantial part of lib/autoconf/status.m4.
10362         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
10363         and CONFIG_COMMANDS are not processed in four separate loops.
10364         Instead, there is one main loop.  This alows that the common code
10365         is expanded only once, thus config.status (and configure) is smaller.
10367         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
10368         the AC_LIST_FILES and cousins macros are no longer used.
10370         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
10371         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
10372         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
10373         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
10374         contain the initialization, nor the for loop, nor the associated
10375         commands; all these go to ...
10376         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
10377         _AC_OUTPUT_CONFIG_STATUS.
10378         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
10379         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
10380         (_AC_OUTPUT_FILE): The creation of the sed script ...
10381         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
10382         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
10383         _AC_OUTPUT_MAIN_LOOP.
10384         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
10385         _AC_CONFIG_COMMANDS): Use ...
10386         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
10387         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
10388         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
10389         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
10390         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
10391         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
10392         ... new macros.
10393         (_AC_CONFIG_UNIQUE): Update.
10394         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
10395         Replaced by this ...
10396         (_AC_LIST_TAGS): ... new common macro.
10397         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
10398         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
10399         (_AC_LIST_TAG_COMMANDS): ... new common macro.
10400         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
10401         this didn't belong to the `config commands' section.
10402         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
10403         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
10404         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
10405         to the `config commands' section either.
10406         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
10407         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
10409         ... and many changes to the comments nearby.
10411         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
10412         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
10413         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
10414         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
10415         (#define header templates): The comment at the top of the generated
10416         header now includes the name(s) of the source file(s).
10418         Several unrelated small changes:
10420         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
10421         parameter to AC_DIAGNOSE.
10422         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
10423         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
10424         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
10425         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
10426         with AU::AC_OUTPUT.
10427         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
10428         in AC_OUTPUT doesn't double-quote it either.
10429         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
10430         parameters.
10432 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
10434         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
10435         versions of Portland Group compiler produce single- and double-quoted
10436         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
10437         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
10439 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10441         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
10442         This is a corrected version of yesterday's patch.
10444 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
10446         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
10447         path, too; insert a "===" to emphasize the line.
10449         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
10450           ac_cv_build_alias to ac_build_alias.
10451         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
10453         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
10454         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
10455         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
10456         (AC_ARG_VAR): ... here.
10457         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
10458           target_alias.
10460         Keep a list of all precious variables and process them with one simple
10461         for loop, instead of expanding all commands, or, OTOH, complicated
10462         processing of output of "set".
10463         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
10464         variable names in new macro...
10465         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
10466         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
10467           a loop to assign all ac_env_* and ac_cv_env_* variables.
10468         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
10469           to INIT_PREPARE.
10470         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
10471           its value to shell variable ac_precious_vars and call
10472           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
10473         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
10474           _AC_ARG_VAR_VALIDATE.
10476         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
10477           and the AC_SUBSTs ...
10478         (AC_INIT): ... here.
10480         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
10481           the ac_subst_files section in config.log.
10483         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
10485 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10487         * NEWS: New macro AC_C_TYPEOF.
10488         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
10489         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
10490         * tests/c.at (C keywords): Test AC_C_TYPEOF.
10492         Fix problems reported by Nicolas Joly.
10493         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
10494         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
10495         They are generated by the Tru64 v5.1B shell.
10497 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
10499         Fix my changes from 2005-07-01; reported by Noah Misch.
10500         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
10501         description, the macro now accepts only a single tag.
10502         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
10504         Fix cases when the varsions of Autoconf and Autotest don't match.
10505         Reported by Noah Misch.
10506         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
10507         at_top_builddir, for compatibility with older autotest.
10508         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
10509         is not set, use at_top_builddir, for compatibility with older
10510         versions of autoconf.
10512 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10514         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
10515         Problem reported by Patrick Welche.
10517 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10519         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
10520         sed substitution command, so that we allow | in program prefixes
10521         and program suffixes.  (& is a problem anyway; we're not fixing
10522         that here.)
10523         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
10524         configure_input, top_builddir, srcdir, etc.
10525         * lib/autotest/general.m4 (AT_INIT): Likewise, for
10526         PATH_SEPARATOR in AUTOTEST_PATH.
10528 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
10530         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
10531         for loop over config.site files using `set', to allow
10532         directory names containing IFS characters.
10534 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10536         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
10537         directories with weird names.  Apparently some people like living
10538         on the edge.  However, improve the test that "pwd" actually does
10539         report a name for the working directory.
10540         * NEWS: Remove the claim that we test for funny chars in dir names.
10542 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
10544         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
10545         replaced ...
10546         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
10547         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
10548         Now accept a single tag, not whitespace separated list.
10549         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
10551 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
10553         * doc/autoconf.texi (Configuration Headers): Change the explanation
10554         about #include <config.h>.
10555         (Generic Functions): Mention the Gnulib project.
10556         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
10558         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
10559         document to output the default config_* lists to config.status.
10560         Don't recognize option --file, if the functionality is not there.
10561         Likewise for --header; moreover, recognize --he and --h as shortcuts
10562         for --help in that case.
10564         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
10565         matches the order of execution.  No code changed.
10567 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10569         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
10570         single-quoted -cmdline argument in Portland Group compiler.
10571         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
10573 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
10575         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
10577 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
10579         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
10580         descriptors to child processes; reported by Norman Gray.
10582 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
10584         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
10586         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
10587         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
10588         (AC_SUBST): Call it.
10589         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
10590         the directory specific variables; but don't call it for configure_input.
10592 2005-06-28  Derek Price  <derek@ximbiot.com>
10594         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
10595         addition.
10597 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10599         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
10600         directory have inherent problems with special characters like spaces,
10601         due to limitations in Make syntax.  Problem reported by Alexandre
10602         Duret-Lutz.
10603         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
10604         Also, fix Tru64 porting problem with shell patterns,
10605         reported by Ralf Wildenhues.
10607 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10609         * doc/autoconf.texi (Subdirectories): Fix markup typos.
10611 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10613         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
10615         Fix some more shell quoting problems.  Prompted by a bug report
10616         from Justace Clutter.
10617         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
10618         variable into diagnostic.  Make the diagnostic an error, not a warning,
10619         because we really don't support spaces and suchlike in dir names.
10620         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
10621         Don't worry about backslashes in srcdir; it can't happen now.
10622         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
10623         Simplify ac_optarg handling.
10624         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
10626 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
10628         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
10629         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
10630         * tests/atlocal.in: Propagate $EGREP and $SED.
10631         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
10632         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
10634         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
10635         that '\|' is not allowed in BREs; recommend using newline separated
10636         list of patterns instead of multiple -e options.
10638         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
10640         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
10642 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10644         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
10646 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
10648         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
10649         b, t, r, w commands require single space, while : cannot have any.
10650         (Special Shell Variables): Fix sed code this in the example.
10651         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
10652         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
10654         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
10655         expand to the empty list.  Don't use two pairs of m4_changequote,
10656         it's not necessary.
10658 2005-06-20  Derek Price  <derek@ximbiot.com>
10660         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
10662 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10664         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
10665         * doc/autoconf.texi:
10666         Don't mention Solaris versions so much, if a
10667         problem is common to all extant versions of Solaris.  Say "SunOS
10668         4" instead of "SunOS" for SunOS 4.
10669         (awk): Mention more of the limitations of traditional Awk.
10670         (cat): Don't talk about cat -v.
10672 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10674         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
10675         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
10676         but the implementation is entirely different and is designed
10677         to be compatible with glibc strverscmp.
10678         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
10680         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
10681         on Mac OS X 10.4 reported by Peter O'Gorman in:
10682         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
10683         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
10684         Use shell builtins rather than 'expr', to work around expr bug.
10686 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
10688         * doc/autoconf.texi: "filesystem" -> "file system".
10689         "behaviour" -> "behavior".
10690         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
10691         * lib/autoconf/general.m4: Omit blank after ":" sed command,
10692         as per POSIX.
10693         * lib/m4sugar/m4sh.m4: Likewise.
10694         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
10695         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
10697         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
10698         (.x.1): Ignore the time stamp in the .TH line when deciding whether
10699         to update the man page.  That way, we don't have to check in new
10700         man pages every month.
10702         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
10703         quotes and backslashes.  Patch from Derek Price.
10705 2005-06-10  Derek Price  <derek@ximbiot.com>
10707         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
10708         AS_TR_SH.
10710 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
10712         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
10713         -u, since it outputs chatter if the input files are the same.
10714         Problem reported by Ralf Menzel.
10716 2005-06-08  Derek Price  <derek@ximbiot.com>
10718         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
10719         renaming them since they are about to be redefined anyhow.
10721 2005-06-08  Derek Price  <derek@ximbiot.com>
10723         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
10724         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
10725         Move m4_undefine to alphabetical order.
10727 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10729         * README: Recommend GNU M4 1.4.3 or later.
10730         * doc/autoconf.texi (Introduction): Likewise.
10731         Reword to avoid some formatting glitches.
10732         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
10733         Clarify explanation of HP compiler bug.
10734         Redo example output tp match current CVS snapshot.
10735         Use @example.org in email addresses when the examples
10736         might get inadvertently cut-and-pasted into user code.
10737         Remove example of autom4te usage that doesn't seem to work now.
10738         Use modern AC_INIT (except when the example is meant to be
10739         shown with Autoconf 2.13).
10740         Update ksh info for Solaris 9 and later.
10741         KB -> kB.
10742         Modernize description of Automake versions a bit.
10743         Don't claim a future version of Autoconf is near.
10744         * doc/install.texi: Reword to avoid some formatting glitches.
10746 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10748         * doc/autoconf.texi: Add [] to examples, so that the manual
10749         follows its own advice about quoting better.
10750         Reword to avoid some formatting glitches.
10751         * doc/installt.exi: Reword to avoid some formatting glitches.
10753         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
10754         Tru64 ksh pattern matching bug.  Reported against Libtool by
10755         Albert Chin <libtool@mlists.thewrittenword.com> and
10756         Nicolas Joly <njoly@pasteur.fr>.
10758 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
10760         m4_cdr of one-member list was [[]] (one-member list containing an
10761         empty string) instead of [] (an empty list.  Callers were skewed to
10762         match this misbehaviour.  As a consequence of this:
10763          - m4_foreach([x], [], [foo]) expanded to `foo', while
10764          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
10765         This bug has been fixed:
10767         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
10768           expand to an empty string; print error msg if called without
10769           an argument list.
10770         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
10771           misbehaviour; handle [] and [[]] correctly.
10773 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
10775         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
10776         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
10777           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
10779 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
10781         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
10782           swallow records with more than 99 fields.
10783         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
10784           parse the long line.
10786 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
10788         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
10789           swallow literals longer than 399.  Reported by Ralf Wildenhues.
10790         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
10791           to workaround this limitation.
10793 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
10795         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
10796         to gfortran, and make these the first two compiler names
10797         checked (following the general autoconf preference for gcc).
10799 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
10801         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
10802         (DISTCLEANFILES): Remove $(check_SCRIPTS).
10803         (testsuite): Make sure autotest.m4f is up-to-date before using it.
10805 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10807         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
10808         expression of unbounded size when processing the --list
10809         option.  This runs afoul of a limit of 399 bytes per regular
10810         expression on AIX.  Problem reported by Ralf Wildenhues.
10812 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10814         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
10815         * doc/autoconf.texi (Particular Headers): Reword example
10816         for multiline stdbool replacement.
10817         (Setting Output Variables): Reword text a bit.  Don't
10818         give all the details about |#_!!_#|.
10819         Reword description of line replacement.
10821 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
10823         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
10824         now contain newlines, and substituted files must be referenced on
10825         a line alone; the sed scripts to substitute them are now very
10826         different.
10827         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
10828         commands can be put in a sed script portably.
10829         * doc/autoconf.texi (Setting Output Variables): Document above
10830         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
10831         use of multiline substitution.
10832         * tests/torture.at: No longer expect substitution of newline to fail.
10834 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10836         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
10837         From Ralf Menzel (trivial change).
10839 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
10841         * tests/local.at: Don't attempt to check for negated character
10842         classes in shell scripts.  The test was too brittle.
10844 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
10846         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
10847         * doc/autoconf.texi (Limitations of Builtins): Document this
10848           limitation.
10850 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
10852         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
10853           common code; used in many places in the tree.
10854         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
10855         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
10857         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
10859         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
10860           messages when ac_unique_file is not found.
10861         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
10862         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
10863           commands, for consistency with AC_MSG_ERROR and such.
10865         * bin/autoconf.as: Make more use of "shift 2" in option processing.
10867         * bin/Makefile.am: Merge the two rules for creating scripts.
10869 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
10871         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
10872         obsolete; it was never documented.
10873         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
10875 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
10877         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
10878         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
10879         (ac_top_builddir): ... this ...
10880         (ac_top_build_prefix): ... to this; the old name is also kept, for
10881           backward compatibility.
10882         (ac_top_builddir_sub): New variable, without the trailing slash,
10883           always nonempty.
10884         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
10885         * doc/autoconf.texi (Configuration Actions): Rename
10886           ac_top_builddir to ac_top_build_prefix.
10887         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
10888           at_top_builddir to at_top_build_prefix.
10889         * lib/autotest/general.m4 (AT_INIT): Likewise.
10891 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
10893         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
10894           of confdefs.h .
10896 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
10898         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
10899           argument to m4_foreach.  I guess it was necessary in the past,
10900           but I think it's a no-op now.
10902 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
10904         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
10905           ``cat <<_ACEOF'' commands to one.
10906         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
10907         * lib/autoconf/status.m4: On various places, use expr instead of
10908           ``echo|sed.''
10909         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
10910         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
10911         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
10912           a range.
10913         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
10914           the wrong patterns between ``case'' and ``esac.''  The previous
10915           code had false positives.
10917 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
10919         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
10920         as on 2005-05-02.
10921         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
10922         Mention LIBOBJDIR.
10924 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10926         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
10927         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
10928         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
10929         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
10930         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
10931         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
10932         config/config.guess, config/config.sub, config/elisp-comp,
10933         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
10934         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
10935         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
10936         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
10937         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
10938         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
10939         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
10940         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
10941         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
10942         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
10943         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
10944         lib/autoconf/general.m4, lib/autoconf/headers.m4,
10945         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
10946         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
10947         lib/autoconf/specific.m4, lib/autoconf/status.m4,
10948         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
10949         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
10950         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
10951         lib/autotest/general.m4, lib/emacs/Makefile.am,
10952         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
10953         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
10954         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
10955         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
10956         tests/compile.at, tests/foreign.at, tests/fortran.at,
10957         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
10958         tests/semantics.at, tests/suite.at, tests/tools.at,
10959         tests/torture.at, tests/wrapper.as:
10960         Update FSF postal mail address.
10962 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
10964         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
10965           check.
10966         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
10967           enough arguments, similarly as in m4_bpatsubsts.
10969 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
10971         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
10972           of absolute paths.
10974 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
10976         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
10977           for absolute directory names in one loop.
10978         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
10979           abbreviations of --version and --debug.
10981 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
10983         * doc/autoconf.texi (Autoconf Language): Be more precise about
10984         quoting rules.  Problems noted by Stepan Kasal.
10985         Also, throughout this document, be more careful about white space.
10986         "blank", "white space", and "space" all have different meanings
10987         and we should be careful to say what we mean.
10989 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10991         Fix C++ related problems reported by Werner Lemberg.
10992         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
10993         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
10994         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
10995         avoid problems with C++ and throw.
10996         * tests/compile.at: .cpp, not .cc.
10998         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
11000 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11002         * doc/autoconf.texi (Generic Functions): Typos.
11004 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
11006         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
11007         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
11008         set by latest automake.
11010 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11012         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
11013         outputs 0 on GNU/Linux these days.
11015 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
11017         * doc/autoconf.texi (Autoconf Language): Add more description
11018         about quoting heuristics.
11019         (Limitations of Builtins): Describe "set -" problems.
11021 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11023         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
11024         not newline.
11026         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
11027         by AC_DEFINE; it was a mistake.
11028         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
11030 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
11032         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
11034 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
11036         * doc/autoconf.texi (External Software): Quadrigraphs are not
11037           processed correctly in AS_HELP_STRING; avoid this in the examples.
11038         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
11039         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
11040           comment and reduce m4_default([foo], []) to [foo].
11041         (m4_strip): Update the explanation.
11043 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
11045         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
11046         Remove core.conftest.* too; it's generated by Tru64 5.1.
11047         Problem reported by Jennis Pruett.
11048         * lib/autoconf/functions.m4
11049         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
11050         Don't bother to remove core files; AC_RUN_IFELSE should do that
11051         for you.
11053 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
11055         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
11057 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
11059         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
11060         Report from Horst Wente.
11062 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
11064         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
11065           the comment.
11067 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
11069         * doc/autoconf.texi (External Software, Package Options): Add
11070           examples showing how to implement --with-* and --enable-* options.
11072 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11074         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
11075         as well as configure.in.  Problem reported by Gregorio Guidi.
11077 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11079         * doc/autoconf.texi (Particular Functions): Use gnulib's current
11080         pattern for alloca snippet.
11082 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
11084         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
11086 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
11088         * doc/autoconf.texi (Generic Programs): Fix a typo.
11090 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
11092         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
11093         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
11095 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11097         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
11098         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
11099         whole-archive (-zallextract, -zdefaultextract) options in the hope of
11100         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
11101         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
11103 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
11105         * NEWS: The configure command now warns you if you attempt to use
11106         a directory whose name contains a special character like space,
11107         newline, or "\".
11108         * doc/autoconf.texi (Installation Directory Variables): Allow
11109         "," in file names.  Do not use \@; it's not a portable regexp.
11110         * bin/Makefile.am (edit): Likewise.
11111         * lib/Makefile.am (edit): Likewise.
11112         * tests/Makefile.am (edit): Likewise.
11113         * tests/semantics.at: Likewise.
11114         * tests/torture.at: Likewise.
11115         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
11116         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
11117         * doc/autoconf.texi (File System Conventions): Warn about
11118         unportable file names.
11119         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
11120         (AC_INIT): Use it.
11121         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
11122         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
11123         ac_pwd, and quote srcdir.
11124         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
11126         * doc/autoconf.texi: Fix some systematic formatting problems.
11127         ".)"  needs a following @: if not at the end of a sentence, and
11128         similarly for "!)".  "etc." should be preceded by a comma.
11129         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
11131 2005-03-22  Bruno Haible  <bruno@clisp.org>
11133         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
11134         argument is often called 'build-aux'.
11136 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
11138         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
11139           macro AC_TRY_LINK is obsolete.
11140         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
11141           `AC_CONFIG_FILES'.
11143 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
11145         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
11146           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
11147           from a Common Lisp's `cl'.
11148         (AC_PROG_CXX): Behave according to the documentation: don't
11149           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
11150           make the variable CCC precious; use `cl.exe', not `cl'.
11152 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11153             Alexandre Duret-Lutz  <adl@gnu.org>
11155         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
11156         /dev/null, as "configure" shouldn't read stdin, and this insulates
11157         us from problems (e.g., when testing for "cl").  Also, do this
11158         redirection before invoking "hostname" or "uname", and keep the
11159         original input stream available via...
11160         (AS_ORIGINAL_STDIN_FD): ... this new macro.
11161         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
11162         bother with "</dev/null" since it's now done at the top of
11163         'configure'.
11164         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
11165         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11166         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
11167         * doc/autoconf.texi (File Descriptor Macros): New section.
11168         (Printing Messages): Mention it.
11169         * tests/base.at (Input/Output): New test.
11171 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11173         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
11174         newline if neither \c nor -n work, as that would output two
11175         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
11177 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
11179         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
11180         This causes that any required macros inside will get before the if.
11181         * doc/autoconf.texi (autom4te.cache): A typo.
11183 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11185         Undo previous change, except keep the change to
11186         lib/autoconf/programs.m4 that replaced grep with shell
11187         pattern-matching.  This is because net-snmp configure reads stdin.
11188         Reported by Noah Misch.
11190 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
11192         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
11193         from /dev/null, as "configure" shouldn't read stdin, and this
11194         insulates us from problems (e.g., when testing for "cl").
11195         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
11196         before invoking "hostname" or "uname".
11197         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
11198         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
11199         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
11200         "</dev/null" since it's now done at the top of 'configure'.
11201         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11202         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
11203         Also, replace grep with shell pattern-matching, to save a process.
11205 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
11207         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
11208         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
11209         avoid thinking that Allegro Common Lisp's "cl" command is a C++
11210         compiler.
11212 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11214         * doc/autoconf.texi (Limitations of Usual Tools): Document that
11215         grep -q isn't portable.  Improve grep -s explanation.
11216         Problem reported by Dan Manthey.
11218 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11220         * doc/autoconf.texi (Special Shell Variables): Clarify
11221         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
11223 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
11225         * doc/autoconf.texi: Use @acronym for DJGPP.
11226         Fix some @code's that should have been @env's, and vice versa.
11227         Sort environment variable names.
11228         Mention that shells no longer inherit IFS.
11229         Don't recommend PATH_SEPARATOR=';' so strongly.
11230         Mention that $RANDOM might expand to the empty string.
11231         "symlink" and "soft link" -> "symbolic link".
11232         Improve mktemp description (reported by Bruno Haible).
11234 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
11236         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
11237         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
11238         Likewise.
11239         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
11240         Likewise.
11242 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11244         * NEWS: Mention AT_COPYRIGHT.
11246         * tests/local.at (AT_CMP): Use diff directly on input files rather
11247         than copying them.
11249         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
11250         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
11252 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
11253         and Paul Eggert  <eggert@cs.ucla.edu>
11255         * tests/autotest.at (Empty test suite): New test.
11256         * tests/torture.at (Substitute and define special characters)
11257         (Substitute a 2000-byte string, Define to a 2000-byte string)
11258         (Substitute a newline, Define a newline): New tests.
11260 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
11262         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
11263         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
11264         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
11265         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
11266         (Standard regular expressions): New test.
11267         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
11268         excess test name quoting.
11269         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
11270         CPPFLAGS to `configure' instead of setting it in `configure'.
11272         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
11273         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
11274         on some platforms.
11276         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
11277         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
11279         * tests/local.at (AT_CMP): New macro.
11280         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
11281         (AC_SAVE_STATE): Move environment grep...
11282         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
11283         (AT_CONFIG_CMP): New macro.
11284         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
11285         * tests/c.at (Extensions): Do not exit early.
11286         * tests/atlocal.in: Inherit $GREP.
11288         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
11289         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
11291         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
11292         (AC_COPYRIGHT): Factor header comment portion out and move into...
11293         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
11294         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
11295         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
11296         --version output.
11297         * tests/local.at: Add Autoconf test suite copyright notice.
11298         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
11300 2005-02-04  Bruno Haible  <bruno@clisp.org>
11301         and Paul Eggert  <eggert@cs.ucla.edu>
11303         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
11305 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11307         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
11308         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
11310         Try not to generated lines of unlimited length, as POSIX places a
11311         2047-byte limit on line length of portable text files.
11312         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
11313         Use newline as a separator, not space.
11314         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
11315         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
11316         space.
11318 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11320         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
11321         as_func_*.  Add test to check whether positional parameters
11322         are restored after function return.
11324 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11326         * doc/autoconf.texi (Special Shell Variables): Mention _,
11327         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
11328         if they contain a lower-case letter.  The DUALCASE problem was
11329         reported by Ralf Wildenhues.
11331         * bin/autoconf.as: Don't exit with status 0 after write failure
11332         with --help or --version.
11333         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
11334         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
11336 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11338         * doc/autoconf.texi (Limitations of Usual Tools):
11339         Unicos 9 sed limitations.
11340         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
11341         to get the option-enhanced interface on older Crays.  Try ftn for
11342         Fortran 95 (newer Crays).
11344 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
11346         * man/Makefile.am (.x.1): Go back to the simple solution, but take
11347         care to echo the commands, so the user knows what's going on.
11348         Modified from a suggestion by Stepan Kasal.
11350         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
11351         with a cross reference.  Derived from a suggestion by Bruce Korb.
11353 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
11355         * doc/autoconf.texi (config.status Invocation): Warn about
11356         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
11357         * doc/install.texi (Defining Variables): Likewise.
11358         Based on a proposed patch by Ralf Wildenhues.
11360         * man/Makefile.am (.x.1): Make sure the required generated files
11361         are up to date.  Problem and original solution proposed by Stepan Kasal.
11362         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
11363         implicit-man-prerequisites): New rules, used by the above.
11365         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
11366         * config/config.guess, config/config.sub, config/install-sh: Likewise.
11367         * config/missing, config/texinfo.tex: Likewise.
11369 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
11371         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
11372         Update the long comment explaining it.
11374         m4_require no longer writes an ``is required by'' line to the
11375         execution stack.  It contains only one bit of non-redundant
11376         information: that the macro was required, not called.  And even
11377         this bit is useless in most situations: have you ever met a macro
11378         which both calls and requires the same macro?
11380         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
11381         (_m4_defun_pro_outer): ... only via this macro, for the outermost
11382           macro.
11383         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
11384         (m4_expansion_stack_pop): Remove the misplaced comment.
11385         (m4_require): Don't put the ``is required by'' line to the
11386           execution stack; slightly improve the out-of-a-defun error message.
11387         (_m4_divert_grow): New macro, counter for the temporary diversions.
11388         (_m4_require_call): Use it.
11389         * tests/m4sugar.at (m4_require): Expect output without the
11390           ``is required by'' messages.
11392 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11394         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
11395         rather than x for expr.
11397         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
11398         this is safe.
11399         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
11400         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11401         * lib/autotest/general.m4 (AT_INIT): Likewise.
11402         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
11403         * tests/mktests.sh: Likewise.
11405 2005-01-27  Akim Demaille  <akim@epita.fr>
11407         Have autoheader honor --force.
11409         * doc/make-stds.texi, doc/standards.texi: Update from masters.
11410         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
11411         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
11412         from masters, so that FileUtils.pm's update_file provide --force
11413         support.
11414         * bin/autoheader.in: Pass $force to update_file so that
11415         config.h.in is always recreated when --force.
11417 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
11419         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
11421 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11423         * doc/autoconf.texi (Limitations of Builtins): Clarify that
11424         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
11426 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
11428         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
11429         Warn about newline stripping in `` and $().  Update Solaris
11430         version to 9.
11431         (Limitations of Builtins): Use expr "X...", not expr "x...", as
11432         X insulates us from future changes to Posix.
11433         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
11434         stripping.
11436 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
11438         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
11439           you cannot use AC_DEFINE to define macros containing `[' or `]'.
11441 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
11443         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
11444         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
11445         bug-tar mailing list.
11447 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
11449         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
11451 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11453         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
11454         ulongval to be static, to avoid unwanted GCC warning.  Problem
11455         reported by Michael Jennings via Daniel Reed; see
11456         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
11458 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
11460         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
11461         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
11462         datadir, infodir, and mandir.  Adjust argument parsing code.
11463         (_AC_INIT_HELP): Update help text.
11464         * doc/autoconf.texi (Installation Directory Variables): Document
11465         new variables.
11467 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
11469         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
11470         not seem to work, assume it does set $(MAKE).
11471         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
11473 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
11475         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
11477 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
11479         A cleanup of the diversion support in m4sugar.
11481         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
11482         (_m4_divert_n_stack): New macro; the expansion is
11483           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
11484           otherwise.
11485         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
11486         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
11487           stored in _m4_divert_diversion or _m4_divert_dump.
11488         (m4_divert_pop): When the parameter is given, compare the symbolic
11489           name with the last diversion pushed on the stack.  Previously, the
11490           current diversion was compared with the numeric value of the
11491           diversion given as the parameter.
11492         (m4_require): If the macro hasn't been expanded yet, call ...
11493         (_m4_require_call): this new macro.
11495 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11497         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
11498         Workarounds for documented `case' limitations.
11500 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11502         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
11503         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
11505 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
11507         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
11508         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
11509         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
11511         Patch from Roger Leigh (with some minor changes) as follows:
11512         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
11513         Resurrect AC_PROG_CC_STDC.
11514         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
11515         AC_PROG_CC_C89, AC_PROG_CC_C99.
11516         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
11517         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
11518         AC_PROG_CC_C99): New macros.
11519         (AC_PROG_CC_STDC): Use them.
11520         (_AC_PROG_CC_STDC): Remove.
11521         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
11522         * THANKS: Add Roger Leigh.
11524 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
11526         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
11527         signals that the package uses Automake; a `Makefile.am' is typical but
11528         not essential.  Reported by Magnus Therning.
11529         * tests/torture.at (autoreconf.): New banner.
11530         (autoreconf and non-AC configure): Rename to `Non-Autoconf
11531         AC_CONFIG_SUBDIRS'.
11532         (autoreconf an empty directory): Rename to `Empty directory'.
11533         (Unusual Automake input files): New test.
11535 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
11537         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
11538         (AT_SETUP): Clear AT_capture_files.
11539         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
11540         (AT_KEYWORDS): Fix comment typo.
11541         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
11542         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
11543         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
11545 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
11547         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
11548         If the variable to set is already set, set ac_cv_path_$1
11549         to the preset value so caller can assume ac_cv_path_$1
11550         is available.  (trivial change)
11552 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
11554         * BUGS (Minor Problems): Warn about makefile limitations.
11555         * Makefile.am: Find and update `INSTALL' in $(srcdir).
11556         * man/Makefile.am: Find and update manual pages in $(srcdir).
11558 2004-12-24  Eric Blake  <ebb9@byu.net>
11560         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
11561         shells in subshell, to avoid noise from ash.  (trivial change)
11563 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11565         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
11566         problems with SunOS ksh and backslash escaping, Bourne shells and
11567         closing brackets (both within character classes).  Bug reported
11568         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
11569         <read>: New entry.  Mention non-availability of -r.
11571 2004-12-21  Akim Demaille  <akim@epita.fr>
11573         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
11574         avoid cluttering displayed messages.  Rather, prepend srcdir where
11575         AT_LINE is used for log files.
11577 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
11579         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
11580         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
11581           no longer part of the macro, quote the occurrence of ``$tmp''.
11582         * doc/autoconf.texi (Forbidden Patterns): Typo.
11584 2004-12-21  Akim Demaille  <akim@epita.fr>
11586         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
11587         separated from the test title by forcing a white space.
11589 2004-12-21  Akim Demaille  <akim@epita.fr>
11591         Enable Emacs navigation within testsuite.log files.
11593         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
11594         use the compilation mode.
11595         (AT_LINE): Point to the srcdir.
11597 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
11599         * tests/Makefile.am (installcheck-local): Use $(bindir).
11600         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
11601         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
11602         Makefile.am scheme Autoconf now uses.
11604 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
11606         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
11607         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
11609 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
11611         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
11612         (_AT_CHECK): Use it.
11613         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
11614         (AS_ESCAPE): Fix comment.
11615         * tests/autotest.at: Adjust section banner comments.
11616         (AT_CHECK_AT): Accept STATUS and STDERR.
11617         (AT_CHECK_AT_TEST): Likewise.
11618         (Invalid brace-enclosed parameter expansion)
11619         (Multiline command from M4 expansion)
11620         (Double-M4-quoted command): New tests.
11622 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11624         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
11626 2004-12-17  Akim Demaille  <akim@epita.fr>
11628         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
11629         m4_pattern_allow.
11630         Suggested by Alexandre Duret-Lutz.
11631         * doc/autoconf.texi (Setting Output Variables): Catch up.
11633 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11635         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
11637 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11639         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
11640           remove the comment which said we cannot.
11642 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11644         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
11645         Reini Urban and Paul Eggert for reporting the dependencies.
11647         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
11648         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
11649         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
11651 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
11653         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
11654           so that eg. ``autoscan --help'' doesn't truncate it.
11656 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
11658         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11659         generated conftest files.
11661 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
11663         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
11664         tracing on commands with possibly-escaped newlines.
11665         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
11666         discontinued behavior and its implications.
11667         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
11668         (BSx641-newline in command, BS-BS-newline in command)
11669         (BSx640-newline in command, Newline-CODE-BS-newline in command)
11670         (Single-quote-BS-newline in command)
11671         (Single-quote-newline-BS-newline in command): New tests.
11673 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
11675         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
11676           on platforms where it works.
11677         (_AS_TEST_PREPARE): Test for ``test -x''.
11678         (_AS_BROKEN_TEST_PREPARE): Nuke.
11680 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
11682         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
11683         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
11684           give only 4-letter prefix to AS_TMPDIR, comment fixed.
11685         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
11686           create the temporary directory.
11687         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
11689 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
11691         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
11692         (trivial change)
11694 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
11696         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
11698 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
11700         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
11701         to avoid using a negated character class.  Reported by Nicolas Joly.
11702         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
11704 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
11706         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
11707         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
11708         Don't depend on .x file explicitly, since "make" does that for us.
11709         Suggested by Stepan Kasal.
11711         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
11712         Add *.tmp.
11713         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
11714         ifnames): Factor common code.  And they said it couldn't be done!
11716 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11718         * bin/.cvsignore: Add autoconf.in.
11719         * tests/.cvsignore: Add wrapper.in.
11720         * lib/autotest/general.m4: Escape '$' in case pattern.
11722 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
11724         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
11726         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
11728         * tests/autotest.at: New file.
11729         * tests/suite.at: Include it.
11730         * tests/Makefile.am: Distribute it.
11732         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
11733           shell tracing on a command that could contain multiple lines.
11734         * doc/autoconf.text: Document that fact and its implications.
11735         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
11736         * tests/autotest.at (Multiline backquote command substitution,
11737           Multiline parameter expansion, Literal multiline command,
11738           Multiline parenthetical command substitution): Remove XFAIL.
11740 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11742         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
11743         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
11745 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
11747         * configure.ac (test suite): Cease to generate wrapper scripts.
11748         * configure: Regenerate.
11749         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
11750         (m4f_dependencies): Adjust accordingly.
11751         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
11752         (wrapper.in): Generate it in the build directory.
11753         (MAINTAINERCLEANFILES): Delete wrapper.in.
11754         (CLEANFILES): Add wrapper.in.
11755         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
11756         the output.  Replace each $as_me with a @wrap_program@.
11757         * tests/wrapper.in: Delete it; we always build it.
11759         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
11760         (EXTRA_DIST): Remove autoconf.in.
11761         (CLEANFILES): Add autoconf.in.
11762         (autoconf): Find autoconf.in in the build directory.
11763         * bin/autoconf.in: Delete it; we always build it.
11765 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
11767         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
11768         PATH members so as to not prepend an empty element.  Move a comment.
11769         * Makefile.am (SUBDIRS): Build in `tests' last.
11770         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
11772 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
11774         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
11775         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
11776         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
11777         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
11779 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
11781         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
11782         patch: extra "-l"s.
11784 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11786         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
11787         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
11788         * doc/autoconf.texi (Particular Functions): Mention new behavior.
11790 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
11792         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
11793           out the common code to ...
11794         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
11795           value of the #define--default to 1, iff the macro was called
11796           with exactly one parameter.
11798 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
11800         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
11801         "char c = '\200';" rather than "char c = 0x80;" as the
11802         latter doesn't conform to the strict C standard due to
11803         overflow on signed char hosts.
11805         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
11806         to -qlanglvl=ansi.  We don't want to disable extensions.
11808 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
11810         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
11811         (Using Autotest, testsuite Scripts, Writing testsuite.at):
11812         Reword slightly to avoid some English-language problems noted
11813         by Ralf Wildenhues in:
11814         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
11816 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
11818         * NEWS: Add ^L above each release.
11820 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
11822         Fix documentation problems reported by Russ Boylan in
11823         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
11824         along with some nearby cruft.
11825         * doc/autoconf.texi (Libtool): Libtool can be used without
11826         Automake (not without Autoconf).
11827         (Introduction): Mention lists.gnu.org.
11828         * BUGS: Don't mention bugs.gnu.org.
11829         Remove mention of ancient libtool compatibility problem.
11830         * NEWS: Mention that bugs.gnu.org is kaput.
11831         * README: Likewise.  Mention where mailing list archives can be found.
11833 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
11835         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
11837 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
11839         * doc/autoconf.texi (Pretty Help Strings): Go back to
11840         single-quoting assignments to cache variables.
11842 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
11844         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
11845         with the examples; fix the bug in MY_ARG_WITH example reported
11846         by Alexandre Duret-Lutz.
11847         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
11848         expansion of $1 in the comment emitted to configure.
11850 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
11852         * doc/autoconf.texi (Pretty Help Strings): Fix typo
11853         in my editing of the previous patch.  Problem reported
11854         by Alexandre Duret-Lutz.
11856 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
11858         * doc/autoconf.texi (Autoconf Language): Explain that
11859         ``descriptions'' may not be double quotes.
11860         (Quotation Rule Of Thumb): Likewise.
11861         (Pretty Help Strings): Likewise; remove the wrong comment;
11862         simplify the examples and improve their quoting.
11864 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
11866         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
11867         the $1_found variable, don't test whether the file is executable;
11868         Both things are checked ...
11869         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
11870         the former ``test -f''.
11871         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
11873 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11875         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
11876         use cp -R instead.
11878 2004-11-10  Derek R. Price  <derek@ximbiot.com>
11880         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
11881         limitations.  Reorder paragraphs for clarity.
11883 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11885         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
11886         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
11887         variants", "Unix", and some related minor wording fixups.
11889         (Shellology, Special Shell Variables): Document that the Zsh
11890         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
11891         to Alexandre Duret-Lutz for this info.
11893 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
11895         * doc/autoconf.texi (One-Shot Macros): New node.
11897 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
11899         * doc/autoconf.texi (Function Portability): Fix misdescription
11900         of putenv.  Problem reported by Michael Wardle.
11902 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11904         * doc/autoconf.texi (auindex): New macro.
11905         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
11906         Problem reported by Stepan Kasal.
11908 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11910         Fix problems reported by Andreas Buening in:
11911         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
11912         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
11913         in test makefile.
11914         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
11915         readable; it's not true in OS/2-emx.
11917 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
11919         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
11920         "/usr/include", clear ac_x_includes instead of leaving it as "no"
11921         (trivial change).  Problem and patch reported by Andrew Church in:
11922         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
11924 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11926         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
11927         three args in examples.  Problem reported by Frederik Fouvry in:
11928         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
11929         Also, fix some minor spacing and punctuation bugs.
11931 2004-09-02  Akim Demaille  <akim@epita.fr>
11933         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
11934         "case" to restore ordering.
11935         Reported by Stepan Kasal.
11937 2004-08-26  Akim Demaille  <akim@epita.fr>
11939         * doc/autoconf.texi: Minor typos and stylos.
11941 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11943         * configure.ac (AC_INIT): Bump to 2.59c.
11945 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11947         Version 2.59b.
11949         * README: Add advice about m4 1.4.2.
11951         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
11952         texinfo.tex for now (done by hand now).
11953         * Makefile.maint (wget_files, cvs_files):
11954         Remove ansi2knr.c; nobody uses it.
11955         (ansi2knr.c-url_prefix): Remove.
11956         (cvs-update): Fix test for failure.  I don't know why it ever
11957         worked...
11959         * doc/autoconf.texi: Update URLs, some of which went stale.
11960         Use @uref rather than @href.
11962         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
11963         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
11965         * config/config.guess, config/config.sub, config/elisp-comp,
11966         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
11967         doc/fdl.texi, doc/standards.texi: Sync with master copy.
11969         * NEWS, TODO, configure.ac, bin/autoscan.in,
11970         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
11971         doc/install.texi, lib/Autom4te/Configure_ac.pm,
11972         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
11973         lib/autoconf/programs.m4, lib/autoconf/status.m4,
11974         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
11975         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
11976         tests/tools.at, tests/torture.at:
11977         Use "file name" rather than "filename" or "path",
11978         to be consistent with the terminology of the GNU coding standards.
11980 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11982         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
11983         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
11984         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
11985         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
11987         More fixes to support spaces in the name of the build directory.
11988         This isn't a complete fix but it's an improvement.
11990         * bin/autoconf.as (autom4te_options): New var.
11991         Use it instead of appending to AUTOM4TE, so that we can allow
11992         spaces in the build directory's absolute name.
11993         * bin/autoheader.in ($autoconf): Allow spaces in file names.
11994         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
11995         AT_CHECK_NOESCAPE): Likewise.
11996         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
11997         main program): Likewise.
11999 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12001         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
12002         From Ralf Corsepius in:
12003         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
12005 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12007         * doc/autoconf.texi (Function Portability): Document isinf and
12008         and isnan.  From a suggestion by Kevin Ryde.
12010         * lib/Autom4te/General.pm (END): Return correct exit status even
12011         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
12013 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12015         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
12016         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
12017         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
12019 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
12021         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
12022         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
12023         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
12024         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
12025         * lib/autom4te.in (Automake-preselections): Preselect
12026         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
12028 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
12030         * lib/autom4te.in (Automake-preselections): Preselect
12031         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
12032         trace them.
12034 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
12036         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
12037         Tru64.
12038         * doc/autoconf.texi (Shellology): Mention BIN_SH.
12039         Document problem with "`""`" in pdksh POSIX mode.
12041 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
12043         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
12044         with pdksh, too.  Problem reported by Patrick Welche via
12045         Gary V. Vaughan.
12046         * doc/autoconf.texi (Shellology): Note that set -o posix is
12047         useful for pkdsh, too.
12049 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12051         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
12052         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
12053         Don't fail if ENV or BASH_ENV is readonly.
12054         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
12055         etc. are read only.  Problem reported by Ludovic Courtes.
12057 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
12059         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
12060         zsh, disable GLOB_SUBST to avoid backslash handling problems.
12061         (trivial change)
12063 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
12065         * doc/autoconf.texi (File System Conventions): Warn about
12066         names like "aux".  Problem reported by Eric Blake.
12068         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
12069         by zero instead of array size, so that we can use any arithmetic
12070         constant expression (instead of requiring an integer constant
12071         expression).  This allows us to test expressions like DBL_MAX <
12072         LDBL_MAX, which didn't conform to the C standard using the old
12073         method.
12074         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
12075         now that we can do floating-point tests at compile time.
12077 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12079         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
12080         and LDBL_EPSILON, as the resulting expression isn't an
12081         integer constant expression and violates the C standard.
12082         Problem reported by Nelson H. F. Beebe.  Also, check
12083         for "L" suffix, and check that long double doesn't have
12084         worse range or precision than double, that mixed-mode
12085         arithmetic doesn't generate a diagnostic, that double
12086         constants fit in long double.
12088 2004-06-03  Kevin Ryde  <user42@zip.com.au>
12090         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
12091         malloc(0) and realloc(NULL,size).
12093         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
12094         Bob Proulx.
12096 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12098         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
12099         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
12100         by Jim Meyering.
12102 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
12104         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
12105         can be rewritten using if-then-else.  Suggested by Bruno Haible.
12107 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
12109         * doc/autoconf.texi (testsuite Scripts): Fix typo.
12110         Problem reported by Stepan Kasal.
12112 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12114         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
12115         change).  Patch reported by Ralf Wildenhues in
12116         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
12118         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
12119         function F exists if the compiler and linker let you compile an
12120         expression like (F != 0).  Recent versions of GCC optimize away
12121         the reference to F in that case, since every function address must
12122         be nonzero, so the link succeeds even if F does not exist.
12123         Problem reported by Manu in
12124         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
12126         * doc/autoconf.texi (Systemology): Standardize on the spelling of
12127         "Unix".  Many uses changed.
12128         (Limitations of Builtins): Explain better why the ! command isn't
12129         portable.
12131 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
12133         * lib/autom4te.in (Automake-preselections): Preselect
12134         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
12136 2004-05-19  Kevin Ryde  <user42@zip.com.au>
12138         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
12139         referencing AC_FUNC_STRERROR_R.
12141         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
12142         note pessimistic assumption when cross compiling.
12144 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12146         * doc/autoconf.texi (Limitations of Make): Note that BSD make
12147         (until 2004) invoked subcommands with sh -e, contra POSIX.
12148         Reported by Kevin Ryde.
12150 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
12152         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
12153         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
12154         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
12155         `test -f "        /usr/bin/grep"', which _always_ failed.
12156         (AC_PROG_SED): Ditto bogus PATH fix.
12157         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
12158         requires that grep correctly supports _multiple_ `-e' options, rather
12159         than stating only that grep should accept `-e'.
12161 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12163         Port to C99, which requires that 'exit' be declared.
12165         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
12166         to ensure that stdlib.h is included.
12167         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
12168         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
12169         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
12170         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
12171         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
12172         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
12173         when using 'exit' in a test; C99 requires that 'exit' be declared.
12175 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12177         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
12178         now prefers 'grep' implementations that accept -e.
12179         (Limitations of Usual Tools): Describe problems of traditional
12180         egrep and fgrep with long input lines, and of traditional grep
12181         with -e.
12182         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
12183         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
12184         All callers changed.  Append /usr/xpg4/bin to the PATH, for
12185         Solaris.
12186         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
12187         the user with complaints about multiple -e options.
12188         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
12189         Define it with AC_PROG_GREP.
12190         * configure.ac (AC_PROG_GREP): Add.
12191         * lib/freeze.mk (GREP): New macro.
12193 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
12195         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
12196         a possible candidate only after all others fail, rather than
12197         consulting it first.  This improves backward compatibility by
12198         better reflecting the way shell selection occurred in previous
12199         versions of Autoconf, and should help to avoid triggering latent
12200         problems in other packages, such as the one in Automake where zsh
12201         is not handled robustly:
12202         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
12203         Although it is not Autoconf's responsibility to work around
12204         problems in Automake, it nevertheless makes sense to avoid
12205         introducing unnecessary incompatibilites.
12207 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
12208             Gary V. Vaughan  <gary@gnu.org>
12210         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
12211         how deeply nested we are when a suitable tool is found, set the
12212         ac_path_TOOL_found flag.
12213         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
12214         nested we are in this macro.  Break out of all 3 nested loops if
12215         ac_path_TOOL_found is set.
12217 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
12219         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
12220         of the _AS_PATH_WALK loop too if GNU flavor is found.
12222 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
12224         * doc/autoconf.texi (Limitations of Make): Update documentation
12225         for `$<'.  New entry `Long lines', based on a report from Simon
12226         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
12227         paragraph about DJGPP, based on a mail from Richard Dawe.
12229 2004-04-20  Paul Eggert  <eggert@twinsun.com>
12231         * tests/c.at (C keywords): Don't assume that GCC supports
12232         "restrict" and "inline", as sufficiently-old GCC versions do not
12233         (also, GCC configured to be in pedantic C89 mode does not).
12234         Problem reported by Sumit Pandya in:
12235         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
12237         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
12238         consider -g to work if it generates warnings when plain compiles
12239         don't.  Problem reported by Braden McDaniel in:
12240         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
12242         * doc/autoconf.texi (Slashes): New section, to document a problem
12243         reported by Jim Meyering in:
12244         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
12246         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
12247         linker output files before linking, to work around IRIX 6 linker bug.
12248         Problem reported by Rainer Orth in:
12249         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
12251 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
12253         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
12254         best tool so far counter rely on the tool path variable name to
12255         avoid checks for one tool being affected by the results of running
12256         the length check on a previous tool.
12258         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
12259         match expression argument, as different greps have different
12260         regular expression flavours.
12261         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
12262         literals.
12263         (AC_PROG_EGREP): Pass 'EGREP$'.
12264         (AC_PROG_GREP): Pass 'GREP$'.
12266 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
12268         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
12269         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
12271 2004-03-29  Paul Eggert  <eggert@twinsun.com>
12273         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
12274         Types, Specific Compiler Characteristics, System Services,
12275         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
12276         etc. consistently instead of 'long', 'short', 'unsigned' etc.
12277         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
12278         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
12279         Likewise.
12280         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
12281         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
12282         AC_TYPE_OFF_T): Likewise.
12283         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
12284         Likewise.
12286         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
12287         pacify libtool 1.5.2.  Fix quoting problems in sed command.
12289 2004-03-28  Paul Eggert  <eggert@twinsun.com>
12291         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
12292         now defines HAVE_DECL_TZNAME if it is declared, when
12293         HAVE_STRUCT_TM_TM_ZONE is not defined.
12294         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
12295         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
12296         for HAVE_TZNAME.
12298 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
12300         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
12301         superfluous backslashing of quotes (") in sed expressions;
12302         thanks to Paul Eggert.
12304 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
12306         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
12307         Fortran compiler is ifort, also added pghpf; thanks to Nelson
12308         H. F. Beebe for the bug report.
12310 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
12312         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
12313         quoted -cmdline argument in Portland Group compiler (bug
12314         reported by Jeffrey J. Barteet).
12316 2004-03-25  Kevin Ryde  <user42@zip.com.au>
12318         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
12319         (Run Time): ... here, where it's now mentioned.
12321 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
12323         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
12324         inherits from language Autoconf-without-aclocal-m4.
12325         (Customizing autom4te): Adjust example; the cache must now be
12326         disabled for language Autoconf-without-aclocal-m4.
12328 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
12329             Nathanael Nerode  <neroden@twcny.rr.com>
12331         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
12332         AC_CHECK_TOOLS): Warn if a cross-tool is found without
12333         a prefix.
12334         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
12335         AC_CHECK_TARGET_TOOLS): New macros.
12336         * doc/autoconf.texi (Generic Programs): Document
12337         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
12338         AC_CHECK_TARGET_TOOLS, and warn for future changes
12339         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
12340         AC_CHECK_TOOLS.
12341         (Specifying Names): Document the reason for these future
12342         behavioral changes.
12343         * tests/mktests.sh: Do not generate tests for the
12344         new macros.
12345         * NEWS: Document these changes.
12347         * doc/autoconf.texi: Avoid macros with unbraced arguments,
12348         they make TeX hang up.
12350 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
12352         * NEWS: New macro AC_CHECK_ALIGNOF.
12353         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
12354         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
12355         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
12356         vowel.
12357         (AC_CHECK_ALIGNOF): New macro.
12358         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
12359         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
12360         those for sizeof.
12362 2004-03-03  Paul Eggert  <eggert@twinsun.com>
12364         * bin/Makefile.am (edit): Don't use $< in a context where
12365         POSIX doesn't require support for it.  Use $@.in instead.
12366         Problem reported by Anthony N. Frasso in
12367         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
12368         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
12370 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
12372         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
12373         from the next generation of Libtool.
12374         * lib/autom4te.in (Autoreconf-preselections): Ditto.
12376 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
12378         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
12379         is not always thread-safe.  Report from Nathanael Nerode.
12381 2004-02-18  Paul Eggert  <eggert@twinsun.com>
12383         Fix a dependencies problem, stemming from a Autoconf 2.59 build
12384         problem on QNX reported by Stephen Rasku in
12385         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
12387         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
12388         $(m4sh_m4f_dependencies); this removes a FIXME.
12389         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
12390         (MAINTAINERCLEANFILES): Split into pieces,
12391         one per related section.  Add $(srcdir)/wrapper.in.
12393 2004-02-09  Paul Eggert  <eggert@twinsun.com>
12395         * doc/autoconf.texi (Setting Output Variables): Emphasize that
12396         AC_SUBST provides no portable way to escape literal newlines.
12398         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
12399         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
12400         Darwin uses -lcrt2.o and there's little point to cataloging all
12401         the system variants.  Partial fix reported by Andreas Waechter in:
12402         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
12403         for bug reported by Nelson H. F. Beebe in:
12404         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
12406 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
12408         * doc/autoconf.texi (AU_DEFUN): Fix English,
12409         suggested by Paul Eggert.
12410         * lib/autoconf/autoupdate.m4: Correct reference to
12411         acobsolete.m4, suggested by Alexandre Duret-Lutz.
12413 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
12415         * bin/autoupdate.in: Define __file__ so that warnings
12416         refer to the correct file.
12417         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
12418         the behavior of the third argument.
12419         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
12420         correctly the behavior of the third argument.  Document
12421         what the three macros that AU_DEFUN defines do.  Fix
12422         warning message when the third argument includes $0
12423         (reported by Alexandre Duret-Lutz).
12425 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
12426             Eric Sunshine  <sunshine@sunshineco.com>
12427             Paul Eggert  <eggert@twinsun.com>
12429         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
12430         (AS_INIT): Output shell initialization there. Removed optional
12431         parameter. Expand _AS_SHELL_FN_SPY.
12432         (AS_INIT_WITH_SHELL_FN): Removed.
12433         (_AS_SHELL_FN_SPY): New macro.
12434         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
12435         macros.
12436         (AS_SHELL_SANITIZE): Remove loop to find better shell
12437         and documentation for the parameter.
12438         (_AS_DETECT_BETTER_SHELL): Move it here.
12439         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
12440         (_AS_RUN): Move it here, support testing with eval.
12441         (AS_REQUIRE_SHELL_FN): Require shell functions when
12442         it is used.
12443         (_AS_LINENO_WORKS): Put around braces, we do not
12444         trigger the bash bug anymore.
12445         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
12446         use AS_INIT_WITH_SHELL_FN.
12447         * bin/autoconf.in, tests/wrapper.in: Regenerated.
12449 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
12451         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
12452         * doc/autoconf.texi: Don't say that the third parameter
12453         is broken.
12454         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
12455         (AU_DEFUN): Honor the third parameter, create autoupdate
12456         macros with AU_DEFINE.
12457         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
12458         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
12459         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
12460         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
12461         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
12462         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
12463         AC_XENIX_DIR): Likewise.
12464         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
12465         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
12466         * lib/autoconf/status.m4: Remove FIXME.
12467         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
12468         that the macro is not present anymore in the updated
12469         configure.ac.
12470         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
12471         of autoupdate.
12473 2004-01-28  Paul Eggert  <eggert@twinsun.com>
12475         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
12476         copyright years.
12477         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
12478         2003 (except 1997) to the list of copyright years.  This undoes
12479         the 2003-05-22 change, which removed the older years from the list.
12480         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
12482 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
12483             Albert Chin-A-Young  <china@thewrittenword.com>
12485         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
12486         grep or ggrep program in PATH that accepts as long lines as
12487         possible.
12488         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
12489         AC_PROG_GREP.
12490         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
12491         egrep and fgrep respectively if $GREP -E/-F don't work.
12492         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
12493         _AC_PROG_GREP, and AC_PROG_SED.
12494         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
12495         longest input length accepted by a command.
12496         (AC_PROG_SED): Use it.
12497         * doc/autoconf.texi (Particular Programs): Document the changes.
12498         * NEWS: Updated.
12500 2004-01-27  Paul Eggert  <eggert@twinsun.com>
12502         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
12503         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12504         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
12505         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
12507         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
12508         bin/autoconf.in, config/Makefile.in, config/config.guess,
12509         config/config.sub, config/install-sh, config/mdate-sh,
12510         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
12511         lib/Makefile.in, lib/Autom4te/Makefile.in,
12512         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
12513         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
12514         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
12515         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
12516         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
12517         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
12518         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
12519         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
12520         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
12521         tests/actypes.at: Regenerate and/or sync with original
12522         sources.
12524 2004-01-26  Paul Eggert  <eggert@twinsun.com>
12526         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
12527         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
12528         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
12529         not <inttypes.h>.  Problem reported by Tim Mooney in
12530         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
12531         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
12532         Likewise.
12534         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
12535         otherwise "make check" fails because it forbids cmp (I guess
12536         because cmp treats files as binary on DOS-like systems).
12538         * tests/mktests.sh: Update copyright date to 2004, since some tests
12539         have changed in 2004.
12541 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
12543         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
12544         non-truncating sed or gsed program in PATH.
12545         * tests/acprograms.at: Add it.
12546         * doc/autoconf.texi (Particular Programs): Document it.
12547         * NEWS: Updated.
12549 2004-01-15  Paul Eggert  <eggert@twinsun.com>
12551         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
12552         -std1 disables some useful extensions on Tru64.  Problem reported
12553         by N. Lichtmaier in
12554         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
12556 2004-01-14  Paul Eggert  <eggert@twinsun.com>
12558         * doc/autoconf.texi (Programming in M4sh): Document that
12559         AS_MKDIR_P succeeds if the destination is a symbolic link
12560         to an existing directory.
12561         (Limitations of Usual Tools): Note that mkdir -p might not
12562         succeed on symlinks to directories.
12564 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
12566         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
12567         * bin/autoheader.in: Grammar fix in message.
12568         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
12569         Test for dir before calling mkdir -p.  (trivial changes)
12571 2004-01-13  Eric Blake  <ebb9@byu.net>
12573         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
12574         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
12576 2004-01-10  Jim Meyering  <jim@meyering.net>
12578         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
12580 2004-01-09  Paul Eggert  <eggert@twinsun.com>
12582         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
12583         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
12584         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
12585         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
12586         AC_COMPILE_IFELSE, since we now assume our caller invokes
12587         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
12588         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
12589         of AC_RUN_IFELSE; this avoids the warning mentioned above.
12590         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
12592 2004-01-07  Paul Eggert  <eggert@twinsun.com>
12594         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
12595         `"'...'"`, as it's confusing (and I suspect it may not work on
12596         some platforms).  The code was incorrect anyway, as it assumed
12597         that \$ evaluated to itself in that context.  Reported by
12598         Alexandre Duret-Lutz.
12600 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
12602         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
12603         and _LT_AC_TAGCONFIG.
12605 2004-01-06  Paul Eggert  <eggert@twinsun.com>
12607         * doc/autoconf.texi (One Macro Call): Fix an incorrect
12608         example, and add more examples.  Reported by Eric Sunshine.
12610 2004-01-05  Paul Eggert  <eggert@twinsun.com>
12612         * doc/autoconf.texi (Limitations of Usual Tools):
12613         Remove warning against "rm -fr" introduced yesterday; it
12614         was a false alarm.
12616         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
12617         autoscan, autoupdate, ifnames): Don't use chmod -w.
12618         * lib/Makefile.am (autom4te.cfg): Likewise.
12619         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
12620         "chmod -w".
12622 2004-01-04  Paul Eggert  <eggert@twinsun.com>
12623             Paolo Bonzini  <bonzini@gnu.org>
12625         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
12626         by doing lineno substitution only on lines containing "$LINENO".
12628 2004-01-04  Paul Eggert  <eggert@twinsun.com>
12630         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
12631         Use "rm -f" to remove conftest.sed, not plain "rm".
12632         Bug reported by David Relson in
12633         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
12635         * Makefile.am (autom4te-update):
12636         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
12637         * Makefile.maint (my-distcheck, do-po-update): Likewise.
12638         * doc/autoconf.texi (Guidelines): Likewise.
12639         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
12640         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
12641         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
12642         * lib/autotest/general.m4 (AT_INIT): Likewise.
12643         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
12644         * tests/Makefile.am (clean-local): Likewise.
12645         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
12646         srcdir): Likewise.
12647         * doc/autoconf.texi (Limitations of Usual Tools):
12648         Warn against "rm -fr".
12650 2004-01-03  Paul Eggert  <eggert@twinsun.com>
12652         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
12653         -c -o might not work.  From a suggestion by Kevin Ryde.
12654         (C Compiler, Generating Sources, Limitations
12655         of Usual Tools, Limitations of Make, Making testsuite Scripts):
12656         Don't put '-o' after non-options, as POSIX doesn't allow this.
12657         Mention that cc's name might be gcc or c89 or whatever.
12659 2004-01-04  Kevin Ryde  <user42@zip.com.au>
12661         * doc/autoconf.texi: Add various further index entries.
12663 2003-12-29  Paul Eggert  <eggert@twinsun.com>
12665         * bin/autoreconf.in (autoreconf_current_directory):
12666         Fix typo: mkdir without umask arg.
12668 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
12670         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
12671         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
12672         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
12673         explanation clearer.
12675 2003-12-24  Andreas Schwab  <schwab@suse.de>
12677         * doc/autoconf.texi (Default Includes): Fix misspelling of
12678         AC_INCLUDES_DEFAULT.
12680 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
12682         * configure.ac: Test if sh -n works.
12683         * configure: Regenerate.
12684         * tests/atlocal.in: Store the result here.
12685         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
12686         tools.at, looking in atlocal's ac_cv_sh_n_works instead
12687         of explicitly testing.
12688         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
12689         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
12690         * tests/tools.at (Syntax of the shell scripts): Simplify
12691         using AT_CHECK_SHELL_SYNTAX.
12692         (Syntax of the Perl scripts): Remove definition of
12693         AT_CHECK_PERL_SYNTAX.
12695 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
12697         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
12698         stderr to /dev/null.
12699         * bin/autoconf.in: Regenerate.
12700         * bin/wrapper.in: Regenerate.
12702 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
12704         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
12705         Extracted from AS_SHELL_SANITIZE.
12706         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
12707         macros.
12708         (AS_SHELL_SANITIZE): Move reinvocation code from
12709         _AS_LINENO_WORKS, use it to find out if shell
12710         functions work.
12711         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
12712         does not work.
12713         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
12714         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
12715         was called.
12716         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
12717         * bin/autoconf.in: Regenerate.
12718         * tests/wrapper.in: Regenerate.
12719         * tests/tools.at: Test the syntax of tests/autoconf
12720         and tests/testsuite.
12722 2003-11-24  Akim Demaille  <akim@epita.fr>
12724         * config/announce-gen (&print_locations, &print_signatures)
12725         (&sizes): New.
12726         Use them.
12727         No longer rely on Gnus to inline the list of signatures: compute
12728         them on the fly.
12730 2003-11-24  Akim Demaille  <akim@epita.fr>
12732         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
12733         override some files.
12734         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
12735         From Debian Autoconf 2.58.
12737 2003-11-24  Akim Demaille  <akim@epita.fr>
12739         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
12740         uses.
12741         From Debian Autoconf 2.58.
12743 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12745         * TODO: Remove already done things.  Update the part about finding
12746         tools for the target.
12748 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12750         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
12751         Make wording more consistent.
12752         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
12753         Explain the transition better.
12754         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
12755         the transition better.
12757 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
12759         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
12760         parameter of AU_DEFUN.
12761         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
12762         (AU_DEFUN): Remove the third parameter, it was not used.
12763         Use AC_DEFUN directly, not AU_DEFINE.
12764         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
12765         the expanded body, consistently with other macros such as AC_USG.
12767 2003-11-17  Paul Eggert  <eggert@twinsun.com>
12769         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
12770         into the initial confdefs.h, to work around a bug in NextStep 3.3
12771         patch 3 reported by Eric Sunshine.
12773 2003-11-15  Kevin Ryde  <user42@zip.com.au>
12775         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
12776         than $target since the latter is not usual, add guidelines on when to
12777         use or not use the system type.
12779 2003-11-12  Derek Price  <derek@ximbiot.com>
12781         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
12782         typo misrepaired by an auto-spellcheck.
12784 2003-11-12  Akim Demaille  <akim@epita.fr>
12786         * bin/autoreconf.in (&parse_args): Don't call automake with
12787         --force-missing unless it actually supports it.
12788         From Debian #219336.
12790 2003-11-12  Akim Demaille  <akim@epita.fr>
12792         * configure.ac: Bump to 2.59a.
12793         Require 2.59.
12795 2003-11-06  Akim Demaille  <akim@epita.fr>
12797         Version 2.59.
12799 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
12801         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
12802         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
12803         and ac_abs_top_srcdir are absolute paths.
12804         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
12806 2003-11-05  Akim Demaille  <akim@epita.fr>
12808         * configure.ac: Bump to 2.58a.
12810 2003-11-05  Kevin Ryde  <user42@zip.com.au>
12812         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
12813         it provokes a warning from makeinfo about looking like a cross
12814         reference in info output.
12816         * doc/autoconf.texi (Function Portability): Add notes on signal
12817         handler return type, as per AC_TYPE_SIGNAL.
12819 2003-11-04  Akim Demaille  <akim@epita.fr>
12821         Version 2.58.
12822         * doc/standards.texi: Update from master.
12824         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
12826 2003-11-04  Akim Demaille  <akim@epita.fr>
12828         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
12829         computing the absolute path to d1 in the source hierarchy: it may
12830         not exist at all.  So don't cd into it.
12831         From Alexandre Duret-Lutz.
12832         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
12834         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
12835         From Paul Eggert, but named after Perl's IO::Spec->catfile.
12836         * doc/autoconf.texi (Programming in M4sh): Document.
12837         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
12839 2003-11-03  Pavel Roskin  <proski@gnu.org>
12841         * doc/autoconf.texi (Generic Structure Checks): Describe
12842         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
12844 2003-10-31  Akim Demaille  <akim@epita.fr>
12846         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
12847         (GNU Fortran): New.
12848         * doc/autoconf.texi (Language Choice): Document.
12849         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
12850         the current language is Fortran.
12852 2003-10-31  Akim Demaille  <akim@epita.fr>
12854         * bin/autom4te.in (&freeze): Use a less likely warning separator
12855         than `\n\n', so that `\n\n\n' is valid in warnings.
12856         Reported by Steve Huston.
12858 2003-10-28  Akim Demaille  <akim@epita.fr>
12860         * Makefile.cfg (local_updates, executable-update): Tweak to be
12861         robust to parallel makes.
12862         Suggested by Alexandre Duret-Lutz.
12864 2003-10-27  Akim Demaille  <akim@epita.fr>
12866         * Makefile.cfg (executable-update): New.
12867         (local_updates): Call it.
12869 2003-10-27  Akim Demaille  <akim@epita.fr>
12871         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
12872         Don't remove core.* as it may remove valid user files.
12873         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
12874         (AC_FUNC_UTIME_NULL): Likewise.
12876 2003-10-23  Akim Demaille  <akim@epita.fr>
12878         Version 2.57g.
12879         * config/config.guess, config/config.sub: Upgrade from masters.
12881 2003-10-23  Akim Demaille  <akim@epita.fr>
12883         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
12884         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
12885         hand...
12887 2003-10-23  Akim Demaille  <akim@epita.fr>
12889         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
12890         Don't forget to remove conftest.err.
12892 2003-10-23  Akim Demaille  <akim@epita.fr>
12894         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
12895         same object file in $LIBOBJS.
12896         Reported by Alexandre Duret-Lutz & Derek Robert Price.
12897         * doc/autoconf.texi (Generic Functions): Adjust.
12899 2003-10-20  Paul Eggert  <eggert@twinsun.com>
12901         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
12902         Use 'eval', so that the resulting configure scripts work even if
12903         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
12905 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
12907         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
12908         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
12909         (_AC_LINK_IFELSE): Check the werror flag.
12910         * doc/autoconf.texi (Generic Compiler Characteristics): Document
12911         AC_LANG_WERROR.
12912         * NEWS: Mention it.
12914 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
12916         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
12917         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
12918         override AC_LINK_IFELSE.
12920 2003-10-15  Paul Eggert  <eggert@twinsun.com>
12922         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
12923         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
12924         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
12925         Mention /usr/dt/bin/dtksh on Solaris.
12926         (Shell Substitutions): Warn about $((...)).
12927         (Parentheses): New section.
12929 2003-10-15  Kevin Ryde  <user42@zip.com.au>
12931         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
12932         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
12934 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12936         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
12937         cross test.
12939 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
12941         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
12942         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
12944 2003-10-10  Andreas Schwab  <schwab@suse.de>
12946         * bin/autoheader.in: Avoid empty first line in --version and
12947         --help output.
12948         * bin/ifnames.in: Likewise.
12950 2003-10-09  Paul Eggert  <eggert@twinsun.com>
12952         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
12953         Issue a more-informative diagnostic.
12954         Problems reported by Eric Sunshine.
12956 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
12958         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
12959         -mGLOB_options_string stuff for Intel ifc, which can cause
12960         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
12961         pattern-matching instead of grep.
12963 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
12965         * doc/autoconf.texi: Document new FC Fortran macros.
12967 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
12969         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
12970         that future autopoint/aclocal/automake/autoreconf will be able
12971         to trace to find where to install local m4 macros.
12972         * doc/autoconf.texi (Input): Document it.
12973         * NEWS: Updated.
12975 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
12977         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
12978         -lcrtbegin.o to list of ignored flags and fix underquoting of
12979         -lcrt[01].o.
12981 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
12983         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
12984         cache variable instead of $G77 to decide whether to include -O2,
12985         since $G77 is specific to Fortran 77.
12987 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
12989         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
12990         free" flag.  Re-order flags tested into rough order of popularity.
12992 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
12994         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
12995         arguments so that it can be used with syntax identical to
12996         AC_PROG_F77, and so that we can more easily decide to
12997         remove/deprecate the DIALECT optional argument in the future if it
12998         proves troublesome.
12999         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
13000         non-freeform-supporting compilers.  Document freeform flags.
13002 2003-10-03  Akim Demaille  <akim@epita.fr>
13004         * configure.ac: Look for emacs, not macs.
13005         Reported by Eric Sunshine.
13007 2003-10-03  Akim Demaille  <akim@epita.fr>
13009         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
13010         * bin/autoreconf.in (autoreconf_current_directory): Create the
13011         AUX_DIR if needed, for sake of automake --add-missing etc.
13012         Suggested by Alexandre Duret-Lutz.
13014 2003-10-03  Akim Demaille  <akim@epita.fr>
13016         * configure.ac: Quotation and formatting changes.
13017         (EMACS): Don't set it if it is not recent enough to support
13018         autoconf-mode.el.
13019         From Eric Sunshine.
13021 2003-10-02  Akim Demaille  <akim@epita.fr>
13023         * bin/ifnames.in (&scan_file): Skip C++ comments.
13024         From Jeremy Yallop.
13026 2003-10-01  Pavel Roskin  <proski@gnu.org>
13028         * doc/autoconf.texi (Particular Structure Checks):
13029         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
13031 2003-10-01  Akim Demaille  <akim@epita.fr>
13033         Version 2.57f.
13035 2003-09-30  Paul Eggert  <eggert@twinsun.com>
13037         * lib/Autom4te/XFile.pm: Use Errno.
13038         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
13039         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
13041 2003-09-30  Akim Demaille  <akim@epita.fr>
13043         * config/announce-gen (&print_news_deltas): Extracted from...
13044         (&print_changelog_deltas): here.
13045         (&news_file): Rename as...
13046         (@news_file): this.
13048 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
13050         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
13051         have been created when invoking the compiler.
13052         * tests/fortran.at (GNU Fortran 77): Quote $G77.
13054 2003-09-29  Akim Demaille  <akim@epita.fr>
13056         Version 2.57e.
13058         * config/mkinstalldirs: Upgrade.
13060 2003-09-28  Paul Eggert  <eggert@twinsun.com>
13062         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
13063         Problem reported by Lars J. Aas in
13064         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
13065         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
13066         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
13067         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
13069 2003-09-26  Akim Demaille  <akim@epita.fr>
13071         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
13072         directory for AC_CONFIG_COMMANDS' first argument exists.
13073         This makes valid the invocation of _AC_SRCPATH that follows.
13074         Reported by Eric Sunshine.
13075         * doc/autoconf.texi (Configuration Commands): Adjust.
13077 2003-09-26  Akim Demaille  <akim@epita.fr>
13079         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
13080         Reported by Ralf Corsepius.
13082 2003-09-26  Akim Demaille  <akim@epita.fr>
13084         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
13085         arguments.
13086         Actually, use AU_ALIAS.
13087         From Bruno Haible.
13089 2003-09-26  Paul Eggert  <eggert@twinsun.com>
13091         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
13092         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
13093         Problem reported by Eric Sunshine in:
13094         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
13096 2003-09-26  Akim Demaille  <akim@epita.fr>
13098         The test suite are sometimes assigning timings incorrectly.
13099         Reported by Henk Krus.
13100         Diagnosed by Nicolas Joly.
13102         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
13103         AT_help_all.
13104         Instead of making AT_help a sequence of assignments to grow
13105         $at_help_all, just make AT_help_all be the growing contents of
13106         $at_help_all, and make a single assignment in...
13107         (AT_INIT): here.
13108         (at_times_skip): Flip the meaning and rename as...
13109         (at_times_p): this.
13110         (AT_INIT): When summarizing the test that ran, remove
13111         $at_times_file after use, and check it is present before trying to
13112         use it.
13114 2003-09-25  Akim Demaille  <akim@epita.fr>
13116         Version 2.57d.
13118         * bin/Makefile.am (edit): Handle '@configure_input@'.
13119         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
13120         (ifnames): chmod -w.
13121         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
13122         executables, not bin/ executables!  Otherwise all the magic needed
13123         to find non installed files is turned off.  This caused a failure
13124         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
13125         as found in its environment (sent by tests/autoreconf): pointing
13126         to bin/autom4te that could not find its files.
13127         * tests/mktests.sh: Force the replacement of generated files, for
13128         the sake of "mv" program that are interactive when overwriting a
13129         -w file.
13130         * config/install-sh: Upgrade from CVS Automake.
13132 2003-09-23  Paul Eggert  <eggert@twinsun.com>
13134         * doc/autoconf.texi (Limitations of Builtins): Document test -h
13135         versus test -L issues.
13137 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
13138             Paul Eggert  <eggert@twinsun.com>
13140         Trivial change to support GCC's configuration procedure.
13141         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
13142         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
13143         about inconsistency if the preprocessor is set to give errors for
13144         any warning.
13145         * doc/autoconf.texi (C Compiler Characteristics): Document this.
13147 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
13149         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
13150         and XFile.pm from Automake.
13151         * lib/Autom4te/XFile.pm: Update from Automake.
13153 2003-09-12  Akim Demaille  <akim@epita.fr>
13155         Version 2.57c.
13157 2003-09-12  Akim Demaille  <akim@epita.fr>
13159         * config/config.guess, config/config.sub, config/missing,
13160         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
13161         from masters.
13163 2003-09-12  Akim Demaille  <akim@epita.fr>
13165         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
13166         not asm/types.h.
13168 2003-09-11  Akim Demaille  <akim@epita.fr>
13170         * doc/autoconf.texi (Header Portability): linux/random.h.
13171         From Peter Hendrickson.
13173 2003-09-10  Akim Demaille  <akim@epita.fr>
13175         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
13176         willing to edit the output files.
13178 2003-09-10  Akim Demaille  <akim@epita.fr>
13180         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
13181         and AC_FC_FREEFORM.
13182         * tests/mktests.sh: Skip AC_FC_SRCEXT.
13183         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
13185 2003-09-09  Akim Demaille  <akim@epita.fr>
13187         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
13188         Reported by Gary Vaughan.
13189         * bin/autom4te.in (handle_m4): Likewise.
13191 2003-09-09  Akim Demaille  <akim@epita.fr>
13193         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
13194         trailing files.
13196 2003-09-07  Paul Eggert  <eggert@twinsun.com>
13198         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
13199         Improve the accuracy of the wording about obsolescence.
13200         From a suggestion by Ian Lance Taylor in
13201         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
13203 2003-09-05  Paul Eggert  <eggert@twinsun.com>
13205         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
13206         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
13208 2003-09-04  Akim Demaille  <akim@epita.fr>
13210         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
13211         AC_FUNC_WAIT3.
13213 2003-09-04  Akim Demaille  <akim@epita.fr>
13215         * bin/autom4te.in: Use &fatal where more appropriate than &error.
13216         (freeze): When exiting, use $exit_code.
13217         * lib/autoconf/fortran.m4: Comment changes.
13219 2003-09-04  Akim Demaille  <akim@epita.fr>
13221         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
13223 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
13225         Add support for newer Fortran dialects.  The F77 interface is
13226         unchanged, and continues to support Fortran 77.  New FC macros
13227         correspond to all the old F77 macros, with output variables FC,
13228         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
13229         available dialect, but older dialects can be specified.  There are
13230         new macros AC_FC_SRCEXT to set the source extension, and
13231         AC_FC_FREEFORM to accept free-form source files.
13233         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
13234         New macros.
13235         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
13236         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
13237         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
13238         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
13239         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
13240         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
13241         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
13242         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
13243         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
13244         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
13245         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
13246         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
13247         AC_FC_SRCEXT, AC_FC_FREEFORM):
13248         New macros.
13249         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
13250         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
13251         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
13252         Rewrite in terms of the above.
13253         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
13254         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
13255         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
13256         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
13258 2003-09-02  Paul Eggert  <eggert@twinsun.com>
13260         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
13261         Document problems with timestamp resolution that 'make', 'cp -p', and
13262         'touch -r' have.
13264 2003-08-27  Akim Demaille  <akim@epita.fr>
13266         * tests/m4sugar.at (cross_warning): Make sure to enable the
13267         output, so that we can track spurious m4sugar output.
13268         * tests/local.at: Require 2.57.
13269         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
13270         are defaulted by AT_CHECK anyway.
13271         Use AT_CHECK_AUTOM4TE.
13272         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
13273         missing dnl.
13275 2003-08-27  Akim Demaille  <akim@epita.fr>
13277         * bin/autoheader.in: Issue the "Using auxiliary..." message only
13278         when -Wobsolete is set.
13279         Set it on by default.
13280         Suggested by Klee Dienes.
13282 2003-08-27  Akim Demaille  <akim@epita.fr>
13284         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
13285         documentation.
13286         From Guido Draheim.
13288 2003-08-26  Akim Demaille  <akim@epita.fr>
13290         * doc/autoconf.texi (Output): Make clear that one can run code
13291         after AC_OUTPUT.
13293 2003-08-25  Akim Demaille  <akim@epita.fr>
13295         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
13296         CVS Bison.
13298 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
13300         * bin/autoreconf.in (parse_args): Do not pass --no-force to
13301         Automake versions prior to 1.8.
13303 2003-08-25  Akim Demaille  <akim@epita.fr>
13305         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
13306         From Ville Karaila.
13308 2003-08-24  Akim Demaille  <akim@epita.fr>
13310         * configure.ac: Bump to 2.57c.
13312 2003-08-22  Akim Demaille  <akim@epita.fr>
13314         Version 2.57b.
13316         * Makefile.cfg (local-checks-to-skip): New.
13317         * Makefile.maint (local-check): Rename as...
13318         (local-checks-available): this.
13319         (local-check): New.
13321         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
13322         * configure.ac: Require Automake 1.7.6.
13324 2003-08-22  Akim Demaille  <akim@epita.fr>
13326         Output stack traces in warnings.
13328         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
13329         Replace the former...
13330         (m4_warn): Pass the call stack to _m4_warn.
13331         * bin/autom4te.in: Adjust to output the call stack.
13332         * tests/m4sugar.at (m4@&t@_warn): Adjust.
13334 2003-08-22  Akim Demaille  <akim@epita.fr>
13336         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
13337         * bin/autom4te.in: Adjust.
13339 2003-08-21  Akim Demaille  <akim@epita.fr>
13341         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
13342         (&verbose): Remove.
13343         (&getopt): Adjust the note and verb channels, depending upon
13344         --verbose.
13345         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
13346         * bin/autoupdate.in: Adjust.
13347         Use &verb, not &verbose.
13349 2003-08-21  Akim Demaille  <akim@epita.fr>
13351         * bin/autoheader.in (&parse_args): Use &parse_warnings and
13352         &parse_WARNINGS.
13353         ($help): Use Autom4te::ChannelDefs::usage.
13354         * bin/autoscan.in: Use Autom4te::ChannelDefs.
13355         * lib/Autom4te/General.pm: Don't export error: you don't own it.
13357 2003-08-21  Akim Demaille  <akim@epita.fr>
13359         First stab at preserving warnings between calls to autom4te,
13360         including when the cache is used.
13362         There are still several issues: (i) there are too many runs of m4
13363         (one for include, one for warnings, and some more), (ii) warnings
13364         spreading on several lines are not handled gracefully, (iii) the
13365         code meant to have the call stack display for errors does not work
13366         (its handling should move from m4 to autom4te).
13368         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
13369         Use them.
13370         (@preselect): Add m4_warn.
13371         ($exit_status): Remove, use $exit_code.
13372         ($help): Use Autom4te::ChannelDefs::usage.
13373         (&handle_m4): No longer define the m4_warnings.
13374         At each run, extract and report the warnings.
13375         Always cache the result, including if the exit status is on
13376         failure, since if nothing changes, we should result in the same
13377         failure, hence we can use the cache.
13378         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
13379         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
13380         Remove.
13381         (m4_warn): Redefine as a do-nothing: it is its invocation that
13382         matters, as warnings are now reported via traces.
13383         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
13384         the contents of m4_warn: make it _call_ m4_warn, so that tracing
13385         the latter reveals calls to the former.
13387         Adjust the tests.
13389         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
13391 2003-08-21  Akim Demaille  <akim@epita.fr>
13393         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
13394         Use them.
13396 2003-08-21  Akim Demaille  <akim@epita.fr>
13398         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
13399         forward order.
13400         * lib/Autom4te/ChannelDefs.pm: Doc typos.
13401         (&parse_warnings): Accept a list of warning requests.
13402         (&usage): Return a string, not a side effect.
13403         (cross): New warning category.
13405 2003-08-21  Akim Demaille  <akim@epita.fr>
13407         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
13408         (&require_configure_ac): Accept an optional directory argument.
13409         ($configure_ac): Remove.
13410         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
13411         (&catfile): Remove.
13412         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
13413         * bin/autoscan.in: Adjust.
13415 2003-08-20  Akim Demaille  <akim@epita.fr>
13417         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
13418         Reported by Alexandre Duret-Lutz.
13420 2003-08-20  Akim Demaille  <akim@epita.fr>
13422         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
13423         * bin/autom4te: Adjust.
13424         In particular, be Autoconf tools are really silent when properly
13425         working, bind the verbosity of the 'note' channel to $verbose.
13426         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
13427         (&xsystem, &contents): Remove, since they are exported by...
13428         * lib/Autom4te/FileUtils.pm: this.
13429         More perldoc.
13430         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
13431         * lib/Autom4te/FileUtils.pm: here.
13433 2003-08-20  Akim Demaille  <akim@epita.fr>
13435         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
13436         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
13437         from CVS Automake.
13439 2003-08-20  Akim Demaille  <akim@epita.fr>
13441         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
13442         (autom4te-update): New.
13443         * Makefile.cfg (update): Bind autom4te-update.
13445 2003-08-19  Derek Price  <derek@ximbiot.com>
13447         * lib/autotest/general.m4: Comment various HELP_* diversions.
13448         (PARSE_ARGS_BEGIN): New section for option parsing related
13449         initialization.
13450         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
13451         package specific options and associated help.
13453 2003-08-19  Akim Demaille  <akim@epita.fr>
13455         * config/announce-gen, Makefile.cfg: New.
13456         * Makefile.am: Adjust.
13457         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
13459 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
13461         * lib/autom4te.in (Automake-preselections): Preselect
13462         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
13463         and m4_sinclude.
13465 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
13467         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
13468         (Autoconf-without-aclocal-m4): ... this new language.
13469         * doc/autoconf.texi (autom4te Invocation): Mention
13470         Autoconf-without-aclocal-m4.
13472 2003-08-18  Derek Price  <derek@ximbiot.com>
13474         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
13475         RUN-IF-PASS optional arguments.
13477 2003-08-18  Derek Price  <derek@ximbiot.com>
13479         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
13481 2003-08-16  Derek Price  <derek@ximbiot.com>
13483         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
13484         STDOUT & STDERR arguments.
13486 2003-08-14  Derek Price  <derek@ximbiot.com>
13488         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
13489         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
13490         shorter column three.  Add DESCRIPTION to log file content.
13492 2003-08-13  Derek Price  <derek@ximbiot.com>
13494         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
13495         output.
13497 2003-08-12  Derek Price  <derek@ximbiot.com>
13499         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
13500         (AT_CHECK_NOESCAPE): Move core functionality to...
13501         (_AT_CHECK): ...this new macro.
13503 2003-08-07  Derek Price  <derek@ximbiot.com>
13505         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
13506         (AT_CHECK_NOESCAPE): ...to this new macro.
13508 2003-07-31  Paul Eggert  <eggert@twinsun.com>
13510         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
13511         in Bash 2.01.  Problem reported by Brian Gough in
13512         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
13514 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
13516         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
13517         -lcrt1.o, for OS X.  (trivial change)
13519 2003-07-07  Paul Eggert  <eggert@twinsun.com>
13521         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
13522         inside '#ifndef __cplusplus'.  Problem reported by
13523         Bob Friesenhahn.
13525 2003-07-06  Bill Clarke  <llib@computer.org>
13527         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
13528         'long', not 'int', for benefit of Sun's recent C++ compilers
13529         (trivial change).  See:
13530         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
13531         (This really should be 'intptr_t', not 'long', but that would
13532         take more work.)
13534 2003-06-25  Akim Demaille  <akim@epita.fr>
13536         * lib/Makefile.am (autom4te.cfg): Make it read only.
13537         Depend on Makefile since it contains substitutions.
13538         From Paolo Bonzini.
13539         * lib/autom4te.in (args): Add local.at? for Autotest args.
13540         This change was made on autom4te.cfg which is generated.
13541         Reported by Raja R. Harinath.
13543 2003-06-25  Akim Demaille  <akim@epita.fr>
13545         * doc/autoconf.texi (Header Portability): sys/mount.h.
13546         From Gareth McCaughan.
13548 2003-06-23  Akim Demaille  <akim@epita.fr>
13550         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
13551         not all of them.  This fixes 1. the fact that when testing
13552         Autoconf there are many many config.log, 2. the incorrect use of
13553         top_srcdir to find config.log.
13554         Don't mix the detailed output of failed test with the summary of
13555         failures.  Rather, append detailed log afterwards.
13557 2003-06-23  Akim Demaille  <akim@epita.fr>
13559         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
13560         always run: output config.log on $at_group_log.
13562 2003-06-23  Akim Demaille  <akim@epita.fr>
13564         * tests/torture.at (#define header templates): Don't use quotes in
13565         C++ comments as it puzzles Emacs' sh font-lock-mode.
13567 2003-06-23  Akim Demaille  <akim@epita.fr>
13569         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
13570         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
13571         * tests/atspecific.m4: Rename as...
13572         * tests/local.at: This.
13573         * tests/suite.at: Move the globals into...
13574         * tests/local.at: here.
13575         * tests/Makefile.am: Adjust.
13576         * doc/autoconf.texi (testsuite Scripts): Adjust.
13578 2003-06-21  Kevin Ryde  <user42@zip.com.au>
13580         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
13581         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
13582         ensuring we add -std1 for full-ANSI.
13584         * doc/autoconf.texi (hdrindex): New macro.
13585         Add index entries for portability of various standard header files.
13587 2003-06-20  Akim Demaille  <akim@epita.fr>
13589         * configure.ac: Bump to 2.57b.
13591 2003-06-20  Akim Demaille  <akim@epita.fr>
13593         Version 2.57a.
13595 2003-06-20  Akim Demaille  <akim@epita.fr>
13597         * bin/autom4te.in: Don't rely on $HOME being defined.
13598         Reported by Marc Espie as PR/233.
13600 2003-06-20  Akim Demaille  <akim@epita.fr>
13602         * lib/autotest/general.m4: Use at_times_file only if used.
13603         From Nicolas Joly.
13605 2003-06-20  Akim Demaille  <akim@epita.fr>
13607         * config/config.guess, config/config.sub, config/elisp-comp,
13608         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
13609         Update from masters.
13611 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
13613         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
13614         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
13615         (TEST_SCRIPT): New diversion.
13616         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
13617         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
13618         (AT_INIT): Support for expected failures.
13620 2003-06-02  Akim Demaille  <akim@epita.fr>
13622         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
13623         changes.
13624         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
13625         Autoconf nor Automake.
13626         (&contents): New, from Automake.
13627         PODify.
13629 2003-05-28  Paul Eggert  <eggert@twinsun.com>
13631         * NEWS, doc/autoconf.texi (Particular Functions),
13632         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
13633         is the inverse of localtime.
13635 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
13637         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
13638         (handle_exec_errors): New function.  Work around $! being
13639         altered by WEXITSTATUS.
13640         (xqx, xsystem): Use handle_exec_errors.
13642 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
13644         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
13645         Do not call `_exit()', simply modify `$?'.
13646         (xsystem): Reset $! before running system, and check it afterward.
13647         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
13648         63 for version mismatches.
13650 2003-05-23  Akim Demaille  <akim@epita.fr>
13652         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
13653         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
13654         the middle of a line).
13655         * lib/m4sugar/m4sugar.m4: Likewise.
13656         Remove useless spaces in comments.
13658 2003-05-23  Akim Demaille  <akim@epita.fr>
13660         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
13661         exit 63, so that we (or Automake's "missing") can tell the
13662         difference with a plain failure.
13663         * doc/autoconf.texi (Notices): Adjust.
13665 2003-05-23  Akim Demaille  <akim@epita.fr>
13667         * Makefile.am, bin/Makefile.am, config/Makefile.am,
13668         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
13669         White spaces cleanup.
13671 2003-05-22  Jim Meyering  <jim@meyering.net>
13672             Paul Eggert  <eggert@twinsun.com>
13674         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
13675         Remove `#include <stdlib.h>' from the list; we should never
13676         make confdefs.h include <stdlib.h> or <cstdlib>, because the
13677         resulting namespace pollution would cause other tests to fail.
13678         Configure scripts run with some older versions of g++ and HP's
13679         aCC would fail due to such an #include.  Problems reported by
13680         Matthew Mueller in <http://bugs.debian.org/120704> and by
13681         Keith Bostic in
13682         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
13683         In the test, use the test declaration before including <stdlib.h>,
13684         as that's closer to how it'll be used.
13686 2003-05-23  Akim Demaille  <akim@epita.fr>
13688         * doc/autoconf.texi (Header Portability): ucred.h.
13689         From Ian Redfern.
13691 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
13693         Overhaul Autotest's logging: generate separate log files
13694         in testsuite.dir/NNN/testsuite.log, and append them to
13695         testsuite.log instead of re-running the test verbosely.
13697         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
13698         file descriptor, write 0 to at_status_file instead of setting
13699         at_status=0, initialize some new variables (at_status_file,
13700         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
13701         to rerun the tests, instead append the at_group_log to the
13702         at_suite_log when a test fails.
13703         (AT_SETUP): pipe the test case's output into at_tee_pipe,
13704         with the AS_MESSAGE_LOG_FD redirected to stdout.
13705         (AT_CLEANUP): save the output status in $at_status_file
13706         and restore it, redirect the AS_MESSAGE_LOG_FD back to
13707         its original place.
13708         (AT_CHECK): since tests are run with a redirected stdout,
13709         and used to be re-run in verbose mode, turn some $at_verbose
13710         into echo, and don't redirect the output of testing stdout
13711         and stderr.
13713         * lib/autotest/autoconf.texi (testsuite Scripts): Update
13714         the name of the debugging directory and information about
13715         its contents.
13717 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
13719         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
13720         parameter.
13722 2003-05-22  Akim Demaille  <akim@epita.fr>
13724         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
13725         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
13726         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
13727         * lib/autoconf/status.m4: Fix and adjust copyright notices.
13729 2003-05-22  Akim Demaille  <akim@epita.fr>
13731         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
13732         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
13733         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13734         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
13735         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
13736         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
13737         * lib/autoconf/status.m4, lib/autoconf/types.m4,
13738         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
13739         * tests/atspecific.m4, tests/base.at, tests/compile.at,
13740         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
13741         * tests/tools.at, tests/torture.at:
13742         Whitespace clean up.
13743         Suggested by Jim Meyering.
13745 2003-05-22  Akim Demaille  <akim@epita.fr>
13747         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
13748         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
13749         Reported by Jim Meyering.
13751 2003-05-22  Akim Demaille  <akim@epita.fr>
13753         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
13754         Add AC_HELP_STRING  to the obsolete macros section.
13755         Typos.
13756         Use '@.' for sentences that ended in a capital letter.
13757         From Art Haas.
13759 2003-05-22  Akim Demaille  <akim@epita.fr>
13761         * config/config.guess, config/config.sub, config/elisp-comp,
13762         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
13763         * config/texinfo.tex, doc/standards.texi: Update from masters.
13765 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
13767         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
13768         it to eval.
13770 2003-05-21  Akim Demaille  <akim@epita.fr>
13772         * bin/autoupdate.in ($m4): Fix quotation.
13773         Reported by Martin Mokrejs.
13775 2003-05-19  Paul Eggert  <eggert@twinsun.com>
13777         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
13778         Remove non-ASCII characters.
13780 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
13782         * tests/semantics.at (AC_SEARCH_LIBS): New test.
13783         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
13784         AC_CHECK_HEADERS_NEW): New tests.
13786 2003-05-17  Akim Demaille  <akim@epita.fr>
13788         * lib/autoconf/functions.m4: Use the default includes so that
13789         memcmp be declared before being tested.
13790         Reported by Sander Niemeijer.
13791         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
13792         * doc/autoconf.texi (Default Includes): Document
13793         AC_INCLUDES_DEFAULT.
13795 2003-05-17  Akim Demaille  <akim@epita.fr>
13797         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
13798         * doc/autoconf.texi (Obsolete Macros): Adjust.
13799         Reported by Werner LEMBERG and Debian Bug 190886.
13801 2003-05-16  Akim Demaille  <akim@epita.fr>
13803         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
13804         user name space clashes.
13805         Reported by Bruno Haible.
13807 2003-05-16  Akim Demaille  <akim@epita.fr>
13809         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13810         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
13811         them uniform, and more robust to Perl special characters.
13812         Reported by Martin Mokrejs.
13814 2003-05-14  Akim Demaille  <akim@epita.fr>
13816         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
13818 2003-05-14  Akim Demaille  <akim@epita.fr>
13820         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
13821         linux/irda.h.
13823 2003-05-12  Akim Demaille  <akim@epita.fr>
13825         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
13826         message.
13827         From Matthias Andree.
13829 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
13831         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
13832         and truncate.
13834 2003-05-06  Akim Demaille  <akim@epita.fr>
13836         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
13837         longer updates aclocal.m4 if useless, (ii) if a file m4_included
13838         by aclocal.m4 is changed it might require the importing of another
13839         m4 extension file, i.e., aclocal must be run.
13841         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
13842         (&parse_args): Use --force with aclocal if required and supported.
13843         (&autoreconf_current_directory): Use &run_aclocal.
13845 2003-05-06  Akim Demaille  <akim@epita.fr>
13847         Lock autom4te's cache.
13849         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
13850         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
13851         argument instead of a file name, so that the request file remains
13852         open during the whole autom4te run.
13853         ($icache_file): New.
13854         (&freeze): Lock the $icache_file.
13856 2003-04-29  Derek Price  <derek@ximbiot.com>
13858         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
13859         seperator with m4_append_uniq().  It doesn't work.
13860         (AT_CLEANUP): Add `;' to end of at_help_all.
13861         (AT_INIT): Allow --keywords to be specified more than once.  When
13862         grepping $at_help_all for keywords, use the field and keyword
13863         seperators to ensure a complete keyword match.  Alter at_prev handling
13864         to support the new --keywords behavior.
13866 2003-04-27  Karl Berry  <karl@freefriends.org>
13868         * doc/autoconf.texi: Make the dir entries in the autoconf manual
13869         align better with others.  I also made some of the individual
13870         entries on one line, for brevity and to make it easier for me to
13871         sort my dir-example file in the Texinfo distribution :).
13873 2003-04-12  Jim Meyering  <jim@meyering.net>
13875         * NEWS: Mention the new macro.
13876         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
13877         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
13878         * tests/c.at: Test AC_C_RESTRICT.
13879         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
13881 2003-04-08  Akim Demaille  <akim@epita.fr>
13883         * bin/ifnames.in: Skip C++ comments.
13884         From Jeremy Yallop.
13886 2003-04-08  Akim Demaille  <akim@epita.fr>
13888         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
13889         From Ilya Zakharevich.
13891 2003-04-08  Akim Demaille  <akim@epita.fr>
13893         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
13894         net/if.h, stdlib.h.
13896 2003-04-01  Derek Price  <derek@ximbiot.com>
13898         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
13899         from Akim's checkin of 2003-03-29.
13901 2003-04-01  Derek Price  <derek@ximbiot.com>
13903         * tests/torture.at (Configuring subdirectories): Add missing
13904         close-quote for Akim's change from 2003-03-28.
13906 2003-04-01  Akim Demaille  <akim@epita.fr>
13908         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
13909         (AC, AT, MS): these.
13910         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
13911         New.
13912         Use them.
13913         * doc/Makefile.am (CLEANFILES): Adjust.
13914         (TEXI2DVI): Make it --batch.
13916 2003-03-31  Derek Price  <derek@ximbiot.com>
13918         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
13919         which removed the main loop.
13920         Thanks to Akim Demaille.
13922 2003-03-29  Akim Demaille  <akim@epita.fr>
13924         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
13925         that starts a GUI.
13926         From Ilya Zakharevich.
13928 2003-03-29  Akim Demaille  <akim@epita.fr>
13930         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
13931         documentation to read is Autoconf's.
13932         Suggested by Paul Eggert.
13934 2003-03-28  Akim Demaille  <akim@epita.fr>
13936         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
13937         reading the section "Present But Cannot Be Compiled" when the
13938         header causes problems.
13940 2003-03-28  Akim Demaille  <akim@epita.fr>
13942         * tests/torture.at (Configuring subdirectories): Require aclocal
13943         1.4, otherwise the test fails, as it does support configure.ac.
13944         This fixes the "test 40 failed" bug reports.
13946 2003-03-28  Akim Demaille  <akim@epita.fr>
13948         * doc/autoconf.texi (C Compiler): `#line' portability.
13949         From Paul Eggert and Nelson H. F. Beebe.
13951 2003-03-27  Derek Price  <derek@ximbiot.com>
13953         * lib/autotest/general.m4: Eliminate main loop and reorganize test
13954         layout in order to allow scripting around test groups.
13956 2003-03-27  Derek Price  <derek@ximbiot.com>
13958         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
13959         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
13960         use new diversions in preparation for accepting new arguments and
13961         allowing scripting around tests.
13962         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
13964 2003-03-26  Derek Price  <derek@ximbiot.com>
13966         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
13967         obsolete AC_HELP_STRING.
13968         (AC_HELP_STRING): AU_DEFUN to...
13969         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
13970         * tests/m4sh.at (AS_HELP_STRING): New test.
13972         * tests/acgeneral.at: Regenerated.
13974 2003-03-26  Derek Price  <derek@ximbiot.com>
13976         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
13977         sense.  Verbosify the diversion definitions comment.
13979 2003-03-26  Derek Price  <derek@ximbiot.com>
13981         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
13982         AS_PREPARE.
13984 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
13986         * doc/autoconf.texi (Present But Cannot Be Compiled):
13987         Grammar fixes and minor rewording. (trivial change)
13989 2003-03-06  Paul Eggert  <eggert@twinsun.com>
13991         Work around a problem noted by Nelson H. F. Beebe with coreutils
13992         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
13993         2002/05/09) rejects '#line 32768 "configure"' because the line
13994         number overflows.
13995         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
13996         #line directives.
13997         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
13998         * doc/autoconf.texi (Generating Sources): Document this.
14000 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
14002         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
14003         file name for the m4 program, when it has an "exe" file extension.
14004         DJGPP's error messages include the error code in brackets -
14005         remove the error code during normalization.
14007 2003-02-28  Akim Demaille  <akim@epita.fr>
14009         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
14011 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
14013         * doc/autoconf.texi (Limitations of Make): Remove the section
14014         about `$<' in inference rules, it was a bogus interpretation of
14015         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
14016         Tru64 make in the "target lookup" section.
14017         (Automake): Automake 1.5+ no longer requires special tools to be
14018         present on the developer's host.
14020 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
14022         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
14023         to a shell that can handle redirection or quoting correctly.
14024         Override SHELL with the shell detected by configure.
14025         Use of $^O suggested by Tim van Holder.
14026         * bin/autom4te.in (BEGIN): Likewise.
14027         * bin/autoreconf.in (BEGIN): Likewise.
14028         * bin/autoscan.in (BEGIN): Likewise.
14029         * bin/autoupdate.in (BEGIN): Likewise.
14030         * bin/ifnames.in (BEGIN): Likewise.
14032         * bin/ifnames.in: Add final newline to help and version messages.
14034         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
14035         to cope with DOS-style absolute paths, when constructing
14036         ${ac_make}.
14038         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
14039         When constructing paths with IFS=:, quote the path. If we're
14040         constructing a DOS-style absolute path, we don't want to split it
14041         on the colon.
14043         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
14044         in description.
14046 2003-02-25  Pavel Roskin  <proski@gnu.org>
14048         * bin/autoheader.in: Add missing newline when printing
14049         suggestion how change AC_DEFINE call.
14051 2003-02-24  Paul Eggert  <eggert@twinsun.com>
14053         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
14054         2002-09-01 patch by replacing "test -n" with "test -z".
14055         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
14056         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
14058         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
14059         to fix a mismatch between example and discussion.
14061 2003-02-24  Kevin Ryde  <user42@zip.com.au>
14063         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
14064         format starting with "-".
14066 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
14068         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
14069         is not portable inside Makefile.
14071 2003-02-20  Akim Demaille  <akim@epita.fr>
14073         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
14074         compiler says yeah, but preproc says nope, compiler is right.
14075         Conversely, prompt the reader to send a bug report to the
14076         maintainers of the package, not of Autoconf.
14078 2003-02-20  Klee Dienes  <kdienes@apple.com>
14080         * bin/autoreconf.in (autoreconf_current_directory): Properly
14081         handle an empty aclocal.m4.
14083 2003-02-20  Akim Demaille  <akim@epita.fr>
14085         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
14086         $ac_prefix_program.
14087         From Larry Jones.
14089 2002-12-23  Paul Eggert  <eggert@twinsun.com>
14091         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
14092         innocuous variant befor including <limits.h> or <assert.h>.  This
14093         works around a bug reported by Albert Chin: HP-UX 11i
14094         (and earlier versions) have a <limits.h> that declares
14095         gettimeofday and many other functions.
14097 2002-12-03  Paul Eggert  <eggert@twinsun.com>
14099         Version 2.57.
14101         * NEWS, configure.ac: Update version.
14103         * doc/fdl.texi: Upgrade to FDL version 1.2.
14105         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
14106         nontrivially in main's body, so that f's external declaration is
14107         not optimized away in AIX.  This should fix the bug reported by
14108         Martin Frydl in
14109         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
14111         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
14112         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
14113         defined, to support freestanding compilers.  This should fix the
14114         bug reported by Momchil Velkov in
14115         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
14117         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
14118         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
14119         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
14120         by Simon Josefsson in
14121         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
14123         * Makefile.maint (www-gnu): New macro.
14124         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
14125         the location has moved.
14127 2002-12-02  Martin Frydl  <martin@systinet.com>
14129         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
14130         \(.*\) match is too long and there is something more to be checked.
14131         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
14133 2002-11-15  Akim Demaille  <akim@epita.fr>
14135         Version 2.56.
14137         * config/install-sh: chmod +x.
14138         From Paul Eggert.
14139         * config/move-if-change: Indenting changes.
14140         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
14141         * configure.ac (AM_INIT_AUTOMAKE): here.
14142         Require 1.7.1.
14144 2002-11-14  Akim Demaille  <akim@epita.fr>
14146         Version 2.55.
14148         * config/config.guess, config/config.sub, config/install-sh:
14149         Update from masters.
14151 2002-11-14  Akim Demaille  <akim@epita.fr>
14153         * Makefile.maint: Sync with Bison, i.e.:
14154         (po-check): Scan .l and .y files instead of the
14155         .c and the .h files that they generate.  This fixes the bug
14156         reported by Tim Van Holder in:
14157         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
14158         Look for N_ as well as for _.  Try to avoid matching #define for
14159         N_ and _.
14160         From Paul Eggert.
14162 2002-11-14  Akim Demaille  <akim@epita.fr>
14164         * doc/autoconf.texi (C Compiler): Compiling several files at once.
14165         From Paul Eggert and Albert Chin-A-Young.
14167 2002-11-14  Akim Demaille  <akim@epita.fr>
14169         * doc/autoconf.texi (C Compiler): Solitary backslashes.
14170         From Paul Eggert and Albert Chin-A-Young.
14172 2002-11-14  Kevin Ryde  <user42@zip.com.au>
14174         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
14175         than assigning in main, to avoid HP cc +O3 optimizing it away.
14177 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
14179         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
14180         option.  Process --recheck after parsing all options.  Pass -q
14181         option to configure on --recheck.
14182         (AC_OUTPUT): Pass -q from configure to config.status.
14183         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
14184         arguments to record.
14185         * doc/autoconf.texi (config.status Invocation): Document
14186         config.status -q option.
14188 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
14190         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
14191         Makefile.in if Makefile.am exists.
14192         (output): Strip `.am' from Makefiles.  Don't
14193         output AC_CONFIG_FILES if no Makefiles were found.
14195 2002-11-07  Akim Demaille  <akim@epita.fr>
14197         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
14198         (local_updates): New.
14199         * Makefile.maint: Update, from CVS Bison.
14200         (local_updates): New.
14202 2002-11-06  Akim Demaille  <akim@epita.fr>
14204         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
14205         declaration in extern "C" too.
14206         Reported by Roberto Bagnara.
14208 2002-11-06  Akim Demaille  <akim@epita.fr>
14210         * tests/torture.at (Configuring subdirectories): Don't use grep
14211         -w.
14212         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
14213         Reported by Ezra Peisach.
14215 2002-11-05  Akim Demaille  <akim@epita.fr>
14217         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
14218         Remove.
14219         We _have_ to stop using the old compatibility scheme that tried to
14220         avoid useless backslashes because Libtool 1.4.3 contains a
14221         AC_DEFINE([error_t], [int],
14222         [Define to a type to use for \`error_t' if it is not
14223         otherwise available.])
14224         We _have_ to quote the single quote and backslashes with \.  The
14225         old compatibility scheme saw that ` was backslashed, and therefore
14226         did not quote the single quote.  Hence before this patch, Autoconf
14227         was not compatible with Libtool.
14229 2002-11-04  Paul Eggert  <eggert@twinsun.com>
14231         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
14232         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
14233         LC_NAME, LC_PAPER, LC_TELEPHONE.
14234         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
14236 2002-11-04  Akim Demaille  <akim@epita.fr>
14238         Version 2.54c.
14240         * Makefile.maint (update, cvs-update, po-update, do-po-update):
14241         New.
14242         * config/texinfo.tex: Update.
14244 2002-11-03  Akim Demaille  <akim@epita.fr>
14246         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
14247         from...
14248         (&autoreconf): here.
14249         ($help, $make, &parse_args, &autoreconf_current_directory):
14250         Support -m/--make.
14251         * doc/autoconf.texi (autoreconf Invocation): Adjust.
14253 2002-10-31  Bruno Haible  <bruno@clisp.org>
14255         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
14256         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
14257         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
14258         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
14259         to ac_cv_func_realloc_0_nonnull.
14260         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
14262 2002-10-31  Akim Demaille  <akim@epita.fr>
14264         The test suite was no longer checking for trailing envvars and files.
14266         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
14267         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
14269 2002-10-31  Akim Demaille  <akim@epita.fr>
14271         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
14272         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
14273         Make variable, not a shell variable.
14274         Suggested by Bruno Haible.
14276 2002-10-31  Akim Demaille  <akim@epita.fr>
14278         * bin/autom4te.in (load_configuration): Reject #args out of any
14279         language.
14281 2002-10-31  Akim Demaille  <akim@epita.fr>
14283         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
14284         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
14285         (_AC_RUN_IFELSE): Use it.
14286         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
14287         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
14288         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
14289         inline it.
14291 2002-10-30  Akim Demaille  <akim@epita.fr>
14293         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
14294         * doc/autoconf.texi (autom4te Invocation): Adjust.
14295         Suggested by Tim van Holder.
14297 2002-10-29  Paul Eggert  <eggert@twinsun.com>
14299         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
14300         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
14301         Problem reported by Bruno Haible.
14303 2002-10-29  Akim Demaille  <akim@epita.fr>
14305         * doc/autoconf.texi (Header Templates): Put also in words what the
14306         pictures says to assist free style readers.
14307         (Customizing autom4te): s/--cache=/--cache /.
14309 2002-10-29  Akim Demaille  <akim@epita.fr>
14311         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
14312         sys/wait.h.
14313         sparc_address_test returns void.
14314         Use it with an argument, as prototyped.
14315         From Bruno Haible.
14317 2002-10-29  Akim Demaille  <akim@epita.fr>
14319         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
14320         configure.in, not configure.ac.
14321         Reported by Bruno Haible.
14323 2002-10-29  Akim Demaille  <akim@epita.fr>
14325         * tests/torture.at (Deep Package): New test.
14326         (Configuring subdirectories): Don't use a testSubDir as Autotest
14327         now does it itself.
14329 2002-10-29  Akim Demaille  <akim@epita.fr>
14331         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
14332         * doc/autoconf.texi (Invoking autom4te): Rename as...
14333         (autom4te Invocation): this, for consistency with the other nodes.
14335 2002-10-29  Akim Demaille  <akim@epita.fr>
14337         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
14338         Reported by Ralf Corsepius.
14340 2002-10-29  Akim Demaille  <akim@epita.fr>
14342         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
14343         characters is a back as an `obsolete' warning now.
14344         Reported by Ralf Corsepius.
14346 2002-10-28  Akim Demaille  <akim@epita.fr>
14348         * configure.ac: Bump to 2.54c.
14350 2002-10-28  Akim Demaille  <akim@epita.fr>
14352         Version 2.54b.
14354         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
14356 2002-10-28  Akim Demaille  <akim@epita.fr>
14358         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
14359         m4 executable names, and different GNU M4 version.
14360         Reported by Ezra Peisach and Paul Jarc.
14362 2002-10-27  Akim Demaille  <akim@epita.fr>
14364         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
14365         AC_RUN_IFELSE.
14367 2002-10-27  Akim Demaille  <akim@epita.fr>
14369         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
14370         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
14371         Die when a simple Fortran program cannot be compiled.
14372         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
14373         Issue a warning if no function is given.
14375 2002-10-27  Akim Demaille  <akim@epita.fr>
14377         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
14378         Move the documentation of AC_TRY_RUN to...
14379         (Obsolete Macros): here.
14380         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
14381         (autoconf Invocation): Remove the duplicates with `invoking
14382         autom4te'.
14383         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
14384         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
14386 2002-10-27  Akim Demaille  <akim@epita.fr>
14388         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
14389         and AC_LANG_FUNC_LINK_TRY.
14390         (Examining Libraries): Rename as...
14391         (Running the Linker): this.
14392         Document AC_LINK_IFELSE.
14393         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
14394         (Obsolete Macros): here.
14395         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
14396         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
14397         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
14398         * lib/autoconf/headers.m4 (AC_USG): Likewise.
14400 2002-10-27  Akim Demaille  <akim@epita.fr>
14402         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
14404         More `check config.log' messages.
14406         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
14407         * doc/autoconf.texi (Printing Messages): Document it.
14408         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
14409         appropriate.
14410         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
14411         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
14412         (_AC_COMPILER_OBJEXT): Likewise.
14413         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
14414         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
14415         Likewise.
14416         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
14417         Likewise.
14419         Deprecate macros with unusual interfaces.
14421         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
14422         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
14424         Document the new ones, and proper style.
14426         * doc/autoconf.texi (Generating Sources): New.
14427         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
14428         (Examining Declarations): Rename as...
14429         (Running the Preprocessor): this.
14430         Document AC_PREPROC_IFELSE.
14431         (Examining Syntax): Rename as...
14432         (Running the Compiler): this.
14433         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
14434         (Obsolete Macros): Move the definition of AC_TRY_CPP and
14435         AC_TRY_COMPILE here.
14437 2002-10-27  Akim Demaille  <akim@epita.fr>
14439         Move sections around.
14441         * doc/autoconf.texi (Customizing autom4te): Remove a lost
14442         sentence.
14443         Reported by Burno Haible.
14444         (Language Choice): Now the first section of...
14445         (Writing Tests): this section.
14446         Make the introduction less C-centric.
14447         (Guidelines, Test Functions): Move to...
14448         (Writing Test Programs): this new section.
14449         (Test Programs): Merge into...
14450         (Run Time): this.
14452 2002-10-27  Akim Demaille  <akim@epita.fr>
14454         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
14455         autom4te.in that resulted in the need for two `make' runs.
14457 2002-10-27  Akim Demaille  <akim@epita.fr>
14459         * configure.ac: Bump to 2.54b.
14461 2002-10-25  Akim Demaille  <akim@epita.fr>
14463         Version 2.54a.
14465         * Makefile.maint: Update from the Coreutils.
14466         (AMTAR): Remove, obsolete.
14467         (automake_repo): Update to redhat.com.
14468         (cvs_file): New.
14469         Adjust to the fact that ansi2knr is now hosted by Automake.
14470         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
14471         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
14472         Update from masters.
14473         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
14474         autoscan.pre is not to be installed, and autoscan.list is not to
14475         be shipped.
14476         (CLEANFILES): Add autoscan.list.
14477         (autoscan.list): Disable the cache.
14478         * bin/Makefile.am: Include freeze.mk.
14480 2002-10-25  Akim Demaille  <akim@epita.fr>
14482         * bin/autom4te.in (&load_configuration): Take the file as
14483         argument.
14484         (&parse_args): Handle -C, --cache.
14485         ($help): Adjust.
14486         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
14487         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
14488         * doc/autoconf.texi (Invoking autom4te): Document --cache.
14489         Now a subsection of...
14490         (Using autom4te): This new section.
14491         (Customizing autom4te): New.
14492         (autom4te.cache): Adjust.
14494 2002-10-25  Akim Demaille  <akim@epita.fr>
14496         * doc/autoconf.texi (Generic Headers): More information on how to
14497         use AC_CHECK_HEADERS.
14499 2002-10-25  Akim Demaille  <akim@epita.fr>
14501         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
14502         Space changes.
14504 2002-10-25  Akim Demaille  <akim@epita.fr>
14506         * bin/autoscan.in (output): Output AC_PREREQ.
14507         (%needed_macros): Add AC_PREREQ so that configure.ac without one
14508         be reported.
14510 2002-10-23  Akim Demaille  <akim@epita.fr>
14512         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
14513         document _Bool.
14515 2002-10-23  Akim Demaille  <akim@epita.fr>
14517         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
14518         Reported by Peter Eisentraut.
14520 2002-10-23  Akim Demaille  <akim@epita.fr>
14522         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
14523         type _Bool.
14524         Fix a typo.
14525         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
14526         Eggert's recommandations.
14528 2002-10-22  Akim Demaille  <akim@epita.fr>
14530         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
14531         Bison, by Paul Eggert.
14532         * doc/autoconf.texi (Particular Headers): Document it.
14534 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
14536         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
14537         `$ac_configure_args'.
14539 2002-10-22  Akim Demaille  <akim@epita.fr>
14541         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
14542         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
14543         From Art Haas.
14545 2002-10-22  Akim Demaille  <akim@epita.fr>
14547         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
14549         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14550         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
14551         (_AC_CHECK_HEADER_NEW): Rename as...
14552         (AC_CHECK_HEADER): this.
14554 2002-10-22  Akim Demaille  <akim@epita.fr>
14556         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
14557         words about HP-UX cmp: it was actually a user-written cmp.
14559 2002-10-22  Akim Demaille  <akim@epita.fr>
14561         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
14562         are a few warnings.
14563         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14564         Quote for Perl '' strings, not "".
14565         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
14566         strings.
14568 2002-10-22  Akim Demaille  <akim@epita.fr>
14570         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
14571         characters is a syntax warning now.
14572         (_AS_QUOTE): Accept $2 as list of characters to quote.
14573         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14574         Quote for Perl, not sh.
14575         * bin/autoheader.in: When $debug, report the file which is
14576         `do'ne.
14577         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
14578         `@', to tickle Perl's lists.
14579         Reported by Carlos Velasco.
14581 2002-10-18  Akim Demaille  <akim@epita.fr>
14583         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
14584         missing included files _are_ errors.
14585         Thanks to Alexandre Duret-Lutz.
14586         * tests/tools.at (autom4te cache): Adjust.
14587         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
14588         (AT_CHECK_M4SUGAR): Use it.
14589         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
14590         Adjust.
14591         * tests/tools.at (autom4te): Now it does exit 1.
14593 2002-10-17  Akim Demaille  <akim@epita.fr>
14595         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
14596         Fixes the `AC_ARG_VAR' test failures.
14597         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
14598         * lib/freeze.mk (check-forbidden-patterns): New.
14599         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
14600         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
14601         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
14602         /dev/null.
14603         Reported months ago by H. Merijn Brand.
14605 2002-10-17  Akim Demaille  <akim@epita.fr>
14607         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
14609 2002-10-16  Paul Eggert  <eggert@twinsun.com>
14611         * Makefile.maint (wget_files): Remove ansi2knr.c.
14612         (ansi2knr.c-url_prefix): Remove.
14614 2002-10-16  Akim Demaille  <akim@epita.fr>
14616         Because of caching, some files that no longer exist and are no
14617         longer required can still cause errors.
14618         Reported by Alexandre Duret-Lutz.
14620         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
14621         to frozen files in @ARGV, as @ARGV must remain being a list of
14622         files.  Rather, at M4 call sites, use this...
14623         (&files_to_options): New function.
14624         (&freeze): Use &error.
14625         (&up_to_date): If a file that was included according to the cache
14626         is no longer there, then the output is out dated.
14627         (&main): Don't even check whether a file is up to date is anyway
14628         --force is given.
14629         * tests/tools.at (autom4te cache): New.
14631 2002-10-16  Akim Demaille  <akim@epita.fr>
14633         * bin/autoconf.as: Kill dead options.
14634         * bin/autoupdate.in (&parse_args): Kill old options.
14635         * bin/autoreconf.in (&parse_args): Remove dead options.
14636         Factor some code.
14637         (&autoreconf): Report the directories we enter *and leave*, so
14638         that error messages can be easily located, and use GNU Make
14639         format, so that Emacs' compile mode understands us.
14640         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
14641         if some file was changed instead of `print'.
14642         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
14643         (&parse_args): Remove the dead options.
14644         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
14645         autoheader's quiet mode.
14646         (AT_CHECK_AUTOUPDATE): Likewise.
14647         * tests/tools.at (autoupdate): Adjust.
14648         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
14650 2002-10-11  Akim Demaille  <akim@epita.fr>
14652         No longer use CPP to check for the existing of headers: use CC to
14653         check for compilability.
14655         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14656         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
14657         (_AC_CHECK_HEADER_NEW): Rename as...
14658         (AC_CHECK_HEADER): this.
14660         * lib/autotest/general.m4 (AT_INIT): Include the failed test
14661         numbers in the Subject suggestion.
14663 2002-10-11  Akim Demaille  <akim@epita.fr>
14665         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
14666         Suggest using AC_CHECK_DECLS instead.
14668 2002-10-11  Akim Demaille  <akim@epita.fr>
14670         * tests/torture.at (AC_ARG_VAR): Have configure report the value
14671         of `precious'.
14673 2002-10-11  Akim Demaille  <akim@epita.fr>
14675         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
14676         file name to enable parallel executions.
14677         From Sam Varshavchik.
14679 2002-10-08  Akim Demaille  <akim@epita.fr>
14681         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
14682         aclocal invocation, as Gettext macros might not be visible to
14683         aclocal.
14684         Instead of blindly running autopoint, scan configure.ac (not the
14685         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
14686         Reported by Paul D. Smith.
14688 2002-10-08  Paul Eggert  <eggert@twinsun.com>
14690         Work around problems found when POSIXLY_CORRECT=1 is set.
14691         None of this seems to have anything to do with POSIX, really,
14692         but it's how Perl getopt works.
14693         * bin/autom4te.in (parse_args): Configure GetOpt with
14694         "permute", too.
14695         * doc/autoconf.texi (Invoking autom4te):
14696         --warning -> --warnings.
14697         * lib/autom4te.in: --warning -> --warnings.
14699 2002-09-28  Akim Demaille  <akim@epita.fr>
14701         * doc/autoconf.texi (autom4te.cache): New section.
14703 2002-09-28  Akim Demaille  <akim@epita.fr>
14705         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
14706         (Automake-preselections): Update.
14707         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
14709 2002-09-28  Akim Demaille  <akim@epita.fr>
14711         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
14712         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
14713         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
14714         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
14716 2002-09-28  Akim Demaille  <akim@epita.fr>
14718         * tests/torture.at (Configuring subdirectories): Be robust to
14719         users who use config.site to require for a cache: in this case,
14720         the two last configure runs, using two different sets of
14721         arguments, trigger a legitimate error.
14723 2002-09-28  Akim Demaille  <akim@epita.fr>
14725         * tests/m4sh.at (Functions Support, Functions and return Support):
14726         New.
14728 2002-09-28  Akim Demaille  <akim@epita.fr>
14730         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
14731         autoheader are Perl programs.
14732         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
14733         (autom4te): Specify that the sources are in the $srcdir.
14734         * doc/autoconf.texi (Installation Directory Variables): Adjust.
14736 2002-09-28  Akim Demaille  <akim@epita.fr>
14738         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
14739         (tm_zone): Move their rules to...
14740         * lib/autoconf/types.m4: here, using AN_ macros.
14741         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
14742         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
14743         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
14744         * lib/autoconf/programs.m4: here.
14745         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
14746         (ETAGS_FOR_AUTOCONF): New.
14747         Use it.
14749 2002-09-28  Akim Demaille  <akim@epita.fr>
14751         * lib/autoconf/autoscan.m4: New file.
14752         * lib/autoconf/autoconf.m4: Include it.
14753         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
14754         that were listed in the original autoscan.list.
14755         * lib/autoconf/headers.m4: Similarly with headers.
14756         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
14757         (.m4.m4f): Don't pass --prepend-include, since that's done by
14758         tests/autom4te itself.
14759         * lib/autoscan/Makefile.am: Include freeze.mk.
14760         (autoscan.list): New target --this file is no longer a source.
14761         (autoscan.pre): New file.
14763 2002-09-28  Akim Demaille  <akim@epita.fr>
14765         * bin/autoscan.in (@kinds): Make them singular.
14766         Adjust all uses.
14767         (&init_tables): When --debug, report the list of rules to ease
14768         tracking changes in autoscan.list.
14769         * lib/autoscan/autoscan.list (function): Strip comments, sort.
14771 2002-09-28  Akim Demaille  <akim@epita.fr>
14773         * lib/autoscan/functions, lib/autoscan/headers,
14774         * lib/autoscan/identifiers, lib/autoscan/makevars,
14775         * lib/autoscan/programs: Merge into...
14776         * lib/autoscan/autoscan.list: this.
14777         * bin/autoscan.in (&init_tables): Adjust.
14779 2002-09-28  Akim Demaille  <akim@epita.fr>
14781         * lib/autoscan/functions, lib/autoscan/headers,
14782         * lib/autoscan/identifiers, lib/autoscan/makevars,
14783         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
14784         `functions' line is now prefixed with `function:'.
14785         * bin/autoscan.in (&init_tables): Adjust.
14787 2002-09-28  Akim Demaille  <akim@epita.fr>
14789         From now on, autoscan files must always map a macro name to a
14790         word: there is no `default' macro for autoscan.
14792         * bin/autoscan.in (&init_tables): Reject entries with no macro at
14793         all.
14794         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
14795         explicit.
14797 2002-09-28  Akim Demaille  <akim@epita.fr>
14799         * bin/autoscan.in (%c_keywords): Remove.
14800         (&used): Keep only track of the words we might be interested in.
14801         (&output_kind): It is no longer needed to look for non active
14802         checks.
14804 2002-09-27  Akim Demaille  <akim@epita.fr>
14806         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
14807         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
14808         * lib/autoscan/functions: Adjust.
14809         * doc/autoconf.texi (Particular Functions): Adjust.
14811 2002-09-27  Akim Demaille  <akim@epita.fr>
14813         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
14814         from /tmp.
14815         Thanks to Bill Moseley and Paul Eggert.
14816         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
14817         the tmpdir must be created.
14818         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
14819         dir be in the build tree, instead of $TMPDIR.
14821 2002-09-27  Akim Demaille  <akim@epita.fr>
14823         * bin/autoscan.in: Improve the comments.
14824         (&parse_args): Drop obsolete undocumented options.
14825         (&output_kind): Output warnings.
14826         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
14827         (getwd): Trigger a warning.
14829 2002-09-26  Akim Demaille  <akim@epita.fr>
14831         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
14832         Reported by Ralf Corsepius.
14833         * doc/autoconf.texi (autoreconf Invocation): Likewise.
14835 2002-09-26  Akim Demaille  <akim@epita.fr>
14837         Single suffix rules and seperated dependencies are not portable.
14839         * doc/autoconf.texi (Installation Directory Variables): Update.
14840         (Limitations of Make): Some about `Single Suffix Rules and
14841         Separated Dependencies'.
14842         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14843         (ifnames, autoscan, autom4te): Un-factor into several rules.
14845 2002-09-25  Paul Eggert  <eggert@twinsun.com>
14847         * BUGS (Interoperability bugs): New section.  Mention libtool
14848         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
14850 2002-09-24  Paul Eggert  <eggert@twinsun.com>
14852         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
14853         make handles suffix-rules differently from GNU make.
14855         * bin/Makefile.am (SUFFIXES, .in): Remove.
14856         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
14857         Move the body of the old .in rule here.
14859 2002-09-16  Akim Demaille  <akim@epita.fr>
14861         i960 compilers create `b.out' files by default.
14862         Reported by Ralf Corsepius.
14864         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
14865         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
14867 2002-09-13  Paul Eggert  <eggert@twinsun.com>
14869         * doc/autoconf.texi (Particular Headers): Remove obsolete
14870         reference to `struct timezone' in the description of
14871         AC_HEADER_TIME.
14873 2002-09-13  Akim Demaille  <akim@epita.fr>
14875         Version 2.54.
14877         * config/config.sub, config/config.guess: Update.
14878         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
14879         * Makefile.am: Adjust.
14881 2002-09-13  Akim Demaille  <akim@epita.fr>
14883         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
14884         reading config.log when the compiler is rejected.
14885         Suggested by Guido Draheim.
14887 2002-09-13  Akim Demaille  <akim@epita.fr>
14889         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
14890         (chdir_init) might hang when stat'ing mounted directories.
14891         Reported by Vance Shipley.
14893 2002-09-12  Akim Demaille  <akim@epita.fr>
14895         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
14896         the lists.
14898 2002-09-12  Akim Demaille  <akim@epita.fr>
14900         * doc/autoconf.texi (Defining Symbols): Present two different
14901         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
14902         difference between 1 argument calls, and 2-3 argument calls.
14904 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
14906         * doc/autoconf.texi: Review grammar and punctuation.
14908 2002-09-11  Paul Eggert  <eggert@twinsun.com>
14910         * doc/autoconf.texi: Fix minor formatting, spelling, and
14911         grammatical typos.
14912         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
14913         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
14914         is obsolescent.
14916 2002-09-11  Akim Demaille  <akim@epita.fr>
14918         * doc/autoconf.texi (Questions): Rename as...
14919         (FAQ): this.
14920         (Defining Directories): New.
14922 2002-09-09  Akim Demaille  <akim@epita.fr>
14924         * doc/autoconf.texi (Making testsuite Scripts): Update.
14925         Suggested by Nishio Futoshi.
14927 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
14929         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
14930         plain `@' is wanted.
14932 2002-09-09  Akim Demaille  <akim@epita.fr>
14934         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
14935         `duplicates', since the algorithm was too naive and could keep
14936         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
14937         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
14938         Reported by Ralf Corsepius.
14939         * tests/torture.at (Configuring subdirectories): Exercise these
14940         cases.
14942 2002-09-09  Akim Demaille  <akim@epita.fr>
14944         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
14945         looking for a replacement file.
14946         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
14947         directory is relative.
14948         * doc/autoconf.texi (Generic Functions): Clarify the replacement
14949         directory definition.
14950         Reported by Andreas Schwab and Jim Meyering.
14952 2002-09-06  Akim Demaille  <akim@epita.fr>
14954         * doc/autoconf.texi (Setting Output Variables): Clarify what
14955         precious variables are.
14956         Suggested by Pontus Skoeld.
14958 2002-09-05  Akim Demaille  <akim@epita.fr>
14960         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14961         (ifnames, autoscan, autom4te): Since we don't only depend on
14962         configure.ac variables (such as VERSION etc.), but also on prefix
14963         and so forth, depend on Makefile, not configure.ac.
14964         Reported by Alexandre Duret-Lutz.
14965         * doc/autoconf.texi (Installation Directory Variables): Adjust.
14967 2002-09-05  Kevin Ryde  <user42@zip.com.au>
14969         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
14970         doesn't seem to be confined to ia64, just say "some versions".
14972 2002-09-04  Akim Demaille  <akim@epita.fr>
14974         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
14975         Automake 1.6c.
14976         * Makefile.am (maintainer-clean-local): Remove.
14977         (MAINTAINERCLEANFILES): Remove COPYING.
14979 2002-09-03  Paul Eggert  <eggert@twinsun.com>
14981         * doc/autoconf.texi (Configuration Commands): Remove obsolete
14982         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
14983         Brinkmann.
14985 2002-09-03  Akim Demaille  <akim@epita.fr>
14987         * configure.ac: Bump to 2.53d.
14988         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
14989         as of today, on Automake's team suggestion.
14991 2002-09-03  Akim Demaille  <akim@epita.fr>
14993         Version 2.53c.
14995 2002-09-02  Akim Demaille  <akim@epita.fr>
14997         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
14998         SITE_MACRO_DIR.
14999         * configure.ac: Disable SITE_MACRO_DIR.
15001 2002-09-02  Jim Meyering  <meyering@lucent.com>
15003         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
15004         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
15005         Also, tweak grammar: s/make sure to/be sure to/.
15007 2002-09-02  Paul Eggert  <eggert@twinsun.com>
15009         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
15010         directory names are generally preferable to physical names.
15012 2002-09-02  Akim Demaille  <akim@epita.fr>
15014         * lib/Autom4te/General.pm (&update_file): s/die/error/.
15015         Reported by Raja R. Harinath.
15016         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
15017         * bin/autoupdate.in: Use error instead of die.
15019 2002-09-01  Paul Eggert  <eggert@twinsun.com>
15021         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
15022         ordinary shell concatenation rather than echo+tr+sed command that
15023         runs afoul of a long-line-related sed bug in Solaris 8.
15025         * bin/autoheader.in (parse_args): --warning -> --warnings.
15027         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
15028         stdout, as traditional "ls" does.
15029         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
15030         _AC_COMPILER_EXEEXT_O): Likewise.
15031         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
15033         * bin/autoconf.as: Add --prepend-include option.  This patch was
15034         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
15035         but bin/autoconf.in is generated automatically from bin/autoconf.as.
15037         * bin/autoconf.in, configure: Regenerate.
15039         * doc/autoconf.texi (Special Shell Variables): Mention
15040         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
15042         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
15043         MAILPATH and set PS1, PS2, PS4 to default values, to work
15044         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
15045         For LC_ALL etc, first try to set to "C" as POSIX requires and as
15046         the Autoconf documentation specifies; fall back to "unset" only if
15047         this fails.  Use a shell for-loop for this rather than an m4 loop,
15048         to shorten the output script.
15050 2002-08-30  Paul Eggert  <eggert@twinsun.com>
15052         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
15053         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
15054         for the CDPATH problem.  Document PWD.
15055         (Limitations of Builtins): Document the problem that "cd $foo" and
15056         "ls $foo" may refer to different directories in shells conforming
15057         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
15058         example, since the old example is now out of date.
15060         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
15061         FOO" and "ls FOO" talk about different directories; this catches
15062         problems when POSIX 1003.1-2001 "cd" fails due to symlink
15063         spaghetti.
15065         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
15066         of rolling our own unset.
15067         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
15068         in practice we needn't worry about CDPATH if unset doesn't work.
15070         * Makefile.in, aclocal.m4, bin/Makefile.in,
15071         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
15072         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
15073         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
15074         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
15075         tests/Makefile.in: Regenerate with Automake 1.6.3.
15077         * config/config.guess, config/config.sub, config/mkinstalldirs:
15078         Update.
15080         * configure: Regenerate with self.
15082 2002-08-30  Kevin Ryde  <user42@zip.com.au>
15084         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
15085         default output.
15087 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15089         * bin/autom4te.in (Request::load): Correctly test for "do" read
15090         failure.
15092 2002-08-29  Akim Demaille  <akim@epita.fr>
15094         * lib/Autom4te/General.pm (&xqx): New.
15095         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
15096         hand, which is not portable.
15097         (&error): New.
15098         * bin/autom4te.in: Use them.
15099         Use &error instead of die.
15100         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
15101         Adjust.
15103 2002-08-17  Paul Eggert  <eggert@twinsun.com>
15105         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
15106         default list of compilers to try, since it was long ago superseded
15107         by the ksh fc builtin.  Suggested by Steven G. Johnson.
15109 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
15111         * doc/autoconf.texi (Invoking autom4te): End the option table,
15112         fixing a bug introduced by the previous patch.
15113         (Limitations of Make): Add a 'target lookup' subentry in the
15114         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
15116 2002-07-29  Mark D. Roth  <roth@feep.net>
15118         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
15119         options and use $AUTOM4TE_PATH.
15120         * doc/autoconf.texi: Remove documentation of autom4te
15121         --include-envvar and --site-macro-subdir options and document
15122         use of $AUTOM4TE_PATH.
15123         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
15124         arguments from each language section.
15126 2002-07-29  Paul Eggert  <eggert@twinsun.com>
15128         * doc/install.texi: Include copyright symbol in copyright notice.
15130         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
15131         Replace with:
15132         (AM_MAKEINFOFLAGS): New macro.
15133         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
15134         * Makefile.am (INSTALL): Use the new macros.
15135         Use -o rather than --output, since "missing" does not grok --output.
15137 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
15139         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
15140         comments do not always work. Never trust the exit status of
15141         `make -k'.
15143 2002-07-24  Kevin Ryde  <user42@zip.com.au>
15145         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
15146         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
15148 2002-07-23  Paul Eggert  <eggert@twinsun.com>
15150         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
15151         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
15152         apparently treats PATH="nonexistent" as if it contained ".".
15153         Bug reported by Stefan `Sec' Zehl.
15155 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
15157         * doc/autoconf.texi (Limitations of Make): Mention the special
15158         handling of the obj/ directory by BSD make.
15160 2002-07-20  Kevin Ryde  <user42@zip.com.au>
15162         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
15163         backslashes.
15165 2002-07-19  Akim Demaille  <akim@epita.fr>
15167         * doc/autoconf.texi (Function Portability): `exit'.
15168         (Programming in M4sh): Ethymology of M4sh.
15170 2002-07-19  Akim Demaille  <akim@epita.fr>
15172         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
15174 2002-07-18  Akim Demaille  <akim@epita.fr>
15176         Version 2.53b.
15178 2002-07-18  Akim Demaille  <akim@epita.fr>
15180         * config/config.guess, config/config.sub: Update.
15182 2002-07-18  Akim Demaille  <akim@epita.fr>
15184         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
15185         Automake's parts.
15187         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
15188         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
15189         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
15191 2002-07-18  Akim Demaille  <akim@epita.fr>,
15192             Alexandre Duret-Lutz  <duret_g@epita.fr>
15194         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
15195         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
15197 2002-07-17  Russ Allbery  <rra@stanford.edu>
15199         * doc/autoconf.texi (Initializing configure): Clarify the
15200         description of the tarname default.
15202 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
15204         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
15205         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
15206         latter was not run.
15208 2002-07-17  Akim Demaille  <akim@epita.fr>
15210         * lib/Autom4te/General.pm (find_file): Browse the directories in
15211         the order they are given.
15213 2002-07-17  Akim Demaille  <akim@epita.fr>
15215         * tests/wrapsh.as, tests/wrappl.as: Merge into...
15216         * tests/wrapper.as: this.
15217         * tests/Makefile.am, configure.ac: Adjust.
15219 2002-07-17  Mark D. Roth  <roth@feep.net>
15221         * configure.ac: Add --enable-site-macro-dir option.
15222         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
15223         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
15224         --site-macro-subdir options.
15225         * bin/autoconf.in: Add --prepend-include option.
15226         * bin/autoheader.in: Add --prepend-include option.
15227         * bin/autoreconf.in: Add --prepend-include option.
15228         * bin/autoscan.in: Add --prepend-include option.
15229         * bin/autoupdate.in: Add --prepend-include option.
15230         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
15231         macro directory, remove note that include path directories are
15232         used in reverse order, and document --prepend-include option.
15233         * lib/autom4te.in: Use --prepend-include instead of --include.
15234         * tests/wrapsh.in: Use --prepend-include instead of --include.
15236 2002-07-17  Akim Demaille  <akim@epita.fr>
15238         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
15239         tarnames.
15240         * doc/autoconf.texi (Initializing configure): Adjust.
15242 2002-07-17  Akim Demaille  <akim@epita.fr>
15244         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
15245         (_AC_FUNC_MALLOC): New.
15246         (AC_FUNC_MALLOC): Use the latter.
15247         Define HAVE_MALLOC to 0 if broken.
15248         * doc/autoconf.texi (Particular Functions): Adjust.
15250 2002-07-16  Akim Demaille  <akim@epita.fr>
15252         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
15253         * doc/autoconf.texi (C Compiler): Adjust.
15255 2002-07-09  Akim Demaille  <akim@epita.fr>
15257         * doc/autoconf.texi: Properly set the ``header'' part.
15259 2002-07-09  Akim Demaille  <akim@epita.fr>
15261         * doc/autoconf.texi (Systemology): Some about Darwin.
15263 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
15265         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
15266         Don't use AC_REQUIRE in AU_DEFUN.
15268 2002-07-09  Art Haas  <ahaas@neosoft.com>
15270         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
15272 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
15274         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15275         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
15276         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
15277         so that Emacs setups GNU style for perl-mode and cperl-mode.
15279 2002-06-27  Paul Eggert  <eggert@twinsun.com>
15281         * config/install-sh: Quote $src.  Prefer || to test's -o option,
15282         as per "Limitations of Builtins".
15283         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
15284         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
15286         * tests/mktests.sh: Use grep instead of fgrep, as per
15287         "Limitations of Builtins".
15289 2002-06-15  Paul Eggert  <eggert@twinsun.com>
15291         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
15292         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
15293         so that we consistently test the just-built programs.
15294         * tests/wrappl.as: Likewise.
15296 2002-06-12  Paul Eggert  <eggert@twinsun.com>
15298         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
15299         name, so that symlinks to 'autoconf' work properly.  Bug reported
15300         by Bruno Haible.
15301         * bin/autoheader.in (AUTOM4TE): Likewise.
15302         * bin/autoreconf.in (autoconf, autoheader): Likewise.
15303         * bin/autoscan.in (autom4te): Likewise.
15304         * bin/autoupdate.in (autom4te): Likewise.
15306         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
15307         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
15308         on Solaris 2.5.1.
15310 2002-06-11  Andreas Schwab  <schwab@suse.de>
15312         * doc/autoconf.texi: Add more dir entries.
15314 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
15316         * bin/autom4te.in ($cache): Don't define using `$me', the name
15317         of the cache should not depend on the name under which autom4te
15318         was installed.
15320 2002-06-07  Akim Demaille  <akim@epita.fr>
15322         * tests/tools.at (autoconf: forbidden tokens, basic)
15323         (autoconf: forbidden tokens, exceptions): Adjust to the change of
15324         words in autom4te.in.
15326 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
15328         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
15329         _AC_LANG_PROGRAM_C_F77_HOOKS.
15331 2002-06-07  Akim Demaille  <akim@epita.fr>
15333         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
15334         rename as...
15335         (AC_REPLACE_FNMATCH): this.
15336         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
15337         AC_FUNC_FNMATCH_GNU.
15339 2002-06-07  Akim Demaille  <akim@epita.fr>
15341         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
15342         Rosetta Stone for Unix.
15344 2002-06-07  Akim Demaille  <akim@epita.fr>
15346         * bin/autom4te.in (warn_forbidden): When rejecting a token,
15347         suggest m4_pattern_allow.
15348         Suggested by Adam J. Richter.
15350 2002-06-07  Akim Demaille  <akim@epita.fr>
15352         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
15353         ac_config_libobj_dir.
15354         (AC_CONFIG_LIBOBJ_DIR): New.
15355         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
15356         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
15357         Use ac_config_libobj_dir to find the replacement files.
15358         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
15359         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
15360         (AC_REPLACE_FNMATCH_GNU): these.
15361         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
15362         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
15363         * tests/mktests.sh (ac_exclude_list): Don't check
15364         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
15366 2002-06-06  Paul Eggert  <eggert@twinsun.com>
15368         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
15369         if ln doesn't work.
15370         * NEWS: Likewise.
15371         * doc/autoconf.texi (Configuration Links): Likewise.
15372         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
15374 2002-06-05  Paul Eggert  <eggert@twinsun.com>
15376         * config/config.guess, config/config.sub, config/texinfo.tex:
15377         Update from masters.
15379 2002-05-29  Paul Eggert  <eggert@twinsun.com>
15381         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
15382         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
15383         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
15384         Likewise.
15385         * lib/autoconf/Makefile.am (check-local): Likewise.
15386         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
15387         * lib/autoconf/types.m4 (commentary only): Likewise.
15388         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
15389         * lib/autotest/Makefile.am (check-local): Likewise.
15390         * lib/m4sugar/Makefile.am (check-local): Likewise.
15391         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
15392         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
15394         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
15395         * doc/autoconf.texi (Particular Programs): Document them.
15396         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
15397         * NEWS: Likewise.
15399 2002-05-27  Paul Eggert  <eggert@twinsun.com>
15401         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
15402         * NEWS, doc/autoconf.texi (Particular Types): Document it.
15403         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
15404         instead of AC_MBSTATE_T, which never existed.
15406 2002-05-23  Akim Demaille  <akim@epita.fr>
15408         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
15409         version of Autoconf that is discussed.
15411 2002-05-22  Paul Eggert  <eggert@twinsun.com>
15413         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
15414         from the default list of compilers to try.  Suggested by
15415         Kate Hedstrom.
15416         * NEWS: Document the above.
15417         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
15419 2002-05-17  Paul Eggert  <eggert@twinsun.com>
15421         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
15422         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
15423         This improves on an earlier suggestion by H. Peter Anvin.
15425 2002-05-16  Paul Eggert  <eggert@twinsun.com>
15427         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
15428         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
15429         Both macros now accept an optional source-dir arg.
15430         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
15432         * NEWS: Document this.
15433         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
15435         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
15436         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
15437         not for GNU extensions; this undoes part of the 2000-11-03 change,
15438         reverting to 2.13-compatible behavior.
15439         Add new optional argument DIR.
15440         (AC_FUNC_FNMATCH_GNU): New macro.
15442         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
15444 2002-05-08  Paul Eggert  <eggert@twinsun.com>
15446         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
15447         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
15448         and it causes a 'test' syntax error if it fails.
15449         Bug reported by Stephen Gildea.
15451         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
15452         If prototypes are supported, use them to check this at compile-time,
15453         instead of trying to check it at run-time.  If we must do a run-time
15454         check, assume that setvbuf is standard when cross-compiling, as
15455         nonstandard setvbuf occurs only on ancient and unlikely hosts.
15456         Bug reported by Paul D. Smith.
15458         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
15459         argument specifying location of getloadavg.c.  This removes a
15460         FIXME.  This idea was taken from Jim Meyering's implementation in
15461         textutils.
15462         * doc/autoconf.texi (Particular Functions): Document this.
15463         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
15464         that's what the code does; this fixes a bug reported by
15465         Paul D. Smith.
15467 2002-05-03  Akim Demaille  <akim@epita.fr>
15469         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
15470         autopoint instead of gettextize.
15471         ($uses_alocal): Rename as...
15472         ($uses_aclocal): this.
15473         * doc/autoconf.texi (autoreconf Invocation): Adjust.
15474         Suggested by Bruno Haible.
15476 2002-05-03  Akim Demaille  <akim@epita.fr>
15478         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
15480 2002-04-29  Paul Eggert  <eggert@twinsun.com>
15482         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
15483         files to be 1 second older; just set them to be the same time.
15484         Also, sleep 1 second after the first aclocal, to work around
15485         problems with sub-second time stamps on the input files.
15487 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
15489         * doc/autoconf.texi: Mention "set -e -x" lossage
15490         under node "Limitations of Builtins".
15492 2002-04-29  Akim Demaille  <akim@epita.fr>
15494         * doc/install.texi: Better wording for setting variables when
15495         running configure.
15496         From Christian Cornelssen.
15498 2002-04-29  Akim Demaille  <akim@epita.fr>
15500         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
15501         of lack of $LINENO support, then the test will compare the $LINENO
15502         in testsuite vs. the lineno in the test file.  This is wrong, of
15503         course.
15504         Be sure to protect it.
15505         Reported by Patrick Welche.
15507 2002-04-25  Akim Demaille  <akim@epita.fr>
15509         * doc/autoconf.texi (Obsolete Macros): Typo.
15510         Reported by Vladimir Volovich.
15512 2002-04-25  Akim Demaille  <akim@epita.fr>
15514         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
15515         than some of the input files, hence, on the second run of aclocal,
15516         if some of its input are younger, make them older.
15517         Suggested by Paul Eggert.
15519 2002-04-25  Akim Demaille  <akim@epita.fr>
15521         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
15522         Thanks to Paul Eggert.
15524 2002-04-25  Akim Demaille  <akim@epita.fr>
15526         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
15527         and ac_subst_vars be sh variables containing the list of
15528         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
15529         DEFAULT diversion.
15530         (_AC_INIT_PREPARE): Use them to log them.
15531         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
15532         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
15533         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
15534         _AC_SUBST_FILES and _AC_SUBST_VARS.
15535         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
15537 2002-04-24  Akim Demaille  <akim@epita.fr>
15539         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
15540         autoheader, so that automake does not complain about a missing
15541         config.h.in that was to be created.
15543 2002-04-23  Akim Demaille  <akim@epita.fr>
15545         * bin/autoheader.in (parse_args): --warning takes an argument.
15546         Fixes PR/220.
15548 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
15550         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
15551         and bb.out when cleaning up.
15553 2002-04-22  Akim Demaille  <akim@epita.fr>
15555         Version 2.53a.
15557 2002-04-22  Akim Demaille  <akim@epita.fr>
15559         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
15561 2002-04-22  Akim Demaille  <akim@epita.fr>
15563         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
15564         comma.
15565         Reported by Gregory Giannoni.
15567 2002-04-22  Akim Demaille  <akim@epita.fr>
15569         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
15570         Fixes false failures on Darwin.
15572 2002-04-21  Paul Eggert  <eggert@twinsun.com>
15574         * TODO, bin/autoupdate.in, doc/autoconf.texi,
15575         lib/autoconf/general.m4, lib/autoconf/libs.m4,
15576         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
15577         tests/tools.at: Minor spelling and grammar fixes.
15579 2002-04-20  Paul Eggert  <eggert@twinsun.com>
15581         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
15582         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
15583         * lib/autotest/general.m4 (AT_INIT): Likewise.
15584         * tests/atgeneral.m4 (AT_INIT): Likewise.
15586 2002-04-19  Paul Eggert  <eggert@twinsun.com>
15588         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
15589         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
15590         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
15591         lib/autoconf/functions.m4, lib/autoconf/general.m4,
15592         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
15593         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
15594         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
15595         Minor spelling and grammar fixes.
15597         * doc/autoconf.texi: Follow the outline suggested in the GNU
15598         Sample Texts sections of the Texinfo 4.2 manual.  Most
15599         importantly, this makes sure that the copyright notices appear in
15600         all output formats.  You probably need Texinfo 4.2 to generate
15601         the manual now.
15603         Fix some bugs when using "$@" when there might be zero positional
15604         arguments in cases where this matters.
15606         * bin/autoconf.as: Rewrite so that the problem does not come up.
15607         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
15608         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
15609         * lib/autotest/general.m4 (AT_INIT): Likewise.
15611         * bin/autoheader.in: Use 'case' statement to work around problem.
15612         * bin/auto4mte.in: Likewise.
15613         * bin/autoreconf.in: Likewise.
15614         * bin/autoscan.in: Likewise.
15615         * bin/autoupdate.in: Likewise.
15616         * bin/ifnames.in: Likewise.
15618         * doc/autoconf.texi (Shell Substitutions): Document the problem.
15620         * lib/autotest/general.m4 (AT_INIT):
15621         Use Zsh alias to work around problem.
15622         * tests/atgeneral.m4 (AT_INIT): Likewise.
15624         * tests/c.at: We can't have zero arguments, so remove workaround
15625         that is not portable to Zsh.
15627 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
15629         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
15630         from aclocal.m4 too.
15632 2002-04-12  Akim Demaille  <akim@epita.fr>
15634         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
15636 2002-04-10  Akim Demaille  <akim@epita.fr>
15638         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
15639         workaround for ${1+"$@"}.
15640         * doc/autoconf.texi (Shell Substitutions): Explain it.
15641         From Oliver Kiddle and Peter Stephenson.
15643         Have M4sh perform minimal shell sanitizing.
15645         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
15646         part into...
15647         (_AS_PREPARE): this new macro.
15648         (AS_PREPARE): New.
15649         (AS_INIT): Invoke AS_SHELL_SANITIZE.
15650         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
15652         Adjust Autoconf and Autotest.
15654         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
15655         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
15656         * lib/autotest/general.m4 (AT_INIT): Likewise.
15657         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
15658         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
15659         AS_SHELL_SANITIZE.
15661         Use this M4sh to generate Autoconf's shell scripts.
15663         * tests/wrapsh.as: New, precursor of wrapsh.in.
15664         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
15665         on Autotest and M4sh.
15666         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
15667         (wrapsh.in): New target.
15668         * bin/autoconf.as: New, precursor of autoconf.in.
15669         (autoconf.in): New target.
15671 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
15673         * doc/autoconf.texi (Limitations of Make): Mention the issue
15674         with indented comments in rules.
15676 2002-04-09  Andreas Schwab  <schwab@suse.de>
15678         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
15679         ac_top_builddir when setting ac_abs_top_builddir.
15681 2002-04-06  Kevin Ryde  <user42@zip.com.au>
15683         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
15684         (Portable Shell): Cross reference to Systemology.
15686 2002-04-05  Akim Demaille  <akim@epita.fr>
15688         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
15689         directories when descending in a SUBDIRS.
15690         Reported by Ezra Peisach.
15692 2002-04-04  Andreas Schwab  <schwab@suse.de>
15694         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
15695         contains no literal separators.
15697 2002-04-03  Akim Demaille  <akim@epita.fr>
15699         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
15700         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
15701         Use dnl, not the KILL diversion.
15702         Extracted from...
15703         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
15704         (AC_CONFIG_LINKS): here.
15705         Adjust.
15706         Don't use the KILL diversion, as it kills spurious output, which
15707         results in failures being hidden.
15708         Use m4_defn where appropriate.
15709         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
15710         after the second argument.
15711         Use m4_defn.
15712         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
15713         syntax, as it is provided by M4sugar.
15714         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
15716 2002-04-03  Andreas Schwab  <schwab@suse.de>
15718         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
15719         expanded if $# <= 2.
15721         * bin/autoreconf.in (autoreconf): Run automake after rerunning
15722         aclocal.
15724 2002-04-03  Akim Demaille  <akim@epita.fr>
15726         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
15727         (_AC_COMPILER_EXEEXT_REJECT): New.
15728         Also recognize *.bb and *.bbg as compilation byproducts.
15729         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
15730         (_AC_COMPILER_OBJEXT): Use them.
15731         Fixes Debian #138666.
15733 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
15735         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
15737         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
15738         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
15739         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
15740         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
15741         (AC_C_CONST): Same.
15742         (AC_C_INLINE): Same.
15743         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
15744         * doc/autoconf.texi, NEWS: Document.
15745         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
15746         AC_C_CROSS.
15748 2002-04-02  Akim Demaille  <akim@epita.fr>
15750         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
15751         _AS_MKDIR_P_PREPARE.
15753 2002-03-28  Kevin Ryde  <user42@zip.com.au>
15755         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
15756         to avoid versions of HP C which don't allow that.
15758 2002-03-27  Paul Eggert  <eggert@twinsun.com>
15760         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
15761         (AS_SHELL_SANITIZE): Invoke it.
15762         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
15764 2002-03-26  Akim Demaille  <akim@epita.fr>
15766         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
15768 2002-03-26  Akim Demaille  <akim@epita.fr>
15770         * doc/autoconf.texi (Introduction): The GNATS base moved.
15772 2002-03-25  Paul Eggert  <eggert@twinsun.com>
15774         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
15775         as POSIX requires, as it doesn't work with Zsh.
15776         * doc/autoconf.texi (Assignments): Document the problem.
15778 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
15780         * doc/autoconf.texi (Limitations of Make): Mention more issue
15781         about VPATH, overriding of macros in sub-makes, and handling of
15782         SHELL.
15784 2002-03-21  Paul Eggert  <eggert@twinsun.com>
15786         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
15787         problem with here-document buffer boundaries.
15789         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
15790         when reinvoking the shell, to work around problems with installers
15791         who put strange things like "cd" commands in their environments.
15793 2002-03-19  Akim Demaille  <akim@epita.fr>
15795         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
15796         From Aaron Ucko.
15798 2002-03-19  Akim Demaille  <akim@epita.fr>
15800         * bin/autoscan.in (scan_file): Specify the location in `&used'
15801         invocations.
15802         From Nicolas Joly.
15804 2002-03-19  Akim Demaille  <akim@epita.fr>
15806         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
15807         From Nishio Futoshi.
15809 2002-03-19  Akim Demaille  <akim@epita.fr>
15811         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
15813 2002-03-18  Paul Eggert  <eggert@twinsun.com>
15815         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
15816         (Limitations of Usual Tools): Add mkdir section.
15818         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
15819         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
15820         back on AS_DIRNAME to compute prefixes otherwise; this is
15821         roughly what mkinstalldirs does.  That way, we need not have
15822         our own filename disassembler.  The old disassembler did not
15823         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
15825         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
15826         Create at_test_all by a series of assignments,
15827         not by a single assignment of a long string.  The latter causes ksh
15828         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
15829         presumably because of a buffer overrun.
15831 2002-03-14  Paul Eggert  <eggert@twinsun.com>
15833         * lib/autotest/general.m4 (at_times_skip):
15834         Renamed from at_times.  Now a boolean.
15835         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
15836         says 'times: not found'.
15838 2002-03-14  Akim Demaille  <akim@epita.fr>
15840         * bin/autoreconf.in (&study_gettextize): New.
15841         (&autoreconf): Handle newest gettextize.
15842         Rerun aclocal if needed.
15843         Suggested by Andreas Schwab.
15845 2002-03-13  Akim Demaille  <akim@epita.fr>
15847         * doc/autoconf.texi (Special Shell Variables): More about IFS.
15849 2002-03-13  Akim Demaille  <akim@epita.fr>
15851         * doc/autoconf.texi (Header Portability): New.
15852         Add information about stdint.h and inttypes.h from Paul Eggert.
15854 2002-03-13  Akim Demaille  <akim@epita.fr>
15856         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
15857         -p'.
15858         From Bob Proulx.
15860 2002-03-12  Akim Demaille  <akim@epita.fr>
15862         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
15863         m4_require.
15865 2002-03-11  Andreas Schwab  <schwab@suse.de>
15867         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
15868         does not do it if --with-lispdir is given.
15870 2002-03-08  Akim Demaille  <akim@epita.fr>
15872         Version 2.53.
15874 2002-03-08  Akim Demaille  <akim@epita.fr>
15876         * doc/autoconf.texi (Subdirectories): Clarify that the
15877         subdirectory should exist.
15879 2002-03-08  Akim Demaille  <akim@epita.fr>
15881         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
15883 2002-03-08  Akim Demaille  <akim@epita.fr>
15885         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
15886         aliases the actual variables, and modifications of the former
15887         affect the latter.
15889 2002-03-08  Akim Demaille  <akim@epita.fr>
15891         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
15892         because of C-c: have m4 output in tmp files, then mv them.
15894 2002-03-08  Akim Demaille  <akim@epita.fr>
15896         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
15897         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
15898         * bin/ifnames.in: Copyright update.
15900 2002-03-08  Akim Demaille  <akim@epita.fr>
15902         * doc/autoconf.texi (Invoking autom4te): New.
15904 2002-03-05  Akim Demaille  <akim@epita.fr>
15906         * doc/autoconf.texi (Specifying Names): Clarification suggested by
15907         Kevin Ryde.
15909 2002-03-05  Akim Demaille  <akim@epita.fr>
15911         Version 2.52i.
15913 2002-03-04  Akim Demaille  <akim@epita.fr>
15915         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
15916         * lib/autoconf/general.m4 (AC_INIT): More informative error
15917         message for LIBOBJ.
15919 2002-03-04  Akim Demaille  <akim@epita.fr>
15921         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
15922         parallel builds.
15924 2002-03-04  Akim Demaille  <akim@epita.fr>
15926         * doc/autoconf.texi (Transforming Names): Equality between target
15927         and host is irrelevant.
15928         (Specifying Names, Canonicalizing): Remove all references to the
15929         backward compatibility hooks.  Rather, collect them all into...
15930         (Hosts and Cross-Compilation): this new section.
15931         * doc/install.texi (System Type): Ditto.
15932         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
15933         that `--host' implies cross-compilation.
15935 2002-03-04  Akim Demaille  <akim@epita.fr>
15937         * doc/autoconf.texi (Evaluation Macros): New.
15938         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
15939         useless.
15940         (_m4_foreach): Define the variant with immediate evaluation so
15941         that it contains exactly the items, not an expression which
15942         evaluation is the current item.
15943         (m4_re_string, m4_re_word): Don't over quote them.
15945 2002-03-04  Akim Demaille  <akim@epita.fr>
15947         Instead of having stacking `shift's evaluated at the end, let
15948         `foreach' loops immediately evaluate them.
15950         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
15951         $*.  This is the n-th time I change my mind, but hopefully this is
15952         the last...
15953         (m4_lquote): New.
15954         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
15955         efficient.
15956         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
15957         it was only a hack for m4_text_wrap.
15958         (m4_car2): Remove, replaced by...
15959         (m4_cdr): New.
15960         (_m4_foreach): Adjust.
15961         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
15962         m4_bpatsubst for clarification.
15964 2002-03-04  Akim Demaille  <akim@epita.fr>
15966         * doc/autoconf.texi (Changequote is Evil): New.
15968 2002-03-03  Kevin Ryde  <user42@zip.com.au>
15970         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
15971         on old systems like SunOS.
15973 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
15975         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15976         lib/autoconf/functions.m4, lib/autoconf/general.m4,
15977         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
15978         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
15979         of messages.
15981 2002-02-28  Akim Demaille  <akim@epita.fr>
15983         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
15984         message to be sent.
15986 2002-02-28  Kevin Ryde  <user42@zip.com.au>
15988         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
15990 2002-02-25  Akim Demaille  <akim@epita.fr>
15992         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
15993         From Akinori Musha.
15995 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
15997         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
15998         translate \r\n to \n.
16000 2002-02-07  Akim Demaille  <akim@epita.fr>
16002         Version 2.52h.
16004 2002-02-07  Akim Demaille  <akim@epita.fr>
16006         Fix Autoconf PR/209.
16007         Also reported by Frank Denis.
16009         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
16011 2002-02-07  Akim Demaille  <akim@epita.fr>
16013         Fix Autoconf PR/207:
16014         AC_PREFIX_PROGRAM fails with dashed program names
16016         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
16017         variable when looking for the prefix program.
16018         Now it also works for shell variables.
16020 2002-02-07  Akim Demaille  <akim@epita.fr>
16022         * doc/autoconf.texi (Limitations of Builtins): More about
16023         case/esac.
16025 2002-02-06  Akim Demaille  <akim@epita.fr>
16027         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
16028         case/esac, some shells don't support it.
16029         Reported by Zack Weinberg.
16030         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
16032 2002-02-06  Akim Demaille  <akim@epita.fr>
16034         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
16035         sure not to introduce newlines in at_groups.
16036         * lib/autotest/Makefile.am (autotest.m4f): Typo.
16038 2002-02-06  Akim Demaille  <akim@epita.fr>
16040         * tests/torture.at (Configuring subdirectories): Skip if aclocal
16041         is not available.
16043 2002-02-05  Paul Eggert  <eggert@twinsun.com>
16045         * doc/autoconf.texi (Specific Compiler Characteristics):
16046         Describe HP-UX cc bug workaround more accurately.
16047         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
16048         not unsigned long.
16049         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
16050         cross-compilers, too.  This undoes some of the most recent change
16051         to this file.
16053 2002-02-05  Akim Demaille  <akim@epita.fr>
16055         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
16056         to make sure they are up to date when `check' is run.
16058 2002-02-05  Akim Demaille  <akim@epita.fr>
16060         * doc/autoconf.texi (Making testsuite Scripts): Document
16061         package.m4.
16063 2002-02-05  Akim Demaille  <akim@epita.fr>
16065         * lib/freeze.mk: New.
16067 2002-02-05  Akim Demaille  <akim@epita.fr>
16069         Implement `autom4te --freeze'.
16071         * bin/autom4te.in (&freeze): New.
16072         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
16073         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
16075 2002-02-05  Akim Demaille  <akim@epita.fr>
16077         * bin/autom4te.in (&parse_args): Implement `frozen files are
16078         optional are the sum of the previous files on the command line'.
16079         Also, pass `--reload-state=' on them, so...
16080         (handle_m4): don't.
16081         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
16082         (M4sh): Rely on M4sugar.
16083         (Autotest, M4sh, M4sugar): Use frozen files.
16085 2002-01-31  Akim Demaille  <akim@epita.fr>
16087         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
16088         * doc/autoconf.texi (Initializing configure): Adjust.
16090 2002-01-30  Akim Demaille  <akim@epita.fr>
16092         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
16093         alphanumeric to `-' instead of `_'.
16095 2002-01-30  Akim Demaille  <akim@epita.fr>
16097         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
16098         for plain code, the other for cross-compilation code.  The latter
16099         is now run with GCC only.
16100         * doc/autoconf.texi (Compilers and Preprocessors): New.
16102 2002-01-30  Akim Demaille  <akim@epita.fr>
16104         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
16105         values.
16106         * doc/autoconf.texi (Initializing configure): Explain how to
16107         change AC_INIT default values.
16109 2002-01-29  Akim Demaille  <akim@epita.fr>
16111         * tests/torture.at (Configuring subdirectories): Use configure.in,
16112         so that aclocal 1.4 works.
16113         Reported by Alexandre Duret-Lutz and Larry Schmitt.
16115 2002-01-28  Akim Demaille  <akim@epita.fr>
16117         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
16118         needs an argument.
16120 2002-01-28  Akim Demaille  <akim@epita.fr>
16122         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
16123         AUTOTEST_PATH *after* it was set.
16124         Don't put `.' in the PATH: the user should be precise and `./' if
16125         needed.  In addition, given that the test suite does some `cd', if
16126         `.' is in the path, the `tested programs' sections will report
16127         programs found in the test suite's directory, while during the
16128         tests (performed in their own directory), these programs are no
16129         longer visible.  In other words, the results is confusing and
16130         useless.
16131         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
16133 2002-01-24  Akim Demaille  <akim@epita.fr>
16135         Version 2.52g.
16137 2002-01-24  Akim Demaille  <akim@epita.fr>
16139         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
16140         * doc/autoconf.texi: Finally add Akim as an author.
16142 2002-01-24  Akim Demaille  <akim@epita.fr>
16144         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
16145         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
16146         Bourne. Use /bin/sh.
16147         From Andreas Buening.
16149 2002-01-24  Akim Demaille  <akim@epita.fr>
16151         * config/config.guess, config/config.sub, config/texinfo.tex:
16152         Update from masters.
16154 2002-01-24  Akim Demaille  <akim@epita.fr>
16156         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
16157         * config/auxdir.m4, config/cond.m4, config/depend.m4,
16158         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
16159         * config/missing.m4, config/sanity.m4, config/select.m4,
16160         * config/strip.m4: Remove, to ease sync'ing with any version of
16161         Automake.
16163 2002-01-24  Akim Demaille  <akim@epita.fr>
16165         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
16166         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
16167         Reported by Geir Ove Myhr.
16169 2002-01-21  Akim Demaille  <akim@epita.fr>
16171         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
16173 2002-01-21  Akim Demaille  <akim@epita.fr>
16175         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
16176         message on invalid options.
16177         * bin/autom4te.in (parse_args): Don't use
16178         Autoconf::General::getopt with non valid options.
16180 2002-01-17  Jim Meyering  <meyering@lucent.com>
16182         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
16183         $ac_cv_exeext so we don't use an old, invalid, cached value.
16185 2002-01-11  Akim Demaille  <akim@epita.fr>
16187         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
16188         Meyering.
16189         * doc/autoconf.texi (Function Portability): Document the strnlen
16190         limitation.
16191         (Particular Functions): Document AC_FUNC_STRNLEN.
16192         * lib/autoscan/functions: Adjust.
16194 2002-01-06  Akim Demaille  <akim@epita.fr>
16196         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
16197         package.m4, since is really depends upon configure.ac, not
16198         configure.
16199         * doc/autoconf.texi (testsuite Scripts): Adjust.
16200         * tests/Makefile.am (package.m4): New.
16201         EXTRA_DIST it since its a source.
16203 2002-01-06  Akim Demaille  <akim@epita.fr>
16205         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
16206         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
16207         and PACKAGE_BUGREPORT from here...
16208         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
16209         arguments.
16210         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
16211         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
16212         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
16213         * tests/tools.at (autoheader): Adjust.
16214         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
16216 2002-01-06  Akim Demaille  <akim@epita.fr>
16218         * bin/autoscan.in (scan_file): Use `&used'.
16220 2002-01-03  Akim Demaille  <akim@epita.fr>
16222         * doc/autoconf.texi (Output): Improved wording regarding use of
16223         AC_OUTPUT.
16224         From Olly Betts.
16226 2001-12-18  Kevin Ryde  <user42@zip.com.au>
16228         * doc/autoconf.texi (Function Portability): Add notes on sscanf
16229         sometimes needing writable input.
16231 2001-12-17  Jim Meyering  <meyering@lucent.com>
16233         * doc/autoconf.texi (New Macros): Tweak wording.
16235 2001-12-14  Akim Demaille  <akim@epita.fr>
16237         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
16238         trailing files, don't apply `-rf' to files which might not be
16239         created by configure (core, core.*, and *.core), but just `rm -f'.
16240         Suggested by Jonathan Kamens.
16242 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
16244         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
16246 2001-12-14  Akim Demaille  <akim@epita.fr>
16248         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
16250 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
16252         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
16253         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
16254         abs_srcdir, top_srcpath to abs_top_srcdir.
16255         (_AC_OUTPUT_FILES): Adjust.
16256         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
16257         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
16258         * tests/wrappl.in, tests/wrapsh.in: Adjust.
16260 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
16262         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
16263         C/Fortran linking on HP/UX, by extracting the Fortran library
16264         search path from the LPATH line in the $F77 -v output.
16266 2001-12-12  Kevin Ryde  <user42@zip.com.au>
16268         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
16269         forbidden file descriptors table.
16271 2001-11-26  Akim Demaille  <akim@epita.fr>
16273         * bin/autoscan.in (%c_keywords): Build it at top level.
16274         Map to 1 in order to simplify its uses.
16276 2001-11-26  Akim Demaille  <akim@epita.fr>
16278         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
16279         Remove $filepath, useless.
16280         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
16281         variables, they are really part of the tokens.
16282         Split the input line on spaces and then look for tokens.
16283         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
16284         because of `lex$U.$(OBJEXT)'.
16285         (&scan_files): Use "@list" instead of join.
16286         * doc/Makefile.am (CLEANFILES): Add *.fns.
16288 2001-11-26  Akim Demaille  <akim@epita.fr>
16290         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
16291         Remove, replaced by...
16292         * tests/wrappl.in: Be common for all the Perl executables.
16293         In particular autoscan and autoheader want -I.
16294         * configure.ac: Adjust.
16295         * lib/autoscan/headers: errno.h is portable.
16297 2001-11-26  Akim Demaille  <akim@epita.fr>
16299         * bin/autoscan.in (used): New.
16300         Use it.
16302 2001-11-26  Akim Demaille  <akim@epita.fr>
16304         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
16305         directives.
16306         (&scan_sh_file): Remove a duplicate pattern.
16307         (&check_configure_ac): Use long options.
16308         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
16310 2001-11-26  Akim Demaille  <akim@epita.fr>
16312         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
16313         Before, having a line containing the opening of a multi line
16314         comment made the whole line be ignored.
16316 2001-11-26  Akim Demaille  <akim@epita.fr>
16318         * doc/autoconf.texi (Using an Autotest Test Suite): New.
16319         (testsuite Scripts): Be one of its subsection.
16320         (Autotest Logs): New.
16322 2001-11-26  Akim Demaille  <akim@epita.fr>
16324         Test groups are now run two directories deeper.
16326         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
16327         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
16328         at_top_builddir.
16329         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
16330         top_srcdir, builddir and top_builddir.
16331         Use `at_*dir' relatively to the directory containing the
16332         suite, use `*dir' when relatively to the current group dir.
16334 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
16336         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
16337         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
16338         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
16339         spelling errors.
16341 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
16343         * doc/autoconf.texi (Using System Type): Add an example of `case
16344         $host' usage so people quit using `case $target' everywhere.
16346 2001-11-22  Akim Demaille  <akim@epita.fr>
16348         * doc/autoconf.texi (Installation Directory Variables): Englishoes
16349         spotted by Jim Meyering.
16351 2001-11-16  Paul Eggert  <eggert@twinsun.com>
16353         This patch implements a `long double' suggestion by Oliver Kiddle.
16355         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
16356         static, to catch errors if the value isn't known at compile-time
16357         and the compiler supports dynamic arrays.  Change its name from
16358         `_array_' to `test_array' to avoid potential name clashes.
16359         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
16360         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
16361         better than double.  Catch a bug in GCC 2.95.2 x86.
16362         * doc/autoconf.texi (C Compiler): Document the above.
16363         * NEWS: Likewise.
16365 2001-11-13  Akim Demaille  <akim@epita.fr>
16367         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
16368         hand.
16369         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
16371 2001-11-13  Akim Demaille  <akim@epita.fr>
16373         * lib/autotest/general.m4 (AT_INIT): After having run the test
16374         group, go back to the initial directory, not to at_suite_dir.
16376 2001-11-13  Akim Demaille  <akim@epita.fr>
16378         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
16379         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
16380         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
16381         option.
16382         (AT_CHECK_CONFIGURE): Use absolute paths.
16383         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
16384         The problem is still the old one: there is no means in M4 (that I
16385         know about) to create a defining macro, because there is no means
16386         to create `$1' etc., therefore, the defining macro ``swallows''
16387         all the arguments meant to the defined macro.
16389 2001-11-13  Akim Demaille  <akim@epita.fr>
16391         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
16392         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
16393         configure.ac.
16394         * tests/aclocal.m4: Remove, as it is no longer used.
16396 2001-11-13  Akim Demaille  <akim@epita.fr>
16398         * lib/autotest/general.m4: Change `tests?' into `groups?' in
16399         variable names when referring to a single test group, or to
16400         `suite' when referring to the whole test suite.
16401         `at_last_test' is removed: m4 compute at_format itself.
16402         (at_stdout, at_stder1, at_stderr): New variables.
16403         (AT_CHECK): Use them.
16405 2001-11-13  Akim Demaille  <akim@epita.fr>
16407         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
16408         in PATH.
16409         Create `testsuite.dir/003/run' instead of `testsuite.003'.
16410         Do it as soon as a test fails, don't wait till the end of the test
16411         suite.
16412         Don't remove $as_me.[0-9]*, since these files no longer exist.
16414 2001-11-13  Akim Demaille  <akim@epita.fr>
16416         * tests/tools.at: Use absolute paths, since we are no longer run
16417         in place.
16419 2001-11-13  Akim Demaille  <akim@epita.fr>
16421         Now that tests are running in their own private dir, there is no
16422         need to list the files to remove at the end of tests groups.
16424         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
16425         (AT_data_files, at_data_files): Remove.
16426         (AT_CLEANUP, AT_DATA): Simplify.
16427         (AT_INIT): Adjust.
16428         Remove the group dir if !debug && !failed.
16429         * tests/atspecific.m4: Adjust.
16431 2001-11-13  Akim Demaille  <akim@epita.fr>
16433         Start a new layout for Autotest: `testsuite' creates
16434         `testsuite.dir' in which the at-check-line etc. files are to be
16435         found, and `testsuite.dir/003' where the test group 3 is run.
16437         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
16438         at_check_line_file, at_format, at_test_normalized, at_group_dir
16439         are new variables.
16440         Create the directories.
16441         Use absolute paths for at- files.
16442         (AT_CHECK): Adjust.
16444 2001-11-11  Michael Matz  <matz@kde.org>
16446         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
16447         (m4_car2): New.
16448         (m4_car): Properly quote arguments.
16450 2001-11-13  Akim Demaille  <akim@epita.fr>
16452         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
16453         with stricter rules on LIBOBJS.
16455 2001-11-12  Paul Eggert  <eggert@twinsun.com>
16457         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
16458         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
16459         __PROTOTYPES too.
16461 2001-11-12  Akim Demaille  <akim@epita.fr>
16463         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
16465 2001-11-12  Akim Demaille  <akim@epita.fr>
16467         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16468         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
16469         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
16470         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
16471         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
16472         specify to what the macro should be defined (typically to 1).
16474 2001-11-12  Akim Demaille  <akim@epita.fr>
16476         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
16477         From Jim Meyering.
16479 2001-11-12  Akim Demaille  <akim@epita.fr>
16481         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
16482         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
16483         definition used by Automake where LEX is +/- "${missing} lex" and
16484         `missing' itself contains variables.
16486 2001-11-12  Akim Demaille  <akim@epita.fr>
16488         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
16489         Now that M4sh pushes BODY, the comments were output at the end of
16490         the test suites.
16492 2001-11-08  Akim Demaille  <akim@epita.fr>
16494         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
16495         that we can trace macros from aclocal.m4.
16496         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
16497         obsoleted, and redirect to the former anyway.
16498         Reported by Ralf Corsepius.
16500 2001-11-08  Akim Demaille  <akim@epita.fr>
16502         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
16503         processed only if present.
16504         * tests/torture.at (Configuring subdirectories): Use autoreconf
16505         instead of successive calls to autoconf.
16506         Add a nonexistent subdirectory to exercise the patch above.
16507         Reported by Ralf Corsepius.
16509 2001-11-08  Kevin Ryde  <user42@zip.com.au>
16511         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
16512         doesn't accept .S files.
16514 2001-11-07  Akim Demaille  <akim@epita.fr>
16516         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
16517         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
16518         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
16519         * bin/autom4te.in (warn_forbidden): New.
16520         (handle_output): Use it.
16521         Read m4_pattern_forbid with messages.
16523 2001-11-05  Akim Demaille  <akim@epita.fr>
16525         * bin/autom4te.in (--normalize): Remove.
16526         * lib/autom4te.in: Adjust.
16528 2001-11-05  Akim Demaille  <akim@epita.fr>
16530         * tests/Makefile.am (testsuite): Rename this target as...
16531         ($(TESTSUITE)): this.
16532         From Nicolas Joly.
16534 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
16536         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
16537         the --prefix option, also remove it's argument.
16539 2001-11-05  Akim Demaille  <akim@epita.fr>
16541         * doc/autoconf.texi (testsuite Invocation): Update.
16542         (Writing testsuite.at): Update.
16544 2001-11-03  Akim Demaille  <akim@epita.fr>
16546         * doc/autoconf.texi: s/@code/@command/ where appropriate.
16548 2001-11-03  Akim Demaille  <akim@epita.fr>
16550         * lib/Autom4te/General.pm: (&catfile, &canonfile)
16551         (&file_name_is_absolute): New, wrappers around routines from
16552         File::Spec.
16553         Use and export them.
16554         (&find_configure_ac): Optionally take a directory where to look at.
16555         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
16556         the arguments.
16557         Default @ARGV to `.', not find_configure_ac.
16558         (&autoreconf): Argument is a directory.
16559         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
16560         * doc/autoconf.texi (autoreconf Invocation): Update.
16562 2001-11-03  Akim Demaille  <akim@epita.fr>
16564         * lib/Autom4te/General.pm (@export_vars, @export_subs)
16565         (@export_forward_subs): New.
16566         Add basename, dirname, and fileparse.
16567         (@EXPORT): Adjust.
16568         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
16569         Don't look for aclocal flags if we already know aclocal is not
16570         used.
16571         Move aclocal.m4t only if it exists.
16572         Reported by Ezra Peisach.
16574 2001-11-03  Akim Demaille  <akim@epita.fr>
16576         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
16577         passed on command line, defaulting to ./configure.ac if present.
16578         (&maybe_autoreconf, File::Find): Remove, unused.
16579         (&autoreconf): If autoconf is not used, don't try to trace.
16581 2001-11-02  Akim Demaille  <akim@epita.fr>
16583         * configure.ac: Bump to 2.52g.
16585 2001-11-02  Akim Demaille  <akim@epita.fr>
16587         Version 2.52f.
16589 2001-11-02  Akim Demaille  <akim@epita.fr>
16591         * config/config.guess, config/config.sub, doc/standards.texi:
16592         * config/lispdir.m4: Update from masters.
16593         * configure.ac: Bump to 2.52f.
16595 2001-11-02  Akim Demaille  <akim@epita.fr>
16597         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
16598         Don't run aclocal when aclocal.m4 is not from aclocal.
16599         From Ezra Peisach.
16600         Don't run libtoolize and gettextize if --install is not given.
16602 2001-11-01  Paul Eggert  <eggert@twinsun.com>
16604         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
16605         be invoked before _AS_LINENO_PREPARE.
16606         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
16607         than character ranges.
16609         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
16610         invoking AS_BASENAME.  Set the locale variables to 'C' if
16611         possible, as POSIX requires this to get the traditional
16612         behavior.
16613         * doc/autoconf.texi (Special Shell Variables): Describe the above.
16615 2001-10-31  Paul Eggert  <eggert@twinsun.com>
16617         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
16618         with {}, as that triggers a bug in Bash 2.05.
16620         (_AS_LINENO_PREPARE): Use Sed rather than
16621         Awk.  Fix the sed prepass to work even if there are multiple
16622         instances of $LINENO on the same line.  Do not substitute for
16623         other variables like $LINENOT.  Do not check file dates; such a
16624         check is unreliable on sufficiently fast machines, and removing
16625         the check makes the code simpler and more reliable.  Check for
16626         output and chmod failures.
16628         * doc/autoconf.texi (Special Shell Variables): Document
16629         the above.
16631 2001-10-31  Akim Demaille  <akim@epita.fr>
16633         * tests/Makefile.am (atconfig): Remove this target, Automake
16634         handles it now.
16636 2001-10-31  Akim Demaille  <akim@epita.fr>
16638         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
16639         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
16640         provided, while it is optional.
16641         * configure.ac: Adjust.
16643 2001-10-26  Paul Eggert  <eggert@twinsun.com>
16645         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
16646           lib/Autom4te/Struct.pm:
16647         Require Perl 5.005_03 instead of just 5.005, as some tests fail
16648         with 5.005_02.
16650         * doc/autoconf.texi (Special Shell Variables): Document some
16651         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
16653         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
16654         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
16655         eval $LINENO is not portable in practice.
16657 2001-10-24  Akim Demaille  <akim@epita.fr>
16659         * lib/Autom4te/General.pm (backname): New.
16661 2001-10-24  Akim Demaille  <akim@epita.fr>
16663         * m4/: Remove, merged into...
16664         * config/: here.
16666 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
16668         * doc/autoconf.texi (Shellology): Mention the problems with bash
16669         2.05's use of ANSI quoting in its `set' builtin.
16671 2001-10-22  Paul Eggert  <eggert@twinsun.com>
16673         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
16674         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
16675         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
16676         POSIX decided to standardize on the int flavor of strerror_r.
16677         Always do char* test, as there's no reason not to.
16678         Assign to a char* var, to catch strerror_r that returns int*.
16680         * doc/autoconf.texi (Particular Functions):
16681         Document the above changes.  Also, document the fact that
16682         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
16684         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
16686 2001-10-20  Akim Demaille  <akim@epita.fr>
16688         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
16689         the executable was missing from the log.
16691 2001-10-20  Akim Demaille  <akim@epita.fr>
16693         * lib/Autom4te/General.pm (&update_file): If destination is
16694         unchanged, remove the source.
16695         (&up_to_date_p): Don't be verbose, be debug.
16696         * bin/autoreconf.in: No longer support --m4dir.
16697         (&autoreconf): Display the full path of the configure.ac we are
16698         studying.
16699         Trace it only once.
16700         Be sure to honor --force with gettextize.
16701         Always run aclocal.
16702         * doc/autoconf.texi: Adjust.
16704 2001-10-20  Akim Demaille  <akim@epita.fr>
16706         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
16707         Remove, dead.
16708         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
16709         `intl' is already present, as it refuses unless --force.
16710         (&parse_args): Use -I, --include instead of the old Autoconf
16711         options.
16712         ($localdir, $autoconf_dir): Remove.
16713         (@include): New.
16714         (&maybe_autoreconf): New, to preserve $_ for File::Find.
16716 2001-10-19  Jens Petersen  <petersen@redhat.com>
16718         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
16719         * doc/autoconf.texi (Particular Programs): Likewise.
16721 2001-10-19  Akim Demaille  <akim@epita.fr>
16723         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
16724         file in @configure_input@.
16725         Don't mention `automatically' in addition to `generated'.
16726         * tests/torture.at (#define header templates): Adjust.
16728 2001-10-19  Akim Demaille  <akim@epita.fr>
16730         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
16731         comment, explain how to install automatic mode selection.
16732         From Russ Allbery.
16734 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
16736         * bin/autoreconf.in (autoreconf): Display the path to the
16737         configure.ac being studied.
16739 2001-10-18  Paul Eggert  <eggert@twinsun.com>
16741         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
16742         long, to work around a bug in the HP C compiler version HP92453-01
16743         B.11.11.23709.GP.
16745         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
16746         (AS_BASENAME_EXPR): New macro.
16747         (AS_BASENAME_SED): Do not assume GNU sed semantics.
16748         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
16749         and fall back on 'sed' only if the other two fail.  This makes
16750         AS_BASENAME act more like AS_DIRNAME.
16751         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
16752         contains white space.
16753         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
16754         Use AS_DIRNAME, since I think it's now DOS-friendly.
16755         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
16756         Allow "dirname //FOO" to return either / or //, as POSIX allows
16757         either behavior.
16759 2001-10-10  Akim Demaille  <akim@epita.fr>
16761         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
16762         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
16763         From Eric Sharkey.
16765 2001-10-10  Akim Demaille  <akim@epita.fr>
16767         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
16768         m4_define, since...
16769         (_AS_ECHO_N): AS_REQUIREs it.
16771 2001-10-10  Akim Demaille  <akim@epita.fr>
16773         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
16774         (AC_INCLUDES_DEFAULT): Move to...
16775         * lib/autoconf/headers.m4: here.
16776         * lib/autoconf/types.m4: Comment changes.
16777         * doc/autoconf.texi: Specify where the default includes are used
16778         in the macro prototypes.
16780 2001-10-09  Akim Demaille  <akim@epita.fr>
16782         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
16783         transition code.
16785 2001-10-08  Akim Demaille  <akim@epita.fr>
16787         * bin/autoreconf.in (&autoreconf): Remove debugging code.
16788         (&parse_args): Pass verbosity/debugging options to subtools when
16789         --debug, not when --verbose.
16790         * lib/autom4te.in (Autoreconf-preselections): New.
16791         (Autoconf): Use it.
16793 2001-10-08  Akim Demaille  <akim@epita.fr>
16795         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
16797 2001-10-08  Akim Demaille  <akim@epita.fr>
16799         * doc/autoconf.texi (autoreconf Invocation): Adjust.
16800         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
16802 2001-10-08  Akim Demaille  <akim@epita.fr>
16804         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
16805         (Syntax of the shell scripts): Don't.
16806         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
16807         bother with $force since...
16808         * lib/Autom4te/General.pm: does.
16810 2001-10-08  Akim Demaille  <akim@epita.fr>
16812         * bin/autoreconf.in: Rewrite in Perl.
16813         * configure.ac: Adjust.
16814         * lib/Autom4te/General.pm (&up_to_date_p): New.
16815         * bin/autom4te.in (&up_to_date_p): Use it.
16816         Rename as...
16817         (&up_to_date): this.
16819 2001-10-08  Akim Demaille  <akim@epita.fr>
16821         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
16822         (m4_list_cmp): Use $0 to reinvoke yourself.
16823         (m4_patsubsts): New.
16824         (m4_strip, m4_version_unletter): Use it.
16825         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
16827 2001-10-08  Akim Demaille  <akim@epita.fr>
16829         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
16830         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
16831         * lib/autoconf/types.m4, lib/autotest/general.m4,
16832         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
16833         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
16834         m4_bregexp, m4_bpatsubst, and m4_bmatch.
16835         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
16837 2001-10-08  Akim Demaille  <akim@epita.fr>
16839         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
16841 2001-10-08  Akim Demaille  <akim@epita.fr>
16843         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
16844         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
16845         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
16846         * tests/tools.at, tests/m4sh.at: Use it.
16847         * tests/m4sh.at: Don't rely on Autoconf macros.
16848         (DIRNAME_TEST): Also exercise the expr variant.
16849         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
16850         preferred M4sugar extension is now `.4s'.
16851         * tests/README: Remove.
16853 2001-10-08  Akim Demaille  <akim@epita.fr>
16855         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
16856         (m4_provide_if): this.
16857         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
16858         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
16859         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
16860         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
16862 2001-10-08  Akim Demaille  <akim@epita.fr>
16864         Use `add-log-current-defun-function' for ChangeLog creation.
16865         Suggested by Tom Tromey.
16867         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
16868         (autotest-mode): Adjust.
16869         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
16870         'comment-region onto `C-c ;'.
16871         Comments are `#', not `dnl'.
16872         (autoconf-current-defun): New.
16873         (autoconf-font-lock-keywords): Recognize `m4_defun'.
16875 2001-10-08  Akim Demaille  <akim@epita.fr>
16877         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
16878         * lib/m4sugar/m4sh.m4: here.
16879         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
16880         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
16881         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
16882         include handle the m4_pattern_*, no longer push the
16883         BODY diversion nor set the /bin/sh line, AS_INIT does it.
16884         * lib/autotest/general.m4 (AT_INIT): Likewise.
16885         * tests/base.at: Adjust the tests to use AS_INIT.
16886         * tests/tools.at (AT_DATA_FORBIDDEN): New.
16887         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
16888         Autoconf.
16890 2001-10-07  Paul Eggert  <eggert@twinsun.com>
16892         * doc/autoconf.texi (config.status Invocation):
16893         CONFIG_SHELL defaults to a shell that supports LINENO if available.
16895         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
16896         shell does not support LINENO, and if CONFIG_SHELL is unset or
16897         empty, and if we can find a shell that does support LINENO,
16898         then set CONFIG_SHELL to that shell and then re-execute
16899         ourselves with CONFIG_SHELL.
16901 2001-10-05  Paul Eggert  <eggert@twinsun.com>
16903         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
16904         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
16905         build of $(TESTSUITE).
16907 2001-10-05  Akim Demaille  <akim@epita.fr>
16909         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
16910         iff we are a bareword.
16911         Reported by Raja R Harinath.
16913 2001-10-05  Akim Demaille  <akim@epita.fr>
16915         * tests/m4sh.at (LINENO): New.
16916         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
16917         PATH_SEPARATOR before using it.
16918         Fix the absolute path case/esac pattern.
16919         Provide $0 as fallback for as_myself.
16920         Reported by Raja R Harinath.
16922 2001-10-05  Akim Demaille  <akim@epita.fr>
16924         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
16925         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
16927 2001-10-05  Akim Demaille  <akim@epita.fr>
16929         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
16930         (AS_SHELL_SANITIZE): here.  Use it.
16931         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
16932         From Paul Eggert.
16934 2001-10-04  Akim Demaille  <akim@epita.fr>
16936         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
16937         combination of Awk and sed to replace $LINENO.
16939 2001-10-02  Paul Eggert  <eggert@twinsun.com>
16941         * doc/autoconf.texi (Limitations of Builtins): You can't use
16942         "source"; it's not portable.  Remove confusing and
16943         somewhat-incorrect example involving "." and "/".
16945         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
16946         compatibility with POSIX shells.
16948 2001-10-02  Akim Demaille  <akim@epita.fr>
16950         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
16951         instead of exec'ing to preserve $0 and $@.
16953 2001-10-01  Akim Demaille  <akim@epita.fr>
16955         * tests/testsuite (AT_INIT) <at_pass_list>: New.
16956         Don't run twice the same test.
16958 2001-10-01  Akim Demaille  <akim@epita.fr>
16960         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
16961         No longer output the list of tests.
16962         <--list>: New option.
16963         <--full-help>: Remove.
16964         Complete the short/long options duality.
16965         Various small adjustments.
16967 2001-10-01  Akim Demaille  <akim@epita.fr>
16969         * doc/autoconf.texi: Use @kbd for user input.
16970         Always use `$' as shell prompt.
16972 2001-09-30  Paul Eggert  <eggert@twinsun.com>
16974         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
16975         Don't use nested parenthesization.  This patch was originally
16976         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
16977         but somehow it didn't get incorporated then.
16978         * doc/autoconf.texi (Limitations of Usual Tools):
16979         Clarify remark about sed and nested parenthesization.
16981         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
16982         Report an error if the size cannot be determined even though
16983         the type exists.
16984         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
16985         Check for `expr' arithmetic overflow, and for compilation failure,
16986         and invoke a new argument $4 if either is discovered.
16987         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
16988         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
16990 2001-09-28  Akim Demaille  <akim@epita.fr>
16992         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
16993         * m4/lispdir.m4: New.
16994         * aclocal.m4, configure.ac: Adjust.
16996 2001-09-28  Akim Demaille  <akim@epita.fr>
16998         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
16999         (AT_TESTED): this.
17000         (AT_INIT): More the wrapped section to where it will be expanded.
17001         Output `AT_tested' only when existing.
17002         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
17004 2001-09-27  Akim Demaille  <akim@epita.fr>
17006         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
17007         generates too many bug reports.
17009         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
17010         status when executing the ACTION-IF-FALSE.
17011         * tests/base.at (AC_TRY_*): Rename as...
17012         (AC_TRY_COMMAND): this.
17013         (AC_RUN_IFELSE): New.
17014         * tests/compile.at (Extensions, C keywords)
17015         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
17016         (Broken/missing compilers, AC_PROG_CPP with warnings)
17017         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
17018         * tests/c.at (Extensions, C keywords)
17019         (Broken/missing compilers, AC_PROG_CPP with warnings)
17020         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
17021         (AC_PROG_CPP requires AC_PROG_CC): here and...
17022         * tests/fortran.at (GNU Fortran 77): there.
17023         * doc/autoconf.texi (autoconf Invocation): Fix the example:
17024         AC_TRY_RUN is about compilation, not shell commands.
17025         (Test Programs): AC_TRY_RUN works as used to be advertised.
17027 2001-09-27  Akim Demaille  <akim@epita.fr>
17029         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
17030         Raja R Harinath:
17031         Be sure to detect when $LINENO always returns the same value.
17032         Look for the original script, basename($0) is certainly not
17033         enough.
17034         Pass the CLI arguments to `$as_me.lineno'.
17036 2001-09-25  Akim Demaille  <akim@epita.fr>
17038         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
17039         Be sure the close and reopen the LOG fd before and after using tee
17040         to extend the log.
17041         <at_tests_pattern>: Adjust to the new format of at_help_all.
17043 2001-09-23  Akim Demaille  <akim@epita.fr>
17045         * bin/autom4te.in (parse_args): There can be several invocations
17046         of --language now.
17048 2001-09-23  Akim Demaille  <akim@epita.fr>
17050         * doc/autoconf.texi (Top): Wrap in @ifnottex.
17052 2001-09-23  Akim Demaille  <akim@epita.fr>
17054         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
17055         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
17056         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
17057         builddir, buildpath, top_builddir, and top_buildpath.
17058         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
17059         the current directory.
17060         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
17061         variables *before* changing the current directory.
17062         Skip nonexistent dirs.
17063         * doc/autoconf.texi (Preset Output Variables): Document these
17064         variables.
17066         * lib/autotest/general.m4: Do not reset AT_victims.
17067         Don't compute at_srcdir nor at_top_srcdir.
17069         * tests/tools.at: Hence use top_srcdir.
17071         * tests/Makefile.am, tests/autoconf, tests/autoheader,
17072         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
17073         Remove.
17074         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
17075         * tests/wrapsh.in, tests/autoupdate.in: New.
17076         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
17077         * configure.ac: Build the position independent wrappers.
17079         * man/Makefile.am: Now that test wrappers are position
17080         independent, use them and drop dark envvar magic.
17082 2001-09-23  Akim Demaille  <akim@epita.fr>
17084         * doc/autoconf.texi (Common Shell Constructs): Rename as...
17085         (Programming in M4sh): this.
17086         Promote to @section.
17088 2001-09-23  Akim Demaille  <akim@epita.fr>
17090         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
17091         Pass $at_debug_args to the rerun test suite.
17092         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
17093         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
17094         From Paul Eggert.
17096 2001-09-23  Akim Demaille  <akim@epita.fr>
17098         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
17100 2001-09-23  Akim Demaille  <akim@epita.fr>
17102         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
17103         over-escaping.
17105 2001-09-23  Akim Demaille  <akim@epita.fr>
17107         * lib/Autom4te/General.pm (&debug): New.
17108         * bin/autom4te.in ($language): Move to...
17109         (parse_args): here.
17110         Handle --language in languages.
17111         * lib/autom4te.in (Automake-selections, Autoheader-selections)
17112         (Autoscan-selections): New.
17113         (Autoconf): Adjust.
17115 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
17117         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
17118         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
17119         to match current versions from CVS Automake.
17121 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
17123         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
17124         for $LINENO.
17126 2001-09-22  Akim Demaille  <akim@epita.fr>
17128         * lib/autoconf/autotest.m4: Create `package.m4'.
17129         * tests/Makefile.am (package.m4): Remove.
17131 2001-09-22  Akim Demaille  <akim@epita.fr>
17133         Rely on `$LINENO' when possible instead of `__oline__'.
17135         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
17136         `$LINENO' support replacement when not supported.
17137         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
17138         them explicitly to be sure they are not output before this section
17139         (via m4_require).  Cosmetic only.
17140         * lib/autoconf/c.m4, lib/autoconf/general.m4,
17141         * lib/autoconf/programs.m4: Replace all the occurrences of
17142         `__oline__' with `$LINENO'.
17143         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
17145 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
17147         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
17148         character (u: -> ue) in a code comment.
17149         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
17150         it works.
17152 2001-09-21  Akim Demaille  <akim@epita.fr>
17154         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
17155         Suggested by Jim Meyering.
17157 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
17159         * lib/autoconf/programs.m4: Use extensions listed in
17160         $ac_executable_extensions when looking for programs.
17162 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
17164         * lib/autoconf/general.m4: Fix a small Englisho.
17165         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
17166         setting up ac_dir_suffix and ac_top_builddir.
17167         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
17169 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
17171         * doc/autoconf.texi (File System Conventions): Clarify the use of
17172         PATH_SEPARATOR.
17173         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
17174         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
17175         be used instead of ':'.
17176         * lib/autotest/general.m4: Replace occurrences of ':' in
17177         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
17179 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
17181         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
17182         arguments.  Fixed a typo.
17184 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
17186         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
17187         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
17189 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
17191         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
17192         * bin/autoupdate.in: Ditto.
17193         * bin/autoheader.in: Reworded a few comments.
17194         * bin/autoconf.in: Reworded help text for a few options.
17195         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
17196         * bin/autoscan.in, bin/autoupdate.in: Ditto.
17198 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
17200         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
17201         already have $file).  Set output files to binary mode (helps avoid
17202         CR issues on DOSish systems).
17204 2001-09-19  Akim Demaille  <akim@epita.fr>
17206         * lib/autotest/general.m4: Englishoes.
17207         From Tim Van Holder and Alexey Mahotkin.
17209 2001-09-18  Paul Eggert  <eggert@twinsun.com>
17211         * doc/autoconf.texi (Common Shell Constructs): New node,
17212         documenting AS_DIRNAME.
17213         (Limitations of Usual Tools): Refer to it when discussing dirname.
17214         Also, update discussion of POSIX standard to reflect latest draft.
17216         * lib/autoconf/c.m4:
17217         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
17219         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
17220         Do not pass a first argument with leading '-'
17221         to expr, by parenthesizing initial integers that might be negative.
17223         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
17224         now merely checks whether it is an error to pass an argument
17225         to getpgrp.
17227         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
17228         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
17229         whether it is a (compile-time) error to pass an argument to
17230         getpgrp.  This simpler test supports the revised documentation,
17231         and is all that AC_FUNC_GETPGRP's users really need.
17233 2001-09-18  Akim Demaille  <akim@epita.fr>
17235         * doc/autoconf.texi (Limitations of Make) <$<>: New.
17237 2001-09-18  Akim Demaille  <akim@epita.fr>
17239         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
17240         `{}'.
17241         * lib/autotest/general.m4 (AT_INIT): Adjust.
17243 2001-09-18  Paul Wagland  <paul@wagland.net>
17245         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
17246         correctly.
17247         Add test for AS_BASENAME.
17248         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
17249         added test. It now correctly handles /1/2/3/, returning '3' not ''.
17250         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
17251         * tests/base.at: Fixed the expected responses. The old ones were
17252         one line out...
17253         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
17254         the documentation claims it should (and how it behaved in 2.13).
17256 2001-09-18  Akim Demaille  <akim@epita.fr>
17258         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
17259         the AC_CONFIG_COMMANDS invocation.
17260         This also solves the name clash problems.
17261         Don't set the package's ID.
17262         * lib/m4sugar/Makefile.am (version.m4): Revamp.
17263         No longer to be shipped.
17264         (version.in): Remove.
17265         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
17266         * lib/autoconf/status.m4: Adjust.
17267         Use `m4_PACKAGE_STRING'.
17268         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
17269         the only optional argument is the name of the test suite.
17270         Expect `package.m4' to define the package signature.
17271         * lib/autom4te.in (Autotest): Add `package.m4?'.
17272         * tests/Makefile.am (package.m4): New.
17273         * tests/suite.at: ifnames is a victim.
17275 2001-09-18  Akim Demaille  <akim@epita.fr>
17277         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
17278         AC_LIBSOURCE, AC_CONFIG_FILES.
17279         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
17280         program version string doesn't match the package's.
17281         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
17282         after `(cached)'.
17284 2001-09-17  Paul Eggert  <eggert@twinsun.com>
17286         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
17287         Allow expression to return any value that can fit into unsigned long
17288         (not int, as before).  Check for output errors.
17290 2001-09-17  Bruno Haible  <haible@ilog.fr>
17292         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
17293         Always include <stdio.h> and <stdlib.h>. Evaluate
17294         the expression in an extra function before these includes. Call
17295         fprintf "%d" only after ensuring the argument is of type 'int'.
17296         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
17298 2001-09-17  Paul Eggert  <eggert@twinsun.com>
17300         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
17301         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
17302         fatal errors, and AC_CHECK_LIB causes it to include libraries even
17303         when they don't exist.
17305         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
17306         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
17307         need it.
17309         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
17310         version with the version used by fileutils 4.1, except use
17311         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
17312         we don't need it.
17314         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
17316 2001-09-13  Akim Demaille  <akim@epita.fr>
17318         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
17319         _first_.
17320         Reported by Gerrit P. Haase.
17322 2001-09-13  Akim Demaille  <akim@epita.fr>
17324         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
17325         m4_defn'ing is valid.
17327 2001-09-13  Akim Demaille  <akim@epita.fr>
17329         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
17330         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
17331         Use it.
17333 2001-09-13  Akim Demaille  <akim@epita.fr>
17335         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
17336         m4_match.
17337         (m4_re_escape): New.
17338         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
17339         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
17340         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
17341         Likewise.
17342         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
17343         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
17344         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
17345         AT_tests_all for consistency.
17346         Set at_victims.
17347         (AT_VICTIMS): Similar to AT_KEYWORDS.
17348         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
17350 2001-09-13  Akim Demaille  <akim@epita.fr>
17352         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
17354 2001-09-13  Akim Demaille  <akim@epita.fr>
17356         * lib/autotest/general.m4 (AT_INIT): Create and remove
17357         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
17358         test suites can cohabit.
17360 2001-09-13  Akim Demaille  <akim@epita.fr>
17362         * tests/mktests.sh: Don't output banners for empty test files.
17364 2001-09-13  Akim Demaille  <akim@epita.fr>
17366         Test suites can be run independently of configure.
17368         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
17369         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
17370         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
17371         ECHO_N etc.
17372         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
17373         and at_c.
17374         * lib/autotest/general.m4: Use ECHO_*.
17376 2001-09-13  Akim Demaille  <akim@epita.fr>
17378         * bin/ifnames.in: Rewrite in Perl.
17379         * configure.ac: Don't look for AWK.
17380         * tests/tools.at (AWK portability): Remove.
17381         (Syntax of the shell scripts): Don't check ifnames.
17382         (AT_CHECK_PERL_SYNTAX): New.
17383         (Syntax of the Perl scripts): Check ifnames.
17384         * tests/ifnames: New.
17386 2001-09-13  Akim Demaille  <akim@epita.fr>
17388         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
17389         test group titles.
17390         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
17391         Remove all the other keywords.
17393 2001-09-10  Akim Demaille  <akim@epita.fr>
17395         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
17396         SETUP: no longer used.
17397         Support -k, --keywords.
17398         <at_help>: Be `no', `short', or `long'.
17399         <at_help_all>: New variable.
17400         (AT_KEYWORDS): New.
17401         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
17402         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
17403         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
17404         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
17405         No longer fill the HELP diversion.
17406         (AT_CLEANUP): Use them.
17407         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
17408         (m4_list_append): Remove.
17410         Spread a few keywords in the Autoconf test suite.
17412 2001-09-10  Akim Demaille  <akim@epita.fr>
17414         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
17415         PATH_SEPARATOR, let M4sh compute it.
17416         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
17417         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
17418         Move to...
17419         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
17420         Simplify when the path is not a literal.
17421         (AS_UNAME): Use it to report PATH.
17422         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
17423         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
17424         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
17425         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
17426         normalize the path, and to look for victims.
17427         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
17428         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
17430 2001-09-07  Akim Demaille  <akim@epita.fr>
17432         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
17433         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
17434         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
17435         related variables into `at_package_*'.
17436         * lib/autotest/general.m4 (AT_VICTIMS): New.
17437         (AT_INIT): Adjust for stand-alone/embedded test suites.
17438         (AS_MESSAGE_LOG_FD): Define and use it.
17439         * tests/suite.at (AT_VICTIMS): Use it.
17440         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
17441         at_version.
17443 2001-09-07  Akim Demaille  <akim@epita.fr>
17445         Move toward possibly stand-alone test suites.
17447         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
17448         in addition, it introduces useless differences in logs.
17449         (AT_INIT): Let atconfig and atlocal be both optional.
17450         Adjust PATH computation.
17451         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
17453 2001-09-07  Akim Demaille  <akim@epita.fr>
17455         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
17456         m4sugar/version.m4.
17458 2001-09-05  Akim Demaille  <akim@epita.fr>
17460         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
17461         to avoid GCC warnings.
17462         From Uwe Seimet.
17464 2001-09-05  Akim Demaille  <akim@epita.fr>
17466         * bin/autom4te.in: --language is -l, not -s.
17468 2001-09-05  Akim Demaille  <akim@epita.fr>
17470         Be ready to handle filenames as stupid as `dnl.at', for if even
17471         the maintainer is dumb enough to do that...
17473         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
17474         excellence in M4 quotation: consider `__file__' is active.
17476         And BTW, when invoking m4, pass the --include in the right order:
17477         the wrong one.
17479         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
17480         4m.
17482 2001-09-05  Akim Demaille  <akim@epita.fr>
17484         * lib/Autom4te/XFile.pm: New lib file.
17485         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
17486         * bin/autoheader.in: Use it.
17488 2001-09-05  Akim Demaille  <akim@epita.fr>
17490         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
17491         defined.
17493 2001-09-05  Akim Demaille  <akim@epita.fr>
17495         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
17496         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
17498         * bin/autoscan.in: Use `getopt' and `find_files' etc.
17499         Add -I, --include support.
17500         * doc/autoconf.texi (autoscan Invocation): Adjust.
17502 2001-09-05  Akim Demaille  <akim@epita.fr>
17504         CVS GNU M4 doesn't like `undefine(undefined)'.
17506         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
17507         New, extracted from main.
17508         Use IO::File wherever possible.
17509         (input.m4): Be constant, use -I instead of hard coding $tmp.
17510         Therefore be a quoted heredoc.
17511         Don't invoke `_au_disable', since ac was not loaded, but just
17512         `unm4.m4'.
17514 2001-08-31  Akim Demaille  <akim@epita.fr>
17516         Version 2.52d.
17518 2001-08-31  Akim Demaille  <akim@epita.fr>
17520         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
17521         previous patch.
17522         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
17524 2001-08-31  Akim Demaille  <akim@epita.fr>
17526         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
17527         serious problems handling heredocs in heredocs.
17528         Reported by Nicolas Joly.
17530 2001-08-31  Akim Demaille  <akim@epita.fr>
17532         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
17533         (Making testsuite Scripts): Update.
17535 2001-08-31  Akim Demaille  <akim@epita.fr>
17537         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
17539 2001-08-31  Akim Demaille  <akim@epita.fr>
17541         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
17542         (testsuite Scripts): There is no such thing as `atconfig.in'.
17543         And actually one diagram is missing: test suite runtime.
17545 2001-08-31  Akim Demaille  <akim@epita.fr>
17547         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
17548         inverse order.
17550 2001-08-31  Akim Demaille  <akim@epita.fr>
17552         * bin/autoupdate.in (@include): `installcheck' revealed the path
17553         to m4sugar was lacking!
17555 2001-08-31  Akim Demaille  <akim@epita.fr>
17557         * man/Makefile.am (.x.1): We really have to pass
17558         autom4te_perllibdir.
17560 2001-08-31  Akim Demaille  <akim@epita.fr>
17562         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
17563         debug scripts, in particular passing explicitly listed tests to
17564         run is stupid.
17566 2001-08-31  Akim Demaille  <akim@epita.fr>
17568         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
17569         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
17570         Use directly autom4te, not autoconf.
17571         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
17573 2001-08-31  Akim Demaille  <akim@epita.fr>
17575         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
17576         * bin/autoheader.in (%symbol): Strip arguments of macros.
17578 2001-08-31  Akim Demaille  <akim@epita.fr>
17580         * doc/autoconf.texi: Catch up -I, --include changes.
17582 2001-08-31  Akim Demaille  <akim@epita.fr>
17584         * bin/autom4te.in (&parse_args): Die on unknown languages.
17585         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
17586         need for autoconf.
17587         Promote --include over --macrodir and other obsolete options.
17589 2001-08-31  Akim Demaille  <akim@epita.fr>
17591         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
17592         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
17593         * bin/autom4te.in ($autoconf): Pass --force.
17594         `print $out' doesn't print `$_' but `$out'.
17595         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
17596         (autoheader): Pass --force since the test suite goes too fast for
17597         the time stamps.
17598         Adjust to the new autoheader messages.
17600 2001-08-31  Akim Demaille  <akim@epita.fr>
17602         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
17603         Check the completeness of the #template.
17604         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
17605         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
17606         invocation.
17608 2001-08-31  Akim Demaille  <akim@epita.fr>
17610         * lib/Autom4te/General.pm (&find_file, &update_file): New.
17611         * bin/autoupdate.in, bin/autoheader.in: Adjust.
17612         Drop AC_MACRODIR dead for real.
17613         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
17614         `autoheader: `config.hin' is created'.
17615         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
17617 2001-08-31  Akim Demaille  <akim@epita.fr>
17619         * bin/autoheader.in: Rewrite in Perl.
17620         * tests/autoheader: Adjust.
17622 2001-08-31  Akim Demaille  <akim@epita.fr>
17624         * bin/autoconf.in (--include, -I): New option.
17625         Map --localdir, --autoconf-dir onto it.
17626         Forward autom4te's options instead of interpreting them.
17627         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
17628         There is no such envvar since the inception of autom4te.cfg.
17629         * bin/autom4te.in (&parse_args): Uniquify `@include'.
17630         * bin/autoupdate.in: Adjust, and perform more control.
17631         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
17632         * tests/autoconf: Dittowise.
17634 2001-08-31  Akim Demaille  <akim@epita.fr>
17636         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
17637         * bin/autom4te.in (&find_file): Support `FILE?' standing for
17638         optionally `FILE'.
17639         Use -e, not -f, since /dev/null for instance is OK.
17640         (&parse_args): Adjust.
17641         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
17643 2001-08-31  Akim Demaille  <akim@epita.fr>
17645         * configure.ac: Also find tested executables in bin.
17646         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
17647         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
17648         installed peer executables, only PATH is allowed to resolve it.
17649         Pass `autoconf_dir' via options, not via invisible envvars.
17650         * lib/Autom4te/General.pm (&find_peer): Remove.
17651         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
17652         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
17653         * man/Makefile.am: Let help2man rely on PATH instead of trying to
17654         find the executables for it.
17655         * tests/Makefile.am: Major cleanup.  Too lazy to document...
17656         * tests/atlocal.in: Remove all the obscure envvar manipulations.
17657         We only need PERL.
17658         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
17659         indeed related to running the test suite, while passing
17660         --autoconf-dir and others is related to running non installed
17661         Autoconf executables.  So don't do that, leave it to...
17662         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
17663         * tests/autoscan: New.
17664         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
17665         refer to library files: rely on --language.
17667 2001-08-29  Akim Demaille  <akim@epita.fr>
17669         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
17670         s/--set/--language/.
17672 2001-08-29  Akim Demaille  <akim@epita.fr>
17674         * doc/autoconf.texi: Strip the @nodes.
17675         Suggested by Paul Eggert.
17676         (Initializing configure): Typo.
17678 2001-08-29  Akim Demaille  <akim@epita.fr>
17680         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
17681         Suggested by Paul Eggert.
17683 2001-08-29  Akim Demaille  <akim@epita.fr>
17685         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
17686         download in a tmp dir.
17688 2001-08-29  Akim Demaille  <akim@epita.fr>
17690         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
17691         case insensitive OSes out there :(
17692         From Tim Van Holder.
17694 2001-08-29  Akim Demaille  <akim@epita.fr>
17696         * lib/autom4te.in: New.
17697         * lib/Makefile.am (edit, autom4te.cfg): New.
17698         * bin/autom4te.in (BEGIN): Simplify.
17699         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
17700         (&load_configuration): New.  Use it.
17701         (&parse_args): Support --mode, --set, and --melt.
17702         * bin/autoconf.in: Simplify and adjust.
17703         * tests/Makefile.am (AUTOMAKE): Use --set.
17704         * tests/atlocal.in: Adjust.
17705         * BUGS: distcheck and check are weak.
17707 2001-08-29  Akim Demaille  <akim@epita.fr>
17709         * lib/autotest/general.m4: Use
17710                 foo=`(command) 2>/dev/null`
17711         not
17712                 foo=`command` 2>/dev/null
17713         (at-devnull): Rename as...
17714         (AT-devnull): this.
17715         (--clean): Remove AT-* files too.
17716         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
17717         Reported by Nicolas Joly.
17719 2001-08-28  Akim Demaille  <akim@epita.fr>
17721         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
17722         quotes inside single quotes.
17723         Reported by Nicolas Joly.
17725 2001-08-28  Kevin Ryde  <user42@zip.com.au>
17727         * doc/autoconf.texi (Function Portability): Mention C right shifts.
17729 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
17731         * lib/autotest/general.m4: Reword some messages.
17732         (AT_INIT): Check for the `times' builtin before using it.
17733         Support test ranges as arguments to the testsuite.
17734         Have -e imply -d as the help text suggested.
17736 2001-08-27  Akim Demaille  <akim@epita.fr>
17738         * Makefile.maint: Formatting changes.
17739         (do-po-update, po-update, cvs-update, update): New targets.
17740         (AMTAR): Remove.
17742 2001-08-27  Akim Demaille  <akim@epita.fr>
17744         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
17745         <at_cmd_line>: New.
17746         Pass it to debug-*.sh scripts.
17747         <AUTOTEST_PATH>: May contain absolute dir names.
17749 2001-08-27  Akim Demaille  <akim@epita.fr>
17751         * lib/autotest/general.m4 (AT_INIT): Log the command line.
17752         Support `VAR=VAL' as arguments.
17753         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
17754         may be set via the command line.
17756 2001-08-27  Akim Demaille  <akim@epita.fr>
17758         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
17759         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
17760         first the build dirs, then the src dirs.
17761         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
17763 2001-08-27  Akim Demaille  <akim@epita.fr>
17765         * lib/autotest/general.m4 (AT_INIT): Output the definition of
17766         at_data_files earlier.
17767         (--clean, -c): New option.
17768         * tests/Makefile.am: Use this option.
17770 2001-08-27  Akim Demaille  <akim@epita.fr>
17772         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
17773         `ac_top_builddir' to mimic Automake's vocabulary, which much more
17774         readable.
17775         Adjust callers.
17776         * doc/autoconf.texi (Configuration Actions): Document the vars
17777         available in commands.
17778         Emphasize the risks of collisions in init-cmds.
17780 2001-08-27  Akim Demaille  <akim@epita.fr>
17782         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
17783         (Initializing configure): this new node.
17785 2001-08-27  Akim Demaille  <akim@epita.fr>
17787         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
17789 2001-08-27  Akim Demaille  <akim@epita.fr>
17791         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
17792         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
17793         New file.
17794         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
17796 2001-08-27  Akim Demaille  <akim@epita.fr>
17798         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
17799         to...
17800         * lib/autoconf/autoheader.m4: this new file.
17801         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
17802         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
17803         Move to...
17804         * lib/autoconf/autoupdate.m4: this new file.
17806 2001-08-27  Akim Demaille  <akim@epita.fr>
17808         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
17809         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
17810         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
17811         -> ac_dir).
17812         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
17813         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
17815 2001-08-27  Akim Demaille  <akim@epita.fr>
17817         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
17818         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
17819         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
17820         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
17821         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
17822         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
17823         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
17824         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
17825         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
17826         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
17827         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
17828         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
17829         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
17830         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
17831         (_AC_OUTPUT_SUBDIRS): Move to...
17832         * lib/autoconf/status.m4: this new file.
17833         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
17834         * tests/Makefile.am, tests/suite.at: Adjust.
17836 2001-08-27  Akim Demaille  <akim@epita.fr>
17838         Automake 1.5.
17840         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
17841         (AMTAR): Help automake define it.
17842         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
17843         needed, 1.5 can have a macro and a target with the same name.
17844         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
17845         * m4/strip.m4: New.
17846         * m4/init.m4, m4/sanity.m4: Update.
17847         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
17848         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
17849         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
17850         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
17852 2001-08-27  Akim Demaille  <akim@epita.fr>
17854         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
17856         * lib/autoconf/version.in: Remove.
17857         * lib/m4sugar/version.in: New.
17858         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
17859         Adjust callers.
17860         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
17861         the name of the directory they're in, instead of the filename,
17862         since version.m4 is now in m4sugar, but m4_acversion must not be
17863         classified as an Autoconf macro.
17864         ($input_m4): Don't qualify the path to m4sugar.
17865         Rather, pass autoconf_dir to m4.
17866         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
17867         * tests/suite.at: Require 2.52c.
17869 2001-08-27  Akim Demaille  <akim@epita.fr>
17871         testsuite.log should include config.log.
17873         * lib/autotest/autotest.m4: New.
17874         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
17875         * tests/suite.at : Adjust.
17876         (AT_INIT): Log config.log.
17877         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
17878         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
17879         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
17880         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
17881         of config.log on traps.
17882         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
17883         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
17884         for config.status'.
17885         Open the log as soon as possible.
17886         Use the same log introduction as configure's.
17888 2001-08-22  Paul Eggert  <eggert@twinsun.com>
17890         * doc/autoconf.texi (Indices): New node.
17891         Move indices out of the top level menu and into this submenu.
17893 2001-08-22  Akim Demaille  <akim@epita.fr>
17895         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
17896         AC_TRY_COMMAND.
17897         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
17899 2001-08-22  Akim Demaille  <akim@epita.fr>
17901         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
17902         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
17903         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
17904         * lib/autoconf/programs.m4: here.
17905         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
17906         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
17907         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
17908         * lib/autoconf/programs.m4: here.
17909         (_AC_DECL_YYTEXT): Rename as...
17910         (_AC_PROG_LEX_YYTEXT_DECL): this.
17911         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
17912         * tests/Makefile.am, tests/suite.am: Adjust.
17914 2001-08-22  Akim Demaille  <akim@epita.fr>
17916         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
17917         Move to...
17918         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
17919         here.
17920         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
17921         * lib/autoconf/functions.m4: here.
17922         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
17923         (AH_CHECK_LIB): Move to...
17924         * lib/autoconf/libs: this new file.
17925         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
17926         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
17927         * lib/autoconf/libs.m4: here.
17928         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
17930 2001-08-22  Akim Demaille  <akim@epita.fr>
17932         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
17933         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
17934         (AC_SITE_LOAD): Better logging of config.site.
17936 2001-08-20  Akim Demaille  <akim@epita.fr>
17938         * configure.ac (AT_CONFIG): Fix the path.
17939         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
17940         can be used.
17942 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
17944         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
17945         program with AC_LANG_PROGRAM before feeding it to
17946         AC_COMPILE_IFELSE.  Cleanup grep usage.
17948 2001-08-20  Akim Demaille  <akim@epita.fr>
17950         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
17951         * NEWS, README, README-alpha, TODO, tests/README: This package is
17952         `Autoconf', not `autoconf' (the executable).
17954 2001-08-20  Akim Demaille  <akim@epita.fr>
17956         Info readers seem to need `Index' in the index node title :(
17958         * doc/autoconf.texi: Reverse the 2001-08-15 change which
17959         simplified index node names.
17961 2001-08-20  Akim Demaille  <akim@epita.fr>
17963         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
17964         arguments are not literals.
17965         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
17966         Specify the output variables, and macros defined.
17968 2001-08-20  Akim Demaille  <akim@epita.fr>
17970         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
17971         (Examining Syntax) <AC_TRY_COMPILE>
17972         (Examining Libraries) <AC_TRY_LINK>
17973         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
17974         their arguments.
17975         Reported by Werner Lemberg.
17977 2001-08-20  Akim Demaille  <akim@epita.fr>
17979         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
17980         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
17981         Load atlocal late enough to dump it in the log.
17982         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
17984 2001-08-20  Akim Demaille  <akim@epita.fr>
17986         * tests/torture.at (Configuring subdirectories): New test.
17987         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
17988         looking for.
17989         * m4/atconfig.m4: Be sure the let $[0] be expandable.
17990         (top_srcdir): Fix its computation.
17992 2001-08-20  Akim Demaille  <akim@epita.fr>
17994         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
17995         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
17996         test suite lives.
17997         Create `atconfig' automagically.
17998         Configure atlocal.in if present.
17999         * tests/atconfig.in: Remove.
18000         * tests/atlocal.in: New.
18001         * tests/Makefile.am: Adjust.
18003 2001-08-20  Akim Demaille  <akim@epita.fr>
18005         Huh!?!?!  There are still some user EOF tags used, which prevents
18006         their use in AC_CONFIG_COMMANDS for instance...
18008         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
18009         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
18010         `_CSEOF', or `_ATEOF', as appropriate.
18011         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
18012         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
18014 2001-08-20  Akim Demaille  <akim@epita.fr>
18016         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
18017         * tests/semantics.at, tests/tools.at, tests/torture.at:
18018         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
18020 2001-08-20  Akim Demaille  <akim@epita.fr>
18022         Autotest invokes M4sh's initialization.
18024         * lib/autotest/general.m4: Adjust the diversion names.
18025         (AT_INIT): Run AS_INIT.
18026         Use the BINSH diversion to invoke /bin/sh.
18027         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
18028         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
18030 2001-08-20  Akim Demaille  <akim@epita.fr>
18032         Let M4sh have its own diversions.
18034         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
18035         (_m4_divert(NOTICE)): Rename as...
18036         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
18037         (_m4_divert(HEADER-COMMENT)): these.
18038         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
18039         (_m4_divert(NOTICE)): New, for Libtool.
18040         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
18041         long ago with `_m4_divert(GROW)'.
18042         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
18044 2001-08-20  Akim Demaille  <akim@epita.fr>
18046         * tests/base.at, tests/compile.at, tests/foreign.at,
18047         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
18048         * tests/semantics.at, tests/suite.at, tests/tools.at,
18049         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
18051 2001-08-20  Akim Demaille  <akim@epita.fr>
18053         * bin/autom4te.in (handle_output): Handle @__@.
18055 2001-08-20  Akim Demaille  <akim@epita.fr>
18057         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
18058         * lib/autotest/general.m4: Adjust the license.
18060 2001-08-17  Paul Eggert  <eggert@twinsun.com>
18062         * doc/autoconf.texi (Function Portability): Mention snprintf,
18063         following up on a suggestion by Kevin Ryde.
18065 2001-08-17  Akim Demaille  <akim@epita.fr>
18067         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
18068         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
18070 2001-08-17  Akim Demaille  <akim@epita.fr>
18072         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
18073         `$0.log' as for projects where testsuite is in src, we'd have
18074         testsuite.log created in src.
18076 2001-08-17  Akim Demaille  <akim@epita.fr>
18078         * bin/autom4te.in (&parse_args): Recognize --normalize.
18080 2001-08-17  Akim Demaille  <akim@epita.fr>
18082         Start implementing the AC_CHECK_HEADER transition scheme.
18084         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
18085         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
18086         (AC_CHECK_HEADER): Use them.
18088 2001-08-17  Akim Demaille  <akim@epita.fr>
18090         * doc/autoconf.texi: Work around Texinfo buglets.
18091         (Transformation Rules): One example is enough, users are expected
18092         to have their brains on. And BTW, use DESTDIR.
18093         (dvar): New macro.  Use it.
18095 2001-08-17  Akim Demaille  <akim@epita.fr>
18097         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
18098         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
18099         looking for ChangeLogs.
18101 2001-08-17  Akim Demaille  <akim@epita.fr>
18103         * bin/autom4te.in: --normalize is a new option.
18104         * bin/autoconf.in: Use it.
18106 2001-08-17  Akim Demaille  <akim@epita.fr>
18108         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
18109         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
18111 2001-08-16  Paul Eggert  <eggert@twinsun.com>
18113         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
18114         start, not at end.
18116 2001-08-15  Akim Demaille  <akim@epita.fr>
18118         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
18119         Use it.
18121 2001-08-15  Akim Demaille  <akim@epita.fr>
18123         * doc/autoconf.texi (pr): New index.
18124         (prindex, findex): Use, merge, and output them.
18125         (Environment Variable Index, Output Variable Index)
18126         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
18127         (Autotest Macro Index): Rename as...
18128         (Environment Variables, Output Variables,Preprocessor Symbols)
18129         (Autoconf Macros, M4 Macros, Autotest Macros): these.
18130         * doc/install.texi: Use @command.
18131         (Environment Variables): Rename as...
18132         (Defining Variables): this.
18134 2001-08-15  Akim Demaille  <akim@epita.fr>
18136         * doc/autoconf.texi (Function Portability): sprintf's return
18137         value.
18138         From Kevin Ryde.
18140 2001-08-15  Akim Demaille  <akim@epita.fr>
18142         * Makefile.maint (CVS): New.
18143         (local-check): Run changelog-check. last.
18144         (alpha): Don't depend upon local-check, since...
18145         (cvs-dist): depends upon it.
18147 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
18149         * tests/Makefile.am: Use a clean-local rule to remove
18150         autom4te.cache (it's a directory, not a file.
18151         * Makefile.am: Ditto (but maintainer-clean-local).
18153 2001-08-15  Akim Demaille  <akim@epita.fr>
18155         * bin/autom4te.in (@m4_warning): New.
18156         (&handle_m4): Use it.
18157         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
18158         warnings are issued at each run.
18159         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
18160         is in the src tree.
18162 2001-08-15  Akim Demaille  <akim@epita.fr>
18164         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
18165         don't waste time running `autoupdate --version' works.
18166         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
18168 2001-08-13  Akim Demaille  <akim@epita.fr>
18170         * doc/autoconf.texi (ma): Rename this index as...
18171         (ac): this.
18173 2001-08-13  Akim Demaille  <akim@epita.fr>
18175         * Makefile.am: Remove dead code and dead comments.
18176         (pdf, html): New targets.
18177         * doc/autoconf.texi (Using Autotest): New chapter.
18178         * doc/Makefile.am (pdf): New targets.
18179         (CLEANFILES): Adjust.
18181 2001-08-13  Akim Demaille  <akim@epita.fr>
18183         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
18184         duration of the test suite.
18186 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
18188         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
18189         endianness for comparison instead of relying on AT_CHECK_ENV.
18191 2001-08-11  Paul Eggert  <eggert@twinsun.com>
18193         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
18194         to the INSTALL file.
18196 2001-08-11  Paul Eggert  <eggert@twinsun.com>
18198         * NEWS: The autoconf manual now is distributed under the terms
18199         of the GNU Free Documentation License.
18201         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
18202         Add an appendix "Copying This Manual" for the FDL.
18204         * doc/fdl.texi: New file, from
18205         <http://www.gnu.org/licenses/fdl.texi>.
18207         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
18209 2001-08-10  Paul Eggert  <eggert@twinsun.com>
18211         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
18212         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
18213         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
18214         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
18215         m4/sanity.m4, tests/README, tests/aclocal.m4,
18216         tests/atspecific.m4, tests/base.at, tests/compile.at,
18217         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
18218         tests/semantics.at, tests/suite.at, tests/tools.at,
18219         tests/torture.at: Add copyright notice.
18221         * tests/mktests.sh: Update year in copyright notice.
18223 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
18225         * tests/semantics.at (AC_C_BIGENDIAN): New test.
18227 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
18229         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
18230         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
18231         * doc/autoconf.texi (C Compiler Characteristics): Update
18232         documentation for AC_C_BIGENDIAN.
18234 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
18236         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
18237         magic values from an object file when cross-compiling.
18238         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
18240 2001-08-10  Akim Demaille  <akim@epita.fr>
18242         * bin/autom4te.in (&handle_output): Don't use `grep' with side
18243         effects.
18244         Suggested by Russ Allbery.
18246 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
18248         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
18249         current $prefix to the sub-configures.
18251 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
18253         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
18254         extension (needed on BeOS).  Reported by Guido van Rossum.
18256 2001-08-09  Akim Demaille  <akim@epita.fr>
18258         * bin/autom4te.in ($icache): Load it only if older than autom4te.
18260 2001-08-07  Akim Demaille  <akim@epita.fr>
18262         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
18263         removed.
18264         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
18265         No need to remove the files before and after the each test, before
18266         each test and at the end of the suite is enough.
18267         Display only the children `times', not the shell's.
18268         If the test failed or was skipped, at-times is not available.
18270 2001-08-07  Akim Demaille  <akim@epita.fr>
18272         Always produce testsuite.log, including when there are no
18273         failures.  This helps getting information on skipped tests, and
18274         duration of the tests.  Err, implement the latter btw.
18276         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
18277         Dump information on the first run of each test.
18278         (AT_CLEANUP): Create `at-times' containing the duration of the
18279         test group.
18281 2001-08-07  Akim Demaille  <akim@epita.fr>
18283         The use of `dumpstat' revealed that `len' was used although it
18284         should not.  m4_text_wrap was using it, but in the Autoconf world
18285         where it is legal.  Hence (i) test M4sh in its own world, not
18286         Autoconf's, and (ii), ahem, fix the bug :)
18288         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
18289         does not like `' instead of [].
18290         (AT_INIT): Forbid `^_?AT_'.
18291         And don't output such tokens.
18292         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
18293         `script.as', and `autom4te.cache'.
18294         Remove `empty' and `macro' which are no longer used.
18295         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
18296         * tests/m4sugar.at: Use it.
18297         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
18299 2001-08-07  Akim Demaille  <akim@epita.fr>
18301         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
18303 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
18305         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
18307 2001-08-04  Akim Demaille  <akim@epita.fr>
18309         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
18310         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
18311         AC_TRY_LINK.
18312         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
18313         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
18314         (AC_F77_MAIN): Likewise.
18316 2001-08-04  Akim Demaille  <akim@epita.fr>
18318         Don't rely on M4sugar outputting the patterns in files, since we
18319         might process the output _without_ running m4, hence without these
18320         files.
18322         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
18323         * bin/autom4te.in (@Request::includes): Remove, unused.
18324         (@Request::source): Rename as...
18325         (@Request::input): this.
18326         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
18327         (&handle_output): Fetch the patterns from the traces.
18328         `$forbidden' and `$allowed' are constant: use m//o.
18329         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
18330         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
18332 2001-08-04  Akim Demaille  <akim@epita.fr>
18334         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
18335         autoconf', i.e., in addition to caching traces, cache the output.
18337         * bin/autom4te.in (Request::cache): Rename as...
18338         (Request::id): this.
18339         ($cache, $icache, $tcache, $ocache): New.
18340         (&handle_m4): Save M4 output in the cache instead of $tmp.
18341         (&handle_output): Adjust.
18342         (&up_to_date_p): Check that the output cache is up to date too.
18343         (top level): Run `&handle_m4' iff force or the cache is invalid.
18344         Run `&handle_output' if the output cache is more recent.
18346 2001-08-04  Akim Demaille  <akim@epita.fr>
18348         * bin/autom4te.in ($force): New.
18349         (&parse_args, &print_usage): -f, --force is a new option.
18350         (&handle_output): CPP directives might have spaces after `#'.
18351         (&parse_args): The first file only can be frozen.
18353 2001-08-04  Akim Demaille  <akim@epita.fr>
18355         Don't let autom4te compute the `include' traces several times:
18356         first check that the trace cache file is up to date, and then
18357         compare its timestamp with that of the output.
18359         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
18360         the preamble.  Don't require 5.005 as Autom4te::General does it,
18361         and better yet (use `use', not `require'!).
18362         * lib/Autom4te/Struct.pm: Rename the last occurrences of
18363         Class::Struct as Autom4te::Struct.
18364         * lib/Autom4te/General.pm (File::stat): Use it.
18365         (&mtime): New, export it.
18366         * bin/autom4te.in: Use it.
18367         Declare `$req' is invalid if it is outdated.
18368         Don't declare it valid before saving it if something went wrong.
18370 2001-08-04  Akim Demaille  <akim@epita.fr>
18372         Autom4te shall not encode Autoconf data, and preselecting traces
18373         must be proposed to the users.
18375         * bin/autom4te.in (@required_trace): Remove.
18376         (@preselect): New.
18377         (&parse_args, &print_usage): -p, --preselect is a new option.
18378         (&up_to_date_p): Adjust.
18379         * bin/autoconf.in: Preselect some Autoconf macros.
18381 2001-08-04  Akim Demaille  <akim@epita.fr>
18383         * tests/tools.at (autoconf --trace: user macros): Check traces on
18384         macros invoked without arguments, and macros invoked with multiple
18385         lines arguments.
18387 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
18389         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
18390         arguments.
18392 2001-08-03  Akim Demaille  <akim@epita.fr>
18394         * bin/autoconf.in ($@): Work around the usual sh bug.
18395         From Nicolas Joly.
18397 2001-08-03  Akim Demaille  <akim@epita.fr>
18399         Clean up the handling of the M4 builtins tracing exception.
18401         * bin/autom4te.in (Request::request): Don't complete M4 builtins
18402         trace requests.
18403         (@m4_builtins): Rename as...
18404         (@m4_builtin): this.
18405         (%m4_builtin_alternate_name): New.
18406         (&parse_args): Complete the trace requests with alternate names.
18407         (&handle_traces): Hence no longer do it here.
18408         (&trace_requests): Remove, unused.
18410 2001-08-03  Akim Demaille  <akim@epita.fr>
18412         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
18413         m4_if, and m4_wrap.
18415 2001-08-03  Akim Demaille  <akim@epita.fr>
18417         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
18418         (m4_divert_pop): Dump the whole diversion stack when a diversion
18419         mismatch happens.
18420         * bin/autom4te.in (&handle_output): Remember of the first
18421         occurrence of a possibly undefined macro, not the last.
18422         Complain about the possibly undefined macros in the same order as
18423         the appear in the output.
18424         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
18425         * tests/tools.at (autoconf: forbidden tokens, basic)
18426         (autoconf: forbidden tokens, exceptions): No longer sort
18427         autoconf's stderr, as it is now deterministic.
18428         Check that `dnl' is caught.
18430 2001-08-01  Akim Demaille  <akim@epita.fr>
18432         * configure.ac: Bump to 2.52c.
18434 2001-08-01  Akim Demaille  <akim@epita.fr>
18436         Version 2.52b.
18438         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
18440 2001-08-01  Akim Demaille  <akim@epita.fr>
18442         Version 2.52a.
18444 2001-08-01  Akim Demaille  <akim@epita.fr>
18446         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
18447         `die'.
18448         (&END): New.
18449         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
18450         `END', as `Autom4te::General::END' will be triggered.
18451         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
18452         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
18453         system to run `mv', `rm', and `cmp'.
18455 2001-08-01  Akim Demaille  <akim@epita.fr>
18457         * lib/Autom4te/General.pm (&unique): New.
18458         * bin/autoscan.in (&output): Use it to issue trace requests once.
18460 2001-08-01  Akim Demaille  <akim@epita.fr>
18462         * lib/Autom4te/General.pm: New.
18463         * bin/autom4te.in (Autom4te::General): Use it.
18464         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
18465         (&find_configure_ac, &find_slave): Remove.
18466         * bin/autoscan.in: Likewise.
18467         * bin/autoupdate.in: Likewise.
18469 2001-08-01  Akim Demaille  <akim@epita.fr>
18471         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
18472         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
18473         * bin: here, new directory.
18474         * lib/Autoconf: Rename as...
18475         * lib/Autom4te: this, to please case insensitive junkie OSes.
18477 2001-08-01  Akim Demaille  <akim@epita.fr>
18479         * autom4te.in ($m4): Handle the --nesting-limit.
18480         * autoconf.in (M4): Remove.
18482 2001-08-01  Akim Demaille  <akim@epita.fr>
18484         * autoconf.in ($AWK): Remove, no longer used.
18485         * test/tools.at: Use AT_CHECK_AUTOCONF.
18486         (AWK portability): Remove, for autoconf no longer uses AWK.
18487         (Syntax of the Perl scripts): New.
18488         * configure.ac: autoconf no longer needs an AWK with a good
18489         regexp engine.
18490         Use a static test on AC_PACKAGE_VERSION.
18491         * autom4te.in (&up_to_date_p): Output depends on the arguments.
18492         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
18493         * tests/atconfig.in (PERL): New.
18495 2001-08-01  Akim Demaille  <akim@epita.fr>
18497         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
18498         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
18499         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
18500         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
18501         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
18502         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
18503         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
18504         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
18505         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
18506         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
18507         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
18508         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
18509         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
18510         * lib/autoconf/c.m4: here, new file.
18512         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
18513         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
18514         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
18515         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
18516         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
18517         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
18518         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
18519         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
18520         (AC_F77_FUNC): Move to...
18521         * lib/autoconf/fortran.m4: here, new file.
18523 2001-08-01  Akim Demaille  <akim@epita.fr>
18525         * acfunctions.m4: Rename as...
18526         * lib/autoconf/functions.m4: this.
18527         * acgeneral.m4: Rename as...
18528         * lib/autoconf/general.m4: this.
18529         * acheaders.m4: Rename as...
18530         * lib/autoconf/headers.m4: this.
18531         * aclang.m4: Rename as...
18532         * lib/autoconf/lang.m4: this.
18533         * acoldnames.m4: Rename as...
18534         * lib/autoconf/oldnames.m4: this.
18535         * acspecific.m4: Rename as...
18536         * lib/autoconf/specific.m4: this.
18537         * actypes.m4: Rename as...
18538         * lib/autoconf/types.m4: this.
18539         * autoconf.m4: Rename as...
18540         * lib/autoconf/autoconf.m4: this.
18542         * m4sugar.m4: Rename as...
18543         * lib/m4sugar/m4sugar.m4: this.
18544         * m4sh.m4: Rename as...
18545         * lib/m4sugar/m4sh.m4: this.
18547         * tests/atgeneral.m4: Rename as...
18548         * lib/autotest/general.m4: this.
18550         * acfunctions: Rename as...
18551         * lib/autoscan/functions: this.
18552         * acheaders: Rename as...
18553         * lib/autoscan/headers: this.
18554         * acidentifiers: Rename as...
18555         * lib/autoscan/identifiers: this.
18556         * aclibraries: Rename as...
18557         * lib/autoscan/libraries: this.
18558         * acmakevars: Rename as...
18559         * lib/autoscan/makevars: this.
18560         * acprograms: Rename as...
18561         * lib/autoscan/programs: this.
18563 2001-08-01  Akim Demaille  <akim@epita.fr>
18565         * doc/autoconf.texi: Moving/deleting open files is not portable.
18566         Portability issues for `.' (source), and more information about sed.
18568 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
18570         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
18571         which has a special meaning and is not a reference to libibmil.a.
18572         Reported by Matteo Frigo.
18574 2001-07-25  Pavel Roskin  <proski@gnu.org>
18576         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
18577         output.
18579 2001-07-25  Akim Demaille  <akim@epita.fr>
18581         * autoconf.in: Try to define the variables before using them.
18582         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
18583         instead of `$perllibdir'.
18584         * tests/atconfig.in ($autom4te_perllibdir): Export it.
18586 2001-07-25  Akim Demaille  <akim@epita.fr>
18588         * autoconf.in (ac_LF_and_DOT): Remove, unused.
18590 2001-07-24  Akim Demaille  <akim@epita.fr>
18592         Let autoconf use autom4te for traces.
18594         * autoconf.in ($task, task trace): Remove, merely pass --trace to
18595         autom4te.
18596         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
18597         (Because I found no way for autom4te to accept `-').
18598         * autom4te.in (&Request::request): Beware of M4 builtins.
18599         (END): Don't try to remove the content of an empty dir.
18600         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
18601         (&handle_output): Set a default value to `$forbidden'.
18602         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
18603         ($autoconf): Pass --debug and --verbose.
18604         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
18605         cache.
18607 2001-07-24  Akim Demaille  <akim@epita.fr>
18609         Let autoconf use autom4te to create configure.
18611         * autoconf.in ($automate): New var.
18612         (task script): Use autom4te.
18613         * autom4te.in (File::Spec): Use it.
18614         (&find_file): New.
18615         (&parse_args): --warning is -W, not -w.
18616         Find the top level files.
18617         (&handle_m4): Pass the warnings flags.
18618         Don't report verbosely m4's failures, unless requested.
18619         (&handle_output): Don't complain for forbidden tokens in comments.
18620         Be sure to report all the forbidden tokens within a single line.
18621         (&trace_format_to_m4): Preserve `$_'.
18622         (&handle_traces): Sort the output macros.
18623         (&up_to_date_p): Find the files before trying to get its time stamp.
18625 2001-07-24  Akim Demaille  <akim@epita.fr>
18627         * Makefile.am: Ship, build and install Autom4te.
18628         (SUBDIRS): Add lib.
18629         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
18630         * configure.in: Require Perl.
18631         * man/autom4te.in: New.
18633 2001-07-19  Paul Eggert  <eggert@twinsun.com>
18635         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
18636         example, rather than (exit 1); exit (which isn't portable).
18638 2001-07-18  Akim Demaille  <akim@epita.fr>
18640         Version 2.52.
18642 2001-07-18  Akim Demaille  <akim@epita.fr>
18644         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
18645         was run, while they are needed also when it is expanded.
18646         Reported by Nicolas Joly.
18648         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
18649         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
18650         AC_F77_DUMMY_MAIN being expanded.
18652 2001-07-18  Akim Demaille  <akim@epita.fr>
18654         * configure.in: Bump to 2.51a.
18656 2001-07-17  Akim Demaille  <akim@epita.fr>
18658         Version 2.51.
18660 2001-07-17  Akim Demaille  <akim@epita.fr>
18662         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
18663         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
18665 2001-07-17  Akim Demaille  <akim@epita.fr>
18667         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
18668         used.  Well, then use the prototypes when you can, and runtime as
18669         a last resort.
18670         Reported by Artur Frysiak
18672         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
18673         (AC_FUNC_GETPGRP): Use it.
18674         First try to compile with 0-ary or 1-ary calls.
18676 2001-07-17  Akim Demaille  <akim@epita.fr>
18678         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
18679         replacement type.
18680         From Paul Eggert.
18682 2001-07-17  Akim Demaille  <akim@epita.fr>
18684         * Makefile.maint: Sync. with cppi 1.10.
18686 2001-07-17  Akim Demaille  <akim@epita.fr>
18688         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
18689         AC_F77_DUMMY_MAIN has been run.
18690         From Pavel Roskin and Steven G. Johnson.
18692 2001-07-17  Akim Demaille  <akim@epita.fr>
18694         * configure.in: Rename as...
18695         * configure.ac: this.
18697 2001-07-17  Akim Demaille  <akim@epita.fr>
18699         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
18700         rules.
18701         From Marc Espie.
18702         * Makefile.maint (release-archive-dir): Rename as...
18703         (release_archive_dir): this, so that it can be specialized in
18704         Makefile.
18706 2001-07-14  Akim Demaille  <akim@epita.fr>
18708         * configure.in: Bump to 2.50d.
18710 2001-07-14  Akim Demaille  <akim@epita.fr>
18712         Version 2.50c.
18713         * Makefile.maint (alpha): Typo.
18715 2001-07-14  Akim Demaille  <akim@epita.fr>
18717         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
18719 2001-07-14  Akim Demaille  <akim@epita.fr>
18721         * config/config.guess, config/config.sub, config/texinfo.tex
18722         * doc/standards.texi, doc/make-stds.texi: Update.
18724 2001-07-14  Akim Demaille  <akim@epita.fr>
18726         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
18728 2001-07-14  Akim Demaille  <akim@epita.fr>
18730         * Makefile.maint (maintainer-check): Rename as...
18731         (maintainer-distcheck): this.
18732         (changelog-check, static-check): New.
18733         Use them.
18735 2001-07-14  Kevin Ryde  <user42@zip.com.au>
18737         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
18738         for CXX is g++, not gcc.
18740 2001-07-14  Akim Demaille  <akim@epita.fr>
18742         * doc/autoconf.texi (Files): New subsection.
18744 2001-07-14  Akim Demaille  <akim@epita.fr>
18746         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
18747         of...
18748         (Generic Compiler Characteristics): this.
18749         (C++ Compiler): New subsection.
18751 2001-07-14  Akim Demaille  <akim@epita.fr>
18753         * autoscan.in: Use IO::File.
18754         Adjust all the routines to use it.
18755         ($log): New file (autoscan.log).
18756         (output): Dump detailed logs into $log, and a shortened version to
18757         stderr.
18758         (&scan_makefile): Refine the regexp catching tokens in the code.
18759         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
18760         and the `configure.ac' checking feature.
18762 2001-07-12  Akim Demaille  <akim@epita.fr>
18764         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
18765         Reported by Michael Elizabeth Chastain.
18767         * autoconf.in: Refuse such AWK.
18768         * configure.in: Likewise.
18769         * Makefile.am (acversion.m4): Do not use move-if-change this file
18770         has dependencies.
18771         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
18773 2001-07-10  Jens Petersen  <petersen@redhat.com>
18775         * autoscan.in (&scan_makefile): Improve programs regexp to parse
18776         things like "g++", "file.c" and "some-conf" as tokens.
18777         (&scan_file): Match C++ files extensions.
18778         If the filename extension is C++ then ask for c++.
18780 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
18782         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
18783         AC_TRY_LINK_FUNC, to check whether defining a dummy
18784         main-like routine is needed for linking with F77 libs.
18786 2001-07-05  Pavel Roskin  <proski@gnu.org>
18788         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
18789         after using break.
18790         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
18791         linking.
18793 2001-07-05  Akim Demaille  <akim@epita.fr>
18795         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
18796         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
18797         Makes' lives.
18798         Reported by Nicolas Joly.
18800 2001-07-04  Akim Demaille  <akim@epita.fr>
18802         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
18803         up.
18804         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
18805         warnings from compilers.
18806         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
18807         for all the compilers, not only GNU.  Hence move from here...
18808         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
18810 2001-07-04  Akim Demaille  <akim@epita.fr>
18812         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
18813         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
18814         AC_COMPILE_IFELSE.
18816 2001-07-04  Akim Demaille  <akim@epita.fr>
18818         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
18819         the ``strings.h'' change claimed below.
18821 2001-07-04  Akim Demaille  <akim@epita.fr>
18823         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
18825 2001-07-04  Akim Demaille  <akim@epita.fr>
18827         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18828         strings.h if usable with string.h.
18829         Suggested by Paul Eggert.
18831 2001-07-04  Akim Demaille  <akim@epita.fr>
18833         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
18834         From Jens Petersen.
18836 2001-07-03  Akim Demaille  <akim@epita.fr>
18838         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
18839         etc. in the log.
18841 2001-07-03  Akim Demaille  <akim@epita.fr>
18843         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
18844         compiler, not the preprocessor.
18845         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
18846         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
18847         the right thing.
18848         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
18849         earlier if there are.
18851 2001-07-03  Akim Demaille  <akim@epita.fr>
18853         * autoscan.in ($initfile): Remove.
18854         (&find_file): Rename as...
18855         (&scan_file): this.
18856         Immediately scan the current file, instead of gathering them, and
18857         later having them handled by &scan_files.
18858         (&scan_files): Merely invoke Find::File.
18859         Adjust.
18861 2001-07-02  Akim Demaille  <akim@epita.fr>
18863         * autoscan.in: Formatting changes, matching the invocation order.
18864         (File::Find): Use it instead of Perl 4's `find.pl'.
18865         (&wanted): Rename as...
18866         (&find_file): this.
18868 2001-07-01  Pavel Roskin  <proski@gnu.org>
18870         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
18871         break in the argument to AC_TRY_LINK_FUNC.
18872         (AC_F77_MAIN): Remove conftest* after using break in the
18873         argument to AC_TRY_LINK.
18875 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
18877         Add alternate 'main' routine detection for linking C/C++ with Fortran,
18878         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
18880         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
18881         dummy alternate main is required even if the user provides her own
18882         'main'.
18883         (AC_F77_MAIN): New macro to detect whether it is possible to
18884         provide an alternate 'main' function name, using the 'main' from
18885         the Fortran libraries.
18886         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
18887         cross-language link tests can be performed successfully.
18888         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
18889         after $LIBS, for consistency; this should be the general rule since
18890         the user may want to link to Fortran libraries that require $FLIBS.
18891         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
18893 2001-06-29  Pavel Roskin  <proski@gnu.org>
18895         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
18896         at-stdout and at-stderr instead of removing the newline
18897         from the echo output, which is not guaranteed to work.
18899 2001-06-28  Jens Petersen  <petersen@redhat.com>
18901         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
18902         confdefs.h when non-zero.
18904 2001-06-28  Akim Demaille  <akim@epita.fr>
18906         * configure.in: Bump to 2.50c.
18908 2001-06-26  Akim Demaille  <akim@epita.fr>
18910         Version 2.50b.
18912 2001-06-26  Akim Demaille  <akim@epita.fr>
18914         Version 2.50a.
18916 2001-06-25  Pavel Roskin  <proski@gnu.org>
18918         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
18919         argument, AUTOCONF-FLAGS.
18920         * tests/mktests.sh (update_exclude_list): Add
18921         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
18922         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
18923         AC_FUNC_WAIT3 with "-W no-obsolete".
18925 2001-06-25  Akim Demaille  <akim@epita.fr>
18927         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
18929 2001-06-25  Akim Demaille  <akim@epita.fr>
18931         * autoscan.in (%macro): Now maps from word to list of macros.
18932         (&init_tables): Die when a word which is already handled by
18933         explicit macros is mapped to the default macro.
18934         (&print_unique): Remove, inlined in...
18935         (&output_kind): here.
18936         (File::Basename): Use it.
18937         (&output): Sort the CONFIG_FILES.
18938         * acheaders: Normalize.
18939         * acfunctions: Likewise.
18941 2001-06-25  Akim Demaille  <akim@epita.fr>
18943         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
18944         characteristics in the logs.
18945         Suggested by Mo DeJong.
18947 2001-06-24  Akim Demaille  <akim@epita.fr>
18949         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
18950         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
18951         * doc/autoconf.texi (Autoconf 2.13): New section.
18953 2001-06-24  Akim Demaille  <akim@epita.fr>
18955         * autoconf.in (Task traces): Separate the error messages from the
18956         traces to improve robustness.
18958 2001-06-23  Akim Demaille  <akim@epita.fr>
18960         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
18961         three as failures are unlikely, and speed matters.
18963 2001-06-23  Akim Demaille  <akim@epita.fr>
18965         * doc/autoconf.texi (Redefined M4 Macros): New.
18967 2001-06-23  Akim Demaille  <akim@epita.fr>
18969         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
18970         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
18971         5.3.
18973 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
18975         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
18976         config.status targets to after the evaluation of the INIT-CMDS.
18977         Double quote config.status targets (used to be single quoted).
18979 2001-06-23  Akim Demaille  <akim@epita.fr>
18981         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
18982         Check the content of the created file.
18983         Check the ./config.status command line invocation.
18985 2001-06-23  Akim Demaille  <akim@epita.fr>
18987         * tests/foreign.at (Libtool): Reject prehistoric versions.
18989 2001-06-23  Akim Demaille  <akim@epita.fr>
18991         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
18992         preexisting files matching a.*.
18994 2001-06-23  Akim Demaille  <akim@epita.fr>
18996         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
18997         stderr.
18998         * doc/autoconf.texi (AC_ARG_VAR): Update.
19000 2001-06-21  Akim Demaille  <akim@epita.fr>
19002         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
19003         precious variables have changed.
19004         * tests/torture.at (AC_ARG_VAR): Adjust.
19006 2001-06-21  Akim Demaille  <akim@epita.fr>
19008         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
19009         but some sed choke on multiple `;', and other tools (e.g.,
19010         Automake), include the separator themselves.
19012         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
19014 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
19016         * doc/autoconf.texi (Functions Portability): Rename as...
19017         (Function Portability): this.
19018         (Function Portability): Document potential problems with unlink().
19020 2001-06-19  Paul Eggert  <eggert@twinsun.com>
19022         * NEWS, doc/autoconf.texi: Document quadrigraphs.
19024 2001-06-18  Akim Demaille  <akim@epita.fr>
19026         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
19028 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
19030         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
19031         (_AC_FUNC_VFORK): this.
19032         Remove AC_DEFINEs and don't guess cross-compilation values.
19033         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
19034         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
19035         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
19036         vfork doesn't work.
19037         Guess values if cross-compiling, but warn.
19038         * acfunctions: Add AC_FUNC_FORK.
19039         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
19040         and vfork appropriately.
19042 2001-06-18  Akim Demaille  <akim@epita.fr>
19044         * doc/autoconf.texi (Functions Portability): New section.
19046 2001-06-18  Akim Demaille  <akim@epita.fr>
19048         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
19049         in $M4.
19050         Suggested by Andreas Schwab.
19052 2001-06-18  Akim Demaille  <akim@epita.fr>
19054         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
19055         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
19056         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
19057         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
19058         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
19059         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
19060         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
19061         the converse).
19063 2001-06-18  Akim Demaille  <akim@epita.fr>
19065         * doc/autoconf.texi (ms): New index.
19066         (Macro Index): Rename as...
19067         (Autoconf Macro Index): this.
19068         (M4 Macro Index): New appendix.
19069         (Programming in M4): New chapter.
19070         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
19071         (Quoting): Rename as...
19072         (M$ Quotation): this.
19073         Be part of `Programming in M4).
19075 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
19077         * tests/torture.at (AC_ARG_VAR): Set variables and export them
19078         in separate statements for compatibility with Tru64 v5.1.
19080 2001-06-17  Akim Demaille  <akim@epita.fr>
19082         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
19083         current values of the precious variables, not the previously
19084         cached values.
19085         Pass precious variables which are set to config.status.
19086         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
19087         * tests/torture.at (AC_ARG_VAR): New.
19089 2001-06-15  Paul Eggert  <eggert@twinsun.com>
19091         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
19092         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
19093         and explain why and how to replace them.
19094         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
19095         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
19097 2001-06-15  Akim Demaille  <akim@epita.fr>
19099         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
19100         Reported by Bruno Haible.
19102         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
19103          (_AC_ARG_VAR_PRECIOUS): to here.
19105 2001-06-15  Pavel Roskin  <proski@gnu.org>
19107         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
19108         an unused pointer use cast to this type and `if' statement to
19109         avoid warnings from the compiler.
19110         (AC_HEADER_TIME): Likewise.
19111         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
19112         in `if' statement to avoid warnings from the compiler. Declare
19113         ac_aggr static to avoid the need to initialize it.
19115 2001-06-14  Akim Demaille  <akim@epita.fr>
19117         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
19118         Macros'.
19120 2001-06-13  Akim Demaille  <akim@epita.fr>
19122         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
19123         Suggested by Alexander Mai.
19125 2001-06-13  Akim Demaille  <akim@epita.fr>
19127         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
19128         sys/types.h and sys/stat.h, and check for them.
19130 2001-06-13  Akim Demaille  <akim@epita.fr>
19132         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
19133         INCLUDES.
19135 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
19137         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
19138         succeeds and only try adding libdnet upon a failure.
19140 2001-06-12  Akim Demaille  <akim@epita.fr>
19142         * autoscan.in (&output_kind): Output the comment only if it exists.
19143         (%kind_comment): Add entry for `programs'.
19144         (&output_programs): Use &output_kind.
19145         (&output_functions, &output_identifiers, &output_headers)
19146         (&output_programs): Inline, and remove.
19148 2001-06-12  Akim Demaille  <akim@epita.fr>
19150         * autoscan.in (%kind_comment): New.
19151         (output_kind): New.
19152         (output_functions, output_identifiers, output_headers): Use it.
19154 2001-06-12  Akim Demaille  <akim@epita.fr>
19156         * autoscan.in (&print_unique): Take `$kind' and `$word' as
19157         arguments, to factor indirections into `%macro' and `%used'.
19158         (%generic_macro): Fix a typo.
19160 2001-06-12  Akim Demaille  <akim@epita.fr>
19162         * aclibraries: New.
19163         * autoscan.in (@kinds): Add `libraries'.
19164         Use `@kinds' instead of hard coded lists.
19165         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
19166         Remove, replaced by...
19167         (%used): this.
19169 2001-06-12  Akim Demaille  <akim@epita.fr>
19171         * autoscan.in (%functions_macros %headers_macros)
19172         (%identifiers_macros %programs_macros %makevars_macros): Remove,
19173         replaced by...
19174         (%macro): New.
19176 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
19178         * aclang.m4 (AC_NO_EXECUTABLES): Override
19179         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
19181 2001-06-11  Akim Demaille  <akim@epita.fr>
19183         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
19184         trailing new line.
19185         Reported by Andreas Schwab.
19187 2001-06-11  Akim Demaille  <akim@epita.fr>
19189         * Makefile.am, Makefile.maint: Typos.
19191 2001-06-09  Akim Demaille  <akim@epita.fr>
19193         * doc/autoconf.texi (Here-Documents): New section, gathering
19194         documentation about here-documents.
19195         Use `href', not `uref', and other changes.
19197 2001-06-09  Akim Demaille  <akim@epita.fr>
19199         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
19200         chapter.
19202 2001-06-09  Akim Demaille  <akim@epita.fr>
19204         * doc/autoconf.texi (Limitations of Builtins): Complete the
19205         description of the here-docs penalties with Alexandre Oliva's
19206         explanations.
19208 2001-06-01  Paul Eggert  <eggert@twinsun.com>
19210         * doc/autoconf.texi: Talk about here documents and speedups.
19211         Do not use "echo" on arbitrary strings.
19212         Spell "here-documents" consistently with the standard.
19214 2001-06-09  Akim Demaille  <akim@epita.fr>
19216         * doc/autoconf.texi (Concept Index): Introduce it.
19217         Regenerate the menus.
19219 2001-06-09  Akim Demaille  <akim@epita.fr>
19221         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
19222         * config/prev-version.txt: New.
19223         * config/move-if-change: New, for GNU libc.
19225 2001-06-06  Pavel Roskin  <proski@gnu.org>
19227         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
19229 2001-06-06  Akim Demaille  <akim@epita.fr>
19231         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
19232         properly when $1 is not a literal.
19233         Fixes PR Autoconf/187, reported by Bram Moolenaar.
19235 2001-06-06  Akim Demaille  <akim@epita.fr>
19237         Invoking AC_COPYRIGHT before AC_INIT fails.
19239         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
19240         * acgeneral.m4 (_m4_divert(VERSION_FSF))
19241         (_m4_divert(VERSION_USER)): New.
19242         (AC_COPYRIGHT): $2 is the diversion to use.
19243         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
19244         (AC_INIT): Remove dead comments as now it's commutative.
19246 2001-06-06  Akim Demaille  <akim@epita.fr>
19248         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
19249         PR autoconf/187.
19251 2001-06-05  Akim Demaille  <akim@epita.fr>
19253         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
19254         can be empty.
19255         `*dir' variables cannot be NONE.
19256         Reported by Mark Kettenis.
19258 2001-06-05  Paul Eggert  <eggert@twinsun.com>
19260         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
19262 2001-06-04  Akim Demaille  <akim@epita.fr>
19264         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
19265         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
19266         (AC_TR_SH): Move as...
19267         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
19268         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
19269         (AS_TR_SH): these.
19270         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
19271         (_AS_TR_SH_PREPARE): New.
19272         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
19273         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
19275 2001-06-02  Akim Demaille  <akim@epita.fr>
19277         * Makefile.am (.m4.m4f): Pass the options first.
19278         Fixes PR autoconf/182.
19280 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
19282         GNU getopt, when POSIXLY_CORRECT does not permute options and
19283         arguments.  So pass the options first.
19284         Fixes PR autoconf/184.
19286         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
19287         (run_m4): Remove files.
19288         (run_m4f): Remove.
19289         Update remainder of script to use them.
19290         (for warning in): Do not use a literal comma as it will not be
19291         split by IFS.
19293 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
19295         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
19296         Fortran compilers to check.
19297         (_AC_PROG_F77_V): Add '-###' as a possible option to print
19298         information on library and object files.
19299         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
19300         to check.
19302 2001-06-02  Akim Demaille  <akim@epita.fr>
19304         * autom4te.in (Request::@request): Declare with `vars', not `my',
19305         as it prevents updates via `do FILENAME'.
19307 2001-06-02  Akim Demaille  <akim@epita.fr>
19309         * configure.in (standards_texi): Remove, dead code.
19311 2001-06-02  Akim Demaille  <akim@epita.fr>
19313         * autom4te.in: New.
19315 2001-06-02  Pavel Roskin  <proski@gnu.org>
19317         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
19318         for signals other than 0 - exit with code 1.
19319         * m4sh.m4 (AS_TMPDIR): Likewise.
19320         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
19321         * autoheader.in: Likewise.
19322         * autoreconf.in: Likewise.
19323         * tests/torture.at (Signal handling): New test for the above.
19325 2001-06-01  Akim Demaille  <akim@epita.fr>
19327         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
19328         message.
19330 2001-05-31  Akim Demaille  <akim@epita.fr>
19332         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
19333         Add copyright and comments.
19334         * acheaders: Add stdint.h.
19335         Suggested by Paul Eggert.
19337 2001-05-31  Akim Demaille  <akim@epita.fr>
19339         * atgeneral.m4 (AT_INIT): Use $SHELL.
19340         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
19342 2001-05-31  Akim Demaille  <akim@epita.fr>
19344         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
19345         stdint.h.
19346         From Paul Eggert and Lars Hecking.
19348 2001-05-31  Akim Demaille  <akim@epita.fr>
19350         * tests/base.at: Adjust line numbers in error messages.
19352 2001-05-31  Akim Demaille  <akim@epita.fr>
19354         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
19355         to emit the bangshe line.
19356         Reported by David Carter.
19358 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
19360         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
19361         Fortran (95) compilers to check.
19363 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
19365         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
19366         Macro Archive URL.
19368 2001-05-23  Pavel Roskin  <proski@gnu.org>
19370         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
19371         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
19372         (AC_PROG_CXXCPP): Likewise.
19374 2001-05-22  Akim Demaille  <akim@epita.fr>
19376         * config: New directory.
19377         * configure.in: AC_CONFIG_AUX_DIR it.
19378         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
19380 2001-05-22  Akim Demaille  <akim@epita.fr>
19382         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
19383         * autoupdate.in: Specify the Emacs mode.
19384         * acversion.m4.in: Rename as...
19385         * acversion.m4: this.
19386         * tests/Makefile.am (CLEANFILES): More garbage.
19388 2001-05-22  Akim Demaille  <akim@epita.fr>
19390         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
19391         Rename as...
19392         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
19393         these.
19395 2001-05-21  Akim Demaille  <akim@epita.fr>
19397         * configure.in: Bump to 2.50a.
19400         -----
19402         Local Variables:
19403         coding: utf-8
19404         End:
19406         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
19407         Free Software Foundation, Inc.
19409         Copying and distribution of this file, with or without
19410         modification, are permitted provided the copyright notice and this
19411         notice are preserved.