fortran: avoid misparsed FCLIBS from Fortran compiler
[autoconf.git] / ChangeLog
blobd9911ba0f4f3a78c7df0c51b16da95736bef7203
1 2010-09-16  Eric Blake  <eblake@redhat.com>
3         fortran: avoid misparsed FCLIBS from Fortran compiler
4         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Also skip
5         'Configured by:' lines from gfortran.
6         * NEWS: Mention it.
7         Reported by Stefano Lattarini.
9 2010-09-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11         Add autom4te trace for AM_PROG_AR.
12         * lib/autom4te.in (Automake-preselections): Trace
13         AM_PROG_AR.
15 2010-09-16  Eric Blake  <eblake@redhat.com>
17         m4sugar: fix regression in AC_MSG_ERROR expansion
18         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Avoid macro
19         concatenation on subsequent expansions
20         * tests/m4sh.at (AS_WARN and AS_ERROR): New test.
21         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
22         Enhance test.
23         * NEWS: Document the fix.
24         * THANKS: Update.
25         Reported by Adrian Bunk and and Nishio Futoshi.
27 2010-09-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
29         tests: simplify grepping of 'automake --version'.
30         * tests/tools.at (autom4te preselections): Remove minor
31         redundancies in regular expressions used to grep the output
32         'automake --version' for test skipping.
33         * tests/torture.at (Configuring subdirectories)
34         (Unusual Automake input files): Likewise.
36 2010-09-13  Eric Blake  <eblake@redhat.com>
38         autotest: work around zsh bug
39         * lib/autotest/general.m4 (AT_DATA): Special case an empty data
40         file, since zsh botches empty here-docs.
41         * doc/autoconf.texi (Writing Testsuites) <AT_DATA>: Document that
42         this allows empty contents.
43         * tests/autotest.at (AT_DATA): New test.
44         Reported by Ralf Wildenhues.
46         docs: mention gnulib portability docs
47         * doc/autoconf.texi (Function Portability, Header Portability):
48         Add external links to gnulib.
50 2010-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51             Gary V. Vaughan <gary@gnu.org>
53         docs: document zsh specialty with empty here-documents.
54         * doc/autoconf.texi (Here-Documents): zsh 4.3.10 adds a newline
55         to empty here-docs.
57 2010-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59         docs: document zsh special array $options.
60         * doc/autoconf.texi (Special Shell Variables): Add entry for
61         `options'.
63         doc: minor updates.
64         * doc/autoconf.texi (Generic Compiler Characteristics): Use
65         second argument of @uref consistently, for nicer OpenMP link.
66         (Polymorphic Variables): Restore font-lock.
67         (Debugging): Add item for bashdb.
69         Document and test AT_CHECK args shell execution environment.
70         * doc/autoconf.texi (Writing Testsuites): Document that COMMANDS
71         is run in a subshell, but RUN-IF-FAIL and RUN-IF-PASS are not.
72         * tests/autotest.at (AT@&t@_CHECK execution environment): New
73         test.
74         * NEWS: Update.
76         autotest: document and test at_status semantics.
77         * doc/autoconf.texi (Writing Testsuites): Document $at_status.
78         * tests/autotest.at (at_status): New test.
79         * NEWS: Update.
81         doc: index entries for non-environment, non-output variables.
82         * doc/autoconf.texi: Clarify the meaning of the various variable
83         indices.  Merge variable index `vr' into concept index using
84         syncodeindex.
85         (Configuration Actions, Generic Programs, Generic Functions)
86         (Writing Testsuites): Add index entries for documented shell
87         variables used during in configure and testsuite scripts.
89 2010-09-12  Fernando Carrijo  <fcarrijo@freedesktop.org>  (tiny change)
91         docs: fix minor typo and 'See See foo' instances
92         * doc/autoconf.texi (Buffer Overruns and Subscript Errors): Fix
93         usage of TeX superscript notation to correctly represent number
94         exponent.
95         (Shell Functions): s/[Ss]ee @xref/@xref/
96         (Limitations of Shell Builtins, Canonicalizing): Likewise.
97         * THANKS: Update.
99 2010-09-13  Eric Blake  <eblake@redhat.com>
101         tests: skip broken automake wrapper on MirBSD
102         * tests/tools.at (autom4te preselections): Skip, rather than fail,
103         if 'automake --version' succeeds without printing a version when
104         an environment variable is not set.
105         * tests/torture.at (Configuring subdirectories)
106         (Unusual Automake input files): Likewise.
108 2010-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110         doc: minor indexing update.
111         (Shell Substitutions, Site Defaults): Fix markup for indexed
112         entried, using @code and @file as appropriate.
113         (M4 Macro Index): Clarify which of the indexed macros have m4_
114         and which have AS_ prefix.
116 2010-09-08  Eric Blake  <eblake@redhat.com>
118         m4sh: preserve set -vx over re-exec
119         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Trace through
120         re-exec, to make it easier to debug script startup issues.
121         Idea from recent bug-gnulib change to init.sh.
123         docs: update alloca recommendations
124         * doc/autoconf.texi (Particular Functions): Don't redeclare alloca
125         on FreeBSD.
126         * THANKS: Update.
127         Reported by Giorgos Keramidas.
129         docs: link to GNU Coding Standards in intro
130         * doc/autoconf.texi (Introduction): Actually link to the
131         standards.  Make other references consistent.
133         docs: mention traditional awk limitation
134         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Mention
135         that traditional awk lacks ENVIRON.  Add reference to awk manual.
136         (Particular Programs) <AC_PROG_AWK>: Add reference to awk section.
137         Reported by Ralf Wildenhues.
139 2010-09-07  Eric Blake  <eblake@redhat.com>
141         docs: mention bash vs. POSIXLY_CORRECT
142         * doc/autoconf.texi (Special Shell Variables) <POSIXLY_CORRECT>:
143         Document bash behavior.
144         * THANKS: Update.
145         Reported by Dustin J. Mitchell, via bug-gnulib list.
147         docs: enhance recommendations on test usage
148         * doc/autoconf.texi (Limitations of Builtins) <test (strings)>:
149         Mention yet another Solaris issue.
150         Reported by Stefano Lattarini.
152 2010-08-30  Eric Blake  <eblake@redhat.com>
154         tests: avoid trashing /
155         * tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
156         Use a relative path, rather than risking issues with /.
157         Reported by Ralf Wildenhues.
159         docs: mention Solaris here-docs vs. ${a-"b c"}
160         * doc/autoconf.texi (Shell Substitutions) <${var:=value}>:
161         Document problem of "" within here-docs.
162         Reported by Ralf Wildenhues.
164         fortran: always avoid AC_LANG_CONFTEST warning
165         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST()): Make the default
166         match the fact that the default AC_LANG_SOURCE does not inline
167         confdefs.h in the first place.
168         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
169         (AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Revert previous use of
170         AC_LANG_DEFINES_PROVIDED.
171         Suggested by Ralf Wildenhues.
173         config.status: minimize use of $tmp
174         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP)
175         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
176         (_AC_OUTPUT_HEADERS_PREPARE, _AC_OUTPUT_HEADER): Use $ac_tmp
177         internally, while preserving $tmp for existing users.
178         * tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
179         New test, that $tmp is available but not essential.
181         docs: avoid use of $tmp outside of config.status use
182         * doc/autoconf.texi (Polymorphic Variables, Shell Substitutions):
183         Use $var or $t instead.
184         (Limitations of Usual Tools): Use $dir instead.
185         (Initialization Macros) <AS_TMPDIR>: Make good on the NEWS
186         regarding AS_TMPDIR being documented as consuming $tmp.
187         Suggested by Ralf Wildenhues.
189 2010-08-29  Paul Eggert  <eggert@cs.ucla.edu>
191         AC_PROG_YACC: fix comment re what "yacc" stands for
192         * lib/autoconf/programs.m4 (AC_PROG_YACC): YACC stands for
193         "Yet Another Compiler Compiler", not "Yet Another C Compiler".
194         Problem reported by Chris Long in
195         <http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00134.html>.
197 2010-08-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
199         Avoid long lines in testsuite script.
200         * lib/autotest/general.m4 (AT_INIT): Remove definition of
201         AT_groups_all.  Initialize at_groups from at_help_all, with
202         newlines instead of spaces separating test groups numbers.
203         Adjust all code to newlines.
204         * NEWS: Update.
205         * tests/autotest.at (Huge testsuite): New test.
207         Try to update config.cache atomically; respect symlinks.
208         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use `mv -f' to update
209         the cache file if it is a regular file and not a symlink.  Move
210         first to temporary name in the target directory if not in the
211         current directory for atomicity across mount points.
212         * tests/base.at (AC_CACHE_CHECK): Try symlinked cache file.
213         * doc/autoconf.texi (Cache Files): Leftover temporary cache
214         files may be deleted by the user.
215         * NEWS: Update.
217 2010-08-27  Eric Blake  <eblake@redhat.com>
219         m4sh: protect LINENO against stray macro
220         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Double quote entire
221         sed script, to avoid issue uncovered by automake testsuite where
222         'b' was an m4 macro that broke execution on dash.
223         Reported by Stefano Lattarini.
225         m4sh: assume ${a:-b} support
226         * tests/m4sh.at (Null variable substitution): New test.
227         * doc/autoconf.texi (Shell Substitutions) <${var:-value}>: Mention
228         that m4sh guarantees support.
229         (Limitations of Usual Tools) <mktemp>: Use it.
230         * lib/m4sugar/m4sh.m4 (AS_LINENO_POP, AS_VAR_IF, AS_TMPDIR):
231         Exploit use of colon for smaller files.
233 2010-08-26  Eric Blake  <eblake@redhat.com>
235         docs: document m4_define_default
236         * doc/autoconf.texi (Conditional constructs) <m4_define_default>:
237         Document it, since gnulib wants to use it.
238         * NEWS: Mention this.
240         autoconf: warn if AC_*_IFELSE lacks complete program
241         * lib/autoconf/lang.m4 (AC_LANG_DEFINES_PROVIDED): New macro.
242         (AC_LANG_SOURCE): Call it.
243         (AC_LANG_CONFTEST): Add warning if new macro is not called.
244         * lib/autoconf/c.m4 (_AC_LANG_OPENMP): Add missing AC_LANG_SOURCE.
245         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
246         (AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Intentionally bypass
247         AC_LANG_SOURCE.
248         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Likewise.
249         * tests/compile.at (AC_COMPILE_IFELSE): New test.
250         * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
251         Document new warning.
252         <AC_LANG_DEFINES_PROVIDED>: Document new macro.
253         <AC_LANG_SOURCE>: Document use of new macro.
254         * NEWS: Document the improvement.
255         Suggested by Bruno Haible.
257         autoconf: fix regression in AC_FUNC_SELECT_ARGTYPES
258         * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Fix
259         quoting; regression from yesteray leaked '' into default value.
260         Reported by Ralf Wildenhues.
262         docs: mention another issue with variable expansion
263         In particular, see http://austingroupbugs.net/view.php?id=221
264         and http://austingroupbugs.net/view.php?id=255.
265         * doc/autoconf.texi (Shell Substitutions) <${var+value}>: New
266         subsection.
267         <${var=literal}>: Tweak wording.  Add mention of an ambiguity
268         allowed by POSIX.
269         * tests/torture.at (Substitute and define special characters):
270         Make test more robust; here, the outer "" is in a here-doc, and
271         does not violate the quoting rules of thumb just documented.
273 2010-08-25  Eric Blake  <eblake@redhat.com>
275         m4sh: revert incorrect mix of "${a='b'}"
276         * bin/autoconf.as: Revert leak of literal '' into assignment.
277         * tests/tools.at (autom4te preselections): Likewise.
279         m4sh: revert regression in AS_TMPDIR
280         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): The previous patch trying to
281         rename $tmp to $as_tmp was wrong; config.status relies on it.
283         m4sh: reduce size of AS_VAR_TEST_SET
284         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Make more compact.
286         tests: improve some shell assumption testing
287         * tests/m4sh.at (Functions Support, Functions and return Support)
288         (Negated classes in globbing): Update comments.
289         (AS@&t@_VAR basics): Test comparison to empty string.
291         docs: mention cost of globbing during variable expansion
292         * doc/autoconf.texi (Shell Substitutions) <${var=literal}>:
293         Recommend quoting substitutions that might trigger globbing.
294         (Limitations of Builtins) <:>: Likewise.
295         * bin/autoconf.as: Follow our own advice.
296         * lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Likewise.
297         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
298         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
299         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
300         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
301         * tests/autotest.at (parallel autotest and signal handling):
302         Likewise.
303         * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Likewise.
304         * tests/foreign.at (shtool): Likewise.
305         * tests/fortran.at: Likewise.
306         * tests/tools.at (autom4te preselections): Likewise.
307         * tests/torture.at (VPATH): Likewise.
309         m4sh: fix some namespace safety issues
310         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Avoid problems if
311         as_myself is inherited from environment.
312         (AS_TMPDIR): Be namespace clean.
314 2010-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
316         tests: fix AC_CACHE_CHECK to skip with bad shells.
317         * tests/base.at (AC_CACHE_CHECK): Skip test with malformed
318         config.site file if the shell does not report syntax errors
319         from a sourced file.  Fixes test failure on AIX and FreeBSD.
320         Report from Rainer Tammer.
322 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
324         AC_HEADER_STDBOOL: avoid spurious failure with modern xlc
325         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Move the "bool e =
326         &s;" test into the main program, as C99 might plausibly be
327         interpreted as not requiring support for this construction in
328         static initializers.  Remove the "#if defined __xlc__" stuff, as
329         the bug is not present in recent xlc implementations, and they
330         reject the test for other (valid) reasons.  People using ancient
331         xlc versions, if any, are suggested to update to fixed versions.
332         Reported by Ralf Wildenhues in the thread starting at:
333         http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00103.html
335 2010-08-24  Eric Blake  <eblake@redhat.com>
337         AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin
338         * lib/autoconf/functions.m4 (_AC_LIBOBJ_GETLOADAVG): Only define
339         SVR4 when -lkvm is required.
340         * THANKS: Update.
341         Reported by Yaakov Selkowitz.
343 2010-08-23  Eric Blake  <eblake@redhat.com>
345         AC_HEADER_STDBOOL: avoid spurious clang failure
346         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
347         extension clang) check in favor of a gnulib test.  Force failure,
348         rather than merely testing for a compiler extension.
349         * THANKS: Update.
350         Reported by Anders Kaseorg.
352 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
354         doc: AIX sed dislikes indented comments.
355         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Update.
357 2010-08-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
359         Fix autoreconf docs w.r.t. AUTOM4TE environment variable.
360         * doc/autoconf.texi (Using autoreconf to Update configure
361         Scripts): List `AUTOM4TE' among the environment variables
362         honored by autoreconf.
363         * bin/autoreconf.in ($help): Likewise.
365 2010-08-17  Eric Blake  <eblake@redhat.com>
367         doc: improve AS_VAR_IF details
368         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_IF>: Make it
369         clear that user must supply quotes as needed.
370         * THANKS: Update.
371         Suggested by Randall Cotton.
373 2010-08-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
375         Fix Autotest --errexit to exit after XPASSing tests.
376         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
377         Exit after an unexpected passing test if $at_errexit.
378         * tests/autotest.at (errexit): Also try tests that xpass, skip,
379         xfail, or fail hard.
381 2010-08-14  Eric Blake  <eblake@redhat.com>
383         AC_INIT: allow bugreport to contain '?'
384         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Relax check.
385         * tests/base.at (AC_INIT with unusual version strings): Enhance
386         test.
387         * doc/autoconf.texi (Initializing configure): Document this.
388         * NEWS: Likewise.
389         * THANKS: Update.
390         Reported by Yavor Doganov and others.
392 2010-08-10  Peter Rosin  <peda@lysator.liu.se>
394         Keep testsuite files on unexpected pass.
395         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
396         Don't cleanup the group directory when a test unexpectedly passes.
397         * tests/autotest.at (Cleanup): Check that an unexpected pass leaves
398         the test group directory intact.
400 2010-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
402         Skip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.
403         * tests/fortran.at (AC_FC_FREEFORM with AC_FC_SRCEXT)
404         (AC_FC_FIXEDFORM with AC_FC_SRCEXT): Skip if the compiler cannot
405         handle files with .f90 extension.
406         Report by Luke Dalessandro.
408         Fix testsuite failures with typical m4-x.y.z program suffix.
409         * tests/local.at (AT_CHECK_M4): Normalize hyphens and digits
410         after the `m4' program name.
411         * THANKS: Update.
412         Report by Luke Dalessandro.
414 2010-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
416         Fix description of AC_CONFIG_TESTDIR to not mention atconfig.in.
417         * doc/autoconf.texi (Making testsuite Scripts): atconfig is not
418         created from an input template.
420 2010-08-05  Bruno Haible  <bruno@clisp.org>
421         and Eric Blake  <eblake@redhat.com>
423         AC_FUNC_ALLOCA: modernize
424         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Assume that alloca's
425         return type is 'void *', not 'char *'.  Supply C89 prototype.
426         Reported by Thomas Klausner.
428 2010-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
430         Fix testsuite failure due to bugs in third-party aclocal macros.
431         * tests/torture.at (Non-literal AC_CONFIG_SUBDIRS): Create a
432         hand-written aclocal.m4 file, so the -Werror test doesn't fail
433         over aclocal warnings about errors in third-party macro files.
434         Simplify test accordingly, calling autoreconf throughout.
435         Report by Bob Friesenhahn.
437         Fix AC_LANG_SOURCE and AC_LANG_PROGRAM tests.
438         * tests/compile.at (AC_LANG_SOURCE example)
439         (AC_LANG_PROGRAM example): Fix broken sed script for
440         extracting the interesting part of the conftest.c file.
441         Fixes test failure on Haiku.
442         * THANKS: Update.
443         Report by Scott McCreary.
445 2010-08-03  Eric Blake  <eblake@redhat.com>
447         docs: mention bash bug with word splitting
448         * doc/autoconf.texi (Shell Substitutions): Document bash bug, and
449         zsh default behavior difference.
450         Reported by Ralf Wildenhues.
452         docs: mention ksh bug with function syntax
453         * doc/autoconf.texi (Shell Functions): Document ksh93 limitation.
455 2010-08-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
457         Fix typo in Autotest color test, for dash testsuite failure.
458         * tests/autotest.at (colored test results): Use exit not
459         Exit.  Fixes test failure with dash 0.5.4.
461 2010-08-02  Eric Blake  <eblake@redhat.com>
463         docs: track recent copyright assignment
464         * AUTHORS: Add Peter Rosin.
466 2010-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
468         Add testsuite exposure for last-minute fix in 2.67.
469         * tests/autotest.at (parallel args but non-working mkfifo):
470         New test, to expose the failure v2.66-23-g991183c avoided.
472         Ensure unnamed test group categories are separated from previous.
473         * doc/autoconf.texi (Writing Testsuites) <AT_BANNER>: Update
474         description.
475         * lib/autotest/general.m4 (AT_INIT) <at_fn_banner>: Set banner
476         to single space, not empty line, once printed.  For empty
477         banners, print a single empty line to separate them from a
478         previous test group category.
479         * tests/autotest.at (Banners): Insert another test group; adjust
480         tests accordingly.  Extend test to cover semantic change.
481         * NEWS: Update.
483 2010-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
485         Fix typos in perlpod docs.
486         * lib/Autom4te/ChannelDefs.pm, lib/Autom4te/Channels.pm,
487         lib/Autom4te/General.pm: Fix typos and spacing in perlpod
488         documentation and in comments.
490 2010-07-29  Eric Blake  <eblake@redhat.com>
492         docs: mention ksh file descriptor limitation
493         * doc/autoconf.texi (File Descriptors): Document issue with fd 10
494         and above.
495         Reported by Ralf Wildenhues.
497         docs: mention cd limitation
498         * doc/autoconf.texi (Limitations of Builtins) <cd>: Document
499         issues with empty argument.
501 2010-07-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
503         Add missing index entries to manual.
504         * doc/autoconf.texi (Fortran Compiler, Language Choice): Add
505         index entries for AC_FC_DUMMY_MAIN, AC_LANG; reformat entry for
506         AC_LANG_ASSERT.
508 2010-07-21  Eric Blake  <eblake@redhat.com>
510         Release Version 2.67.
511         * NEWS: Mention the release.
513         Prepare for release.
514         * maint.mk (PREV_VERSION_REGEXP): New macro, missed when
515         backporting update-NEWS_hash from gnulib.
516         * cfg.mk (old_NEWS_hash): Correctly generate.
517         * build-aux/gendocs.sh: Temporarily break sync from upstream, to
518         avoid including spurious directories in info source tarball.
520         Avoid spurious testsuite failures.
521         * doc/autoconf.texi (Generating Sources): Don't mix gcc '-E' and
522         '-o -', since the former already implies stdout, while the latter
523         creates -.exe on cygwin.
524         * tests/compile.at (AC_LANG_SOURCE example)
525         (AC_LANG_PROGRAM example): Likewise.  Also prevent any config.site
526         interference.
528         Partially revert previous patch.
529         * lib/autotest/general.m4 (AT_INIT) <serial testing>: Changing
530         at_jobs here breaks output if -j2 was requested but shell is
531         insufficient to support parallel testing.
532         Reported by Ralf Wildenhues.
534         Minor testsuite size reduction.
535         * lib/autotest/general.m4 (AT_INIT) <serial testing>: Ensure
536         at_jobs is 1.
537         (AT_SETUP, AT_CLEANUP): Factor initialization code...
538         (AT_INIT) <at_fn_group_banner>: ...into new function.
539         Based in part on suggestion by Ralf Wildenhues.
541 2010-07-20  Eric Blake  <eblake@redhat.com>
543         Close job control fd before running tests.
544         * doc/autoconf.texi (File Descriptors): Clarify limitations.
545         * lib/autotest/general.m4 (AT_CLEANUP): Avoid leaking job control
546         fifo fd to user tests.
547         (AT_INIT): Delete comment, now that close is done elsewhere.
548         Suggested by Ralf Wildenhues.
550 2010-07-20 Paul Eggert  <eggert@cs.ucla.edu>
551         and Eric Blake  <eblake@redhat.com>
553         Plug race in parallel autotest.
554         * lib/autotest/general.m4 (AT_INIT) <Fifo job dispatcher>: Track
555         two fds to fifo in parent, to avoid race where parent can see EOF
556         before child opens fifo.  Avoid any atomicity problems with tokens
557         larger than one byte.
558         * NEWS: Document the bug fix.
560 2010-07-20  Eric Blake  <eblake@redhat.com>
562         Another empty argument through expr workaround.
563         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Detect empty
564         arguments.  Reject empty file argument.
565         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
566         Check for missing argument.
568         Also reject ' and newline from AC_INIT strings.
569         * lib/autoconf/general.m4 (_AC_INIT_LITERAL): Reject a couple more
570         problematic characters.
571         * tests/base.at (AC_INIT with unusual version strings): Enhance
572         test.
573         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Further
574         clarifications, and clean up wording about use of m4_esyscmd.
575         * NEWS: Update previous news entry.
576         Suggested by Paolo Bonzini.
578 2010-07-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
580         Let autoreconf pass warning flags to new-enough aclocal.
581         * bin/autoreconf.in ($aclocal_supports_warnings)
582         ($automake_supports_warnings): New globals.
583         (parse_args): Set and use them.  Be sure to invoke `aclocal
584         --help' and `automake --help' just once each.
585         * NEWS: Update.
586         Prompted by report from Bruno Haible.
588         Fix parsing of empty variable settings on the command line.
589         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Work around
590         expr bug returning 0 instead of the empty string.
591         * lib/autotest/general.m4 (AT_INIT): Likewise.
593         Fix typo in the manual.
594         * doc/autoconf.texi (AC_ACT_IFELSE vs AC_TRY_ACT): Fix typo.
596 2010-07-19  Eric Blake  <eblake@redhat.com>
598         Fix up AC_INIT vs. " issues, and document it.
599         * doc/autoconf.texi (Initializing configure): Improve
600         documentation on argument restrictions.
601         * NEWS: Tweak information.
602         * lib/autoconf/general.m4 (_AC_INIT_GENERAL): New macro, that also
603         rejects literal ".
604         (_AC_INIT_PACKAGE): Use it to plug hole in last patch.
605         * tests/base.at (AC_INIT with unusual version strings): Enhance
606         test.
608 2010-07-19  Eric Blake  <eblake@redhat.com>
609         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
611         Relax AC_INIT requirements for PACKAGE and VERSION strings again.
612         * lib/m4sugar/m4sh.m4 (AS_LITERAL_HEREDOC_IF): New macro.
613         (_AS_LITERAL_HEREDOC_IF, _AS_LITERAL_HEREDOC_IF_YES)
614         (_AS_LITERAL_HEREDOC_IF_NO): New helper macros.
615         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Use
616         AS_LITERAL_HEREDOC_IF for PACKAGE and VERSION strings.
617         * tests/base.at (AC_INIT with unusual version strings): New test.
618         * tests/m4sh.at (AS@&t@_LITERAL_IF): Extend test.
619         * NEWS: Update.
621 2010-07-19  Eric Blake  <eblake@redhat.com>
623         Fix testsuite failures from previous patch.
624         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Also remove
625         conftest.i when preprocessor tests break out of a loop.
627 2010-07-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
629         Allow inspecting AC_PREPROC_IFELSE output in true branch.
630         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): Redirect
631         preprocessor output to conftest.i rather than /dev/null.
632         (_AC_PREPROC_IFELSE): Remove conftest.i in the postprocessing.
633         * tests/compile.at (Order of user actions and cleanup): Extend
634         test in the ACTION-IF-TRUE branch.
635         * doc/autoconf.texi (Running the Preprocessor): Document new
636         feature.
637         * NEWS: Update.
639         Fix AC_FC_LIBRARY_LDFLAGS detection for BlueGene xlf -qipa.
640         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
641         '-link', added spuriously when -qipa is used with the XL
642         Fortran compilers on BlueGene.
644         manual: compiler flags -D and -L should not be followed by space
645         * doc/autoconf.texi (Preset Output Variables): Remove space
646         between -D and -L flags and their arguments, traditional cpp
647         implementations like Solaris 10, IRIX 6.5, OSF Tru64 5.1D,
648         AIX 5.3 do not accept it.
650 2010-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
652         Fix comment typo in the manual.
653         * doc/autoconf.texi (Generic Compiler Characteristics): Refer
654         to the right test in the example marker comment.
655         Spotted by Eric Blake.
657 2010-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
659         New Fortran macro AC_FC_LINE_LENGTH.
660         * lib/autoconf/fortran.m4 (AC_FC_LINE_LENGTH): New macro.
661         * doc/autoconf.texi (Fortran Compiler): Document it.
662         * tests/fortran.at (AC_FC_LINE_LENGTH): New test.
663         * NEWS: Update.
665         Fix wording about AC_CONFIG_SUBDIRS warning.
666         * doc/autoconf.texi (Subdirectories): We warn, not error, about
667         nonexistent config subdirs, but only at configure run time.
669 2010-07-10  Eric Blake  <eblake@redhat.com>
670         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
672         Fix regression of AC_CHECK_SIZEOF on pointer types.
673         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Translate `*' to `p'
674         when checking literal-ness of the type, for pointer types.
675         * lib/m4sugar/m4sh.m4 (_AS_TR_SH): Also consider `*' as literal.
676         (_AS_TR_CPP): Likewise.
677         * tests/semantics.at (AC_CHECK_ALIGNOF struct): When checking
678         for numeric answer, be sure to not allow variable references.
679         (AC_CHECK_SIZEOF struct): Likewise.  Also, test the
680         `AC_CHECK_SIZEOF([int *])' example from the manual.
681         * doc/autoconf.texi (Generic Compiler Characteristics): Add
682         example marker.
683         * NEWS: Update.
684         Reports by Nishio Futoshi and Roberto Bagnara.
686 2010-07-08  Eric Blake  <eblake@redhat.com>
687         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
689         Fix regression of AC_CONFIG_SUBDIRS with multiple arguments.
690         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Do not assume the
691         argument is a single word.
692         * tests/torture.at (Deep Package): Extend test to cover this.
693         (Non-literal AC_CONFIG_SUBDIRS): New test.
694         * doc/autoconf.texi (Subdirectories): Add example marker.
695         * NEWS: Update.
696         Report by Bruno Haible.
698 2010-07-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
700         Fix minor copy&paste leftover in m4sh tests.
701         * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): Remove
702         useless variables assignements ($var, $vAr, $VAR).
704 2010-07-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
706         Fix testsuite to not trigger Solaris sh for bug.
707         * tests/torture.at (Torturing config.status)
708         (Substitute a 2000-byte string)
709         (Substitute and define special characters)
710         (Substitute a newline): Quote first argument in for list so
711         that it does not look like an assignment.
713 2010-07-02  Eric Blake  <eblake@redhat.com>
715         Post-release administrivia.
716         * maint.mk (NEWS_hash): Define.
717         * NEWS: Add header line for next release.
718         * .prev-version: Record previous version.
719         * cfg.mk (old_NEWS_hash): Auto-update.
721         Release Version 2.66.
722         * NEWS: Mention the release.
724 2010-07-02  Eric Blake  <eblake@redhat.com>
726         Pick up some maint.mk improvements from gnulib.
727         * configure.ac (AM_INIT_AUTOMAKE): Require 1.11, and build xz
728         archives by default now.
729         * maint.mk (gzip_rsyncable): Avoid non-portable echo.
730         (VC-tag): Depend on gpg_key_ID.
731         (PREV_VERSION): Don't parse error as version.
732         (announcement): Populate email addresses with defaults.
733         (emit_upload_commands, web-manual): Reflect changes in scripts.
734         (update-NEWS-hash, emit-commit-log, release-prep): New macros.
735         * cfg.mk (announcement_Cc_, announcement_mail_headers_): Override
736         defaults.
737         * HACKING: Modernize a bit.
739         Resync upstream files.
740         * GNUmakefile: Run 'make fetch'.
741         * build-aux/announce-gen: Likewise.
742         * build-aux/config.guess: Likewise.
743         * build-aux/config.sub: Likewise.
744         * build-aux/gendocs.sh: Likewise.
745         * build-aux/git-version-gen: Likewise.
746         * build-aux/gnupload: Likewise.
747         * build-aux/texinfo.tex: Likewise.
748         * build-aux/vc-list-files: Likewise.
749         * doc/gendocs_template: Likewise.
750         * doc/gnu-oids.texi: Likewise.
751         * doc/make-stds.texi: Likewise.
752         * doc/standards.texi: Likewise.
753         * lib/Autom4te/Channels.pm: Likewise.
754         * lib/Autom4te/Configure_ac.pm: Likewise.
755         * lib/Autom4te/FileUtils.pm: Likewise.
756         * lib/Autom4te/XFile.pm: Likewise.
758         Make AS_TR_SH and AS_TR_CPP similar.
759         * lib/m4sugar/m4sh.m4 (_AS_TR_CPP_LITERAL): Avoid underquoting.
760         (_AS_TR_CPP_INDIR): Handle all polymorphic variables.
761         * tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): New test.
762         * NEWS: Document the fix.
763         Reported by Bruno Haible.
765         Reduce startup cost of autotest.
766         * lib/autotest/general.m4 (_AT_FINISH) <banners>: Rather than
767         doing a recursive find, limit ourselves to top ChangeLog only.
768         Reported by Ralf Wildenhues.
770 2010-07-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
772         New macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage.
773         * lib/autoconf/fortran.m4 (_AC_FC_DIALECT_YEAR): Fix typo in
774         comment.
775         (AC_FC_FREEFORM): Update list of known options for Sun, HP,
776         Lahey/Fujitsu Fortran compilers.  Use M4 quoting consistently.
777         (AC_FC_FIXEDFORM): New macro.
778         * tests/fortran.at (AC_FC_DUMMY_MAIN usage, AC_FC_MAIN usage):
779         Use AC_FC_FIXEDFORM, to avoid testsuite failure with FC=xlf95.
780         (AC_FC_FREEFORM with AC_FC_SRCEXT, AC_FC_FIXEDFORM)
781         (AC_FC_FIXEDFORM with AC_FC_SRCEXT): New tests.
782         * tests/mktests.sh: No need to exclude AC_FC_FREEFORM, it uses
783         AC_LANG_PUSH/AC_LANG_POP.
784         * doc/autoconf.texi (Fortran Compiler): Document it.
785         * NEWS: Update.
787 2010-07-02  Eric Blake  <eblake@redhat.com>
789         Optimize AS_BOX.
790         * lib/m4sugar/m4sh.m4 (AS_BOX): Use less m4 time.
791         (_AS_BOX_LITERAL): Use fewer forks in the common case.
792         * doc/autoconf.texi (Common Shell Constructs) <AS_BOX>: Document
793         the macro.
794         * NEWS: Mention it.
796         Use new AS_LITERAL_IF argument when appropriate.
797         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Reduce m4 overhead.
798         (AS_VAR_IF, AS_VAR_TEST_SET): Provide shorter variant for simple
799         references.
800         Suggested by Bruno Haible.
802         Add tests for AS_BOX.
803         * tests/m4sugar.at (m4@&t@_text_box): New test.
804         * tests/m4sh.at (AS@&t@_BOX): Likewise.
805         * lib/m4sugar/m4sugar.m4 (m4_text_box): Support comma.
806         * doc/autoconf.texi (Text processing Macros) <m4_text_box>:
807         Document further limitations.
809         Add optional argument to AS_LITERAL_IF.
810         * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Rewrite to generate macro
811         name, without using m4_cond.
812         (_AS_LITERAL_IF_, _AS_LITERAL_IF_YES, _AS_LITERAL_IF_NO): New
813         helpers.
814         (AS_LITERAL_IF, AS_LITERAL_WORD_IF, _AS_TR_SH, _AS_TR_CPP)
815         (_AS_VAR_PUSHDEF): Adjust callers.
816         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Relax restrictions on
817         invalid bytes, since this allows inline struct layouts.
818         (_AC_CHECK_ALIGNOF): New helper macro.
819         * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
820         * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
821         Update documentation.
823         Use AS_LITERAL_WORD_IF as appropriate.
824         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Use new macro.
825         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_CACHE_VAL)
826         (AS_CACHE_CHECK, AC_DEFINE_TRACE, _AC_LIBOBJ): Likewise.
827         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
828         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
829         * lib/m4sugar/m4sh.m4 (AS_UNSET, AS_VAR_COPY, AS_VAR_GET)
830         (AS_VAR_IF, AS_VAR_SET, AS_VAR_TEST_SET): Likewise.
832         Add AS_LITERAL_WORD_IF.
833         * lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Also reject shell quoting
834         characters as non-literal, and provide way to reject space.
835         (AS_LITERAL_WORD_IF): New macro.
836         * doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
837         Document new macro.  Fix example to match reality.
838         * NEWS: Document change and new macro.
839         * tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
841         Optimize AC_DEFINE.
842         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Avoid overhead of
843         AS_LITERAL_IF.
845 2010-07-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
846         and Eric Blake  <eblake@redhat.com>
848         Describe a Solaris /bin/sh bug w.r.t. for loops.
849         * doc/autoconf.texi (Limitations of Shell Builtins) <for>:
850         Document a bug of the 'for' builtin in Solaris /bin/sh, w.r.t.
851         tokens seeming variable assignment in the list of arguments.
853 2010-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
855         Improve VPATH handling in config.status for non-Automake projects.
856         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Be sure not
857         to remove references to a subdir of srcdir.  Fix treatment of
858         multiple colon-separated VPATH entries.
859         * tests/torture.at (VPATH): New test.
860         Report by Keith Marshall.
862         Further improve docs about nested double-quotes and backquotes.
863         * doc/autoconf.texi (Shellology): Remove anchor for pdksh.
864         Move quoting bug example to ...
865         (Shell Substitutions): ... here.  Document which behavior is
866         specified by Posix.
868         Coverage for Fortran compiler macros.
869         * tests/fortran.at (AC_OPENMP and Fortran 77)
870         (AC_OPENMP and Fortran): Simplify, using AT_CHECK_CONFIGURE.
871         (AC_F77_DUMMY_MAIN usage, AC_FC_DUMMY_MAIN usage)
872         (AC_F77_MAIN usage, AC_FC_MAIN usage, AC_F77_FUNC usage)
873         (AC_FC_FUNC usage, AC_FC_SRCEXT usage, AC_FC_FREEFORM): New
874         tests.
875         * doc/autoconf.texi (Fortran Compiler): Use GNU coding style
876         on C code snippets.  Add markers for tested examples.
877         Suggest AC_FC_FREEFORM for source file extensions which the
878         compiler might not natively support but which are accepted
879         with help from AC_FC_SRCEXT.  Suggest AC_CONFIG_HEADERS for
880         setups using one of the AC_*MAIN macros.
882         Accept any nonzero exit status upon config.status write failure.
883         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
884         Normalize nonzero status to 1 for writing to /dev/full, for HP-UX
885         11.31 cat which exits 2.
887         Fix testsuite failure with Tru64 preprocessor.
888         * tests/compile.at (Order of user actions and cleanup): Add
889         incomplete comment to provoke failure with Tru64/OSF 5.1 cc
890         preprocessor.
892 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
893         and Eric Blake  <eblake@redhat.com>
895         Further clarification on sed -e portability.
896         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Clarify
897         more about sed -e and Posix limitations.
899 2010-06-22  Bruno Haible  <bruno@clisp.org>
901         Document how to use literal newlines in makefile rules.
902         * doc/autoconf.texi (Newlines in Make Rules): New section.
904         Document how to write comments in makefile rules.
905         * doc/autoconf.texi (Comments in Make Rules): Mention a workaround
906         syntax.
908 2010-06-22  Ben Pfaff  <blp@cs.stanford.edu>
910         Document how to propogate variables to submakes.
911         * doc/autoconf.texi: Describe technique used by Automake to
912         propagate variables to submakes in more detail.
914 2010-06-22  Peter Johansson  <trojkan@gmail.com>  (tiny change)
916         Be consistent in doc example.
917         * doc/autoconf.texi: (Polymorphic Variables) be consistent in code
918         example and output
920 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
922         Add comments for vim syntax highlighting.
923         * doc/autoconf.texi: Restore font-lock in some examples using
924         $$, for vim.
926         Formatting cleanups for optional arguments.
927         * doc/autoconf.texi (Configuration Actions, Help Formatting)
928         (External Software): Use @r{} for brackets denoting optional
929         arguments, where @ovar is not safe to use.
931         Clarify nested double-quotes and backquotes shell issues.
932         * doc/autoconf.texi (Shellology): New anchor for pdksh.
933         (Shell Substitutions): Link to it for escaped double-quotes
934         within double-quoted backquotes; add ksh example for unescaped
935         inner double-quotes problem.
937         Mention Tru64 5.1 fgrep limitation with emtpy patterns.
938         * doc/autoconf.texi (Limitations of Usual Tools): Update.
940         Overhaul the manual, esp. the Autotest chapter.
941         * doc/autoconf.texi (Installation Directory Variables):
942         Replace some uses of @var with @code.
943         (Special Shell Variables): Fix misordered paragraph about IFS.
944         (Writing Testsuites): Include paragraph following AT_TESTED in
945         the macro definition.
946         (testsuite Invocation): Failed tests are not rerun.
947         (testsuite Scripts, Autotest Logs, testsuite Invocation)
948         (Making testsuite Scripts): Minor edits for consistency and
949         language.
951 2010-06-18  Bruno Haible  <bruno@clisp.org>
953         Document sed -e limitation.
954         * doc/autoconf.texi (Limitations of Usual Tools): Mention portability
955         problem of sed -e option with script fragments.
957 2010-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
959         Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
960         * lib/autotest/general.m4 (_AT_ARG_OPTION): Fix translation of
961         hyphens to underscores when turning option names to variables.
962         Avoid macro name concatenation garbage with trailing `dnl'.
963         (AT_ARG_OPTION, AT_ARG_OPTION_ARG): Overhaul macro description.
964         The OPTIONS are space-separated, not comma-separated.  The
965         negative form of AT_ARG_OPTION is prefixed with `--no-'.
966         * tests/autotest.at (AT@&t@_ARG_OPTION, AT@&t@_ARG_OPTION_ARG):
967         New tests.
968         * NEWS: Update.
969         * doc/autoconf.texi (Writing Testsuites): Document AT_ARG_OPTION
970         and AT_ARG_OPTION_ARG.
971         (testsuite Invocation): Call the thingies passed to the
972         testsuite options, not arguments.  Note that the testsuite
973         author may add further package-specific options.
975         Autotest: enable colored test results.
976         * lib/autotest/general.m4 (HELP_TUNING_BEGIN): New diversion.
977         (HELP_TUNING, HELP_OTHER, HELP_END): Bump diversion numbers.
978         (AT_INIT): Accept
979         --color and --color=never|auto|always.  If desired, colorize
980         test results and testsuite summary on standard output.
981         [HELP_TUNING]: Divert content instead to ...
982         [HELP_TUNING_BEGIN]: ... this diversion, m4_wrapped until the
983         end, when we know whether AT_COLOR_TESTS has been specified.
984         (AT_COLOR_TESTS): New macro, set the default for color to auto.
985         * doc/autoconf.texi (Writing Testsuites): Document it.
986         (testsuite Invocation): Document --color* options.
987         * tests/local.at: Call AT_COLOR_TESTS for Autoconf's testsuite.
988         * tests/autotest.at (color test results): New test, mirroring
989         color.test from Automake.
990         * NEWS: Update.
992 2010-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
994         Avoid texinfo bug with backslashes in macro arguments.
995         * doc/autoconf.texi (Text processing Macros)
996         (Common Shell Constructs): Do not use @dvar with backslashes.
998 2010-06-14  Eric Blake  <eblake@redhat.com>
1000         Make CONFIG_SITE handling more robust.
1001         * lib/autoconf/general.m4 (AC_SITE_LOAD): Avoid leading - and path
1002         search, and check for failure to load.
1003         * tests/base.at (AC_CACHE_CHECK): Enhance test.
1004         * doc/autoconf.texi (Site Defaults): Mention that CONFIG_SITE
1005         works best as an absolute path.
1006         * NEWS: Document the semantic change.
1008 2010-03-13  Bruno Haible  <bruno@clisp.org>
1009         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1011         Allow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.
1012         * doc/autoconf.texi (External Software): Mention that AC_ARG_WITH
1013         accepts packages with a + sign in it.
1014         (Package Options): Likewise for AC_ARG_ENABLE.
1015         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Also replace '+' with '_'.
1016         * tests/base.at (AC_ARG_ENABLE and AC_ARG_WITH): New test.
1017         * NEWS: Update.
1019 2010-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1021         Autotest: simplify logic to compute test group result.
1022         * lib/autotest/general.m4 (AT_INIT): Compactify result
1023         computation logic.
1025         New Autotest testsuite option --recheck.
1026         * lib/autotest/general.m4 (AT_INIT): New variable $at_recheck.
1027         Escape hyphen in $at_dir early.  Accept command line switch
1028         --recheck.  Set $at_suite_log early, based on --directory
1029         switch; with --recheck, include the list of FAILed and XPASSed
1030         tests from old testsuite.log file in $at_groups.  Document
1031         --recheck in --help output.
1032         * tests/autotest.at (recheck): New test.
1033         * doc/autoconf.texi (testsuite Invocation): Document --recheck.
1034         * NEWS: Update.
1036 2010-06-14  Karl Berry  <karl@freefriends.org>  (tiny change)
1038         Clarify comment about old system.
1039         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Prefer GNU/Linux,
1040         and note that bug has long since been fixed.
1042 2010-06-08  Eric Blake  <eblake@redhat.com>
1044         Run libtool test with modern libtool.
1045         * tests/foreign.at (Libtool): Request that libtoolize install
1046         auxiliary files.  Assume libtool 2.x is modern.
1048 2010-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1050         Coverage and doc fixes for AC_LANG_SOURCE and AC_LANG_PROGRAM.
1051         * tests/compile.at (AC_LANG_SOURCE, AC_LANG_SOURCE(C++))
1052         (AC_LANG_SOURCE example, AC_LANG_PROGRAM example): New tests.
1053         * doc/autoconf.texi (Generating Sources): Add markers for tested
1054         examples; update quoting, and update AC_INIT usage to also set
1055         optional URL arguments.  Mention that the examples require gcc.
1056         Prompted by report from Brian J. Murrell.
1058         Make AS_SET_CATFILE polymorphic, and add testsuite coverage.
1059         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Use AS_VAR_SET to set
1060         the variable.
1061         * tests/m4sh.at (AS@&t@_SET_CATFILE): New test.
1062         * doc/autoconf.texi (Common Shell Constructs): Document that
1063         AS_SET_CATFILE is polymorphic in its VAR argument now.
1064         * NEWS: Update.
1066         Testsuite coverage for AC_COPYRIGHT and AT_COPYRIGHT.
1067         * tests/autotest.at (AT@&t@_COPYRIGHT): New test.
1068         * tests/base.at (AC@&t@_COPYRIGHT): Likewise.
1070         Testsuite coverage for __file__ and __line__.
1071         * tests/m4sugar.at (__file__ and __line__): New test.
1073         Testsuite coverage for AC_CACHE_VAL and caching semantics.
1074         * tests/base.at (AC_CACHE_CHECK): Extend test.
1075         (AC_CACHE_LOAD): New test.
1076         * tests/torture.at (Configuring subdirectories): Also test
1077         --config-cache with AC_CONFIG_SUBDIRS.
1078         * doc/autoconf.texi (Caching Results): Annotate code snippets
1079         which are tested in the test suite.
1080         (Cache Files): Documented cache variables may be used on the
1081         configure command line to override individual entries in the
1082         cache file.
1084         Clarify OpenBSD sh errexit issue with compound commands.
1085         * doc/autoconf.texi (Limitations of Builtins): Only the last
1086         command in a compound list is problematic.
1087         Tested on OpenBSD 4.4.
1089 2010-06-07  Eric Blake  <eblake@redhat.com>
1091         Properly quote AC_PREREQ during autoupdate.
1092         * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
1093         style for AC_PREREQ.
1094         * tests/tools.at (autoupdating AC_PREREQ): Update expected
1095         results.
1096         Reported by NightStrike.
1098 2010-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1100         Documentation and tests for the AC_CHECK_DECL change.
1101         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): Squash trailing
1102         spaces in as_decl_name.
1103         (_AC_CHECK_DECLS): Likewise for the define.
1104         * tests/semantics.at (AC_CHECK_DECLS): Extend test.
1105         * doc/autoconf.texi (Generic Declarations): Update.
1106         * NEWS: Update.
1108 2010-06-01  Joern Rennecke  <joern.rennecke@embecosm.com>  (tiny change)
1110         Generalize AC_CHECK_DECL for C++: allow optional arguments.
1111         * general.m4 (_AC_CHECK_DECL_BODY): Process trailing function
1112         argument types as arguments to use for C++.
1113         (_AC_CHECK_DECLS): Filter out trailing function argument types
1114         when generating the HAVE_DECL_* macro.
1116 2010-05-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
1117             Eric Blake  <eblake@redhat.com>
1119         Don't expose AC_{COMPILE,LINK}_IFELSE internals in documentation.
1120         * doc/autoconf.texi (Runtime) <AC_LINK_IFELSE>: Suggest to use
1121         `conftest$EXEEXT' rather than `conftest$ac_exeext' to acces the
1122         just-linked program file.
1123         (Runtime) <AC_COMPILE_IFELSE>: Suggest to use `conftest.$OBJEXT'
1124         rather than `conftest.$ac_object' to access the just-compiled
1125         object file.  Also, refer to the object file as "just-compiled"
1126         rather than "just-linked".
1128 2010-05-20  Eric Blake  <eblake@redhat.com>
1130         Mention another line-counting alternative.
1131         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
1132         how to use sed to count lines.
1133         Suggested by Paolo Bonzini.
1135 2010-05-12  Eric Blake  <eblake@redhat.com>
1137         Document the grep workaround.
1138         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
1139         the bug.
1141 2010-05-12  Mark Hessling  <mark@rexx.org>  (tiny change)
1143         Work around QNX4 grep bug.
1144         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Count ^
1145         rather than $ to avoid QNX4 grep bug.
1146         * THANKS: Update.
1148 2010-05-11  David Reiss  <dreiss@facebook.com>  (tiny change)
1150         Improve Erlang documentation.
1151         * doc/autoconf.texi (Erlang Libraries): Document actual default
1152         values.
1153         * THANKS: Update.
1155 2010-05-11  Eric Blake  <eblake@redhat.com>
1157         Fix typo in previous patch.
1158         * doc/autoconf.texi (File Descriptors): Add end '.
1159         Reported by Ralf Wildenhues.
1161         Mention how to silence program probes.
1162         * doc/autoconf.texi (File Descriptors): Document how to silence a
1163         program probe.
1165 2010-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1167         Error and warning message formatting cleanups.
1168         * doc/autoconf.texi (Autoconf Language, Generic Structures):
1169         Do not capitalize the first word in error messages, do not end
1170         them with a period.
1171         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS, AC_MSG_FAILURE):
1172         Likewise.
1173         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Likewise.
1174         * lib/autotest/general.m4 (AT_INIT, at_fn_group_prepare):
1175         Likewise.
1176         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1177         * tests/base.at (AC_TRY_COMMAND): Likewise.
1178         * tests/torture.at (datarootdir workaround): Adjust expected
1179         message.
1181         Fix placing of ellipses in English text.
1182         * lib/autoconf/general.m4 (_AC_INIT_HELP): Be sure to add a
1183         space before `...' in natural language text.
1184         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY):
1185         Likewise.
1186         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
1187         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Likewise.
1188         * tests/suite.at: Likewise.
1189         * tests/torture.at (@%:@define header templates): Likewise.
1191         Ensure autotest tests have an atconfig file, for testsuite -v.
1192         * tests/autotest.at (AT_CHECK_AT_PREP): Create a default
1193         atconfig file in the directory of the testsuite.
1194         (AT_CHECK_AT_TITLE): Also check that `./micro-suite -v' output
1195         does not contain empty $at_srcdir expansion.
1196         (srcdir propagation): Remove the atconfig file generated by
1197         AT_CHECK_AT_PREP.  Check each suite invocation for $at_srcdir
1198         expansion.
1200         Fix autotest testsuite -v output to print test group title.
1201         * lib/autotest/general.m4 (AT_CLEANUP): Actually print test
1202         title in verbose output.  Fixes AUTOCONF-2.57-101-gc102ed8
1203         regression.
1204         * tests/autotest.at (AT_CHECK_AT_TITLE): Amend macro to check
1205         for test title in -v output.
1207 2010-04-26  Eric Blake  <eblake@redhat.com>
1209         Clarify octal escapes with tr.
1210         * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
1211         is portable in octal, but not newline.
1213 2010-04-22  Joel James Adamson  <joel@chondestes.bio.unc.edu>  (tiny change)
1215         Add a paragraph to FAQ on Debugging configure scripts.
1216         * doc/autoconf.texi (Debugging): Mention inspecting config.log.
1217         * THANKS: Update.
1219 2010-04-21  Mike Frysinger  <vapier@gentoo.org>  (tiny change)
1221         Fix typo in doc example.
1222         * doc/autoconf.texi (Subdirectories): Fix typo.
1224 2010-04-05  Eric Blake  <eblake@redhat.com>
1226         Fix m4_cr_all for EBCDIC.
1227         * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
1228         don't end up with $* in EBCDIC.
1229         * NEWS: Document the fix.
1230         * THANKS: Update.
1231         Reported by Steve Goetze.
1233 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1235         Do not use @acronym in the manual.
1236         * doc/autoconf.texi: Remove all usage of @acronym.
1237         Suggested by Karl Berry.
1239         Do not use @sc in the manual.
1240         * doc/autoconf.texi: Remove all usage of @sc in the manual.
1241         Suggested by Karl Berry.
1243 2010-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1245         Fix wrong comment in testsuite.
1246         * tests/m4sugar.at (m4@&t@_warn): Remove copy&pasted comment.
1248         Formatting cleanups in macro comments.
1249         * lib/autoconf/c.m4, lib/autoconf/erlang.m4,
1250         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
1251         lib/autoconf/general.m4, lib/autoconf/lang.m4,
1252         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
1253         lib/autoconf/status.m4, lib/autoconf/types.m4,
1254         lib/autotest/general.m4, lib/autotest/specific.m4,
1255         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4,
1256         tests/autotest.at, tests/local.at, tests/m4sh.at,
1257         tests/semantics.at, tests/tools.at, tests/torture.at: Fix macro
1258         comment format.
1260 2010-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1262         manual: index strings containing colon in non-info outputs.
1263         * doc/autoconf.texi (Quadrigraphs, Shell Substitutions): Produce
1264         index entries for concepts containing a colon in output formats
1265         other than info.
1267         Update copyright years for files generated by mktests.sh.
1268         * tests/mktests.sh: Update copyright years for generated files.
1270 2010-03-04  Eric Blake  <eblake@redhat.com>
1272         Document AC_LANG_CONFTEST semantic change.
1273         * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
1274         Enhance documentation, to show that semantic change in 2.63b was
1275         intentional.
1276         * THANKS: Update.
1277         Reported by Brian J. Murrell, analyzed by Ralf Wildenhues.
1279 2010-03-04  Peter Johansson  <trojkan@gmail.com>  (tiny change)
1281         Autoconf Macro Archive URL has changed.
1282         * doc/autoconf.texi (Introduction, Coding Style, Defining
1283         Directories): The Autoconf Macro Archive is officially `GNU'.
1284         Update URL.
1286 2010-03-02  Eric Blake  <eblake@redhat.com>
1288         Fix shell code in AS_TR_SH documentation.
1289         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
1290         example to expand to valid shell code.
1291         Reported by Ralf Wildenhues.
1293         Improve documentation on AC_{COMPILE,LINK}_IFELSE.
1294         * doc/autoconf.texi (Running the Compiler): Mention that the
1295         object file is available after a successful compile.
1296         (Running the Linker): Likewise for the linker output.
1297         Suggested by Paolo Bonzini.
1299         Fix typo in docs.
1300         * doc/autoconf.texi (Conditional constructs) <m4_ifblank>: Fix
1301         typo.
1303 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1305         Fix AS_ERROR for FreeBSD sh.
1306         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): Rewrite as_fn_error
1307         to take additional first argument STATUS instead of transporting
1308         $? across shell function entry, which does not work with FreeBSD
1309         sh.  Shift all other arguments by one, adjust.
1310         (AS_ERROR): Pass EXIT-STATUS, defaulting to $?, to as_fn_error.
1311         Report by Václav Haisman.
1313         Fix `autom4te cache creation' testsuite failure on FreeBSD.
1314         * tests/tools.at (autom4te cache creation): Normalize exit
1315         status of failed redirection to 1, may be 2 with FreeBSD sh.
1316         * THANKS: Update.
1317         Report by Václav Haisman.
1319         Fix Autotest tracing of shell pipelines for FreeBSD sh.
1320         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
1321         commands that contain [^|]|[^|], a likely shell pipeline.
1322         * tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
1323         grep pipeline.
1324         * doc/autoconf.texi (File Descriptors): Document limitation.
1325         * tests/autotest.at (Trace output): New test.
1327 2010-03-01  Eric Blake  <eblake@redhat.com>
1329         Update file flow diagram to mention Automake.
1330         * doc/autoconf.texi (Making configure Scripts): Avoid confusion
1331         with listing Makefile.in twice on one line.  Add a diagram showing
1332         how automake fits into the picture.
1333         Reported by santilín.
1335 2010-02-26  Eric Blake  <eblake@redhat.com>
1337         Optimize AC_REPLACE_FUNCS.
1338         * lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): New helper macro.
1339         (AC_REPLACE_FUNCS): Use it to reduce forks when checking for
1340         replacements, by using literal rather than shell variable.
1342         Document how to safely override CFLAGS default.
1343         * doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
1344         change the default CFLAGS.
1345         (C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
1346         Reported by Monty Taylor; wording suggested by Paolo Bonzini.
1348         Document that Autoconf relies on IFS.
1349         * doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
1350         about use of IFS within configure script.
1351         * THANKS: Update.
1352         Reported by Arkadiusz Miskiewicz.
1354         Recommend latest m4 release.
1355         * README: Bump recommendation to m4 1.4.14 (minimum remains
1356         1.4.6).
1357         * doc/autoconf.texi (Introduction): Likewise.
1358         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
1360 2010-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1362         Fix testsuite failures due to setting of $U.
1363         * tests/local.at (_AT_CHECK_ENV): Ignore setting of $U.
1365 2010-02-10  Eric Blake  <ebb9@byu.net>
1367         Avoid $U if it is not initialized.
1368         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
1369         set if automake did not define it.
1370         * THANKS: Update.
1371         Reported by Heiko Schlichting, via Julien Élie.
1373 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1375         Fix substitution of carriage return on Darwin.
1376         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Set
1377         ac_cs_awk_cr to '\\r', so that sed portably expands this to '\r'
1378         rather than a literal carriage return, to fix substitution on
1379         Darwin.  Regression introduced in 2.63b.
1380         Report by Peter O'Gorman.
1382 2010-01-21  Dmitry V. Levin <ldv@altlinux.org>
1384         Fix test failure when a shell uses $TMPDIR for here-documents.
1385         * tests/tools.at (autotools and whitespace in file names): Create
1386         $TMPDIR before potential use like in other whitespace tests.
1388 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1390         Add recommendation on (not) unsetting IFS.
1391         * doc/autoconf.texi (Special shell variables): Explain why it's
1392         better not to unset IFS.
1394 2010-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1396         config.status: consistent exit status with nonexistent config file input.
1397         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Ensure we
1398         exit with status 1 rather than with that of 'false', for
1399         reproducibility.
1400         (AC_OUTPUT): Ensure to exit 1 in case of config.status failure.
1401         * tests/torture.at (Missing templates): Also test code path
1402         for $srcdir != '.'.
1403         Report by Tim Rice.
1405 2010-01-13  Eric Blake  <ebb9@byu.net>
1407         Fix previous example.
1408         * doc/autoconf.texi (Here-Documents): Touch up the example to
1409         match output to sample command line.
1411         Document here-doc pitfall.
1412         * doc/autoconf.texi (Here-Documents): Mention problem with <<-
1413         operator.
1414         Reported by Jim Meyering.
1416 2010-01-12  Eric Blake  <ebb9@byu.net>
1418         Typo fix in earlier commit.
1419         * doc/autoconf.texi (Autoconf Language): Fix typo.
1421 2010-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1423         Allow AC_FUNC_MKTIME to work with C++.
1424         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): ANSIfy KnR function
1425         definitions.  Use `const char*' for character literals; cast them
1426         to `char*' for putenv.
1428 2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1430         Export AUTOM4TE in tests/atlocal.in, for aclocal.
1431         * tests/atlocal.in: Set and export $AUTOM4TE, for aclocal.
1432         Report by Tim Rice.
1434 2010-01-08  Eric Blake  <ebb9@byu.net>
1436         Make autotest example act better with automake.
1437         * doc/autoconf.texi (Making testsuite Scripts): Rely on automake
1438         feature for recommended autotest snippet, following our own use.
1440         Clarify language on handling of opening parenthesis.
1441         * doc/autoconf.texi (Autoconf Language): Give an example of
1442         improper argument passing.
1443         * THANKS: Update.
1444         Reported by Juan Carlos Hurtado.
1446 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1448         Don't fail autom4te preselection test due to different Automake.
1449         * tests/tools.at (autom4te preselections): If the cache test
1450         fails, extract the Automake version from the toplevel
1451         Makefile.in file of the source tree; skip, rather than fail
1452         the test group if the automake program has a different version.
1453         * THANKS: Update.
1454         Report by Dieter Jurzitza, fix suggested by Eric Blake.
1456 2010-01-06  Peter Breitenlohner  <peb@mppmu.mpg.de>
1457             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1459         Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
1460         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source,
1461         not $srcdir, for being relative or absolute.
1462         * tests/torture.at (AC_CONFIG_LINKS): New test.
1463         (AC_CONFIG_LINKS and identical files): Extend test, avoid some
1464         forks.
1465         Report, patch and testcase example by Peter Breitenlohner.
1467 2010-01-05  Eric Blake  <ebb9@byu.net>
1469         Improve release automation.
1470         * maint.mk (gnulib_dir, gnulib-version, bootstrap-tools)
1471         (announcement): Copy from latest gnulib maint.mk.
1472         * cfg.mk (announce_gen, gpg_key_ID): Delete.
1473         (bootstrap-tools): Override the default.
1475         Update upstream files.
1476         * GNUmakefile: Update via 'make fetch'.
1477         * build-aux/announce-gen: Likewise.
1478         * build-aux/config.guess: Likewise.
1479         * build-aux/config.sub: Likewise.
1480         * build-aux/gendocs.sh: Likewise.
1481         * build-aux/gnupload: Likewise.
1482         * build-aux/move-if-change: Likewise.
1483         * build-aux/update-copyright: Likewise.
1484         * build-aux/vc-list-files: Likewise.
1485         * doc/standards.texi: Likewise.
1486         * cfg.mk (update-copyright-env): Enforce wrap column.
1488         Update copyright year.
1489         All files changed to add 2010, via 'make update-copyright'.
1491 2009-12-31  Bruno Haible  <bruno@clisp.org>
1493         Improve documentation on Solaris tr bugs.
1494         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1495         description of NUL handling by Solaris tr.
1497 2009-12-31  Eric Blake  <ebb9@byu.net>
1499         Another tr tweak.
1500         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Clarify
1501         previous commit.
1502         Reported by Ralf Wildenhues.
1504 2009-12-29  Eric Blake  <ebb9@byu.net>
1506         Improve documentation on tr portability.
1507         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
1508         description of NUL handling.  Document set size issue.
1509         Reported by Bruno Haible.
1511         Fix comment in AC_CHECK_DECLS.
1512         * lib/autoconf/general.m4 (AC_CHECK_DECL): Document the includes
1513         argument to the shell function.
1515 2009-12-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1517         Add testsuite exposure for shtool usage.
1518         * tests/foreign.at (shtool): New test.
1519         Report by Dmitry Grebeniuk.
1521 2009-12-12  Eric Blake  <ebb9@byu.net>
1523         Improve wording about m4 quote characters.
1524         * doc/autoconf.texi (Autoconf Language): Autoconf quote characters
1525         come from m4sugar, not raw m4.
1526         (Active Characters): Mention that it is m4sugar which changes
1527         quotes from `' to [].
1528         * THANKS: Update.
1529         Suggested by Josef Vukovic.
1531 2009-12-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1533         Revert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
1534         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Revert test for
1535         shtool as install script.  Regression introduced in 2.64.
1536         * NEWS, THANKS: Update.
1537         Report by Dmitry Grebeniuk.
1538         This reverts commit 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4.
1540 2009-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1542         Fix NEWS description for AC_FUNC_MMAP entry.
1543         * NEWS: Update.
1545         Fix 2.65 AC_TYPE_INT*_T macro body text regression.
1546         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
1547         definition to prologue section, to avoid syntax error.
1548         * NEWS, THANKS: Update.
1549         Report by Pierre Ynard.
1551 2009-12-09  Paolo Bonzini  <bonzini@gnu.org>
1553         Fix `recursion' test failure.
1554         * tests/m4sugar.at (recursion): Use empty diversion, not 0.
1556 2009-12-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
1557             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1559         Document Solaris/Heirloom sh set -e issue with command substitutions.
1560         * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
1561         in previous example.  Document failure to honor && lists with set -e
1562         and a command substitution in the failing command.
1563         Report and initial patch by Stefano Lattarini against Automake.
1565 2009-12-04  Eric Blake  <ebb9@byu.net>
1567         Warn if using unnamed diversion.
1568         * lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
1569         optional parameter, which controls warning.
1570         (m4_divert_pop, m4_cleardivert, m4_divert_require)
1571         (_m4_require_call): Adjust callers.
1572         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
1573         * tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
1574         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&t@_append)
1575         (m4@&t@_text_wrap, recursion): Likewise.
1576         (m4@&t@_warn, m4@&t@_divert_stack): Adjust expected output.
1577         * tests/tools.at (autom4te and whitespace in file names)
1578         (autoconf: the empty token): Avoid triggering the warning.
1579         (autoconf: AC_PRESERVE_HELP_ORDER): New test.
1580         * tests/mktests.sh (ac_exclude_list): Retire prior test.
1581         * NEWS: Document the warning.
1582         * doc/autoconf.texi (Redefined M4 Macros) <m4_divert>,
1583         <m4_undivert>: Make even more explicit that using these directly
1584         is discouraged.
1585         (Diversion support): Further warn against improper diversion
1586         changes.
1587         <m4_divert_text>: Give an example of proper use.
1588         Reported by Mike Frysinger.
1590 2009-11-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1592         manual: AC_SEARCH_LIBS also prepends to LIBS.
1593         * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS
1594         prepends to LIBS, just like AC_CHECK_LIB.
1596 2009-11-27  Paolo Bonzini  <bonzini@gnu.org>
1598         Bump m4.m4 serial number.
1599         * m4/m4: Bump serial number to 10.
1601 2009-11-27  Harald van Dijk  <truedfx@gentoo.org>
1603         Fix m4 detection test on dash.
1604         * m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
1606 2009-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1608         Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
1609         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
1610         for the constant string.  Cast void* to char* for assignment.
1611         * NEWS, THANKS: Update.
1612         Report by Michal Čihař.
1614         Add pgfortran to list of Fortran 95+ compilers.
1615         * lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
1616         pgf95.
1617         Based on report by Jeff Squyres.
1619 2009-11-22  Bruno Haible  <bruno@clisp.org>
1621         Fix failure of test 35 when the user has a .autom4te.cfg file.
1622         * tests/tools.at (autom4te cache creation): Skip the test if the
1623         user has a .autom4te.cfg file.
1625 2009-11-21  Eric Blake  <ebb9@byu.net>
1627         Release Version 2.65.
1628         * NEWS: Mention the release.
1630         Prepare for release.
1631         * build-aux/announce-gen: Sync from upstream.
1632         * build-aux/config.guess: Likewise.
1633         * build-aux/config.sub: Likewise.
1634         * cfg.mk (gnu_rel_host, url_dir_list): Move...
1635         * maint.mk: ...here, copying ideas from gnulib.
1636         (major): Rename...
1637         (stable): ...to this, copying gnulib.
1638         * HACKING (release): Document changes in process.
1640         Avoid spurious newline in traced macros.
1641         * bin/autoreconf.in (tracing): Drop newline before parsing traced
1642         arguments; regression from 2009-11-14.
1644 2009-11-20  Eric Blake  <ebb9@byu.net>
1646         Allow absolute names in AT_TESTED.
1647         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Check for
1648         absolute names before path walk.
1649         * THANKS: Update.
1650         Suggested by Allan Clark.
1652 2009-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1654         Fix AC_CONFIG_SUBDIRS tracing in autoreconf.
1655         * bin/autoreconf.in (autoreconf_current_directory): Collapse
1656         newlines in the autoconf trace output, similar to how automake
1657         invokes autoconf, so that newlines do not matter in the argument
1658         to AC_CONFIG_SUBDIRS.
1659         * tests/torture.at (Deep Package): Expose this issue in the
1660         test.
1661         * THANKS: Update.
1662         Report by Nathan Schulte.
1664 2009-11-09  Eric Blake  <ebb9@byu.net>
1666         Fix AC_FUNC_MMAP for cygwin.
1667         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Make the test more
1668         portable: Actually check for <sys/param.h>, and only use MAP_FIXED
1669         on an address previously returned from mmap.
1670         * THANKS: Update.
1671         Reported by Corinna Vinschen.
1673 2009-11-04  Eric Blake  <ebb9@byu.net>
1675         Redocument AS_DIRNAME, even with its flaws.
1676         * doc/autoconf.texi (Common Shell Constructs) <AS_DIRNAME>:
1677         Restore documenatation, since dirname mentions it.
1678         Reported by Peter Johansson.
1680         Update upstream files.
1681         * build-aux/announce-gen: Synchronize from upstream.
1682         * build-aux/config.guess: Likewise.
1683         * build-aux/config.sub: Likewise.
1684         * build-aux/gendocs.sh: Likewise.
1685         * build-aux/git-version-gen: Likewise.
1686         * build-aux/texinfo.tex: Likewise.
1687         * build-aux/update-copyright: Likewise.
1688         * doc/standards.texi: Likewise.
1689         * lib/Autom4te/Channels.pm: Likewise.
1690         * lib/Autom4te/Configure_ac.pm: Likewise.
1691         * lib/Autom4te/FileUtils.pm: Likewise.
1692         * lib/Autom4te/Struct.pm: Likewise.
1693         * lib/Autom4te/XFile.pm: Likewise.
1695 2009-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1697         Coverage for autom4te cache creation issues.
1698         * tests/tools.at (autom4te cache creation): New test.
1700 2009-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1702         Fix testsuite failures with SHELL=zsh.
1703         * tests/statesave.m4 (AC_STATE_SAVE): Ignore argv and ARGC when
1704         comparing configure variables.
1706 2009-11-03  Eric Blake  <ebb9@byu.net>
1707         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1709         Update NEWS for recent fixes.
1710         * NEWS: Add some entries.
1712 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1714         Micro-optimization of config.status substitution.
1715         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): No need to
1716         concatenate an empty second string, when we have exactly 148
1717         characters to substitute.
1718         * tests/torture.at (Substitute a 2000-byte string): Add test
1719         exposure for runs of backslashes near the 148 character limit.
1721         Fix testsuite failure on AIX 4.3.3.
1722         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT): Remove conftest.err
1723         also if it is empty.
1725         Fix testsuite failure on IRIX and AIX.
1726         * tests/torture.at (Substitute and define special characters):
1727         Double the backslash before the double-quote in
1728         AC_DEFINE_UNQUOTED, as documented for here-documents.
1730 2009-10-31  Eric Blake  <ebb9@byu.net>
1732         Fix cross-manual link to gcc.
1733         * doc/autoconf.texi (Portable C and C++): Provide uref rather than
1734         xref when building for html.
1735         Reported via Karl Berry.
1737         Update authors.
1738         * AUTHORS: Document recent copyright assignments.
1740 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1742         Fix AC_OPENMP configure message for non-C compilers.
1743         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Accept as additional
1744         fourth arg the compiler variable name, defined in _AC_CC($1).
1745         (_AC_CC): New language dispatch macro.
1746         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Adjust.
1747         * lib/autoconf/fortran.m4 (AC_LANG(Fortran 77), AC_LANG(Fortran)):
1748         Likewise.
1749         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++))
1750         (AC_LANG(Objective C), AC_LANG(Objective C++)): Likewise.
1751         (AC_OPENMP): Use _AC_CC instead of $CC.
1753         Do not fail OpenMP tests on systems without aclocal.
1754         * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
1755         `ACLOCAL=true' for autoreconf, the tests don't need aclocal.
1756         * tests/fortran.at (AC_OPENMP and Fortran 77)
1757         (AC_OPENMP and Fortran): Likewise.
1759 2009-10-31  Bruno Haible  <bruno@clisp.org>
1760             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1762         Improve cache variable documentation.
1763         * doc/autoconf.texi (AC_PROG_AWK, AC_PROG_GREP, AC_PROG_EGREP,
1764         AC_PROG_FGREP, AC_PROG_INSTALL, AC_PROG_MKDIR_P, AC_PROG_LEX,
1765         AC_PROG_YACC, AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG,
1766         AC_PATH_PROGS): Don't suggest to use the cache variable, only to
1767         override it, or preferably, a non-cache variable associated with
1768         the test.
1769         (AC_PROG_SED): Likewise. Fix name of cache variable.
1770         (AC_FUNC_GETMNTENT): Fix name cache variable.
1771         (AC_FUNC_LSTAT): Fix typo.
1773 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1775         Fix AC_OPENMP for Fortran (F77 and FC).
1776         * lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
1777         * tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
1778         (AC_OPENMP and C++): New tests.
1779         * tests/fortran.at (AC_OPENMP and Fortran 77)
1780         (AC_OPENMP and Fortran): New tests.
1781         * THANKS: Update.
1782         Report by Bart Oldeman.
1784         Perl coverage convenience targets.
1785         * Makefile.am (PERL_COVERAGE_DB, PERL_COVERAGE_FLAGS)
1786         (PERL_COVER): New variables.
1787         (check-coverage, check-coverage-run, check-coverage-report)
1788         (clean-coverage): New phony targets.
1789         (clean-local): Depend on clean-coverage.
1791 2009-10-28  Eric Blake  <ebb9@byu.net>
1793         Fix corner cases in AS_LITERAL_IF and AS_TR_SH.
1794         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix bug with unbalanced
1795         parens.  Move guts...
1796         (_AS_LITERAL_IF): into new helper.
1797         (AS_TR_SH, AS_TR_CPP): Fix bugs with expansion of wrong macro.
1798         Move guts...
1799         (_AS_TR_SH, _AS_TR_SH_LITERAL, _AS_TR_SH_INDIR, _AS_TR_CPP)
1800         (_AS_TR_CPP_LITERAL, _AS_TR_CPP_INDIR): ...into new helpers.
1801         (AS_VAR_PUSHDEF): Hoist m4_require, by moving guts...
1802         (_AS_VAR_PUSHDEF): ...into new helper.
1803         * tests/m4sh.at (AS@&t@_LITERAL_IF): Enhance test.
1805         Minor optimizations to m4sh.
1806         * lib/m4sugar/m4sh.m4 (AS_VAR_IF, AS_IDENTIFIER_IF)
1807         (AS_LITERAL_IF): Parse fewer bytes during expansion, by visiting
1808         if-true and if-false arguments only once.
1810         Optimize m4_escape for common case.
1811         * lib/m4sugar/m4sugar.m4 (m4_escape): Don't use regex if string is
1812         already sane, by copying from AS_LITERAL_IF.  Move guts...
1813         (_m4_escape): ...into new helper.
1815         Fix m4_text_wrap handling of quoted whitespace.
1816         * lib/m4sugar/m4sugar.m4 (m4_escape): New macro.
1817         (m4_text_wrap): Use it to avoid issues with embedded [ and ].
1818         * tests/m4sugar.at (m4@&t@_text_wrap): Test it.
1819         * NEWS: Document this.
1820         * doc/autoconf.texi (Text processing Macros) <m4_escape>:
1821         Likewise.
1822         Reported by Mike Frysinger.
1824 2009-10-27  Eric Blake  <ebb9@byu.net>
1826         Mention another feature of AC_RUN_IFELSE.
1827         * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Mention that
1828         compiled test program still exists during if-true branch.
1829         * THANKS: Update.
1830         Reported by Stefano Lattarini, suggestion by Ralf Wildenhues.
1832 2009-10-26  Paolo Bonzini  <bonzini@gnu.org>
1834         Pass Autom4te path down to programs that autoreconf invokes.
1835         * bin/autoreconf.in (autom4te): New variable.  Export its value
1836         as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
1837         * THANKS: Update.
1839 2009-10-20  Eric Blake  <ebb9@byu.net>
1841         Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
1842         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
1843         (_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
1844         wider than type.
1845         * NEWS: Document this.
1846         Reported by Rainer Orth.
1848 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1850         Fix a couple of index entries in the manual.
1851         * doc/autoconf.texi (Polymorphic Variables): Fix index entries
1852         for AS_VAR_APPEND, AS_VAR_ARITH.
1854 2009-10-15  Eric Blake  <ebb9@byu.net>
1856         Fix typos in INSTALL.
1857         * doc/install.texi (Basic Installation, Installation Names): Fix
1858         typos in last patch.
1859         Repored by Ralf Wildenhues.
1861         Improve INSTALL wording.
1862         * doc/install.texi (Basic Installation): Clarify installcheck
1863         behavior.
1864         (Installation Names): Mention that --prefix only overrides
1865         directory locations not specified on the command line.  Prefer
1866         /alternate/directory over /path/to.  Remove a sentence targeted to
1867         the developer, not the user.
1868         * THANKS: Update.
1869         Suggested by Alfred M. Szmidt.
1871 2009-10-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1873         Fix typos in documentation.
1874         * doc/autoconf.texi (Cache Variable Index): Fix typo.
1875         (Libraries) <AC_SEARCH_LIBS>: Mention 'none required' result.
1877 2009-10-09  Bruno Haible  <bruno@clisp.org>
1878             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1880         Recommend `sh -n' debugging, and public result variables for macros.
1881         * doc/autoconf.texi (Debugging): Recommend to use "bash -n
1882         configure".  Recommend the use of result variables as an
1883         alternative to run-if-true/run-if-false parameters.
1885 2009-10-05  Bruno Haible  <bruno@clisp.org>
1887         * doc/autoconf.texi (Particular Functions): Swap sections about
1888         AC_FUNC_MBRTOWC and AC_FUNC_MEMCMP.
1890 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
1892         Unconditionally check for junk ./--version after mkdir search loop.
1893         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
1894         presence of ./--version.  Reported by Eric Blake.
1896 2009-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1898         Clarify documentation about Solaris sed quantifier restriction.
1899         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
1900         not work after subexpressions, \{M,N\} only after one-character
1901         expressions.  From GCC PR 38923.
1903 2009-09-21  Eric Blake  <ebb9@byu.net>
1905         Fit configure output in 80 columns.
1906         * lib/autoconf/functions.m4
1907         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.
1909 2009-09-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1911         Use consistent notation for cache variables.
1912         * doc/autoconf.texi (Generic Programs): Remove `$' before
1913         variable name.
1915         Documentation of specific and general cache variables.
1916         * doc/autoconf.texi (Default Includes, Alternative Programs)
1917         (Particular Programs, Generic Programs, Files, Libraries)
1918         (Function Portability, Particular Functions, Generic Functions)
1919         (Particular Headers, Generic Headers, Declarations)
1920         (Generic Declarations, Particular Structures, Particular Types)
1921         (Specific Compiler Characteristics)
1922         (Generic Compiler Characteristics, C Compiler, System Services):
1923         Document lots of cache variables.
1924         * NEWS: Update.
1925         Suggested by Bruno Haible.
1927         New cache variable index in the manual.
1928         * doc/autoconf.texi: Define new index `CA' for cache variables.
1929         (caindex): New macro.
1930         (Cache Variable Index): New appendix node.
1931         (Top, Indices): Adjust menus.
1932         (Cache Variable Names, Site Defaults): Adjust text.
1933         * doc/Makefile.am (CLEANFILES): Add files generated for CA index.
1935         New FAQ node: Debugging.
1936         * doc/autoconf.texi (Debugging): New node.
1937         (Top, FAQ): Adjust menus.
1938         Report by Bruno Haible.
1940         Document AM_MAKEFLAGS workaround to the macro override problem.
1941         * doc/autoconf.texi (Macros and Submakes): Automake makefiles
1942         provide AM_MAKEFLAGS to help with overriding macros in submake
1943         invocations.
1944         Prompted by bug report from Bruno Haible.
1946 2009-09-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1948         Implement and document Objective C++ support.
1949         * lib/autoconf/c.m4 (AC_LANG(Objective C++), AC_LANG_OBJCXX)
1950         (AC_LANG_PREPROC(Objective C++), AC_PROG_OBJCXXCPP)
1951         (AC_LANG_COMPILER(Objective C++), AC_PROG_OBJCXX)
1952         (_AC_PROG_OBJCXX_G): New macros.
1953         (_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
1954         (_AC_ARG_VAR_LIBS): Adjusted.
1955         * doc/autoconf.texi (Objective C++ Compiler): New node.
1956         (Preset Output Variables): Document OBJCXXFLAGS.
1957         (Language Choice): Document `Objective C++' language.
1958         * NEWS: Updated.
1959         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C++
1960         related variables.
1962 2009-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1964         Work around DJGPP shell function return bug with command substitutions.
1965         DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
1966         shell function which also contains a command substitution causes
1967         the shell to barf.  For more details and a fix see:
1968         <http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
1969         Possible workaround include putting the `return' in a subshell
1970         or calling another function to set the status.
1971         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
1972         (_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
1973         (_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
1974         instead of `return'.
1975         * doc/autoconf.texi (Common Shell Constructs, Shell Functions):
1976         Document the issue.
1977         * THANKS: Update.
1978         Report by Rugxulo and Reuben Thomas.
1980         DJGPP fix: Do not redirect standard input in configure scripts.
1981         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
1982         nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
1983         fd 0.
1985 2009-09-14  Eric Blake  <ebb9@byu.net>
1987         Quote result of m4_toupper and m4_tolower.
1988         * lib/m4sugar/m4sugar.m4 (m4_tolower, m4_toupper): Quote result.
1989         * lib/autotest/general.m4 (AT_KEYWORDS): Adjust caller.
1990         * tests/m4sugar.at (m4@&t@_toupper and m4@&t@_tolower): New test.
1991         * NEWS: Document this.
1992         * THANKS: Update.
1993         Reported by Sam Steingold.
1995 2009-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1997         DJGPP fix: remove both conftest and conftest.exe.
1998         The DJGPP compiler may create both `a.out' and `a.exe' without -o,
1999         and both `conftest' and `conftest.exe' with `-o conftest', but not
2000         with `-o conftest.exe'.
2001         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
2002         `conftest' without $ac_exeext suffix.
2004         DJGPP fix: do not try to source /dev/null as cache or site file.
2005         * lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not
2006         load the cache or site file if it is `/dev/null', as DJGPP treats
2007         it as a regular file, but the shell then warns about it later.
2008         Fixes several test suite failures on DJGPP.
2010         testsuite: pass $configure_options to configure invocations.
2011         * tests/local.at (AT_CHECK_CONFIGURE): Add $configure_options
2012         to configure command line.
2013         * tests/autotest.at, tests/base.at, tests/c.at, tests/torture.at:
2014         Likewise for each configure invocation.
2015         * README-hacking: Document configure_options.
2017         testsuite: improve Erlang tests portability, overridability.
2018         * tests/autotest.at (Erlang Eunit unit tests): Use "no" as
2019         value-if-not-found for Erlang tools.
2020         * tests/erlang.at: Likewise.  Also, use AS_EXIT instead of plain
2021         exit.
2023 2009-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2025         * bin/autoupdate.in: Fix typos in comments.
2027         Improve autotest testsuite summary message.
2028         * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
2029         only if not $at_debug_p.  Always hint at the per-test output.
2031         Four new autoupdate tests, expected failures.
2032         * tests/tools.at (autoupdating macros recursively)
2033         (autoupdating with m4@&t@_pushdef, autoupdating with AC_REQUIRE)
2034         (autoupdating with complex quoting): New tests.
2036         Fix description of AC_CHECK_LIB regarding other deplibs.
2037         * doc/autoconf.texi (Libraries): Library linking may not fail
2038         even without missing additional libs.
2040 2009-09-12  Eric Blake  <ebb9@byu.net>
2042         Track recent copyright assignments.
2043         * AUTHORS: Update.
2045         Improve documentation on quoting.
2046         * doc/autoconf.texi (Autoconf Language): Clarify quoting example.
2047         * THANKS: Update.
2048         Reported by santilín.
2050 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2052         New config.status option --config.
2053         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement
2054         --config.
2055         * doc/autoconf.texi (config.status Invocation): Document it.
2056         * NEWS: Update.
2057         * tests/torture.at (configure invocation): Test it.
2058         Suggested several times, by several people, in the past.
2060 2009-09-10  Eric Blake  <ebb9@byu.net>
2062         Document that AS_INIT is automatically used.
2063         * doc/autoconf.texi (Initialization Macros) <AS_INIT>: Add words
2064         to clarify that only bare-bones scripts need a direct AS_INIT.
2065         Suggested by Reuben Thomas.
2067         Clarify portability pitfall of test.
2068         * doc/autoconf.texi (Limitations of Builtins) <test>: Give more
2069         reasons why -a and -o are not portable.
2070         Reported by Reuben Thomas.
2072 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2074         Document sed limitation with escaped metacharacters.
2075         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Use `%'
2076         rather than `/' as delimiter in an example `s' command.
2077         Document inconsistent treatment of escaped metacharacters.
2078         * THANKS: Update.
2079         Report by Dave Korn, with additional input from Paolo Bonzini
2080         and Eric Blake.
2082         Document temporary directory `$tmp' for use in config.status.
2083         * doc/autoconf.texi (Configuration Actions): Document `$tmp'.
2084         * NEWS: Update.
2086 2009-09-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2088         Update License to GPLv3+ including new Autoconf Exception.
2089         * NEWS, README: Update licensing information.
2090         * COPYING.EXCEPTION: New file.
2091         * Makefile.am (EXTRA_DIST): Distribute it.
2092         * cfg.mk (autom4te-update): Remove copyright change warning.
2093         * lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
2094         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
2095         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
2096         lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
2097         lib/autoconf/functions.m4, lib/autoconf/general.m4,
2098         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
2099         lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
2100         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
2101         lib/autoconf/status.m4, lib/autoconf/types.m4,
2102         lib/autotest/autotest.m4, lib/autotest/general.m4,
2103         lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
2104         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
2105         statement, bump to GPLv3.
2106         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
2107         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
2108         bin/ifnames.in: Bump to GPLv3+, adjust --version output
2109         to reflect the GPLv3+ and the Autoconf Exception.
2110         * lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
2111         lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
2112         lib/autom4te.in, lib/autoscan/autoscan.pre,
2113         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
2114         lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
2115         tests/autotest.at, tests/base.at, tests/c.at,
2116         tests/compile.at, tests/erlang.at, tests/foreign.at,
2117         tests/fortran.at, tests/local.at, tests/m4sh.at,
2118         tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
2119         tests/statesave.m4, tests/suite.at, tests/tools.at,
2120         tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
2122         Allow to work on systems without Fcntl::flock implementation.
2123         * configure.ac (PERL_FLOCK): New substitution variable with test
2124         whether Fcntl::flock is implemented by the system.
2125         * bin/Makefile.am (edit): Substitute @PERL_FLOCK@.
2126         * bin/autom4te.in: Call XFile::lock only if flock is
2127         implemented.
2129 2009-09-04  Reuben Thomas <rrt@sc3d.org>  (tiny change)
2131         Mention the Autoconf archive.
2132         * doc/autoconf.texi (Coding Style): Add a link.
2134 2009-08-30  Bruno Haible  <bruno@clisp.org>
2136         Document another Solaris tr pitfall.
2137         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
2138         that Solaris /usr/bin/tr does not only have problems with
2139         replacing NUL bytes but discards all NUL bytes from the input.
2141 2009-09-04  Eric Blake  <ebb9@byu.net>
2143         Improve wording about what goes before AC_INIT.
2144         * doc/autoconf.texi (Initializing configure): Update wording.
2145         (Versioning) <AC_PREREQ>: Remove misleading text, to match
2146         autoscan's behavior.
2147         * THANKS: Update.
2148         Reported by NightStrike, with input from Ralf Wildenhues.
2150 2009-09-04  Thomas Jahns  <jahns@dkrz.de>  (tiny change)
2152         Fix illegal tab character in Fortran source.
2153         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
2154         multiple spaces; regression introduced 2008-10-23.
2155         * NEWS: Mention this.
2156         * THANKS: Update.
2158 2009-08-22  Romain Lenglet  <romain.lenglet@laposte.net>
2160         Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
2161         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
2162         versions of Erlang/OTP with an erlang:stop() function that doesn't
2163         take arguments.
2165 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2167         Drop unneeded line in Eunit test.
2168         * tests/autotest.at (Erlang Eunit unit tests): Do not copy
2169         install-sh.
2171         Fix build dependencies for Erlang macro files.
2172         * lib/freeze.mk (autotest_m4f_dependencies): Add
2173         $(src_libdir)/autotest/specific.m4.
2174         * tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.
2176 2009-09-19  Paolo Bonzini  <bonzini@gnu.org>
2178         Use a separate program to test whether the compiler works.
2179         * lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
2180         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
2181         (_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
2182         (_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler
2183         works", before exiting.
2184         (_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS,
2185         remove the "whether the xyz compiler works" message, use
2186         conftest$ac_cv_exeext instead of $ac_file.
2187         (_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using
2188         the null program, and clean conftest.out only after
2189         _AC_COMPILER_EXEEXT_CROSS.
2190         (AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
2191         (_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.
2193 2009-08-18  Bruno Haible  <bruno@clisp.org>
2195         Document Solaris tr range and NUL limitations.
2196         * doc/autoconf.texi (Limitations of Usual Tools): Mention that
2197         Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
2198         escape.
2200 2009-08-14  Eric Blake  <ebb9@byu.net>
2202         Simplify version control metadata.
2203         * .cvsignore: Delete.
2204         * bin/.cvsignore: Likewise.
2205         * config/.cvsignore: Likewise.
2206         * doc/.cvsignore: Likewise.
2207         * lib/.cvsignore: Likewise.
2208         * lib/autoconf/.cvsignore: Likewise.
2209         * lib/Autom4te/.cvsignore: Likewise.
2210         * lib/autoscan/.cvsignore: Likewise.
2211         * lib/autotest/.cvsignore: Likewise.
2212         * lib/emacs/.cvsignore: Likewise.
2213         * lib/m4sugar/.cvsignore: Likewise.
2214         * man/.cvsignore: Likewise.
2215         * tests/.cvsignore: Likewise.
2216         * bin/.gitignore: Likewise.
2217         * build-aux/.gitignore: Likewise.
2218         * config/.gitignore: Likewise.
2219         * doc/.gitignore: Likewise.
2220         * lib/.gitignore: Likewise.
2221         * lib/autoconf/.gitignore: Likewise.
2222         * lib/Autom4te/.gitignore: Likewise.
2223         * lib/autoscan/.gitignore: Likewise.
2224         * lib/autotest/.gitignore: Likewise.
2225         * lib/emacs/.gitignore: Likewise.
2226         * lib/m4sugar/.gitignore: Likewise.
2227         * man/.gitignore: Likewise.
2228         * tests/.gitignore: Likewise.
2229         * .gitignore: Consolidate all rules into one file.
2231         Normalize remaining copyright lines.
2232         * BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
2233         * NEWS: Likewise.
2234         * README-hacking: Likewise.
2235         * TODO: Likewise.
2236         * lib/Autom4te/ChannelDefs.pm: Likewise.
2237         * lib/autoconf/fortran.m4: Likewise.
2238         * lib/autoconf/general.m4: Likewise.
2239         * lib/autoconf/lang.m4: Likewise.
2240         * lib/autotest/general.m4: Likewise.
2241         * maint.mk: Likewise.
2242         * tests/compile.at: Likewise.
2244         Improve copyright updating.
2245         * build-aux/update-copyright: Resynchronize from upstream.
2246         * maint.mk (update-copyright): Simplify based on gnulib.
2247         (update-copyright-env): New variable.
2248         * cfg.mk (update-copyright-exclude-regexp): Delete.
2249         (update-copyright-env): New override.
2250         * .x-update-copyright: New file.
2251         * lib/Autom4te/Makefile.am: Add copyright.
2252         * lib/Autom4te/Channels.pm: Revert copyright update to upstream
2253         file.
2254         * lib/Autom4te/Configure_ac.pm: Likewise.
2255         * lib/Autom4te/FileUtils.pm: Likewise.
2256         * lib/Autom4te/Struct.pm: Likewise.
2257         * lib/Autom4te/XFile.pm: Likewise.
2259         Update copyright.
2260         * AUTHORS: Include 2009 in copyright.
2261         * lib/Autom4te/C4che.pm: Likewise.
2262         * lib/Autom4te/Channels.pm: Likewise.
2263         * lib/Autom4te/Configure_ac.pm: Likewise.
2264         * lib/Autom4te/FileUtils.pm: Likewise.
2265         * lib/Autom4te/General.pm: Likewise.
2266         * lib/Autom4te/Request.pm: Likewise.
2267         * lib/Autom4te/Struct.pm: Likewise.
2268         * lib/autoconf/Makefile.am: Likewise.
2269         * lib/autoconf/autoconf.m4: Likewise.
2270         * lib/autoconf/autoscan.m4: Likewise.
2271         * lib/autoconf/autoupdate.m4: Likewise.
2272         * lib/autoconf/functions.m4: Likewise.
2273         * lib/autoconf/libs.m4: Likewise.
2274         * lib/autoconf/oldnames.m4: Likewise.
2275         * lib/autoconf/types.m4: Likewise.
2276         * lib/autoscan/Makefile.am: Likewise.
2277         * lib/autoscan/autoscan.pre: Likewise.
2278         * lib/autotest/Makefile.am: Likewise.
2279         * lib/autotest/autotest.m4: Likewise.
2280         * lib/emacs/autoconf-mode.el: Likewise.
2281         * lib/emacs/autotest-mode.el: Likewise.
2282         * lib/freeze.mk: Likewise.
2283         * lib/m4sugar/foreach.m4: Likewise.
2284         * man/Makefile.am: Likewise.
2285         * tests/atlocal.in: Likewise.
2286         * tests/autoscan.at: Likewise.
2287         * tests/foreign.at: Likewise.
2288         * tests/fortran.at: Likewise.
2289         * tests/mktests.sh: Likewise.
2290         * tests/semantics.at: Likewise.
2291         * tests/suite.at: Likewise.
2292         * tests/wrapper.as: Likewise.
2294         Prepare to bulk update copyright years.
2295         * build-aux/update-copyright: New file.
2296         * cfg.mk (gnulib-update): Sync it from gnulib.
2297         (update-copyright-exclude-regexp): New variable.
2298         (web-manual): Move...
2299         * maint.mk (web-manual): ...here, to match gnulib.
2300         (update-copyright): New target, copied from gnulib's
2301         maint.mk (it would be nice to sync this file...).
2302         (build_aux): New macro.
2303         (VC_LIST, emit_upload_commands): Use it.
2304         * build-aux/texinfo.tex: Resynchronize from upstream.
2305         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
2306         expected pattern.
2307         * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.
2309 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
2311         Fix testsuite log capturing for tests 183 and 186.
2312         * tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
2313         testsuite log file for AT_CAPTURE_FILE.
2315 2009-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2317         Ensure we do not regress with AC_CHECK_MEMBERS.
2318         * tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
2319         AC_CHECK_MEMBERS fix.
2320         (AC_CHECK_MEMBER): New test group.
2322 2009-08-10  Jeff Squyres  <jsquyres@cisco.com>  (tiny change)
2324         Fix typo in AC_REQUIRE description.
2325         * doc/autoconf.texi (Prerequisite macros): Fix typo.
2327 2009-08-10  Paolo Bonzini  <bonzini@gnu.org>
2329         Fix description of the macro generated by AC_CHECK_MEMBERS.
2330         * lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
2331         replacement.  Reported by Bruno Haible.
2333 2009-08-07  Romain Lenglet  <romain.lenglet@laposte.net>
2335         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
2336         fail if the test module doesn't compile.
2338 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
2340         Use exit code to detect no occurrences with grep.
2341         * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
2343 2009-08-01  Romain Lenglet  <romain.lenglet@laposte.net>
2344             Paolo Bonzini  <bonzini@gnu.org>
2346         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): New file.
2347         * lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
2348         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
2349         variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
2350         * tests/autotest.at (Erlang Eunit unit tests): Add test for macro
2351         AT_CHECK_EUNIT.
2352         * doc/autoconf.texi (Writing Testsuites): Document macro
2353         AT_CHECK_EUNIT.
2354         * NEWS: Mention macro AT_CHECK_EUNIT.
2356 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
2357             Joel E. Denny  <jdenny@clemson.edu>
2359         Clarify comparison of echo, printf, and AS_ECHO*.
2360         * doc/autoconf.texi (Limitations of Builtins): In echo's entry,
2361         give a reason why printf is better than echo.  In printf's
2362         entry, cross-reference echo's entry.
2364 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
2366         Add back AH_CHECK_HEADERS.
2367         * lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
2368         * NEWS: Create new section.
2370 2009-07-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2372         testsuite: avoid bogus hostname match from inner test logs.
2373         * tests/autotest.at (Hard fail): Check more restrictively for
2374         passed tests, so that hostnames recorded in the log file do not
2375         wrongly match.
2376         Report by Ludovic Courtès.
2378 2009-07-26  Eric Blake  <ebb9@byu.net>
2380         Release Version 2.64.
2381         * NEWS: Mention the release.
2382         * README: This release is stable.
2383         * HACKING (release): Use dist-xz, not dist-lzma.
2385         Document some optional features in INSTALL.
2386         * doc/install.texi (Basic Installation): Mention that INSTALL is
2387         generic, and that not all packages implement all features.
2388         Mention 'make distcheck' for maintainers, and 'make installcheck'
2389         for users.  Mention the GNU Coding Standards.
2390         (Installation Names): Mention DESTDIR vs. 'make prefix= install'
2391         as ways to alter the configuration, with caveats of each.  Move
2392         --program-prefix discussion...
2393         (Optional Features): ...here.  Mention --enable-silent-rules and
2394         use of make V=0.
2396         Basic improvements to INSTALL.
2397         * doc/install.texi (Basic Installation): Use better markup.
2398         (Multiple Architectures): Introduce the term VPATH.
2399         (Installation Names): Mention that --prefix must be absolute.
2400         * doc/autoconf.texi (Preset Output Variables)
2401         (Installation Directory Variables): Consistently refer to GNU
2402         Coding Standards.
2404         Update some upstream files.
2405         * build-aux/config.guess: Resynchronize from upstream.
2406         * build-aux/config.sub: Likewise.
2407         * build-aux/texinfo.tex: Likewise.
2408         * build-aux/vc-list-files: Likewise.
2409         * doc/standards.texi: Likewise.
2411 2009-07-25  Eric Blake  <ebb9@byu.net>
2413         Recognize new m4sugar keywords.
2414         * lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
2415         m4_define_default, m4_defun_init, m4_defun_once.
2416         (autoconf-font-lock-keywords):  Likewise.
2418         Require m4 1.4.6, and fix testsuite to support this version.
2419         * m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
2420         regexp it can't handle.
2421         * NEWS: Mention minimum version bump.
2422         * README: Likewise.
2423         * README-hacking: Likewise.
2424         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2425         * tests/tools.at (autom4te --trace and whitespace): Update test so
2426         still work with older m4 line numbers.
2427         * tests/m4sugar.at (m4@&t@_require: nested): Likewise.
2428         Reported by Ralf Wildenhues.
2430 2009-07-25  Bruno Haible  <bruno@clisp.org>
2432         Clarify autom4te debugging tips.
2433         * doc/autoconf.texi (Debugging via autom4te): Fix example from
2434         previous commit, and add clarification.
2436 2009-07-25  Eric Blake  <ebb9@byu.net>
2438         Document some autom4te debugging tips.
2439         * doc/autoconf.texi (Debugging via autom4te): New node.
2440         Suggested by Bruno Haible.
2442         Fix font-lock.
2443         * configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
2445         Let autoheader see through m4 macros in AC_DEFINE.
2446         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
2447         tracing its name.
2448         * lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
2449         for using the macro in a template file.
2450         * tests/tools.at (autoheader and macros): New test.
2451         * NEWS: Mention this.
2452         Reported by Bruno Haible.
2454         Improve NEWS wording.
2455         * NEWS: Use more accurate statement.
2456         Suggestedy by Ralf Wildenhues.
2458 2009-07-24  Eric Blake  <ebb9@byu.net>
2460         Fix AS_EXIT for FreeBSD sh.
2461         * lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
2462         shell function, since $? is not reliable on function entry.
2463         (_AS_EXIT_PREPARE): Simplify to assume argument.
2464         Reported by Ralf Wildenhues.
2466 2009-07-23  Eric Blake  <ebb9@byu.net>
2468         Run more tests under Solaris.
2469         * tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
2470         group when passing over syntax checks.
2472 2009-07-23  Romain Lenglet  <romain.lenglet@laposte.net>
2474         Clean up temporary files generated by Erlang macros.
2475         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
2476         (AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
2477         (AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
2478         erlang_cv_* cache variables into ac_cv_erlang_*.
2479         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
2480         files generated by Erlang compiler.
2481         * tests/local.at (AT_CHECK_ENV): Ignore variables defined by
2482         Erlang macros.
2483         * tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
2484         AT_CHECK_MACRO.
2485         * tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
2486         generated Erlang tests; they are all hand-tested.
2488         Add autotests for Erlang macros.
2489         * tests/erlang.at: Added tests for all macros in erlang.m4.
2490         * tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
2491         erlang.at.
2492         * tests/suite.at: Likewise.
2493         * tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
2494         test for extension of Erlang files.
2495         (Multiple languages): Use correct m4 quoting.
2496         * NEWS: Mention this.
2498 2009-07-22  Eric Blake  <ebb9@byu.net>
2500         Fix test of autom4te from stdin.
2501         * tests/tools.at (autom4te cache locking): Make stdin request
2502         explicit, so that --force is properly used.
2504 2009-07-16  Eric Blake  <ebb9@byu.net>
2506         Don't hide leading space in autom4te --trace output.
2507         * bin/autom4te.in (handle_traces): Don't flatten leading and
2508         trailing space, since tracing spacing bugs can be useful.
2509         * tests/tools.at (autom4te --trace and whitespace): New test.
2511 2009-07-13  Eric Blake  <ebb9@byu.net>
2513         Document that $srcdir can be used during configure.
2514         * doc/autoconf.texi (Preset Output Variables): Add a paragraph.
2515         * THANKS: Update.
2516         Reported by Monty Taylor.
2518 2009-07-13  Eric Blake  <ebb9@byu.net>
2520         Disable asynchronous job notification for parallel tests.
2521         * lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
2522         mode, since zsh leaves it on after 'emulate sh'.
2523         * doc/autoconf.texi (Limitations of Builtins) <set>: Document that
2524         job control options are not portable.
2526         Guarantee that exit status trumps output matching.
2527         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
2528         better.
2529         * tests/autotest.at (Skip, parallel skip): Enhance tests.
2531         Fix nits in recent patches.
2532         * configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
2533         zsh.
2534         * doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
2535         Tweak wording.
2536         (Introduction): Recommend m4 1.4.13.
2537         * README: Likewise.
2538         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.  Use long option --gnu
2539         rather than -g.
2541 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2543         Introduce AT_SKIP_IF and AT_FAIL_IF
2544         * NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
2545         * doc/autoconf.texi (Autotest): Document them.
2546         * lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
2547         AT_FAIL_IF, _AT_CHECK_EXIT): New.
2548         (AT_CHECK): Use _AT_LINE_ESCAPED.
2549         * tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
2550         Use AT_SKIP_IF.
2551         * tests/local.at: Use AT_SKIP_IF.
2553 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2555         Use m4 -g when available.
2556         * m4/m4.m4: Unset POSIXLY_CORRECT during first test.  Test for -g.
2557         Warn user if he has POSIXLY_CORRECT set but -g is not supported.
2558         * bin/Makefile.am: Substitute @M4_GNU@ into generated files.
2559         * bin/autom4te.in: Pass @M4_GNU@ to m4.
2561 2009-07-13  Eric Blake  <ebb9@byu.net>
2563         Fix previous patch.
2564         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2565         proper m4 quoting.
2566         (_AT_DECIDE_TRACEABLE): Likewise.
2568 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
2570         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
2571         $at_trace_echo.  Add new REASON argument.
2572         (at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
2573         Use $at_check_filter_trace.
2574         (at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
2575         (at_traceon): Initialize to ':'.
2576         (at_traceoff): Remove, use 'set +x' instead throughout.
2577         (at_check_filter_trace, at_trace_echo): New shell variables.
2578         Initialize them if tracing is requested.
2579         (_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
2581 2009-07-12  Paolo Bonzini  <bonzini@gnu.org>
2583         Move atlocal feature tests to configure
2584         * configure.ac: Test for unsupported characters in files and
2585         directories here...
2586         * tests/atlocal.in: ... and not here.
2588 2009-07-09  Eric Blake  <ebb9@byu.net>
2590         Fix test typo.
2591         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
2592         creating file named -.
2594         Fix testsuite under dash.
2595         * tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
2596         (AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
2597         (AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
2598         (Functions Support, Functions and return Support)
2599         (Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
2600         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
2601         (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
2602         (AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
2603         (AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
2604         (_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
2605         options during the testsuite run.
2606         Reported by Ralf Wildenhues.
2608 2009-07-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2610         Ignore messages on stderr when testing for the zsh issue.
2611         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
2613 2009-07-07  Eric Blake  <ebb9@byu.net>
2615         Skip parallel tests when zsh 'set -m' fails.
2616         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
2617         is not supported.
2618         Reported by Ralf Wildenhues.
2620         Make parallel testsuite more portable.
2621         * lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
2622         instead open write descriptor in each group and read descriptor in
2623         main driver.
2624         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
2626 2009-07-03  Eric Blake  <ebb9@byu.net>
2628         Avoid syntax error in ash.
2629         * lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
2630         errors on shells that don't recognize <>.
2631         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
2632         tests for this reason.   Skip based on the shell to be tested,
2633         not the shell driving the testsuite.
2634         (parallel syntax error): Rearrange similar to previous patch.
2635         (parallel test execution): Defer skip until after serial tests.
2637 2009-07-02  Eric Blake  <ebb9@byu.net>
2639         Skip test on shells that can't catch syntax failure.
2640         * tests/autotest.at (Syntax error): Skip test if shell aborts on
2641         syntax error (AIX ksh88) or doesn't detect it (zsh).
2642         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
2643         limitations.
2644         Reported by Ralf Wildenhues.
2646 2009-06-30  Jan Madzik  <jmadzik@gmail.com>  (tiny change)
2647             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2649         Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
2650         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
2651         one character is output with `\c'; reset echo output state
2652         if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
2653         * doc/autoconf.texi (Limitations of Builtins): Document it.
2654         * tests/m4sh.at (ECHO_C): New test.
2655         * THANKS: Update.
2657 2009-06-27  William Pursell  <bill.pursell@gmail.com>  (tiny change)
2659         Fix grammaro in documenation.
2660         * doc/autoconf.texi (Guidelines): Fix grammaro.
2662 2009-06-17  Eric Blake  <ebb9@byu.net>
2664         Fix AC_CHECK_HEADER infloop for gcc.
2665         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2666         (_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
2667         about obsoletion, to avoid infinite loop in gcc.
2668         Reported by Ralf Wildenhues.
2670 2009-06-15  Eric Blake  <ebb9@byu.net>
2672         Add m4_copy_force, m4_rename_force.
2673         * lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
2674         macros.
2675         * tests/m4sugar.at (m4@&t@_defn): Test them.
2676         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
2677         them.
2678         * NEWS: Likewise.
2679         Suggested by Ralf Wildenhues.
2681         Reinstate _AC_CHECK_HEADER_OLD for gcc.
2682         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
2683         (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
2684         others used these undocumented macros.
2685         Reported by Ralf Wildenhues.
2687 2009-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2689         Fix concurrent autom4te.cache directory creation race.
2690         * bin/autom4te.in: Do not error out if another `autom4te'
2691         instance created the cache directory before we could.
2693 2009-06-11  Steven G. Johnson  <stevenj@alum.mit.edu>
2694         and Eric Blake  <ebb9@byu.net>
2696         Create a file in test program when detecting cross-compilation.
2697         * lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
2698         program that creates a file.
2699         (_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
2700         and document why it's needed to robustly detect cross-compiling.
2701         (AC_LANG_DEFINE): Copy implementation across similar languages.
2702         * lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
2703         * lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
2704         Likewise.
2705         * lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
2707 2009-06-11  Eric Blake  <ebb9@byu.net>
2709         Simplify AC_LANG(Fortran).
2710         * lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
2711         77, which requires reordering portions of the file.
2712         (AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
2713         automatically.
2715         Clarify m4_copy semantics.
2716         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
2717         documentation.
2718         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2720 2009-06-06  Eric Blake  <ebb9@byu.net>
2722         Improve documentation on trap pitfalls.
2723         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
2724         Posix 2008 requirement on trap, and dash bug in implementing it.
2725         Mention various shell bugs with traps defined inside subshells.
2726         Mention older bash limitation with single-command exit trap.
2727         <set>: Mention another 'set -e' limitation.
2728         Reported by Jens Schmidt.
2730 2009-06-06  Jim Meyering  <meyering@redhat.com>
2732         Improve testsuite --help
2733         * lib/autotest/general.m4: Correct the example in ./testsuite --help.
2734         Improve wording.
2736 2009-06-06  Eric Blake  <ebb9@byu.net>
2738         Document fallback behavior of AC_PROG_LEX.
2739         * doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
2740         why fallback is :, and that a --version check must be used to
2741         determine whether flex was found.
2742         Reported by Patrick Welche.
2744 2009-05-28  Jim Meyering  <meyering@redhat.com>
2746         Fix syntax errors in autoconf.texi.
2747         * doc/autoconf.texi (Erlang Libraries): @-escape curly braces
2748         in example code.
2750 2009-05-28  Romain Lenglet  <romain.lenglet@laposte.net>
2752         New AC_ERLANG_SUBST_ERTS_VER macro.
2753         * lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
2754         * doc/autoconf.texi (Erlang Libraries): Document
2755         AC_ERLANG_SUBST_ERTS_VER.
2756         * NEWS: Likewise.
2757         * AUTHORS: Update Romain Lenglet's email address.
2758         * THANKS: Update.
2759         Suggested by Ruslan Babayev.
2761 2009-05-26  Eric Blake  <ebb9@byu.net>
2763         Sanitize more problematic environment variables.
2764         * doc/autoconf.texi (Environment Variable Index): Add more
2765         entries, particularly for precious variables and known culprit
2766         variables.  Needed to avoid overfull vbox.
2767         (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
2768         variables known to cause misbehavior.
2769         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
2770         known to cause problems.
2771         * THANKS: Update.
2772         Based on reports from Ilya Bobir and Joey Mingrone.
2774 2009-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2776         Document VPATH = $(variable) issue in VPATH chapter.
2777         * doc/autoconf.texi (Variables listed in VPATH): New node.
2778         (Top, VPATH and Make): Adjust menus.
2779         (Build Directories): Refer to it.
2780         Prompted by report from Bruno Haible.
2782 2009-05-19  Eric Blake  <ebb9@byu.net>
2784         Update uses of all-permissive license.
2785         * ChangeLog: Relicense under GPL.
2786         * ChangeLog.0: Likewise.
2787         * ChangeLog.1: Likewise.
2788         * ChangeLog.2: Likewise.
2789         * THANKS: Likewise.
2790         * m4/m4.m4: Use latest wording of FSF all-permissive license.
2791         * m4/make-case.m4: Likewise.
2792         * doc/install.texi: Likewise.
2793         * tests/statesave.m4: Relicense to match rest of testsuite; this
2794         file does not need all-permissive license since it is not designed
2795         for reuse by other packages.
2796         * BUGS: Relicense under all-permissive license.
2797         * HACKING: Likewise.
2798         * NEWS: Likewise.
2799         * README: Likewise.
2800         * README-alpha: Likewise.
2801         * README-hacking: Likewise.
2802         * TODO: Likewise.
2804         Update some upstream files.
2805         * build-aux/config.guess: Resynchronize from upstream.
2806         * build-aux/gnupload: Likewise.
2807         * build-aux/vc-list-files: Likewise.
2808         * build-aux/texinfo.tex: Likewise.
2809         * doc/gendocs_template: Likewise.
2811         Don't mention undocumented interface in NEWS.
2812         * NEWS: Correct earlier entry about AS_FOR.
2814 2009-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2816         New manual section `Parallel Make'.
2817         * doc/autoconf.texi (Parallel Make): New node, document NetBSD
2818         `make -jN' quirks.
2819         (Top, Portable Make): Adjust menus.
2821 2009-05-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2823         testsuite: skip `Multiple languages' test without C++ compiler.
2824         * tests/compile.at (Multiple languages): Skip test on systems
2825         without a C++ compiler.
2826         Report by Jim Meyering.
2828 2009-05-13  Eric Blake  <ebb9@byu.net>
2830         Document zsh bug with empty commands.
2831         * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
2832         more problems with $?.
2834 2009-05-11  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
2836         Also try X11R7 when looking for X11 files, for NetBSD.
2837         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
2838         with X11R7 in the name.
2840 2009-05-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2842         Limit stderr logging for C compiler version.
2843         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
2844         internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
2845         an optional additional argument to limit the number of lines of
2846         stderr output logged, defaulting to 10.
2847         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
2848         _AC_DO_LIMIT for capturing compiler version output.  Also test
2849         -qversion, for the IBM xlc compiler.
2850         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2851         * THANKS: Update.
2852         Report by Christian Rössel and John R. Cary against Libtool.
2854 2009-04-24  Eric Blake  <ebb9@byu.net>
2856         Fix quoting of m4 macros in AT_CHECK.
2857         * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
2858         escapes, to avoid shell syntax errors caused by late macro
2859         expansion.
2860         * NEWS: Document this change.
2861         * tests/autotest.at (Metacharacters in command from M4 expansion):
2862         New test.
2864         manual: Use consistent spelling of here-document.
2865         * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
2866         (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
2867         spelling.
2868         Reported by Ralf Wildenhues.
2870         Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
2871         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
2872         undocumented semantics, where unbalanced " cannot be used in the
2873         stdout/stderr argument.
2874         (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
2875         the text is used in double-quoted context.
2876         * tests/autotest.at (unquoted output): New test.
2877         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
2878         shell expansions are handled.
2880         Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
2881         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
2882         of new spelling...
2883         (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
2884         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2885         rename.
2886         * NEWS: Likewise.
2887         * tests/autotest.at (Binary output, Cleanup): Adjust tests.
2888         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2889         Likewise.
2890         Reported by Ralf Wildenhues.
2892 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2894         New test to ensure autom4te cache file locking works.
2895         * tests/tools.at (autom4te cache locking): New test.
2896         Report by Eric Blake.
2898 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2900         manual: another grammar improvement.
2901         * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
2902         pronunciation of `FCFLAGS_f90'.
2904 2009-04-23  Eric Blake  <ebb9@byu.net>
2906         Change FOO placeholder to use @var{text} instead.
2907         * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
2908         to AC_CONFIG_@var{ITEMS}.
2909         * doc/autoconf.texi (config.status Invocation): Likewise.
2910         (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
2911         (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
2913 2009-04-22  Eric Blake  <ebb9@byu.net>
2915         Add m4_argn.
2916         * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
2917         * NEWS: Document it.
2918         * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
2919         <m4_car, m4_cdr>: Improve documentation.
2920         * tests/m4sugar.at (m4 lists): New test.
2922 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2924         Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
2925         * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
2926         and AC_PROG_CC_C99 prefer extended over strict conformance modes.
2927         Report by Vincent Lefèvre.
2929 2009-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2931         Revert bogus change in last commit.
2932         * doc/autoconf.texi (Initialization Macros): Revert change.
2933         Spotted by Eric Blake.
2935         manual: fix trivial grammar errors.
2936         * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
2937         (Limitations of Usual Tools, Pretty Help Strings)
2938         (config.status Invocation): Fix `a' vs. `an' errors.
2939         Report by Eric Blake.
2941 2009-04-21  Eric Blake  <ebb9@byu.net>
2943         Shuffle maintainer-specific rules.
2944         * Makefile.am (maintainer-check-tests): Delete.
2945         (autom4te-update): Move...
2946         * cfg.mk (autom4te-update): ...here.
2947         (fetch): Depend on autom4te-update.  Split...
2948         (gnulib-update): ...into new rule.  Import move-if-change from
2949         gnulib.
2950         * maint.mk (maintainer-distcheck): Absorb former maintainer-check
2951         rule.
2952         * build-aux/move-if-change: New file, undistributed.
2953         * .gitattributes: Handle new upstream file.
2954         * .gitignore: Ignore maintainer cruft.
2955         * HACKING: Update maintainer instructions.
2956         * build-aux/config.guess: Update from upstream.
2957         * build-aux/config.sub: Likewise.
2958         * build-aux/gendocs.sh: Likewise.
2959         * build-aux/texinfo.tex: Likewise.
2960         * doc/gendocs_template: Likewise.
2961         * doc/standards.texi: Likewise.
2963 2009-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2965         Sync autom4te perl modules from Automake.
2966         * lib/Autom4te/Channels.pm: Sync from Automake.
2967         * lib/Autom4te/FileUtils.pm: Likewise.
2968         * lib/Autom4te/XFile.pm: Likewise.
2970         Adjust channel definitions for new Automake `ordered' flag.
2971         * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
2972         `ordered' flag to zero for channels `fatal', `automake', and
2973         `verb'.  This has currently no effect on actual semantics but
2974         avoids a consistency check needed for Automake's usage of the
2975         Channels.pm code.
2977         manual: clarify m4_if synopsis.
2978         * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
2979         m4_if in the presence of more than three arguments.
2981         Improve and clarify `config.status' usage documentation.
2982         * doc/autoconf.texi (config.status Invocation): Fix markup in
2983         synopsis.  Use `tag' instead of `file' notation for the
2984         non-option arguments, to be consistent with the documentation
2985         of the AC_CONFIG_* macros.
2986         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
2987         use `tag' notation for non-option arguments.
2988         Report by John Calcote.
2990 2009-04-15  Eric Blake  <ebb9@byu.net>
2992         Test that autotest handles binary output.
2993         * tests/autotest.at (Binary output): New test.
2994         Suggested by Ralf Wildenhues.
2996         Add stdout-nolog and ignore-nolog to AT_CHECK.
2997         * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
2998         (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
2999         (AT_DIFF_STDOUT(ignore-nolog)): New macros.
3000         * tests/autotest.at (Logging): New test.
3001         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
3002         new logging actions.
3003         * NEWS: Likewise.
3004         Reported by Ralf Wildenhues.
3006         Teach AT_CHECK about hard failures.
3007         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
3008         <at_fn_check_status, at_fn_group_postprocess>: Handle hard
3009         failures.
3010         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
3011         AT_CHECK_NOESCAPE and exit status 99.
3012         * NEWS: Likewise.
3013         * tests/autotest.at (Hard fail, Cleanup): New tests.
3015 2009-04-14  Eric Blake  <ebb9@byu.net>
3017         Fix yesterday's regression in AS_IF.
3018         * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
3019         branch; it is up to the user to avoid syntax errors.
3020         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
3022 2009-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3024         Add traces for AM_SILENT_RULES.
3025         * lib/autom4te.in (Automake-preselections): Trace
3026         AM_SILENT_RULES.
3028 2009-04-13  Eric Blake  <ebb9@byu.net>
3030         Improve documentation related to expanded-before-required.
3031         * doc/autoconf.texi (Expanded Before Required): Add a case study.
3032         (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
3033         running a compile test will AC_REQUIRE the compiler check.
3034         (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
3035         (C Compiler) <AC_PROG_CC>: Mention the fact that only first
3036         invocation of this macro checks for $EXEEXT, and that many other
3037         macros use it via AC_REQUIRE.
3038         Reported by Andreas Schwab.
3040         Mention latest rules about make and set -e.
3041         * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
3042         that make must use set -e.
3043         (Limitations of Builtins) <set>: Clarify more about set -e
3044         behavior.
3046         Improve documentation about if exit status.
3047         * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
3048         exit status bugs don't affect modern targets.
3049         Reported by Andreas Schwab.
3051         Add cross-reference to new macros.
3052         * doc/autoconf.texi (Text processing Macros) <m4_normalize>
3053         <m4_strip>: Reference the new m4_ifblank.
3054         Suggested by Mike Frysinger.
3056         Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
3057         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
3058         (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
3059         including a macro with an empty expansion.
3060         * NEWS: Mention this.
3061         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
3062         tests.
3063         Reported by Mike Frysinger.
3065         Add m4_blank and friends.
3066         * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
3067         (m4_default_nblank_quoted): New macros.
3068         * NEWS: Document them.
3069         * doc/autoconf.texi (Conditional constructs): Likewise.
3070         * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
3071         Suggested by Mike Frysinger.
3073 2009-04-13  Eric Blake  <ebb9@byu.net>
3075         Finish upgrade to GFDL 1.3.
3076         * doc/autoconf.texi (copying): Use correct license; comment change
3077         was missed on 2008-11-04.
3079 2009-04-10  Eric Blake  <ebb9@byu.net>
3081         Test parallel handling of syntax error.
3082         * tests/autotest.at (parallel syntax error): New test.
3083         Suggested by Ralf Wildenhues.
3085 2009-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3087         Document awk and config.status line length limitations.
3088         * doc/autoconf.texi (Configuration Actions): The input to
3089         config.status should have reasonable line length.
3090         (Limitations of Usual Tools): Document IRIX, HP-UX awk input
3091         line length limit.
3092         Report by Bruno Haible.
3094         Skip `Multiple languages' test if CC is a C++ compiler.
3095         * tests/compile.at (Multiple languages): Before starting the
3096         test proper, build and run a configure script that tests the
3097         C compiler only, and skips the test if this is found to be a
3098         C++ compiler.
3099         Report by Eric Blake.
3101         Note that AC_DEFUN is needed for aclocal.
3102         * doc/autoconf.texi (Coding Style): Public third-party macros
3103         should be AC_DEFUN'ed.
3104         Report by John Calcote.
3106 2009-04-10  Eric Blake  <ebb9@byu.net>
3108         Add undocumented _AS_CLEAN_DIR.
3109         * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
3110         in previous patch.
3111         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
3112         macro.
3113         * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
3114         Reported by Ralf Wildenhues.
3116 2009-04-09  Eric Blake  <ebb9@byu.net>
3118         Avoid problems caused by deleting in-use directory.
3119         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
3120         remove the contents of $at_group_dir, not the directory itself.
3122         Fix regression in empty test.
3123         * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
3124         use in empty test.  Fixes regression introduced 2009-04-06.
3125         (_AT_CHECK): Undo fallback when a test is not empty.
3126         (AT_CLEANUP): Expand AT_ingroup before deleting.
3128 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
3130         Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
3131         * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
3132         not crosscompiling to an obsolete system.
3134 2009-04-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3136         Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
3137         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
3138         Automake relies on this macro.
3140 2009-04-06  Eric Blake  <ebb9@byu.net>
3142         Reduce testsuite size.
3143         * tests/statesave.m4: New file.
3144         * tests/Makefile.am (EXTRA_DIST): Distribute it.
3145         * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
3146         repeating inline definition of AC_STATE_SAVE.
3147         (AT_CHECK_ENV): Factor code...
3148         (_AT_CHECK_ENV): ...into shell function.
3149         * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
3151         Handle shell comments in AT_CHECK.
3152         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
3153         test correctly.  Latent bug in handling shell comment was first
3154         fixed 2008-11-20, but regressed two patches later.
3155         * tests/autotest.at (Shell comment in command): New test.
3156         * NEWS: Document the fix.
3158         Hard fail any test with syntax errors.
3159         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
3160         Guarantee test failure on syntax error, rather than inheriting
3161         status from previous test.
3162         * tests/autotest.at (Syntax error): New test.
3164 2009-03-31  Eric Blake  <ebb9@byu.net>
3166         Beta Release Version 2.63b.
3167         * NEWS: Mention the release.
3168         * README: Clarify that this is a beta release.
3169         * build-aux/texinfo.tex: Synchronize from upstream.
3170         * .x-sc_trailing_blank: Exempt more upstream files.
3172 2009-03-30  Eric Blake  <ebb9@byu.net>
3174         Fix testsuite failures under zsh.
3175         * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
3176         set by zsh -c 'emulate sh'.
3177         Reported by Ralf Wildenhues.
3179         For now, skip parallel tests under less-tested shells.
3180         * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
3181         (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
3182         (Fallacy, Skip, errexit, Long test source lines)
3183         (Debugging a successful test, Debugging script and environment)
3184         (Debugging a failed test, Using atlocal)
3185         (Choosing where testsuite is run): Adjust callers.
3186         (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
3187         under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined.  Makes
3188         it easier to avoid testsuite hangs for users with dash or other
3189         less-tested shell.
3190         (parallel test execution, parallel truth, parallel fallacy)
3191         (parallel skip, parallel errexit)
3192         (parallel autotest and signal handling): Use it.
3193         * BUGS: Mention this.
3195 2009-03-24  Andris Pavenis  <andris.pavenis@iki.fi>  (tiny change)
3197         Fix awk substitution of carriage returns on DJGPP.
3198         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
3199         generation of ac_cs_awk_cr.
3200         * THANKS: Update.
3202 2009-03-24  Aaron W. LaFramboise  <aaronenvelope277@aaronwl.com>  (tiny change)
3204         Work around cygwin bash igncr mode.
3205         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
3206         bash carriage returns if ac_cr lost \r from ``.
3207         * THANKS: Update.
3208         Suggested by Eric Blake.
3210 2009-03-24  Eric Blake  <ebb9@byu.net>
3212         Fix underquoted example in manual.
3213         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
3214         Properly m4-quote #.
3215         * THANKS: Update spelling.
3216         Reported by Matěj Týč.
3218 2009-03-18  Eric Blake  <ebb9@byu.net>
3220         Manual: mention more expr pitfalls.
3221         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
3222         Mention HP-UX limitation, and $ ambiguity.
3223         * THANKS: Update.
3224         Reported by Jens Schmidt, in http://bugs.debian.org/466990.
3226 2009-03-17  Jim Meyering  <meyering@redhat.com>
3228         Manual: fix a typo.
3229         * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
3231 2009-03-17  Eric Blake  <ebb9@byu.net>
3233         Use test consistently in examples.
3234         * doc/autoconf.texi (Subdirectories, Caching Results)
3235         (Common Shell Constructs, Prerequisite Macros, Coding Style)
3236         (Changed Results, Particular Programs, Defining Symbols):
3237         Protect against arbitrary user strings.
3238         (Multiple Cases): Mention why $fstype does not need protection.
3239         Reported by Reuben Thomas.
3241         Improve confusing section names.
3242         * doc/autoconf.texi (Specifying Names): Rename node...
3243         (Specifying Target Triplets): ...to this.
3244         (Generic Programs): Adjust references.
3245         * doc/install.texi (System Type): Touch up formatting.
3246         * THANKS: Update.
3247         Reported by Tim Freeman, in http://bugs.debian.org/312873.
3249         Remove historical inaccuracy.
3250         * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
3251         #!/bin/sh needing a space.
3252         Reported by Reuben Thomas.
3254         Recommend AS_HELP_STRING more prominently.
3255         * doc/autoconf.texi (External Software): Reduce mention of
3256         hand-written help strings.
3257         Reported by Reuben Thomas.
3259 2009-03-16  Eric Blake  <ebb9@byu.net>
3261         Fix 'make pdf'.
3262         * doc/autoconf.texi (Balancing Parentheses): Fix usage of
3263         @itemize.
3264         Reported by Ralf Wildenhues, fix suggested by Karl Berry.
3266 2009-03-14  Eric Blake  <ebb9@byu.net>
3268         Resync upstream files.
3269         * GNUmakefile: Run 'make fetch'.
3270         * build-aux/announce-gen: Likewise.
3271         * build-aux/config.guess: Likewise.
3272         * build-aux/config.sub: Likewise.
3273         * build-aux/gnupload: Likewise.
3274         * build-aux/texinfo.tex: Likewise.
3275         * build-aux/vc-list-files: Likewise.
3276         * doc/gnu-oids.texi: Likewise.
3277         * doc/standards.texi: Likewise.
3279 2009-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3281         New test for SunStudio `restrict' handling.
3282         * tests/c.at (AC_C_RESTRICT and C++): New test.
3283         Prompted by bug report from Rolf Vandevaart.
3285 2009-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3287         Manual: testsuite depends on package.m4.
3288         * doc/autoconf.texi (Making testsuite Scripts): In the example
3289         makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
3291 2009-03-02  Allan Caffee  <allan.caffee@gmail.com>  (tiny change)
3293         Fix a typo in comment for AS_LITERAL_IF.
3294         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
3295         out of date when this function was moved/renamed in 59ecd766.
3296         * THANKS: Update.
3298 2009-03-02  Eric Blake  <ebb9@byu.net>
3300         Improve wording for AS_ESCAPE.
3301         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
3302         up documentation.
3303         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
3304         Reported by Ralf Wildenhues.
3306 2009-02-24  Eric Blake  <ebb9@byu.net>
3308         Use pkgdatadir consistently.
3309         * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
3310         * lib/Makefile.am (edit): Likewise.
3311         * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
3312         (M4sugar): Use @pkgdatadir@, not @datadir@.
3313         * bin/autoheader.in ($datadir): Likewise.
3314         * bin/autom4te.in ($datadir): Likewise.
3315         * bin/autoreconf.in ($datadir): Likewise.
3316         * bin/autoscan.in ($datadir): Likewise.
3317         * bin/autoupdate.in ($datadir): Likewise.
3318         * bin/ifnames.in ($datadir): Likewise.
3319         * doc/autoconf.texi (Installation Directory Variables): Update
3320         example to be consistent; focus on $(bindir) as an autoconf
3321         variable, and mention that $(pkgdatadir) comes from automake.
3322         Reported by Reuben Thomas.
3324 2009-02-19  Eric Blake  <ebb9@byu.net>
3326         Use m4_translit more efficiently in AS_ESCAPE.
3327         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
3328         of set separately from rest.
3329         (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
3330         callers.
3331         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
3332         characters in translit request.
3333         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
3334         Document the macro.
3335         * NEWS: Likewise.
3337         Mention recently documented macros.
3338         * NEWS: Update list of new documentation.
3340 2009-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3342         Add index for config.site.
3343         * doc/autoconf.texi (Site Defaults): Add index for config.site.
3344         * THANKS: Update.
3345         Report by Stephen P. Schaefer.
3347 2009-02-12  Eric Blake  <ebb9@byu.net>
3349         Fix m4_set speed regression introduced 2008-12-18.
3350         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
3351         creating larger argument on each iteration.
3352         (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
3353         (_m4_set_contents_2): Adjust all four-argument callers.
3355 2009-02-05  Eric Blake  <ebb9@byu.net>
3357         Mention new AC_DEFUN_ONCE clients.
3358         * NEWS: Mention recent semantic changes.
3359         Reported by Ralf Wildenhues.
3361 2009-02-03  Eric Blake  <ebb9@byu.net>
3363         Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
3364         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
3365         AC_DEFUN_ONCE, since this is a one-shot macro.
3366         (AC_PROG_INSTALL): Likewise.
3368 2009-02-03  Eric Blake  <ebb9@byu.net>
3370         Mention that packagers should not pre-set CFLAGS.
3371         * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
3372         advice given by automake on handling variables reserved by GNU
3373         Coding Standards.
3374         Reported by Karl Berry.
3376         Document lib64 in config.site.
3377         * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
3378         Mention use of lib64.
3379         * THANKS: Update.
3380         Reported by Tom Browder, with help from Peter Breitenlohner.
3382 2009-01-28  Eric Blake  <ebb9@byu.net>
3384         Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
3385         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
3386         AC_DEFUN_ONCE, since this is a one-shot macro.
3387         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3388         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
3389         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
3391 2009-01-28  Eric Blake  <ebb9@byu.net>
3393         Reduce blank lines in AC_DEFUN_ONCE macros.
3394         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
3395         line when a defun_once macro is required.
3396         (_m4_defun_once): New helper macro, for less memory use.
3397         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3399         Silence another false positive expand-before-require.
3400         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
3401         (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
3402         that caused a diversion change, not just diversion number.
3403         (m4_require): Factor...
3404         (_m4_require_check): ...into new macro, which also checks whether
3405         diversion that performed the expansion has been collected.
3406         * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
3407         Reported by Ralf Wildenhues.
3409 2009-01-28  Eric Blake  <ebb9@byu.net>
3411         Fix AC_C_RESTRICT for Sun Studio 12 C++.
3412         * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
3413         __restrict__ rather than _Restrict, which still trips up Sun
3414         Studio 12 C++.
3415         * THANKS: Update.
3416         Reported by Rolf Vandevaart.
3418 2009-01-28  Eric Blake  <ebb9@byu.net>
3420         Fix years in copyright notices.
3421         * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
3422         undocumented for now.
3423         * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
3424         m4_PACKAGE_URL.
3425         (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
3426         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
3427         (AC_COPYRIGHT): Add undocumented third parameter.
3428         (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
3429         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
3430         * lib/autotest/general.m4 (AT_INIT): Likewise.
3431         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
3432         (AT_COPYRIGHT): Add undocumented third parameter.
3433         * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
3434         parameter; the generic copyright given by autotest is sufficient
3435         since we are the package that owns autotest.
3437 2009-01-27  Eric Blake  <ebb9@byu.net>
3439         Use URLs in --help output, part 3: testsuite.
3440         * doc/autoconf.texi (Writing Testsuites): Mention autotest
3441         namespace.
3442         (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
3443         (Making testsuite Scripts): Document AT_PACKAGE_URL.
3444         * tests/Makefile.am (package.m4): Follow our own advice.
3445         * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
3446         package.m4.  Enhance --help output.
3447         (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
3449         Use URLs in --help output, part 2: configure.
3450         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
3451         date.
3452         (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
3453         AC_PACKAGE_URL.
3454         (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
3455         (_AC_INIT_HELP): Use it in './configure --help' output.
3456         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
3457         './config.status --help'.  Bump copyright date.
3458         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
3459         new parameter.
3460         * NEWS: Likewise.
3461         * tests/tools.at (autoheader): Adjust test.
3462         * tests/torture.at (@%:@define header templates)
3463         (Torturing config.status): Likewise.
3465         Use URLs in --help output, part 1: autoconf executables.
3466         * bin/autoconf.as (usage): Make output consistent with recent
3467         change in gnulib version-etc module.
3468         * bin/autoheader.in ($help): Likewise.
3469         * bin/autom4te.in ($help): Likewise.
3470         * bin/autoreconf.in ($help): Likewise.
3471         * bin/autoscan.in ($help): Likewise.
3472         * bin/autoupdate.in ($help): Likewise.
3473         * bin/ifnames.in ($help): Likewise.
3475 2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
3477         Quote traced macros passed from autom4te to M4.
3478         * bin/autom4te (handle_m4): Apply shell_quote to macro names.
3479         * tests/tools.at (autom4te --trace and unusual macro names): New
3480         test.
3481         * THANKS: Update.
3483 2009-01-26  Eric Blake  <ebb9@byu.net>
3485         Improve AC_DEFUN_ONCE semantics.
3486         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
3487         rather than warning, on second use, and make sure first use never
3488         occurs out of order.
3489         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
3490         Enhance test.
3491         * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
3492         (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
3493         * NEWS: Document this.
3494         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
3495         AC_DEFUN_ONCE.
3496         (Prerequisite Macros) <AC_REQUIRE>: Likewise.
3497         (Expanded Before Required): Likewise.
3498         (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
3499         Reported by Bruno Haible, with suggestion by Paolo Bonzini.
3501 2009-01-24  Eric Blake  <ebb9@byu.net>
3503         Fix typos in recent patches.
3504         * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
3505         * doc/autoconf.texi (Expanded Before Required): Fix typos.
3506         Reported by Ralf Wildenhues.
3508         Revert change to AC_DIR_HEADER.
3509         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
3510         AC_HEADER_DIRENT no longer triggers a warning, and helps the user
3511         who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
3512         Reported by Paolo Bonzini.
3514 2009-01-22  Eric Blake  <ebb9@byu.net>
3516         Silence a false positive expand-before-require case.
3517         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
3518         which a macro was provided.
3519         (m4_require): Compare diversion numbers, rather than m4_require
3520         nesting, when determining direct requires.
3521         * tests/m4sugar.at (m4@&t@_require: nested): Test it.
3522         Reported by Ralf Wildenhues, affecting Libtool.
3524 2009-01-21  Eric Blake  <ebb9@byu.net>
3526         Fix out-of-order expansion with expand-before-require.
3527         * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
3528         required macro when issuing expand-before-require warning.
3529         * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
3530         (Expanded Before Required): New node.
3531         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
3532         * NEWS: Mention this fix.
3533         Suggested by Bruno Haible.
3535         Warn if macro is provided before indirectly required.
3536         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
3537         provided since last outermost defun.
3538         (_m4_defun_pro_outer): Empty the set.
3539         (_m4_require_call): Distinguish between direct and indirect
3540         requires, and remove required macros from the set.
3541         (m4_require): Check the set, in order to warn.
3542         * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
3543         test case for direct requires.
3545 2009-01-20  Eric Blake  <ebb9@byu.net>
3547         Clean up some bugs caught by preliminary dependency validation.
3548         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
3549         AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
3550         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
3551         (_AS_SHELL_SANITIZE): Fix quoting bugs.
3553 2009-01-19  Eric Blake  <ebb9@byu.net>
3555         Improve AC_REQUIRE documentation.
3556         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
3557         and mention interaction with AC_REQUIRE.
3558         (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
3559         ordering constraint bug, and how to fix it.
3560         * tests/m4sugar.at (m4@&t@_require: nested): New test.
3562         Speed up m4_require.
3563         * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
3564         always be defined, as either empty or a number.
3565         (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
3566         as a stack, rather than a one-shot macro.
3567         (_m4_require_call): Expect third argument to be pre-expanded.
3568         (m4_divert_require, m4_require): Adjust clients accordingly.
3569         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
3571 2009-01-17  Eric Blake  <ebb9@byu.net>
3573         Avoid underfull hbox.
3574         * doc/autoconf.texi (Installation Directory Variables): Reword to
3575         fit on line.
3577 2009-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3579         Ignore `set -e'-related failure of NetBSD sh.
3580         * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
3581         fails to finish EXIT trap after set -e.
3583 2009-01-06  Eric Blake  <ebb9@byu.net>
3585         Maintainer cleanups.
3586         * cfg.mk (web-manual): Use new feature of gendocs.
3587         (fetch): Fetch gendocs.
3588         * Makefile.am (EXTRA_DIST): Distribute new file.
3589         * doc/Makefile.am (EXTRA_DIST): Likewise.
3590         * .gitattributes: Ignore whitespace in upstream files.
3591         * HACKING (Other web updates): Update Free Software Directory
3592         instructions.
3593         (Upload): No longer mention xdelta.
3594         * maint.mk (xd-delta): Likewise.
3595         * build-aux/gendocs.sh: New upstream file.
3596         * doc/gendocs_template: Likewise.
3597         * build-aux/announce-gen: Resync from upstream.
3598         * build-aux/config.guess: Likewise.
3599         * build-aux/config.sub: Likewise.
3600         * build-aux/gnupload: Likewise.
3601         * build-aux/texinfo.tex: Likewise.
3603 2008-12-30  Eric Blake  <ebb9@byu.net>
3605         Make it easier to track diversion bugs.
3606         * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
3607         internal macros, which are easier to trace than m4_builtin.
3608         (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
3609         (m4_undivert): Use them.
3610         (_m4_require_call): Likewise.  Use fewer macros.
3611         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
3613 2008-12-26  Bruno Haible  <bruno@clisp.org>
3615         Improve multiarch detection.
3616         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
3617         indicating a universal build more reliable.
3619 2008-12-28  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3621         Use AS_CASE in documented example.
3622         * doc/autoconf.texi (Using the System Type): Use AS_CASE in
3623         example instead of raw case.
3625 2008-12-23  Eric Blake  <ebb9@byu.net>
3627         Make m4_dumpdef more useful with M4 1.6.
3628         * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
3629         (m4_init): Install it for new enough m4.
3630         * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
3631         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
3632         lack of sorting.
3634 2008-12-24  Bruno Haible  <bruno@clisp.org>
3636         Improve INSTALL for HP-UX.
3637         * doc/install.texi (Particular Systems): For HP-UX, also recommend
3638         -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
3639         HP-UX 11.11.
3641 2008-12-22  Bruno Haible  <bruno@clisp.org>
3643         Improve INSTALL for Haiku.
3644         * doc/install.texi (Particular Systems): Add a recommendation
3645         which prefix to use on Haiku.
3647 2008-12-19  Eric Blake  <ebb9@byu.net>
3649         Fix typo in previous commit.
3650         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
3651         Fix typo.
3653         Document some recently added macros.
3654         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
3655         parameter.
3656         * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
3657         <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
3658         new macros.
3659         (Set manipulation Macros) <m4_set_map_sep>: Likewise.
3660         * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
3661         * NEWS: Document new macros.
3663 2008-12-18  Eric Blake  <ebb9@byu.net>
3665         Fix separator in m4_stack_foreach_sep.
3666         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
3667         from prefix.
3668         * tests/m4sugar.at (m4@&t@_stack): Enhance test.
3670 2008-12-18  Eric Blake  <ebb9@byu.net>
3672         Mention limitation of M4 1.4.x on builtin tokens.
3673         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
3674         ramification of M4 1.4.x's inability to pass builtin tokens
3675         through text macros.
3676         (Evaluation Macros) <m4_curry>: Likewise.
3677         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
3678         * NEWS: Mention subtle change in m4_dumpdef semantics.
3680         Document m4_version_prereq.
3681         * doc/autoconf.texi (Number processing Macros)
3682         <m4_version_prereq>: Add documentation.
3683         * NEWS: Mention it.
3684         Reported by Bruno Haible.
3686 2008-12-10  Jim Meyering  <meyering@redhat.com>
3688         AC_HEADER_ASSERT: don't say assertions are disabled when they're not
3689         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
3690         report "checking whether to enable assertions... no", when they are
3691         in fact enabled.  This is solely a bug in the output of configure.
3692         In spite of saying "no", NDEBUG was not defined in that case.
3693         Also, as noted by Eric Blake, leave assertions enabled upon
3694         --enable-assert=INVALID.
3696 2008-12-09  Eric Blake  <ebb9@byu.net>
3698         Fix m4_location inside m4_wrap with m4 1.4.5.
3699         * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
3700         inside wrapped text if older m4 is detected.
3701         Reported by William Pursell.
3703 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3704         and Eric Blake  <ebb9@byu.net>
3706         Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
3707         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
3708         rather than treating it as a synonym for --disable-assert.
3709         * NEWS: Document the fix.
3711 2008-12-06  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3713         Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
3714         treat --enable-assert and --disable-assert equivalently.
3715         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
3717 2008-12-05  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3719         Fix some typos and grammatical errors in documentation.
3720         * doc/autoconf.texi: Clean up some bad use of English.
3722 2008-12-03  Eric Blake  <ebb9@byu.net>
3724         Improve AC_STATE_SAVE.
3725         * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
3726         process by hoisting the uniqueness check into sed.
3727         * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
3728         MacOS bug.
3730 2008-12-02  Eric Blake  <ebb9@byu.net>
3732         Avoid MacOS readdir bug in testsuite.
3733         * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
3734         duplicated ls entries.
3735         * THANKS: Update.
3736         Reported by Bruce Dugan and others.
3738 2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3740         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
3741         error messages about `set -m'.
3743 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3745         Fix a couple of test failures with dash.
3746         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
3747         exit status of `cd'.
3748         * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
3749         regeneration, to avoid timing effects.
3751 2008-11-25  Eric Blake  <ebb9@byu.net>
3753         Add m4_cleardivert.
3754         * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
3755         * lib/autotest/general.m4 (AT_INIT): Use it.
3756         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
3757         * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
3758         * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
3759         it.
3760         * NEWS: Likewise.
3761         Suggested by Paolo Bonzini.
3763         Add safety check for m4_expand vs. diversions.
3764         * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
3765         diverted text.
3766         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
3767         safety check.
3769 2008-11-24  Eric Blake  <ebb9@byu.net>
3771         Fix typo in AS_MESSAGE_LOG_FD patch.
3772         * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
3774 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3776         More reliable signal handling in Autotest.
3777         * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
3778         Start parallel jobs in their own process group, enabling job
3779         control in the shell if possible, for better signal handling.
3780         Deal with INT, TERM, and HUP in the testsuite driver.  In the
3781         parallel driver, propagate TSTP to jobs either as TSTP or as
3782         STOP (to avoid fork bombs with ksh).
3783         Inside the job processes, add PIPE handler to write back the
3784         job token, so the master process does not hang.
3785         Disable the parallel driver if job control is not provided or if
3786         trap does not understand signal names.
3787         * tests/autotest.at (parallel autotest and signals): New test,
3788         exercises INT, TERM, and PIPE, serial and parallel, with and
3789         without `make' in the loop.
3790         Kudos to Richard Stevens for writing APUE.
3792 2008-11-22  Eric Blake  <ebb9@byu.net>
3794         Fix testsuite failure on Solaris.
3795         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
3796         failure status to 1.
3798 2008-11-21  Eric Blake  <ebb9@byu.net>
3800         Clean up AS_MESSAGE_LOG_FD usage.
3801         * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
3802         (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
3803         (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
3804         usage.
3805         (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
3806         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
3807         (AS@&t@_MESSAGE_FD): New test.
3808         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
3809         Give more details about fd manipulation.
3810         (File Descriptor Macros): Describe M4sh defaults for the fds.
3812 2008-11-21  Eric Blake  <ebb9@byu.net>
3814         Use shell function for AS_ERROR.
3815         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
3816         new shell function.
3817         (AS_ERROR): Use it.
3818         (_AS_LINENO_PREPARE): Break circular dependency.
3819         (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
3821 2008-11-21  Eric Blake  <ebb9@byu.net>
3823         Fix typos in recent testsuite improvements.
3824         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
3825         Fix typo.
3826         * NEWS: Clarify the potential impact to users.
3827         * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
3828         AT_DATA_M4SUGAR.
3829         (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
3830         (unusual file names): Test that the recent echo fix does not
3831         regress.  Fix quoting bug that made the test a no-op.
3832         Reported by Paolo Bonzini and Ralf Wildenhues.
3834 2008-11-21  Eric Blake  <ebb9@byu.net>
3836         Use modern m4sh constructs in autoconf.
3837         * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
3838         than AS_EXIT.
3840         Change the semantics of AS_EXIT without argument.
3841         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
3842         even if it is 0.
3843         (AS_ERROR): Guarantee non-zero status.
3844         * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
3845         we want non-zero status.
3846         * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
3847         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
3848         the documentation.
3849         <AS_SET_STATUS>: Don't overly restrict implementation.
3850         (Printing Messages) <AC_MSG_ERROR>: Describe better default.
3851         Suggestions by Paolo Bonzini and Ralf Wildenhues.
3853 2008-11-21  Eric Blake  <ebb9@byu.net>
3855         Add @anchors within Builtins and Usual Tools lists.
3856         * doc/autoconf.texi (Limitations of Builtins)
3857         (Limitatations of Usual Tools): Add anchors for tools called out
3858         by name.  Adjust callers to narrow in on tool of interest.
3860         Move case statement style discussion to m4 quoting section.
3861         * doc/autoconf.texi (Limitations of Builtins): Move comparison of
3862         quoting styles...
3863         (Balancing Parentheses): ...to this new node.
3864         Suggested by Ralf Wildenhues.
3866 2008-11-20  Eric Blake  <ebb9@byu.net>
3868         Factor more common code out of AT_CHECK into shell function.
3869         * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
3870         starts with -.  Move preparations...
3871         (AT_INIT) <at_fn_check_prepare_trace>
3872         <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
3873         ...into these new shell functions.
3874         <at_fn_check_newline>: Inline into only caller.
3875         (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
3877 2008-11-20  Eric Blake  <ebb9@byu.net>
3879         Handle version numbers as decimal, even if they start with 0.
3880         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
3881         interpreting leading zeros as octal.
3883 2008-11-20  Eric Blake  <ebb9@byu.net>
3885         Speed up AT_CHECK.
3886         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3887         third and fourth arguments once.
3888         (_AT_CHECK): Don't re-expand expected output.  Rearrange code for
3889         fewer scans of arguments.
3890         (AT_CHECK): Update caller.
3891         (AT_INIT) <at_fn_filter_trace>: Drop parameter.
3892         * tests/m4sugar.at (m4@&t@_split): Protect test with
3893         quadrigraphs.
3895         Fix XFAIL related to AT_CHECK.
3896         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3897         first argument once.
3898         (_AT_CHECK): Don't re-expand commands.
3899         * tests/autotest.at (Multiline command from M4 expansion): Remove
3900         XFAIL.
3901         * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
3902         * NEWS: Document the fallout.
3904 2008-11-20  Eric Blake  <ebb9@byu.net>
3906         Reduce forks in AC_DEFINE.
3907         * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
3908         (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
3909         AC_DEFINE_UNQUOTED.
3910         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
3911         * tests/torture.at (Substitute and define special characters):
3912         (Define to a 2000-byte string): Enhance tests to cover
3913         AC_DEFINE_UNQUOTED.
3914         (@%:@define header templates): Enhance test to cover #.
3916 2008-11-20  Eric Blake  <ebb9@byu.net>
3918         Improve m4_expand robustness, part 2.
3919         * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
3920         comments, by wrapping old implementation...
3921         (_m4_expand): ...as this, and renaming old core...
3922         (_m4_expand_): ...to this.
3923         (m4_text_box): Use lighter-weight _m4_expand.
3924         * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
3925         (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
3926         * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
3927         * tests/m4sugar.at (m4@&t@_expand): Enhance test.
3928         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
3929         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
3930         functionality.
3932         Improve m4_expand robustness, part 1.
3933         * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
3934         unbalanced `)'.
3935         * tests/m4sugar.at (m4@&t@_expand): New test.
3937 2008-11-20  Eric Blake  <ebb9@byu.net>
3939         Add m4_chomp, m4_esyscmd_s.
3940         * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
3941         New macros.
3942         * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
3943         them.
3944         (Text processing Macros) <m4_chomp>: Likewise.
3945         * NEWS: Likewise.
3946         * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
3948         Remove _m4_index.
3949         * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
3950         to make callers guarantee a match.
3951         (m4_init): Adjust caller.
3952         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3953         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
3955         Describe different hacks for balancing ')' in case statements.
3956         * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
3957         exposition on various quoting styles.
3959 2008-11-20  Eric Blake  <ebb9@byu.net>
3961         Speed up _AS_QUOTE.
3962         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
3963         (_AS_QUOTE): ...here, delete unused second paramenter, and factor
3964         choice into...
3965         (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
3967 2008-11-20  Alfred G. de Wijn  <dwijn@iluvatar.eu.org>  (tiny change)
3969         For consistency, make temporary variable match language name.
3970         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
3971         Match the save/test variables' names to the FFLAGS/FCFLAGS being
3972         saved.
3973         * THANKS: Update.
3975 2008-11-19  Eric Blake  <ebb9@byu.net>
3977         Improve testsuite generation.
3978         * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
3979         (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@.  Use
3980         fewer macros.
3982 2008-11-18  Eric Blake  <ebb9@byu.net>
3984         Use fn for shell functions, func for autoconf CHECK_FUNCS.
3985         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
3986         function names.
3987         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
3988         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
3989         (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
3990         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
3991         (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
3992         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
3993         (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
3994         * lib/autotest/general.m4 (AT_INIT): Likewise.
3995         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
3996         (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
3997         (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
3998         (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
3999         * doc/autoconf.texi (Shell Functions): Likewise.
4001 2008-11-18  Eric Blake  <ebb9@byu.net>
4003         Alter default value of AS_EXIT.
4004         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
4005         parameter be optional.
4006         (AS_EXIT): Use it to make better default.
4007         (_AS_DETECT_BETTER_SHELL): Use new default.
4008         * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
4009         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
4010         * tests/m4sh.at (AS@&t@_EXIT): Update test.
4011         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
4012         new default behavior.
4013         (Limitations of Builtins) <trap>: Adjust to use new default.
4014         * NEWS: Mention the semantic change.
4015         Suggested by Ralf Wildenhues.
4017         Update example to match actual Tru64 behavior.
4018         * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
4019         the example.
4020         Reported by Ralf Wildenhues.
4022         Add AS_SET_STATUS, make AS_EXIT more efficient.
4023         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
4024         macros.
4025         (AS_EXIT): Rewrite to avoid forks.
4026         (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
4027         (AS_PREPARE, _AS_PREPARE): Add new preparation.
4028         * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
4029         Document.
4030         * NEWS: Mention new macro.
4031         * tests/m4sh.at (AS@&t@_EXIT): New test.
4032         (BASENAME_TEST): Sort.
4034         Document Tru64 bug with 'set -e'.
4035         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
4036         bug in mixing 'set -e' with 'trap .. 0'.
4037         Reported by Ralf Wildenhues.
4039         Document a Solaris /bin/sh bug with 'set -e'.
4040         * doc/autoconf.texi (Shell Functions): Mention the bug.
4042 2008-11-17  Eric Blake  <ebb9@byu.net>
4044         Detect empty list in AS_FOR.
4045         * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
4046         properly.
4047         * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
4048         Reported by Paolo Bonzini.
4050 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4052         Use a different workaround for an automake quirk.
4053         * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
4054         (distclean_generic): New helper variable, to fool automake.
4055         ($(distclean_generic)): Depend on clean-local, to prevent
4056         the race in the two rules with accessing and removing
4057         $(TESTSUITE).
4058         Report by Eric Blake.
4060         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
4061         unbalanced parentheses from last change.
4062         Spotted by Eric Blake, fix suggested by Paolo Bonzini.
4064         Fix exit status of expr version of as_func_arith.
4065         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
4066         status of 1 of expr also as success, to avoid failure if the
4067         computation result is zero.  Fixes test failures with IRIX sh,
4068         where the expr variant of as_func_arith is used.
4070         Do not use read-only variable $status.
4071         * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
4072         $status, for zsh.
4074 2008-11-15  Eric Blake  <ebb9@byu.net>
4076         Use the new AS_FOR function.
4077         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
4078         abstraction for cleaner code.
4079         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
4081         Add AS_FOR, undocumented for now.
4082         * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
4083         * tests/m4sh.at (AS@&t@_FOR): New test.
4084         Suggested by Paolo Bonzini.
4086 2008-11-13  Eric Blake  <ebb9@byu.net>
4088         Optimize single-argument loop.
4089         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
4090         loop only has one argument.
4091         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
4093 2008-11-13  Eric Blake  <ebb9@byu.net>
4095         Fix AS_ESCAPE usage bugs.
4096         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
4097         (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
4098         escapes.
4099         (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
4100         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
4101         caveat due to conditional AS_ESCAPE.
4102         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4104 2008-11-12  Eric Blake  <ebb9@byu.net>
4106         Whitespace reduction in configure.
4107         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
4108         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
4109         Likewise.
4110         (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
4111         depend on it.
4113 2008-11-12  Eric Blake  <ebb9@byu.net>
4115         Make M4sh, not autoconf, guarantee sane $SHELL.
4116         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
4117         SHELL...
4118         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
4119         * doc/autoconf.texi (Initialization Macros): Document the effect
4120         on SHELL.
4121         * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
4122         Reported by Ralf Wildenhues.
4124 2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4126         Wrap keywords in `testsuite --list' output.
4127         * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
4128         avoid lint warnings from gawk, wrap keyword lists to stay below
4129         80 characters per line if possible.
4130         * tests/autotest.at (Keyword wrapping): New test.
4132         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
4134         * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
4135         typos.
4137 2008-11-10  Eric Blake  <ebb9@byu.net>
4139         Work around <=m4-1.4.9 bug in m4_format.
4140         * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
4141         (m4_init): Only use it in older m4.
4142         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
4143         m4_format bug in older m4.
4144         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
4145         Reported by Bob Proulx.
4147 2008-11-10  Eric Blake  <ebb9@byu.net>
4149         Match upstream standards.texi.
4150         * doc/standards.texi: Resync from upstream.
4151         * doc/fdl-1.3.texi: Rename...
4152         * doc/fdl.texi: ...to this.
4153         * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
4154         users.
4155         * doc/autoconf.texi (GNU Free Documentation License): Likewise.
4156         * cfg.mk (fetch): Likewise.
4158         Yet more FDL 1.3 fallout.
4159         * NEWS: Mention manual license change.
4161 2008-11-10  Eric Blake  <ebb9@byu.net>
4163         Avoid some regex uses.
4164         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
4165         than m4_bpatsubst to grab string prefix.
4166         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
4167         (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
4168         (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
4169         m4_bpatsubst to change bytes.
4170         (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
4171         m4_bmatch to find byte.
4172         (_AC_CONFIG_COMPUTE_DEST): New helper macro.
4174         Use more efficient macros in AC_CONFIG_SUBDIRS.
4175         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
4176         m4_map_args_w.
4177         (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
4178         (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
4180         Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
4181         * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
4182         and avoid typo.
4183         (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
4184         (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
4185         helper macros.
4186         (AC_LIBSOURCES): Use m4_map_args.
4188         Use more efficient macros in AC_CHECK_TYPES.
4189         * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
4190         m4_map_args_sep.
4191         (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
4193         Use more efficient macros in AC_CHECK_HEADERS.
4194         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
4195         (AH_CHECK_HEADERS_DIRENT): Rename...
4196         (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
4197         argument, rather than a list.
4198         (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
4199         Adjust callers to use m4_map_args_w.
4200         (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
4201         (_AC_CHECK_HEADER_ONCE): New helper macro.
4203         Use more efficient macros in AC_CHECK_FUNCS.
4204         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
4205         (_AH_CHECK_FUNC): ...and take only one argument, rather than a
4206         list.
4207         (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
4208         m4_map_args_w.
4209         (_AC_CHECK_FUNC_ONCE): New helper macro.
4210         (AC_REPLACE_FUNCS): Use m4_map_args_w.
4212         Use more efficient macro in AT_INIT.
4213         * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
4215 2008-11-10  Eric Blake  <ebb9@byu.net>
4217         More FDL 1.3 fallout.
4218         * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
4219         * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
4220         dependency changes.
4221         * doc/fdl.texi: Delete.
4222         * doc/gnu-oids.texi: New upstream file.
4223         * doc/standards.texi: Resync from upstream.
4224         * doc/make-stds.texi: Likewise.
4225         * build-aux/announce-gen: Likewise.
4226         * build-aux/texinfo.tex: Likewise.
4228 2008-11-10  Clinton Roy  <clinton.roy@gmail.com>  (tiny change)
4230         Pass autoreconf -I to aclocal -I
4231         * bin/autoreconf.in (parse_args): Pass --include to aclocal.
4232         * doc/autoconf.texi (autoreconf Invocation): Updates for above.
4233         * NEWS: Document it.
4234         * THANKS: Update.
4236 2008-11-10  Eric Blake  <ebb9@byu.net>
4238         Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
4239         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
4240         * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
4241         the print workaround.
4242         Idea by Paolo Bonzini.
4244 2008-11-10  Eric Blake  <ebb9@byu.net>
4246         Provide a section on all tools allowed in GNU Coding Standards.
4247         * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
4248         <wait>: Add section.
4249         (Limitations of Usual Tools) <awk>: Make table entry consistent.
4250         <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
4252 2008-11-09  Paolo Bonzini  <bonzini@gnu.org>
4254         Balance parentheses in _AC_CACHE_DUMP.
4255         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
4256         without introducing \).
4258 2008-11-07  Eric Blake  <ebb9@byu.net>
4260         Further doc updates for AC_CHECK_HEADER change.
4261         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
4262         new default, and make it more obvious that using [-] is generally
4263         broken.
4265 2008-11-07  Eric Blake  <ebb9@byu.net>
4267         * ChangeLog: Enforce UTF-8 encoding.
4269 2008-11-06  Eric Blake  <ebb9@byu.net>
4271         Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
4272         * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
4273         argument to speed up check.
4275 2008-11-06  Eric Blake  <ebb9@byu.net>
4277         Speed up AC_CHECK_TYPE.
4278         * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
4279         regex when enough arguments are present.
4281 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
4283         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
4284         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
4285         sequence when the program's stderr was empty, while providing a
4286         conftest.err file even in that case.
4287         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
4289 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
4291         Change `present but cannot be compiled' behavior to use compiler result.
4292         * NEWS: Document it.
4293         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
4294         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
4295         and adjust warning.
4296         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
4298 2008-11-05  Eric Blake  <ebb9@byu.net>
4300         Add m4_map_args_w.
4301         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
4302         for now.
4303         (_m4_split): Allow user control over separator.
4304         (m4_split): Adjust caller.
4305         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
4306         m4_map_args_w.
4307         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
4308         (M4 loops): Test new interface.
4310         Use m4_set_map_sep in more places.
4311         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
4312         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
4313         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4314         Enhance documentation.
4315         <m4_set_foreach>: Mention faster alternative.
4316         (Looping constructs) <m4_foreach>: Likewise.
4318         Unify m4_set_foreach and m4_set_map.
4319         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
4320         for now.
4321         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4322         (m4_set_map): Adjust callers.
4324         Use _m4_foreach in more places.
4325         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
4326         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
4327         m4_foreach.
4328         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
4329         instead of m4_foreach or m4_map_args.
4331         Unify _m4_foreach and _m4_map.
4332         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
4333         (_m4_foreach): ...this.
4334         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
4335         (m4_map_args, m4_map_args_sep): Adjust callers.
4336         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
4337         (_m4_foreach): ...to this, overwriting old definition.
4339 2008-11-04  Eric Blake  <ebb9@byu.net>
4341         Add m4_map_args_sep, undocumented for now.
4342         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
4343         (_m4_map): Change API to cover more of m4_map*.
4344         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
4345         (m4_map_args): Delete.
4346         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
4347         test.
4349         Improve m4_for performance.
4350         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
4351         avoid m4_define by some clients.
4352         (m4_for): Adjust caller.
4353         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
4354         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
4355         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
4356         (_m4_list_cmp): Likewise.
4358 2008-11-04  Eric Blake  <ebb9@byu.net>
4360         Adjust expected output.
4361         * tests/torture.at (Missing templates): Reflect added quoting.
4362         Detected by Bob Proulx's buildbot.
4364         Reject arguments with leading =.
4365         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
4366         missing variable name, with fewer forks.  Quote invalid arguments
4367         in message, in case they include spaces.
4368         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
4369         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
4370         * lib/autotest/general.m4 (AT_INIT): Likewise.
4371         * tests/base.at (configure arguments): Test this.
4372         Reported by Jeff Squyres.
4374 2008-11-04  Eric Blake  <ebb9@byu.net>
4376         Upgrade to FDL 1.3.
4377         * cfg.mk (fetch): Add fdl-1.3.texi.
4378         * .gitattributes: Likewise.
4379         * doc/autoconf.texi (GNU Free Documentation License): Point to new
4380         upstream version.
4381         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
4382         (standards_TEXINFOS): Mention current dependence on older license.
4383         * doc/fdl-1.3.texi: New upstream file.
4384         * GNUmakefile: Resync from upstream.
4385         * build-aux/announce-gen: Likewise.
4386         * build-aux/texinfo.tex: Likewise.
4388 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4390         Point at AM_SUBST_NOTMAKE.
4391         * doc/autoconf.texi (Setting Output Variables): Add cross
4392         reference to new Automake macro AM_SUBST_NOTMAKE.
4394 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4396         Eliminate a fork per invocation of AC_LANG_CONFTEST.
4397         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
4398         AC_LANG_SOURCE(C).
4399         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
4400         top of confdefs.h, which also works around cpp deficiencies.
4401         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
4402         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
4403         (AC_LANG_CONFTEST()): New.
4405 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4407         Reorganize definition of languages.
4408         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
4409         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
4410         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
4411         Replace definitions with usage of AC_LANG_DEFINE.
4412         (Sections 2b, 2c): Delete.
4413         (Sections 1b, 1c): Move after section 2a.
4414         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
4415         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
4416         with usage of AC_LANG_DEFINE.
4417         (AC_LANG_ERLANG): Define using AU_DEFUN.
4418         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
4419         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
4420         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
4421         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
4422         definitions with usage of AC_LANG_DEFINE.
4423         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
4425 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
4427         Use preprocessor in cpp tests.
4428         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
4430 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
4432         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
4433         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
4434         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
4435         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
4436         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
4437         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
4438         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
4439         Give better name.
4441 2008-10-31  Eric Blake  <ebb9@byu.net>
4443         Support multiple undiverts and dumpdefs at once.
4444         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
4445         arguments.
4446         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
4447         <m4_undivert>: Document argument list change.
4448         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
4449         them.
4451         Simplify diversion stack handling.
4452         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
4453         avoid extra newlines.
4454         (m4_divert_stack_push): Compute location here, rather than caller.
4455         (m4_divert_push): Update caller.
4456         (m4_divert): Likewise, and also adjust current diversion name.
4457         (m4_divert_pop): Simplify rule that diversion stack must never go
4458         empty.
4459         (_m4_require_call): Bypass diversion stack when collecting
4460         required macro text.
4461         (m4_init): Set current diversion without requiring m4_init.
4462         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
4463         * lib/autotest/general.m4 (AT_INIT): Likewise.
4464         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
4465         text to run prior to m4sugar cleanup.
4466         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
4467         optional argument.
4468         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
4469         * NEWS: Undo blurb about m4_divert.
4470         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
4472         Simplify expansion stack handling.
4473         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
4474         always output 'top level'.
4475         (_m4_expansion_stack_entry): New macro, to format the string only
4476         when needed.
4477         (m4_expansion_stack_push): Only push a macro name.
4478         (m4_warn, _m4_defun_pro): Update callers.
4479         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
4480         (_m4_defun_epi, m4_fatal): Inline the calls.
4481         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
4483 2008-10-30  Eric Blake  <ebb9@byu.net>
4485         Better documentation of AC_CHECK_HEADER's fourth argument.
4486         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
4487         how to suppress compiler or preprocessor header check.
4488         Reported by Jeff Squyres.
4490 2008-10-30  Eric Blake  <ebb9@byu.net>
4492         Fix LINENO testsuite failure.
4493         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
4494         undocumented _AS_PREPARE, and move unset earlier in script.
4496         Update LINENO documentation.
4497         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4498         (Special Shell Variables) <LINENO>: Mention that LINENO support in
4499         child scripts may be broken.  Modernize example.
4501 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4503         Do not check for $LINENO in generated scripts.
4504         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
4505         and explain why.
4507 2008-10-30  Eric Blake  <ebb9@byu.net>
4509         Don't check for non-POSIX extensions in suggested tests.
4510         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
4511         we still use += if available, but should not reject shells (like
4512         dash) that don't provide it.
4513         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
4514         Reported by Paolo Bonzini.
4516 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4518         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
4519         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
4520         with a given CONFIG_SHELL, move it to SHELL.
4521         (AS_INIT_GENERATED): Re-export SHELL.
4523 2008-10-30  Eric Blake  <ebb9@byu.net>
4525         Work around Solaris /bin/sh case bug.
4526         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
4527         a non-empty command list.
4528         (AS_CASE): Always guarantee that a case will match.
4529         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
4530         Solaris bug, and mention AS_CASE.
4532 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
4534         Require _AS_CR_PREPARE where appropriate.
4535         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
4536         (AS_PREPARE): Require _AS_CR_PREPARE.
4538         Avoid walking the entire PATH when looking for a better shell.
4539         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
4540         as the PATH is walked.
4542         Add third argument to _AS_PATH_WALK
4543         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
4544         (_AS_PATH_WALK): Add third optional argument.
4546         Trim down the length of the shell function test.
4547         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
4549 2008-10-29  Eric Blake  <ebb9@byu.net>
4551         Fix LINENO detection to work around bash and pdksh limitations.
4552         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
4553         that we can choose which of two tests to trust.
4554         (_AS_RUN): Set flag when alternate shell is running.
4555         (_AS_DETECT_EXPAND): New macro.
4556         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
4558 2008-10-29  Eric Blake  <ebb9@byu.net>
4560         Mention proper fix for zsh users.
4561         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
4562         version known to work.
4563         Suggested by Paolo Bonzini.
4565         Document current beta-quality status.
4566         * configure.ac: Reflect fact that change to git-version-gen
4567         produces -, but not always a letter, on non-release builds.
4568         * BUGS: Mention known issues.
4569         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
4570         debugging platforms with deficient shells.
4572 2008-10-29  Eric Blake  <ebb9@byu.net>
4574         Alter signature of AS_INIT_GENERATED.
4575         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
4576         manage here-doc and chmod in place.  This also allows future
4577         changes for optimizing the child via diversion/m4_wrap magic.
4578         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
4579         caller.
4580         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
4581         Update the documentation.
4583 2008-10-29  Eric Blake  <ebb9@byu.net>
4585         Use _m4_stack_reverse in m4_set.
4586         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
4587         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
4588         implementation.
4589         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
4590         (m4_set_map): Adjust callers to new API.
4592         Add m4_stack_foreach_sep.
4593         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
4594         (m4_stack_foreach_sep_lifo): New macros.
4595         (_m4_stack_reverse): Adjust prototype, to support it.
4596         (m4_copy): Use fewer macros.
4597         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
4598         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
4600 2008-10-29  Bruno Haible  <bruno@clisp.org>
4602         Mention Sun WorkShop 6.2 OpenMP bug.
4603         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
4605 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
4607         Rewrite handling of diversion and expansion stack.
4608         * NEWS: Document stricter requirement on m4_init.
4609         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
4610         _m4_divert_n_stack.
4611         (_m4_divert_stack_push): New.
4612         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
4613         m4_popdef.
4614         (m4_divert_push): Use _m4_divert_stack_push.
4615         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
4616         pop _m4_divert_stack instead of m4_divert_stack.
4617         (m4_expansion_stack): New.  Update comment above it.
4618         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
4619         _m4_expansion_stack instead of m4_expansion_stack.
4620         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
4621         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
4622         instead of the definition, and compensate for the trailing newline
4623         in the expansion.
4624         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
4625         _m4_expansion_stack instead of m4_expansion_stack.
4626         (m4_newline): Expand first argument after the newline.
4627         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
4628         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
4629         * tests/tools.at (whitespace in file names, the empty token): Likewise.
4631 2008-10-28  Eric Blake  <ebb9@byu.net>
4633         Reduce forks while searching for better shell.
4634         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
4635         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
4636         already does the job.
4637         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
4638         0 context.
4640         Undo needless efforts to protect $2 in $2_t.
4641         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
4642         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
4644 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4646         Fix parallel test execution output lossage.
4647         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
4648         standard output and standard error before the test, use append
4649         mode for writing.
4650         * THANKS: Update.
4651         Caught by Bob Proulx' build daemons, analysis and suggested fix
4652         by Stéphane Chazelas.
4654 2008-10-28  Eric Blake  <ebb9@byu.net>
4656         Use m4_map_args in more places.
4657         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
4658         (m4_undefine, m4_combine): Use m4_map_args, rather than
4659         m4_foreach.
4661 2008-10-28  Eric Blake  <ebb9@byu.net>
4663         Override m4 1.4.x dumpdef, as it breaks autom4te.
4664         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
4665         (m4_copy): Formatting touchup.
4666         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
4667         semantic differences as well as m4_dumpdefs.
4668         * NEWS: Likewise.
4669         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
4671 2008-10-28  Eric Blake  <ebb9@byu.net>
4673         Allow m4sugar to be used without autom4te, such as in bison.
4674         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
4675         alternate escape sequences can be used.
4676         (m4_text_box): Likewise.  Don't output quadrigraphs.
4677         (m4_qdelta): Delete unused macro.
4679 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4681         Add m4_stack_foreach and m4_stack_foreach_lifo.
4682         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
4683         (m4_stack_foreach, m4_stack_foreach_lifo): New.
4684         (m4_copy): Use m4_stack_foreach and m4_curry.
4685         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
4686         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
4687         * tests/m4sugar.at (m4_stack_foreach): New test.
4689 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4691         use a shell function for AC_TYPE_INTx_T
4692         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
4693         New.
4694         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
4696 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4698         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
4699         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
4700         _AC_CHECK_HEADER_NEW): Likewise.
4701         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
4703 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
4705         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
4706         (AC_CHECK_MEMBER): Define and use a shell function.
4708 2008-10-27  Eric Blake  <ebb9@byu.net>
4710         Prefer m4_fatal over AC_FATAL.
4711         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
4712         (AC_CHECK_MEMBER): Use non-obsolete macro name.
4713         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
4714         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
4715         Likewise.
4716         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4717         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
4718         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
4720 2008-10-27  Eric Blake  <ebb9@byu.net>
4722         Avoid raw carriage return in scripts.
4723         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
4724         via tr, rather than with literal byte.
4725         * THANKS: Update.
4726         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
4728 2008-10-27  Eric Blake  <ebb9@byu.net>
4730         Use AS_VAR_ARITH.
4731         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
4732         clients with AS_VAR_ARITH instead.
4733         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
4734         macro.
4735         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
4736         * tests/torture.at (Torturing config.status): Likewise.
4737         * tests/tools.at (autom4te --force): Likewise.
4739         Add AS_VAR_ARITH.
4740         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
4741         (AS_VAR_ARITH): New macros.
4742         (_AS_PREPARE, AS_PREPARE): Emit preparation.
4743         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
4744         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
4745         Document new macro.
4746         (Limitations of Usual Tools) <expr>: Mention portability problem
4747         if first argument starts with -.
4748         (Shell Substitutions) <$((expression))>: Mention it.
4749         * NEWS: Likewise.
4751 2008-10-27  Eric Blake  <ebb9@byu.net>
4753         Use read, rather than `cat`, for safe one-line files.
4754         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
4755         known that the file has only one line and no \.
4756         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
4758 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4760         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
4761         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
4762         (_AC_COMPUTE_INT_BODY): New.
4763         (AC_COMPUTE_INT): Define and use a shell function.
4765 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4767         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
4768         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
4769         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
4771 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4773         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
4774         (AC_CHECK_DECL): Use a shell function.
4776 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
4778         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
4779         _AC_CHECK_HEADER_NEW): Use a shell function.
4781 2008-10-25  Eric Blake  <ebb9@byu.net>
4783         Track recent copyright assignments.
4784         * AUTHORS: Update.
4786 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
4787         and Eric Blake  <ebb9@byu.net>
4789         Use a shell function for _AC_CHECK_HEADER_MONGREL.
4790         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
4791         macro.
4792         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
4794 2008-10-25  Eric Blake  <ebb9@byu.net>
4796         Simplify _AS_PREPARE handling of functions.
4797         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
4798         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
4799         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
4800         this task easier.
4801         (_AS_LINENO_PREPARE): Make more efficient.
4802         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
4803         (_AS_UNSET_PREPARE): Avoid blank newline.
4804         (AS_INIT): Emit as_func_unset alongside other functions.
4806 2008-10-25  Eric Blake  <ebb9@byu.net>
4808         Document AS_EXIT.
4809         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
4810         this macro.
4811         (Limitations of Builtins): Mention AS_EXIT.
4812         * NEWS: Mention it.
4814         Use AS_EXIT in autoconf.as.
4815         * bin/autoconf.as: Consistently use AS_EXIT.
4817 2008-10-24  Eric Blake  <ebb9@byu.net>
4819         Fix m4 underquoting in AC_PROG_INSTALL.
4820         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
4821         character ranges.
4823         Speed up AC_CHECK_HEADER.
4824         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
4826 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
4827         and Eric Blake  <ebb9@byu.net>
4829         Use a shell function for AC_CHECK_FUNC.
4830         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
4831         (AC_CHECK_FUNC): Use a shell function.
4832         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
4834 2008-10-24  Eric Blake  <ebb9@byu.net>
4836         Work around fact that gnulib-tool doesn't use m4_copy.
4837         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
4838         define, so that an initial location is present, to account for
4839         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
4841         Make m4_defun_init more robust.
4842         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
4843         names, and correct number of arguments.
4844         (m4_copy): Also set up location of the copy.
4845         (m4_defun): When copied, use current macro name, not original.
4846         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
4847         Update test.
4849         Optimize clients of AS_REQUIRE.
4850         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
4851         argument.
4852         (m4_defun_init): New undocumented macro.
4853         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
4854         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
4855         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
4856         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
4857         simplify these macros once the one-shot initialization is
4858         complete.
4859         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
4860         test.
4862         Improve m4_copy.
4863         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
4864         public use.
4865         (_m4_copy): New macro, which preserves pushdef stacks.
4866         (_m4_defun_pro_outer): Bypass it, for speed.
4867         (m4_init): Bypass new implementation, since it breaks on m4_defn.
4868         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
4869         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
4870         now that m4_copy checks this.
4871         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
4872         this, as well as m4_rename.
4873         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
4874         renaming builtins, since it breaks on m4_ifdef.
4875         * NEWS: Likewise.
4876         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
4878 2008-10-24  Eric Blake  <ebb9@byu.net>
4880         AC_FUNC_GETGROUPS: Revert regression.
4881         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
4882         ac_cv_func_getgroups_works=no when it is not available.
4884 2008-10-23  Eric Blake  <ebb9@byu.net>
4886         Whitespace cleanup.
4887         * lib/autoconf/fortran.m4: Consistently use tabs.
4889 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
4891         For gfortran on sh, ignore -little.
4892         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
4893         list of ignored arguments.
4894         * THANKS: Update.
4896 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4898         Eliminate empty lines after AC_*_IFELSE.
4899         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
4900         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
4902 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4904         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
4905         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
4906         Return a boolean status code based on $ac_status.
4908 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4910         Ensure actions can look at conftest* files.
4911         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
4912         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
4913         Move rm commands, except IPA files and Apple debug symbols...
4914         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
4915         _AC_RUN_IFELSE): ...in here.
4916         * tests/compile.at: Add regression test.
4918 2008-10-23  Eric Blake  <ebb9@byu.net>
4920         Remove excess dnl from m4sh.
4921         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
4922         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
4923         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
4924         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
4925         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
4926         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
4927         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
4928         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
4929         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
4930         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
4932 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
4933         and Eric Blake  <ebb9@byu.net>
4935         Use a shell function for _AC_RUN_IFELSE.
4936         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
4937         (_AC_RUN_IFELSE): Use a shell function.
4938         (_AC_RUN_LOG): Avoid subshell for logging.
4940 2008-10-23  Eric Blake  <ebb9@byu.net>
4942         Formatting tweak: balance () with m4sh case statements.
4943         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
4944         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
4945         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
4946         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
4947         allow output of strategic shell comments.
4948         (AS_VERSION_COMPARE): Use AS_CASE.
4949         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4951 2008-10-22  Jim Meyering  <meyering@redhat.com>
4953         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
4954         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
4955         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
4956         it is set to "yes" in the environment and configure is run on
4957         a system like mingw that lacks the getgroups function, it would
4958         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
4959         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
4961 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
4962         and Eric Blake  <ebb9@byu.net>
4964         Use a shell function for _AC_LINK_IFELSE.
4965         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
4966         (_AC_LINK_IFELSE): Use a shell function.
4968 2008-10-22  Eric Blake  <ebb9@byu.net>
4970         Fix autoconf logging commands.
4971         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
4972         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
4973         (_AC_DO_ECHO): Likewise, and use fewer dnl.
4974         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
4976 2008-10-22  Eric Blake  <ebb9@byu.net>
4978         Fix testsuite failure.
4979         * tests/mktests.sh (ac_exclude_list): Don't generate test for
4980         AC_REQUIRE_SHELL_FN.
4982 2008-10-21  Eric Blake  <ebb9@byu.net>
4984         Improve wording related to automake and autotest.
4985         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
4986         relation to automake.  Mention dependency on package.m4.
4987         Consolidate examples.  Define AUTOM4TE.
4988         * THANKS: Update.
4989         Reported by William Pursell.
4991 2008-10-21  Eric Blake  <ebb9@byu.net>
4993         Allow AS_VAR_SET_IF in shell lists.
4994         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
4995         line.
4996         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
4997         provided by AS_VAR_SET_IF.
4998         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
4999         clients.
5000         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
5001         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
5003         Allow AS_VAR_IF in shell lists.
5004         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
5005         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
5006         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
5007         Likewise.
5008         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
5009         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
5010         (_AC_CHECK_HEADER_DIRENT): Likewise.
5011         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
5012         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
5013         Likewise.
5014         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
5016         Allow AS_CASE in shell lists.
5017         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
5018         side effects.  Allow continuation of script on same line as esac.
5019         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
5020         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
5021         * NEWS: Document the subtle change.
5023         Allow AS_IF in shell lists.
5024         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
5025         side effects.  Allow continuation of script on same line as fi.
5026         (_AS_DETECT_BETTER_SHELL): Adjust clients.
5027         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
5028         given by AS_IF.
5029         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
5030         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
5031         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
5032         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
5033         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
5034         (Polymorphic Variables): Move mention of dnl to the only two
5035         AS_VAR functions that need it.
5037 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
5038         and Eric Blake  <ebb9@byu.net>
5040         Use a shell function for _AC_COMPILE_IFELSE.
5041         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
5042         (_AC_COMPILE_IFELSE): Use a shell function.
5044 2008-10-21  Eric Blake  <ebb9@byu.net>
5046         Use AS_VAR_APPEND.
5047         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
5048         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
5049         (_AC_LIBOBJS_NORMALIZE): Likewise.
5050         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
5051         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
5052         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
5053         * lib/autotest/general.m4 (AT_INIT): Likewise.
5055         Add AS_VAR_APPEND.
5056         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
5057         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
5058         (AS_PREPARE, _AS_PREPARE): Emit preparation.
5059         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
5060         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
5061         Document new macro.
5062         <AS_VAR_SET>: Mention ramification of `""` rules.
5063         * NEWS: Mention new macro.
5065 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
5066         and Eric Blake  <ebb9@byu.net>
5068         Use a shell function for _AC_PREPROC_IFELSE.
5069         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
5070         (_AC_PREPROC_IFELSE): Use a shell function.
5071         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
5072         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
5073         been provided.
5075 2008-10-21  Eric Blake  <ebb9@byu.net>
5077         Add banners to generated files.
5078         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
5079         existing banner.
5080         (AS_INIT): Add new banners at strategic points.
5081         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
5082         make consistent with other banners.
5083         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
5085 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
5087         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
5088         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
5089         (m4_divert(SHELL_FN)): New.
5091 2008-10-20  Eric Blake  <ebb9@byu.net>
5093         Avoid unportable use of echo in testsuite.
5094         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
5095         contains backslash.
5097 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
5099         Make sure that nested AS_REQUIRE do not lose the desired diversion.
5100         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
5101         passing it to m4_divert_require, so that its content is not used
5102         anymore.
5103         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
5105 2008-10-18  Eric Blake  <ebb9@byu.net>
5107         Document bugs in { } handling.
5108         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
5109         empty list.
5111         Fix some testsuite failures introduced two days ago.
5112         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
5113         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
5114         API.
5115         Reported by Ralf Wildenhues.
5117 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5119         Show how to extract single substitutions from config.status.
5120         * doc/autoconf.texi (config.status Invocation): Show example
5121         using `--file=-'.
5123 2008-10-17  Eric Blake  <ebb9@byu.net>
5125         Add m4_curry.
5126         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
5127         * tests/m4sugar.at (m4@&t@_map_args): Rename...
5128         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
5129         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
5130         currying as a way to add parameters.
5131         (Evaluation Macros) <m4_curry>: Document the new macro.
5132         * NEWS: Likewise.
5134         Improve suggested test filtering.
5135         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
5136         extracted from...
5137         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
5138         check for an empty required set.
5140         Add m4_set_map.
5141         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
5142         * tests/m4sugar.at (m4@&t@_set): Enhance test.
5143         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
5144         Document it.
5145         * NEWS: Likewise.
5147         Document m4_map_args.
5148         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
5149         Rename...
5150         (m4_map_args, m4_map_args_pair): ...to these names, and document.
5151         (m4_version_unletter): Use the interface.
5152         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
5153         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
5154         Perform same renames.
5155         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
5156         * tests/m4sugar.at (m4@&t@_map_args): New test.
5157         (recursion): Adjust caller.
5158         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
5159         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
5160         this interface.
5161         * NEWS: Mention the new macros.
5163 2008-10-17  Eric Blake  <ebb9@byu.net>
5165         Reduce vertical whitespace in configure.
5166         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
5167         m4 side effect initializations.
5168         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
5170 2008-10-17  Eric Blake  <ebb9@byu.net>
5172         Document AS_VAR interfaces.
5173         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
5174         (Polymorphic Variables): New node.
5175         * NEWS: Update accordingly.
5177         Test AS_VAR interfaces.
5178         * tests/m4sh.at (AS@&t@_VAR): New test.
5179         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
5180         _AS_TR_SH_PREPARE at top level, rather than argument collection.
5181         (AS_TR_SH): Support command substitution.
5183         Add AS_VAR_COPY.
5184         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
5185         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
5186         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
5187         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
5188         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
5190         Sort AS_VAR_* interfaces.
5191         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
5192         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
5193         no code changes.
5195 2008-10-16  Eric Blake  <ebb9@byu.net>
5197         Allow comments before functions emitted by m4sh.
5198         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
5199         argument.  Supply closing comment, to ease readability.
5200         (_AS_MKDIR_P_PREPARE): Adjust caller.
5201         (_AS_UNSET_PREPARE): Add comment.
5203         Add AS_FUNCTION_DESCRIBE.
5204         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
5205         * lib/autotest/general.m4 (AT_INIT): Use it.
5207 2008-10-16  Eric Blake  <ebb9@byu.net>
5209         Speed up m4_qlen with caching.
5210         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
5211         (m4_qlen): Cache results for speed.
5213 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
5215         Add a testcase using more then one language.
5216         * tests/compile.at (Multiple languages): New test.
5218 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
5220         Fix Libtool's config.lt test.
5221         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
5222         expanding it.
5224 2008-10-15  Eric Blake  <ebb9@byu.net>
5226         Break circular require chain in _AS_LINENO_PREPARE.
5227         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
5228         disabled when reporting LINENO failure, since logging requires
5229         LINENO.
5230         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
5231         not m4_rename, since the latter is undocumented.
5232         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
5233         m4_rename, as it does not yet handle pushdef stacks.
5234         Reported by Ralf Wildenhues.
5236 2008-10-15  Eric Blake  <ebb9@byu.net>
5238         Cleanups to previous patches.
5239         * doc/autoconf.texi (Portable Shell): Minor edits.
5240         (Limitations of Builtins): Touch up wording.
5241         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
5242         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
5244 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5246         Updates to shell portability documentation.
5247         * doc/autoconf.texi: Updates all references to "Portable Shell" and
5248         "Limitations of Builtins" to use three-argument commands.
5249         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
5250         (Portable Shell): Move here discussion about "Where is the POSIX
5251         shell?"  Mention that M4sh provides a SVR2 shell and takes care
5252         of unsetting variables if necessary.  Talk about M4sh and not only
5253         Autoconf-generated scripts.
5254         (Special Shell Variables): Talk about M4sh and not only
5255         Autoconf-generated scripts.  Don't talk about things that Autoconf
5256         does not do.  Mention problems of $LINENO with shell functions.
5257         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
5258         discussion of eval bugs before discussion on proper use of eval.
5259         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
5260         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
5261         * NEWS: Update list of documented M4sh macros.
5263 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5265         Assume a (possibly buggy) `unset' is present after a
5266         `better shell' was found.
5267         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
5268         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
5269         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
5270         alias for AS_UNSET, for backwards compatibility.
5271         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
5272         the shell does not support unset.
5273         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
5274         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
5275         (AS_UNSET): Assume it is there but it might fail if the variable is
5276         not set.  Use it throughout instead of $as_unset.
5278 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5280         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
5281         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
5282         m4_require of _AS_DETECT_BETTER_SHELL.
5283         (_AS_CLEANUP): Add it here.
5284         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
5285         to _AS_CLEANUP.
5286         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
5287         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
5288         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
5289         (AS_INIT): Add m4_provide of itself.
5291 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5293         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
5294         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
5295         "test x$foo = xyes".
5297 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5299         Trim down the size of the better-shell test.
5300         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
5301         snippets into shell variables.
5302         (_AS_RUN): Rewrite.
5304 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
5306         Support a stack of LINENO values for AS_MESSAGE.
5307         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
5308         the line number emitted to the log file.
5309         (AS_LINENO_PUSH, AS_LINENO_POP): New.
5310         * tests/m4sh.at (LINENO Stack): New test.
5312 2008-10-14  Eric Blake  <ebb9@byu.net>
5314         Correct previous patch.
5315         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
5316         all.
5318         Document shell function environment pitfall.
5319         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
5320         Solaris /bin/sh.
5322 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
5324         Use m4_require to implement AS_REQUIRE.
5325         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
5326         (m4_require): Pass it.
5327         (m4_divert_require): New.
5328         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
5329         Remove comment about differences with m4_require.
5330         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
5331         the expected behavior.
5332         (Nested AS_REQUIRE_SHELL_FN): New test.
5334 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5336         Test AS_LINENO_PREPARE.
5337         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
5339 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5341         Test AS_ME_PREPARE.
5342         * tests/m4sh.at (as_me): New test.
5344 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5346         Add and document AS_INIT_GENERATED.
5347         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
5348         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
5349         * doc/autoconf.texi (Initialization macros): Document it.
5351 2008-10-13  Eric Blake  <ebb9@byu.net>
5353         Use consistent shell function style.
5354         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
5355         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
5356         functions.
5358 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5360         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
5361         contributors under m4 rather than shell comments.
5363 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5365         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
5366         * doc/autoconf.texi (Initialization macros): Document them.
5367         (Portable Shell): Refer to AS_LINENO_PREPARE.
5368         * NEWS: Mention them.
5370         * bin/autoconf.as: Invoke AS_ME_PREPARE.
5371         * lib/autotest/general.m4: Likewise.
5373 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5375         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
5377 2008-10-10  Eric Blake  <ebb9@byu.net>
5379         Fix _AS_MKDIR_P usage.
5380         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
5381         match implementation.
5382         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
5383         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
5384         wording to better match behavior.
5386 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5388         * doc/autoconf.texi: Be less wary of shell functions.
5389         * NEWS: Document the increased use of shell functions.
5391 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
5393         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
5394         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
5395         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
5396         (_AS_PREPARE): Define shell functions.
5397         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
5398         Define shell functions.
5400 2008-10-09  Eric Blake  <ebb9@byu.net>
5402         Only prepare $as_me if it will be used.
5403         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
5404         preparation.
5405         (_AS_ECHO_LOG): Depend on $LINENO preparation.
5406         (AS_MESSAGE): Depend on $as_me preparation.
5407         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
5409 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
5411         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
5412         until the M4SH-INIT diversion using _AS_ME_PREPARE.
5413         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
5414         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
5415         before _AS_LINENO_PREPARE.
5416         (AS_PREPARE): Include all the AS_REQUIREs manually.
5417         (_AS_ME_PREPARE): New.
5418         (_AS_LINENO_PREPARE): Use m4_defun.
5420 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
5422         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
5423         require _AS_EXPR_PREPARE.
5424         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
5425         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
5427 2008-10-08  Eric Blake  <ebb9@byu.net>
5429         Resync from gnulib.
5430         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
5431         (fetch): ...into new target.
5432         (executable-update): Delete, now that it is unused.
5433         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
5434         (wget-update, cvs-update): Likewise.
5435         * HACKING (Update the foreign files): Document new procedure.
5436         * GNUmakefile: Resync from upstream, via new 'make fetch'.
5437         * build-aux/config.guess: Likewise.
5439 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5441         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
5442         (AS_INIT): Do not call it.
5444 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5446         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
5447         _AS_UNSET_PREPARE in M4SH-SANITIZE.
5449 2008-10-08  Eric Blake  <ebb9@byu.net>
5451         Avoid repeating required shell tests in suggested set.
5452         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
5453         Use m4_set, rather than m4_expand_once/m4_append.
5454         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
5455         required tests out of suggested tests.
5456         Reported by Paolo Bonzini.
5458 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
5460         Add m4sh keyword to all m4sh.at tests.
5461         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
5462         pastos.
5464 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5466         Document AS_VERSION_COMPARE.
5467         * doc/autoconf.texi (Programming in M4sh): Document
5468         AS_VERSION_COMPARE.
5469         * NEWS: Update.
5471         Do not write to testsuite log fd before initialization.
5472         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
5473         Define fds only when initializing the log fd so early error
5474         messages do not try to write to it.
5475         * tests/autotest.at (Startup error messages): New test.
5476         * NEWS: Document this 2.63 regression.
5478 2008-10-07  Eric Blake  <ebb9@byu.net>
5480         Ensure _AS_CLEANUP is defined.
5481         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
5482         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
5484         Improve m4sh maintainability.
5485         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
5486         code change.
5488         Fix m4 quoting in previous patch.
5489         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
5490         name prior to invoking AS_REQUIRE.
5491         Reported by Ralf Wildenhues.
5493 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
5494         and Eric Blake  <ebb9@byu.net>
5496         Add a separate diversion for shell functions.
5497         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
5498         (AS_REQUIRE): Accept diversion parameter.
5499         (AS_REQUIRE_SHELL_FN): Use it.
5501 2008-10-06  Eric Blake  <ebb9@byu.net>
5503         Add m4_default_quoted.
5504         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
5505         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
5506         * doc/autoconf.texi (Conditional constructs): Document it.
5507         * NEWS: Likewise.
5509         Fix build with case-insensitive make, again.
5510         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
5511         Reported via Keith Marshall, originally by newthinker in
5512         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
5514 2008-10-06  Bruno Haible  <bruno@clisp.org>
5516         Warn about /usr/ucb on Solaris.
5517         * doc/install.texi (Particular Systems): Recommend putting
5518         /usr/ucb late in PATH, if at all.
5520 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5522         Fix more testsuite hang corner cases.
5523         * lib/autotest/general.m4: Use the serial code path if no test
5524         is to be run.
5525         * tests/autotest.at (parallel test execution): Test -j and -jN
5526         with `-k notmatched'.
5528 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5530         Fix hang with `testsuite -k notmatched'.
5531         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
5532         to one.  Fixes hang with `-k notmatched'.
5534 2008-10-02  Eric Blake  <ebb9@byu.net>
5536         Document more binary file portability traps.
5537         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
5538         reader that NUL and sed don't always mix.
5539         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
5541 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5543         Implement parallel Autotest test execution: testsuite --jobs.
5544         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
5545         (AT_INIT): <at_jobs>: New variable.
5546         Accept -j, -jN, --jobs[=N], document them in --help output.
5547         Implement parallel driver loop using a FIFO, enabled with --jobs
5548         and if mkfifo works; otherwise, fall back to sequential loop.
5549         (AT_SETUP): Store, do not output summary progress line if
5550         parallel.
5551         * tests/autotest.at (parallel test execution, parallel truth)
5552         (parallel fallacy, parallel skip): New tests.
5553         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
5554         the mkfifo requirement, and that --errexit may cause concurrent
5555         jobs to finish.
5556         * NEWS: Update.
5558 2008-09-20  Eric Blake  <ebb9@byu.net>
5560         Fix sample isinf definition.
5561         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
5562         first.
5563         * THANKS: Update.
5564         Reported by David Cournapeau.
5566 2008-09-16  Eric Blake  <ebb9@byu.net>
5568         Fix Erlang regression, introduced 2006-11-17.
5569         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
5570         caused by underquoting.
5571         * NEWS: Mention this fix.
5572         * THANKS: Update.
5573         Reported by BJ Terry.
5575 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5577         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
5579         Mention Solaris sh ':' redirection bug.
5580         * doc/autoconf.texi (File Descriptors): Redirecting ':'
5581         in a loop causes bogus optimization with Solaris sh.
5583 2008-09-10  Eric Blake  <ebb9@byu.net>
5585         Avoid testsuite bug when autom4te cache is disabled by user.
5586         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
5587         cache, even if user normally disabled it.
5588         Reported by Bruno Haible.
5590         Avoid testsuite bug in presence of verbose config.site.
5591         * tests/base.at (Input/Output): Nullify config.site during test.
5592         Reported by Bob Friesenhahn.
5594 2008-09-09  Eric Blake  <ebb9@byu.net>
5596         Release Version 2.63.
5597         * NEWS: Mention the release.
5599         Formatting tweaks to the manual.
5600         * doc/autoconf.texi (Introduction, Systemology)
5601         (File System Conventions, Portable C and C++)
5602         (Floating Point Portability): Allow URLs to split as needed.
5603         (Indices): Add entries, to work around texinfo bug on indices that
5604         start too close to a page break.
5605         (Particular Functions): Mention ftello.
5606         (Introduction, Language Choice): Use @enddots at sentence end.
5608         Resync from gnulib.
5609         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
5610         although for now, they are still manually sync'd.
5611         * build-aux/gnupload: Update.
5612         * build-aux/config.sub: Likewise.
5613         * GNUmakefile: Likewise.
5615 2008-09-06  Eric Blake  <ebb9@byu.net>
5617         Mention that Automake already supports VPATH.
5618         * doc/autoconf.texi (Build Directories): Details in this section
5619         only apply to users avoiding automake.
5620         * THANKS: Update.
5621         Reported by Matej Tyc.
5623         Relax tone when warning about cross-compiler names.
5624         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
5625         with poorly named tools; the issue has been reported too many
5626         times in the last four years to pull support.
5627         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
5628         documentation accordingly.
5629         * THANKS: Update.
5630         Reported by Josef Tran and others, wording suggested by Ralf
5631         Wildenhues.
5633 2008-09-01  Eric Blake  <ebb9@byu.net>
5635         Improve AC_C_BIGENDIAN.
5636         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
5637         universal builds require a config header.
5638         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
5639         AH_HEADER at the last possible moment, so that users can use
5640         AC_CONFIG_HEADER after this macro.
5641         Reported by Stepan Kasal.
5643         Fix manual date information.
5644         * doc/autoconf.tex: UPDATED refers to the day the manual was
5645         built, not the release date of Autoconf.
5646         Based on a bison patch by Akim Demaille.
5648 2008-08-27  Eric Blake  <ebb9@byu.net>
5650         Fix off-by-one bug in _m4_shiftn.
5651         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
5652         all arguments.
5653         * tests/m4sugar.at (M4 loops): Test it.
5654         Reported by Akim Demaille.
5656 2008-08-26  Eric Blake  <ebb9@byu.net>
5658         Improve INSTALL formatting.
5659         * doc/install.texi [!autoconf]: Ensure first paragraphs are
5660         indented like all others in a plain text rendering.
5661         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
5662         Reported by Bruno Haible.
5664 2008-08-26  Stepan Kasal  <skasal@redhat.com>
5666         Check for case sensitive make.
5667         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
5668         * configure.ac: ... called here.
5669         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
5670         ($(srcdir)/INSTALL): ...this, but enclose the rule in
5671         "if MAKE_CASE_SENSITIVE".
5673 2008-08-26  Eric Blake  <ebb9@byu.net>
5675         Update invocation documentation.
5676         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
5677         (autoreconf Invocation): Mention -v.
5678         (autom4te Invocation): Tie --freeze to -F, not -f.
5679         (autoupdate Invocation): Mention --prepend-include.
5680         * doc/install.texi (configure Invocation): Mention --help=short,
5681         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
5682         * bin/autoscan.in ($help): Omit space before `...'.
5683         * bin/ifnames.in ($help): Likewise.
5684         * bin/autoconf.as (Usage): Likewise.
5685         * bin/autoreconf.in ($help): Likewise.
5686         * bin/autoheader.in ($help): Likewise.
5687         * bin/autom4te.in ($help): Likewise.
5688         * bin/autoupdate.in ($help): Likewise.
5689         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
5690         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
5691         --file correctly.
5693         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
5694         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
5695         (files_to_options): Avoid inheriting __m4_version__ from frozen
5696         file if current M4 does not support it.
5698 2008-08-25  Eric Blake  <ebb9@byu.net>
5700         Adjust to recent m4 1.6 change to support m4_debugmode(d).
5701         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
5702         freeze-time decision of using faster 1.6 implementation...
5703         (m4_init): ...to a runtime decision, and add use of new debugmode
5704         flag.
5706 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
5708         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
5709         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
5710         __APPLE_CC__ with possible -arch flags.
5711         * NEWS: Document it.
5713 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5715         * NEWS: Fix typo.
5717 2008-08-22  Eric Blake  <ebb9@byu.net>
5719         * TODO: Add an item for additional m4sugar looping constructs.
5720         Suggested by Ralf Wildenhues.
5722         Add reminder to keep dual implementations in sync.
5723         * lib/m4sugar/m4sugar.m4: Add comments.
5724         * lib/m4sugar/foreach.m4: Likewise.
5725         Suggested by Ralf Wildenhues.
5727 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
5729         Format warning and error messages to match GCS.
5730         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
5731         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
5732         messages with a lowercase letter, end them without punctuation.
5733         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
5734         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
5735         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
5736         Likewise.
5737         * tests/fortran.at (GNU Fortran): Likewise.
5738         * tests/torture.at (Deep Package): Likewise.
5740 2008-08-21  Eric Blake  <ebb9@byu.net>
5742         Avoid extra side effects in m4sugar list expansion.
5743         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
5744         around...
5745         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
5746         duplicate side effects.
5747         (m4_version_compare): Adjust caller.
5748         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
5749         (_m4_list_cmp_raw): ...to match m4sugar.
5750         * doc/autoconf.texi (Looping constructs): Document the behavior of
5751         side effects.
5752         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
5753         Ensure only one side effect.
5754         (recursion): Fix test typo.
5755         Reported by Ralf Wildenhues.
5757 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5759         * TODO: Add item for compiler default flags.
5760         Suggested by Bruno Haible.
5762         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
5763         back to 1000.
5765 2008-08-21  Eric Blake  <ebb9@byu.net>
5767         Formatting improvements.
5768         * doc/autoconf.texi: Use @file and @command, rather than @code,
5769         where appropriate.
5771         Document another make bug.
5772         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
5773         make, GNU make <= 3.80.
5775         Tweak wording about SHELL in Makefile.
5776         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
5777         the importance of proper SHELL settings.
5778         Reported by Bruno Haible, in
5779         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
5781 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5783         Avoid timestamp races for updated input.
5784         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
5785         second script.
5786         * tests/tools.at (autotools and whitespace in file names): Add
5787         --force for repeated invocations.
5789 2008-08-20  Bruno Haible  <bruno@clisp.org>
5791         Add section to INSTALL about particular systems.
5792         * doc/install.texi (Particular systems): New node.
5793         * doc/autoconf.texi: Adjust menus.
5795 2008-08-19  Bruno Haible  <bruno@clisp.org>
5796         and Peter O'Gorman  <peter@pogma.com>
5798         Mention universal binaries in INSTALL.
5799         * doc/install.texi (Compiling For Multiple Architectures): Explain
5800         how to create universal binaries on MacOS X.
5802 2008-08-19  Jim Meyering  <jim@meyering.net>
5803             Eric Blake  <ebb9@byu.net>
5804             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5806         Avoid shell parse errors after interrupt due to empty ``.
5807         * doc/autoconf.texi (Shell Substitutions): Document the issue.
5808         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
5809         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
5810         "test AS_VAR_GET([...]) = yes"
5811         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
5812         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
5813         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
5814         (_AC_CHECK_HEADER_DIRENT): Likewise.
5815         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
5816         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
5817         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
5818         temporary variable to work around the issue.
5819         * tests/foreign.at (Libtool): Quote result of command
5820         substitution.
5822 2008-08-18  Eric Blake  <ebb9@byu.net>
5824         Test m4_transform without tickling shell bugs.
5825         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
5826         something more manageable.
5827         * tests/m4sugar.at (recursion): Move stress test of
5828         m4_transform_pair here.
5829         Reported by Ralf Wildenhues.
5831         Let 'git diff' give better context for doc updates.
5832         * .gitattributes (*.texi*): Add new entry.
5833         * README-hacking: Mention how to use it.
5834         Inspired by a coreutils patch by Jim Meyering.
5836 2008-08-15  Eric Blake  <ebb9@byu.net>
5838         Fix m4_map regression from 2007-10-16.
5839         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
5840         (m4_map): Ignore empty sublists.  For a list consisting of only an
5841         empty sublist, this restores 2.61 behavior of being a no-op.
5842         (m4_map_sep): Likewise, and expand separator.
5843         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
5844         (_m4_map): Rewrite, to be common base for all four variants.
5845         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
5846         * tests/m4sugar.at (m4@&t@_map): Add tests.
5847         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
5848         macros, and mention ramifications of expanded separator.
5849         * NEWS: Mention the change.
5851 2008-08-14  Eric Blake  <ebb9@byu.net>
5853         Implement m4_transform_pair, to speed up AS_IF.
5854         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
5855         macros, undocumented for now.
5856         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
5857         the m4 1.4.x counterparts.
5858         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
5859         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
5861 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5863         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
5864         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
5865         warn about previous AC_CANONICAL_TARGET.
5866         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
5867         unusable in the non-cross-compiling case.
5868         * NEWS, THANKS: Update.
5869         Report by Dave Erickson.
5871 2008-08-12  Eric Blake  <ebb9@byu.net>
5873         Optimize m4_bmatch.
5874         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
5875         implementation for m4 1.4.x.
5876         * tests/m4sugar.at (m4@&t@_bmatch): New test.
5877         (recursion): Test the linear nature.
5878         * NEWS: Document the fix.
5880         Fix m4_cond corner case.
5881         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
5882         implementation allows concatenation with subsequent text.
5883         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
5885         Add test for m4_cond.
5886         * tests/m4sugar.at (m4@&t@_cond): New test.
5887         Reported by Ralf Wildenhues.
5889 2008-08-06  Eric Blake  <ebb9@byu.net>
5891         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
5892         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
5893         unique key for the AH_VERBATIM.
5894         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
5895         * NEWS: Mention the fix.
5896         Reported by Andreas Schwab, analyzed by Stepan Kasal.
5898         Add linear m4_cond for m4 1.4.x.
5899         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
5900         (_m4_cond): ...this, for fewer macros per iteration.
5901         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
5902         * tests/m4sugar.at (recursion): Test it.
5903         * NEWS: Document the linear guarantee.
5905         Speed up diversion handling.
5906         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
5907         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
5908         expansions.
5910         AC_C_CHAR_UNSIGNED is not strictly necessary.
5911         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
5912         portable alternative to this macro.
5913         * THANKS: Update.
5914         Reported by Hallvard B Furuseth.
5916         Update some files from upstream.
5917         * GNUmakefile: Update.
5918         * build-aux/announce-gen: Likewise.
5919         * build-aux/config.guess: Likewise.
5920         * build-aux/config.sub: Likewise.
5921         * build-aux/git-version-gen: Likewise.
5922         * build-aux/texinfo.tex: Likewise.
5923         * build-aux/vc-list-files: Likewise.
5924         * doc/make-stds.texi: Likewise.
5925         * doc/standards.texi: Likewise.
5927 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5929         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
5930         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
5931         whitespace in $ac_config_files and $ac_config_headers.
5932         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
5933         Report by Andreas Schwab and Per Øyvind Karlsen.
5934         * THANKS: Update.
5936 2008-07-30  Eric Blake  <ebb9@byu.net>
5938         Fix bugs in previous version of m4_bpatsubsts.
5939         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
5940         allow concatenation with subsequent text.
5941         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
5943 2008-07-29  Eric Blake  <ebb9@byu.net>
5945         Add linear m4_bpatsubsts for m4 1.4.x.
5946         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
5947         about anchors, even for only one substitution.
5948         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
5949         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
5950         Clarify behavior with regard to quoting.
5951         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
5952         (m4@&t@_bpatsubsts): New test.
5953         * NEWS: Document the linear guarantee.
5955         Tweak m4_do semantics.
5956         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
5957         subsequent text.
5958         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
5959         arguments, and avoid infinite loop.
5960         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
5961         behavior.
5962         * tests/m4sugar.at (m4@&t@_do): New test.
5964         Optimize m4_for.
5965         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
5966         (_m4_for): Take additional parameter, for fewer m4_indir calls.
5967         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
5968         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
5969         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
5970         semantic change caused by the optimization.
5971         * tests/m4sugar.at (M4 loops): Test the new semantics.
5973         One more m4_list_cmp tweak.
5974         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
5975         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
5976         * tests/m4sugar.at (recursion): Test both directions of list
5977         disparity.
5979         Add m4_reverse, and improve m4_list_cmp.
5980         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
5981         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
5982         m4_reverse'd list.
5983         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
5984         counterpart.
5985         * tests/m4sugar.at (recursion): Test it.
5986         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
5987         it.
5988         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
5989         * NEWS: Mention new macro.
5991 2008-07-28  Eric Blake  <ebb9@byu.net>
5993         Avoid _m4_shiftn for m4 1.6 speedup.
5994         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
5995         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
5996         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
5998         Implement O(n) unique element set creation.
5999         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
6000         (m4_set_contains, m4_set_contents, m4_set_delete)
6001         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
6002         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
6003         (m4_set_size, m4_set_union): New macros.
6004         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
6005         m4 1.4.x.
6006         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
6007         new m4_set API for the set most likely to be large.
6008         * doc/autoconf.texi (Set manipulation Macros): New node.
6009         * NEWS: Mention new macros.
6010         * tests/m4sugar.at (m4@&t@_set): New test.
6012 2008-07-25  Eric Blake  <ebb9@byu.net>
6014         Avoid infinite aclocal loop.
6015         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
6016         that aclocal doesn't insist on finding m4sugar/foreach.m4.
6018         Provide O(n) replacement macros for M4 1.4.x.
6019         * lib/m4sugar/foreach.m4: New file.
6020         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
6021         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
6022         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
6023         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
6024         linear on 1.4.x].
6025         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
6026         older M4 is assumed.
6027         (m4_map_sep): Optimize.
6028         (m4_max, m4_min): Refactor, by adding...
6029         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
6030         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
6031         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
6032         file.
6033         * tests/m4sugar.at (M4 loops): Add a stress test that takes
6034         forever if m4_foreach and friends are quadratic.
6035         * NEWS: Mention this.
6037 2008-07-21  Eric Blake  <ebb9@byu.net>
6039         Ignore undefined macros, necessary with m4 1.6.
6040         * bin/autoupdate.in (_au___undefine): New macro,...
6041         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
6042         Reported by Ralf Wildenhues.
6044         Resync with gnulib.
6045         * GNUmakefile: Grab from upstream, to fix issue where 'make
6046         install' would allow installation of stale version string.
6048 2008-07-19  Eric Blake  <ebb9@byu.net>
6050         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
6051         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
6052         through all variables, per POSIX and newer m4.
6053         (_m4_text_wrap): Exploit the looping capabilities.
6054         * tests/m4sugar.at (m4@&t@_defn): Test this.
6055         * NEWS: Document it.
6056         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
6057         <m4_undefine>: Likewise.
6059         Reduce overhead of m4_builtin([defn]).
6060         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
6061         internal macros, which are slightly more efficient than
6062         m4_builtin([defn]) and company.
6063         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
6064         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
6065         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
6066         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
6067         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
6068         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
6069         (m4_version_prereq): Use them.
6071         Use warnings from m4 when available.
6072         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
6073         define slower wrapper if m4 will warn on our behalf; key off of
6074         __m4_version__, added alongside the new warnings in m4 1.6.
6075         * tests/m4sugar.at (m4@&t@_defn): New test.
6077 2008-07-18  Eric Blake  <ebb9@byu.net>
6079         Add m4_joinall.
6080         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
6081         * tests/m4sugar.at (m4@&t@_join): Test them.
6082         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
6083         m4_joinall.
6084         * NEWS: Likewise.
6086 2008-07-17  Stepan Kasal  <skasal@redhat.com>
6087         and Eric Blake  <ebb9@byu.net>
6089         Improve documentation of config.h.in template rules.
6090         * doc/autoconf.texi (Header Templates): Mention rules on comments
6091         and whitespace, and that the user cannot rely on #undef to survive
6092         through config.status.
6094 2008-07-16  Eric Blake  <ebb9@byu.net>
6096         Revert m4_prepend; it is less efficient, and unused by bison.
6097         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
6098         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
6099         (_m4_grow_uniq_1): Rename back...
6100         (_m4_append_uniq): ...to this.
6101         * NEWS: Revert NEWS blurb.
6102         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
6103         * tests/m4sugar.at (m4@&t@_prepend): Delete.
6105 2008-07-15  Eric Blake  <ebb9@byu.net>
6107         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
6108         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
6109         definition for non-Autoconf clients of m4sugar.
6111 2008-07-14  Eric Blake  <ebb9@byu.net>
6113         Tighten bound of potential speed of m4_append.
6114         * doc/autoconf.texi (Text processing Macros) <m4_append>
6115         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
6116         O(n log n).
6117         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
6118         Analysis by Bruno Haible.
6120 2008-07-11  Eric Blake  <ebb9@byu.net>
6122         Inherit improvements from bison's fork of m4sugar.
6123         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
6124         find version.texi, since bison does not provide it.
6125         (m4_prepend): Add new macro, from bison.
6126         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
6127         completeness.
6128         (_m4_append_uniq): Rename...
6129         (_m4_grow_uniq_1): ...to this to share implementation, and
6130         optimize initial assignment.
6131         (m4_append_uniq_w): Adjust caller.
6132         * NEWS: Document new macros.
6133         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
6134         speed consideration.
6135         <m4_prepend>: Document the new prepend variants.
6136         * tests/m4sugar.at (m4@&t@_prepend): New test.
6138         Work around M4 1.6 warning on undefined macros.
6139         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
6140         not already available as builtins.
6142 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6144         * doc/autoconf.texi (@dvar): Remove trailing newline.
6145         (@ovar): Likewise.  Fix macro documentation.
6147 2008-07-02  Stepan Kasal  <skasal@redhat.com>
6149         Add quotes to the header of autoscan-generated source.
6150         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
6152 2008-06-28  Andreas Schwab  <schwab@suse.de>
6154         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
6155         (autoconf Invocation): Likewise.
6156         (autoreconf Invocation): Likewise.
6157         (autoheader Invocation): Likewise.
6158         (autom4te Invocation): Likewise.
6160 2008-06-19  Eric Blake  <ebb9@byu.net>
6162         Add comment explaining recent patch.
6163         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
6164         of * vs. ? globbing.
6166 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6168         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
6169         linking a file to itself.
6170         Report by Bruno Haible.
6172 2008-06-19  Eric Blake  <ebb9@byu.net>
6174         Resync with gnulib.
6175         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
6176         Reported by Stepan Kasal.
6178 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6180         Reorganize autotest files, factorize for parallel execution.
6181         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
6182         earlier in the file.
6183         (AT_INIT): Create line number cache in
6184         $at_suite_dir/at-source-lines.
6185         <at_helper_dir>: New directory at-groups below $at_suite_dir.
6186         Add comment explaining the new directory structure.
6187         (at_func_group_prepare, at_func_group_postprocess): New shell
6188         functions to factorize per-test group work.  Keep the actual
6189         test execution outside of a shell function in order to avoid
6190         zsh 4.x exit status bugs.
6191         <at_check_line_file, at_status_file, at_stdout, at_stder1>
6192         <at_stderr, at_test_source>: Turn these into per-group files
6193         below $at_helper_dir.  Also store test results there in files
6194         named pass, fail, xpass, xfail, skip.  Let the parent collect
6195         results from $at_helper_dir.  Adjust summary statistics
6196         computation and result output.
6198 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6200         Fix '#undef variable /* comment */' transform in config headers.
6201         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
6202         undefined preprocessor macros that are followed by a comment
6203         in the header template, do not create nested comments in the
6204         output.
6205         * tests/torture.at (@%:@define header templates): Extend test.
6206         * NEWS: Update.
6207         Report by Karsten Hopp <karsten@redhat.com>.
6209 2008-06-09  Eric Blake  <ebb9@byu.net>
6211         Mark AC_TYPE_SIGNAL as obsolete.
6212         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
6213         * doc/autoconf.texi (Function Portability): Update documentation.
6214         (Particular Types): Move AC_TYPE_SIGNAL...
6215         (Obsolete Macros): ...here, and mention why.
6216         * NEWS: Mention the change.
6218         Allow lib64 as a default X library location.
6219         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
6220         * NEWS: Mention the change.
6221         * THANKS: Update.
6222         Reported by Brad Walker.
6224 2008-06-05  Eric Blake  <ebb9@byu.net>
6226         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
6227         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
6228         converting it to lower case.
6229         * tests/autotest.at (Keywords and ranges): Test this.
6230         * NEWS: Document the fix.
6231         * THANKS: Update.
6232         Reported via Karsten Hopp, by Jochen Schmitt in
6233         https://bugzilla.redhat.com/show_bug.cgi?id=449973
6235 2008-06-03  Eric Blake  <ebb9@byu.net>
6237         Fix 'make dist' regression from 2008-05-08.
6238         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
6239         GNUmakefile's _autoconf rule removes INSTALL.
6241 2008-05-27  Eric Blake  <ebb9@byu.net>
6243         Document Solaris /bin/sh redirection pitfall.
6244         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
6246 2008-05-14  Eric Blake  <ebb9@byu.net>
6248         Improve documentation of ! issues.
6249         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
6250         Reported by Noah Misch.
6252         Document some FreeBSD shell bugs.
6253         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
6254         in compound pipe commands.
6255         <export>: Mention difference of exporting an undefined variable.
6256         (Shell Functions): Mention loss of $? in entry to shell functions.
6257         Extracted from the git mailing list.
6259 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
6261         Work around MSYS and Cygwin bugs when dealing with trailing space.
6262         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
6263         even when platform bugs are tickled.
6264         Reported by Keith Marshall and Eric Blake.
6266 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6268         Let AC_MSG_FAILURE report pwd.
6269         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
6270         Output $ac_pwd along with fatal failure.
6271         * tests/torture.at (Deep Package): Extend test.
6272         Reported numerous times against GCC, and probably other packages.
6274 2008-05-12  Eric Blake  <ebb9@byu.net>
6276         Enforce --help and --version compliance.
6277         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
6279 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
6281         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
6282         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
6283         ($(abs_srcdir)/INSTALL): ...with this.
6285 2008-05-06  Eric Blake  <ebb9@byu.net>
6287         Fix typo.
6288         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
6290         Avoid overfull \hbox.
6291         * doc/autoconf.texi (Versioning): Reword to fit line size.
6293         Document $(( )) pitfalls.
6294         * doc/autoconf.texi (Shell Substitutions): Mention octal
6295         vs. decimal.  Mention autotest's at_func_arith.
6297         Improve behavior of './testsuite 01'.
6298         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
6299         Alter usage to eval its arguments, in order to normalize away
6300         leading zero.  All callers updated.
6301         * tests/autotest.at (Keywords and ranges): Test range
6302         normalization with leading 0.
6304 2008-04-26  Eric Blake  <ebb9@byu.net>
6306         Mention Solaris /usr/ucb/tr pitfall.
6307         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
6308         Reported by Bruno Haible and Jim Meyering.
6310 2008-04-24  Eric Blake  <ebb9@byu.net>
6312         Mention m4sugar's internal quote strings.
6313         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
6314         in m4sugar, and how to still output it literally.
6315         * tests/m4sugar.at (m4@&t@_split): And test it.
6316         Reported by Joel E. Denny.
6318 2008-04-23  Eric Blake  <ebb9@byu.net>
6320         Allow unbalanced () in m4_expand.
6321         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
6322         quotes.
6323         (m4_noquote, _m4_split): Use consistent complex quote.
6324         * tests/autotest.at (Left paren, Right paren): Test this.
6325         (Parentheses): Ensure new quadrigraphs still work.
6326         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
6327         * NEWS: Mention the fix.
6328         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
6329         require quadrigraphs for ().
6330         (Evaluation Macros) <m4_expand>: Relax the restriction against
6331         unbalanced ().
6332         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6333         (Writing Testsuites) <AT_SETUP>: Likewise.
6334         Reported by Joel E. Denny, fix suggested by Noah Misch.
6336 2008-04-22  Eric Blake  <ebb9@byu.net>
6338         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
6339         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
6340         (handle_traces): Likewise.
6341         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
6342         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
6343         * doc/autoconf.texi (Quadrigraphs): Document them.
6344         (Evaluation Macros) <m4_expand>: Enhance documentation.
6345         (Text processing Macros) <m4_text_box>: Document cases where
6346         quadrigraphs can help for problemetic unbalanced parentheses.
6347         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
6348         (Writing Testsuites) <AT_SETUP>: Likewise.
6349         (Limitations of Builtins) <case>: Consolidate text on unbalanced
6350         parentheses, and add an example of creative comments.
6351         * NEWS: Document the addition.
6352         Reported by Joel E. Denny.
6354 2008-04-16  Eric Blake  <ebb9@byu.net>
6356         Document pdksh exec behavior.
6357         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
6358         subsection.
6359         Discovered by Jim Meyering.
6361 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6363         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
6364         arguments to the inner suite.
6365         (errexit, input from stdin): New tests.
6367 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6369         * NEWS: Post-release update.
6371 2008-04-10  Eric Blake  <ebb9@byu.net>
6373         AC_AUTOCONF_VERSION might contain arbitrary macro names.
6374         * doc/autoconf.texi (Versioning): Mention problem with expansion.
6375         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
6377 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
6379         Flush buffered output before exit.
6380         * bin/autom4te.in (handle_output): Explicitly close file.
6381         * THANKS: Update.
6382         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
6384 2008-04-08  Eric Blake  <ebb9@byu.net>
6386         Generate web docs for 2.62.
6387         * doc/autoconf.texi (Evaluation Macros): Fix typo.
6388         (Notices): Use recommended means to escape RCS keyword.
6389         * cfg.mk (gnulib_dir): New macro.
6390         (web-manual): New target.
6392 2008-04-05  Eric Blake  <ebb9@byu.net>
6394         Release Version 2.62.
6395         * NEWS: Mention the release.
6397 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
6398         and Eric Blake  <ebb9@byu.net>
6400         Return back to GPLv2+, until the text of the exceptions is
6401         finalized, reverting the change from 2007-07-03 and the first
6402         part of the change from 2007-07-20.
6403         * COPYING: Revert to GPLv2.
6404         * COPYINGv3: New file, since some auxiliary build tools, used for
6405         building autoconf and not installed, are GPLv3.
6406         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
6407         * NEWS: Remove mention of GPLv3.
6408         * README: Clarify situation regarding GPLv3.
6410 2008-04-05  Eric Blake  <ebb9@byu.net>
6412         Prepare for release.
6413         * maint.mk (announcement): Avoid deleted option.
6414         * cfg.mk (release_archive_dir): Use default.
6415         * build-aux/gnupload: New file, from automake/gnulib.
6416         * Makefile.am (EXTRA_DIST): Distribute it.
6417         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
6418         from syntax check.
6420 2008-04-05  Jim Meyering  <meyering@redhat.com>
6421         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6423         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
6424         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
6425         is the EOL marker, skip a step that would remove and translate
6426         carriage return bytes.
6427         * THANKS: Update.
6428         Reported by Elbert Pol.
6430 2008-04-05  Eric Blake  <ebb9@byu.net>
6432         Avoid some autoreconf -Wall warnings.
6433         * configure.ac: Use proper quoting, to be a good example.
6434         (PACKAGE_NAME): Remove setting covered by autoconf.
6435         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
6436         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
6437         automake.
6438         (html, autoconf_1.html, standards_1.html): Likewise.
6439         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
6440         * Makefile.am (html): Likewise.
6441         * doc/autoconf.texi (Quoting and Parameters): Add missing section
6442         name.
6443         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
6444         warning about our override, until Automake is fixed.
6445         * README-hacking: Document minimum requirements for bootstrap.
6447 2008-04-03  Eric Blake  <ebb9@byu.net>
6449         Fix version number generation in man pages.
6450         * Makefile.am (EXTRA_DIST): Distribute .version.
6451         (.version): New rule.
6452         * man/Makefile.am (common_dep): Depend on .version, not
6453         configure.ac.
6454         (.x.1): Use package name for version string.
6455         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
6456         * build-aux/git-version-gen: Sync from upstream.
6458         More maintainer tweaks: pass 'make maintainer-distcheck'.
6459         * GNUmakefile (_is-dist-target): Sync from upstream.
6460         * build-aux/vc-list-files: Sync from upstream, yet again.
6461         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
6462         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
6463         package.m4.
6464         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
6466         Fix VPATH 'make syntax-check'.
6467         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
6468         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
6469         (author_mark_check): Avoid error message.
6470         * build-aux/vc-list-files: Sync from upstream again.
6471         * build-aux/texinfo.tex: Likewise.
6473         Sync files from upstream, and pass 'make syntax-check'.
6474         * config/announce-gen: Move...
6475         * build-aux/announce-gen: ...here, and sync from gnulib.
6476         * Makefile.am (EXTRA_DIST): Adjust accordingly.
6477         * cfg.mk (announce_gen): Likewise.
6478         (prev_version_file): Delete, relying on default in maint.mk.
6479         (gpg_key_ID): New macro.
6480         (url_dir_list): Rewrite to match coreutils.
6481         * config/prev-version.txt: Move...
6482         * .prev-version: ...here, and adjust to 2.61.
6483         * build-aux/vc-list-files: Sync from coreutils.
6484         * maint.mk: Resynchronize with coreutils, where possible.
6485         (ME): Remove $(srcdir) from definition.
6486         (CVS): Delete.
6487         (GIT, VC, VC-tag): New macros.
6488         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
6489         (VC_LIST, VC_LIST_EXCEPT): ...to this.
6490         (cvs-tag-check): Delete.
6491         (cvs-diff-check): Rename...
6492         (vc-diff-check): ...to this.
6493         (sc_file_system): Allow FHS acronym.
6494         * doc/autoconf.texi (Particular Functions): Recommend
6495         unconditional <config.h>.
6496         * build-aux/config.guess: Sync from upstream (manually).
6497         * build-aux/config.sub: Likewise.
6498         * build-aux/texinfo.tex: Likewise.
6499         * doc/make-stds.texi: Likewise.
6500         * doc/standards.texi: Likewise.
6501         * .gitattributes: Ignore whitespace problems in upstream files.
6503 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6505         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
6506         bug on HP-UX/IA.
6507         Report by Peter O'Gorman.
6509 2008-04-02  Eric Blake  <ebb9@byu.net>
6511         Recommend the just-released M4 1.4.11.
6512         * NEWS: Update recommendation.
6513         * README: Likewise.
6514         * doc/autoconf.texi (Introduction): Likewise.
6515         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
6517 2008-04-01  Eric Blake  <ebb9@byu.net>
6519         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
6520         copyright year.
6522 2008-03-28  Peter O'Gorman  <peter@pogma.com>
6524         Find X11 on Mac OS X too.
6525         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
6526         Check for libX11 with extensions dylib la and dll too.
6527         * THANKS: Update.
6528         Reported by Martin Costabel.
6530 2008-03-28  Eric Blake  <ebb9@byu.net>
6532         Update TODO based on completed tasks.
6533         * TODO (AC_PROG_INSTALL takes multiple files): Done.
6534         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
6535         (AC_COMPILE_IFELSE documentation): Done.
6536         (Tracing builtins): Done, now that we require M4 1.4.5.
6537         (AC_PROG_CC_POSIX suggestion, providing header files)
6538         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
6539         (cache consistency): Done with precious variables.
6541 2008-03-26  Eric Blake  <ebb9@byu.net>
6543         Document --trace=macro:format in --help output.
6544         * bin/autom4te.in (help): Mention optional trace format.
6545         * bin/autoconf.as (usage): Likewise.
6547         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
6548         typos in last patch.
6549         Reported by Ralf Wildenhues.
6551 2008-03-26  Jim Meyering  <meyering@redhat.com>
6553         Fix texinfo syntax error.
6554         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
6556 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6558         Warn, not fail on whitespace-only precious variable differences.
6559         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
6560         precious variable differences less ambiguous with `ugly-quotes'.
6561         If their settings differ only in whitespace, do not fail, but
6562         reuse the old value.
6563         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
6564         an optional status and expected-warning argument.  Fix m4
6565         quotation for initial value.
6566         (AC_ARG_VAR): Also test for whitespace-only differences, and
6567         that the old value is retained in this case.
6568         * doc/autoconf.texi (Setting Output Variables): Document this.
6569         * NEWS: Update.
6570         Report and initial patch by Paolo Bonzini.
6572 2008-03-26  Eric Blake  <ebb9@byu.net>
6574         Document busybox sed bug.
6575         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
6576         restrictions when using back-references.
6577         Reported by Vincent Lefevre:
6578         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
6580         Document Automake interaction with AC_CONFIG_MACRO_DIR.
6581         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
6582         users.
6583         * THANKS: Update.
6584         Reported by Chris Pickett.
6586 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6588         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
6590         * tests/local.at (AT_CHECK_M4): Factorize warning output
6591         normalization.
6592         Suggested by Eric Blake.
6594 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6596         Fix .exe-related test failure on MinGW.
6597         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
6598         for comparing warning output.
6600         Fix Fortran testsuite failures with gfortran 4.3.
6601         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
6602         verbose compiler output, skip lines that set variables; gfortran
6603         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
6604         * THANKS: Update.
6605         Report by Vincent Lefèvre.
6607 2008-03-21  Eric Blake  <ebb9@byu.net>
6609         * GNUmakefile: Resynchronize with gnulib.
6611         Document more uses of $cross_compiling.
6612         * doc/autoconf.texi (Runtime): Document that a temporary override
6613         is permissible.
6614         * THANKS: Update.
6615         Reported by Ineiev, example by Ralf Wildenhues.
6617         Don't swallow $1 in textual local variables.
6618         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
6619         expansion of text arguments, as that swallows $1.
6620         (m4_text_wrap): Likewise, by splitting out...
6621         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
6622         expression for width.
6623         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
6624         (m4@&t@_combine): Likewise.
6626 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6628         Avoid leftover files on Leopard.
6629         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
6630         directory created on darwin.
6631         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
6632         left over from a broken link.
6633         * tests/c.at (AC_NO_EXECUTABLES (working linker))
6634         (AC_NO_EXECUTABLES (broken linker)): New tests.
6635         Report by Gary V. Vaughan.
6637         * lib/autom4te.in (Automake-preselections): Trace
6638         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
6640 2008-03-20  Eric Blake  <ebb9@byu.net>
6642         Kill more CVS references.
6643         * README-cvs: Delete.  See README-hacking instead.
6644         * README-hacking: Update wording, based on older file.
6645         * BUGS: Remove CVS mention.
6647 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6649         * tests/tools.at (autotools and whitespace in file names): Skip
6650         if aclocal is not present.
6652 2008-03-20  Eric Blake  <ebb9@byu.net>
6654         Sync GNUmakefile with gnulib.
6655         * GNUmakefile (Makefile.cfg): Rename...
6656         (cfg.mk): ...to this, and make optional.
6657         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
6658         (Makefile.maint): Rename...
6659         (maint.mk): ...to this.
6660         (all) [!_have-Makefile]: Rename...
6661         (abort-due-to-no-makefile): ...to this, and invoke via
6662         .DEFAULT_GOAL to pick up all targets.
6663         * Makefile.cfg: Rename...
6664         * cfg.mk: ...to this.
6665         * Makefile.maint: Rename...
6666         * maint.mk ...to this.
6667         (ME): Reflect name change.
6668         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
6669         rather than hard-coded name.
6670         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
6671         * Makefile.am (EXTRA_DIST): Reflect file name changes.
6672         * .x-sc_prohibit_atoi_atof: Likewise.
6673         * lib/freeze.mk: Likewise.
6675 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
6677         * doc/autoconf.texi (Introduction): Improve the paraphrase of
6678         Henry Spencer's quotation.
6680 2008-03-19  Eric Blake  <ebb9@byu.net>
6682         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
6683         * bin/autoscan.in (output): Avoid obsolete spelling.
6684         * tests/local.at (AC_STATE_SAVE): Update usage.
6685         * THANKS: Update.
6686         Reported by John Calcote.
6688         Emphasize that ease of configure triumphs over ease of autoconf.
6689         * doc/autoconf.texi (Introduction): Expand on primary
6690         vs. secondary goal of autoconf.
6691         * THANKS: Update.
6692         Inspired by Paul Smith.
6694 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6696         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
6697         $hint, show if the executing program does not exist.
6698         (xsystem_hint): New function, like xsystem but allows to pass
6699         a hint.
6700         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
6701         libtoolize.
6702         Report by Bruce Korb.
6704 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
6706         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
6707         tests/mktests.sh, tests/wrapper.as: Fix typos.
6709 2008-03-12  Eric Blake  <ebb9@byu.net>
6711         Fix yesterday's regression in m4_wrap([$1]).
6712         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
6713         text, since it may contain text that looks like parameters.
6714         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
6716 2008-03-11  Eric Blake  <ebb9@byu.net>
6718         Improve error messages for common testsuite bugs.
6719         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
6720         macros for defining order-enforced macros.
6721         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
6722         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
6723         messages when order violations are detected.
6724         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
6725         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
6726         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
6727         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
6728         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
6729         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
6730         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
6731         (Banner-only test suite): New tests.
6732         Reported by Christopher Hulbert.
6734         Tweak m4_wrap to force FIFO or LIFO semantics.
6735         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
6736         (m4_wrap_lifo, _m4_wrap): New macros.
6737         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
6738         order, prior to m4sugar's.
6739         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
6740         m4_wrap.
6741         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
6742         known order, prior to m4sh's.
6743         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
6744         argument.
6745         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
6746         new behavior.
6747         * tests/m4sh.at (AS_INIT cleanup): New test.
6748         * NEWS: Document the change.
6750 2008-03-10  Eric Blake  <ebb9@byu.net>
6752         Encode nested autotest data.
6753         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
6754         (unusual file names): Likewise.
6755         (m4_pattern_allow): Remove loophole, to make it easier to catch
6756         poorly written tests.
6758         Factor some autotest tests.
6759         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
6760         common initialization.
6761         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
6762         (whitespace in absolute testdir, unusual file names): Use it.
6764 2008-03-06  Eric Blake  <ebb9@byu.net>
6766         Minor documentation fix.
6767         * doc/autoconf.texi (Evaluation Macros): Fix typo.
6769 2008-03-04  Eric Blake  <ebb9@byu.net>
6771         Make AT_CHECK act like a simple command.
6772         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
6773         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
6775 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6777         On MinGW, substitution of CR and 0xFF fails.
6778         * tests/torture.at (Substitute and define special characters):
6779         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
6780         wrong thing for CR.
6782 2008-03-04  Eric Blake  <ebb9@byu.net>
6784         Pull in recent maintainer improvements from coreutils.
6785         * GNUmakefile (_is-dist-target): 'make distclean' should not
6786         trigger autoreconf.
6787         (_dummy): Change directories before removing autom4te.cache.
6788         (check dist distcheck install) [!_have-Makefile]: Provide nicer
6789         diagnostics.
6790         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
6791         builds, after initial bootstrap.
6792         * Makefile.am (distclean-local): Work around current automake bug.
6793         * Makefile.maint (ME): Allow VPATH usage.
6795         Use git-merge-changelog when available.
6796         * .gitattributes: New file.
6797         * README-hacking: Document use of git-merge-changelog.
6799         Work around cygwin bug.
6800         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
6801         "touch 't\'" creates regular file 't'.
6803         Ignore tests that require read-only directories under root.
6804         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
6805         no-write portion if user has root-like privileges.
6807 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6809         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
6811 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6813         autoreconf -m now honors $MAKE.
6814         * bin/autoreconf.in ($run_make): Renamed from ...
6815         ($make): ... this.  Use now as command to run `make',
6816         overridden by $MAKE.  Document this in --help output.
6817         * doc/autoconf.texi (autoreconf Invocation): Document
6818         all environment variables honored by autoreconf.
6819         * NEWS: Update.
6820         Report by Paul Eggert.
6822 2008-03-03  Eric Blake  <ebb9@byu.net>
6824         Documentation improvements.
6825         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
6826         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
6827         that preceeds @dots.  Improve wording.
6828         (Text processing Macros): Drop `1' suffix from metasyntax variable
6829         name that preceeds @dots.
6830         (Number processing Macros): Drop `1' suffix from metasyntax
6831         variable name that preceeds @dots.  Improve wording.
6832         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
6833         Suggested by Ralf Wildenhues.
6835 2008-03-02  Jim Meyering  <meyering@redhat.com>
6837         Don't infloop upon "make dist".
6838         * GNUmakefile: Merge from coreutils.
6839         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
6840         not .version.
6841         * configure.ac (AC_INIT): Use .tarball-version, not .version.
6842         * build-aux/git-version-gen: Update from gnulib.
6844 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6846         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6847         Before using /dev/full, check that it is a writable character
6848         special device.
6849         Report by Benoit Sigoure and Eric Blake.
6851         Actually test that @configure_input@ is expanded correctly.
6852         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6853         Actually check generated file contents for the name of the
6854         generated file, using AC_PROG_FGREP and $FGREP.
6856 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6858         Be nice with file systems that don't handle unusual characters.
6859         * tests/atlocal.in (func_sanitize_file_name)
6860         (func_sanitize_dir_name): New shell functions.
6861         * tests/tools.at (autom4te and whitespace in file names)
6862         (autotools and whitespace in file names): Use them.
6863         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6864         Cover more potentially problemtic file names.  Use the new
6865         functions.
6867         Properly handle funny file names for headers in config.status.
6868         The test suite did not cover this bug because the code was not
6869         quoting properly the arguments of `rm -f' (which "fails" silently)
6870         as well as the arguments of `diff' (whose output was redirected to
6871         /dev/null so we couldn't see its error message).
6872         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
6873         file names passed to `rm' and `diff'.
6874         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6875         Add a regression test.
6877 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6878         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6880         Properly expand @configure_input@ in config.status.
6881         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
6882         Escape the backslashes and ampersands in $configure_input before
6883         using it in the sed replacement string to expand @configure_input@.
6884         Report by Eric Blake and Patrick Welche.
6886 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6888         Ignore errors from ./run on w32.
6889         * tests/autotest.at (whitespace in absolute testdir):
6890         Ignore stderr for `./run' which fails to remove the
6891         busy test directory on w32.
6893 2008-02-22  Eric Blake  <ebb9@byu.net>
6895         Improve documentation for writing autotest suites.
6896         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
6897         checks must live inside a test group.
6898         Reported by Christopher Hulbert.
6900 2008-02-21  Eric Blake  <ebb9@byu.net>
6902         Sync git-version-gen from upstream.
6903         * build-aux/git-version-gen: Pull from gnulib.
6904         * configure.ac (AC_INIT): Adjust to new calling convention.
6906 2008-02-12  Eric Blake  <ebb9@byu.net>
6908         Avoid trailing space in config.h with AC_DEFINE([var], []).
6909         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
6910         defines with a comment.
6912 2008-02-08  Eric Blake  <ebb9@byu.net>
6914         Fix texinfo typos in previous patch.
6915         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
6916         Reported by Ralf Wildenhues.
6918         Describe a config.site that can be used for FHS compliance.
6919         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
6920         for FHS.
6921         * THANKS: Update.
6922         Reported by Jules Colding and Ralf Wildenhues.
6924 2008-02-02  Eric Blake  <ebb9@byu.net>
6926         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
6928 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6930         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
6931         again, broken since introduction of `-C dir'.
6932         * tests/autotest.at (Choosing where testsuite is run): Test it.
6934 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6936         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
6938 2008-01-29  Eric Blake  <ebb9@byu.net>
6940         Fix more autotest regressions.
6941         * lib/autotest/general.m4 (AT_LINE): Fix regression from
6942         2007-10-04 when file name is `dnl'.
6943         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
6944         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
6945         yesterday in libtool's testsuite.
6946         (_AT_ARG_OPTION): Detect write failure.
6947         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
6948         make libtool's use kosher.  Document m4_init.
6949         (Programming in M4sh): Document AS_INIT.
6950         (Writing Testsuites): Document limitation of AT_DATA file name.
6951         * tests/autotest.at (unusual file names): New test.
6952         (Banners, Keywords and ranges): Use correct shell.
6954         More corner cases in testsuite VAR=VALUE handling.
6955         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
6956         bug.
6957         <PARSE_ARGS_END>: Also detect leading digits in assignments.
6958         * tests/autotest.at (Using atlocal): Enhance test to catch last
6959         bug.
6961         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
6962         bug.
6964 2008-01-28  Eric Blake  <ebb9@byu.net>
6966         Fix regression in handling VAR=VALUE arguments to testsuite.
6967         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
6968         leading = as invalid.  Defer use of command-line variable
6969         assignments...
6970         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
6971         regression in sourcing files.
6972         * tests/autotest.at (Using atlocal): New test to catch this.
6973         (Debugging a successful test, Choosing where testsuite is run):
6974         Use correct shell.
6975         Reported by Ralf Wildenhues.
6977         Document grep peculiarity.
6978         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
6979         BSD behavior on binary input.
6981         Minor testsuite improvements.
6982         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
6983         forks when sanitizing PATH.  Always output machine information,
6984         not just when atconfig was located.
6986         Add 'testsuite -C dir'.
6987         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
6988         detection...
6989         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
6990         argument.
6991         <DEFAULTS>: Delay computation of variables based on $at_dir...
6992         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
6993         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
6994         <PARSE_ARGS>: Parse new option.
6995         <HELP_TUNING>: Document it.
6996         * tests/autotest.at (Choosing where testsuite is run): New test
6997         for this feature.
6998         (Keywords and ranges): Add test for missing -k argument.
6999         * NEWS: Document this.
7000         * doc/autoconf.texi (testsuite Invocation): Likewise.
7002 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7004         * build-aux/config.guess, build-aux/config.sub,
7005         build-aux/texinfo.tex: Sync from gnulib.
7006         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
7007         Likewise.
7009 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7011         * doc/autoconf.texi (Particular Programs): Do not mention the
7012         Autoconf version in which the AC_PROG_INSTALL change was done.
7013         Suggested by Paul Eggert.
7015 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7017         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
7018         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
7019         mode, we change to the source directory, also set $ac_pwd so we
7020         do not go back to the build tree for the next config subdir.
7021         * tests/torture.at (Deep Package): Extend test to contain two
7022         config subdirs on the top level.
7024         Fix parallel `maintainer-check'.
7025         * Makefile.am (maintainer-check-tests): Depend on `all'.
7026         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
7027         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
7028         Likewise.
7029         (maintainer-check): Serialize the testsuite runs.
7031         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
7032         in feature string for --enable/--with.  Convert to underscore
7033         for variable name.
7035         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
7036         `install -c file1 file2 dir' works.
7037         * doc/autoconf.texi (Particular Programs): Document this.
7038         * NEWS: Update.
7040 2008-01-21  Eric Blake  <ebb9@byu.net>
7042         Improve documentation about default include directives.
7043         * doc/autoconf.texi (Generic Headers, Generic Declarations)
7044         (Generic Structures, Generic Types)
7045         (Generic Compiler Characteristics): Add links to
7046         AC_INCLUDES_DEFAULT.
7047         Reported by Reuben Thomas.
7049 2008-01-15  Eric Blake  <ebb9@byu.net>
7051         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
7053 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7055         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
7056         check_SCRIPTS.  Building the wrappers for `all' allows help2man
7057         to use them for the manpages.
7058         Report by Benoit Sigoure.
7060         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
7062 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7064         Fix some write failure cases in Autotest.
7065         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
7066         upon write failures for --help, --version, --list.
7067         Guard against write failures for intermediate created scripts.
7068         <at_func_create_debugging_script>: Do not make the debugging
7069         script executable if it is not complete.
7071 2007-12-12  Eric Blake  <ebb9@byu.net>
7073         Fix thinko in earlier patch - m4_join isn't defined yet.
7074         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
7075         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
7076         (m4_require): Use m4_do, not m4_join.
7078         Fix some whitespace tests on cygwin.
7079         * tests/tools.at (autom4te and whitespace in file names): Restore
7080         font-lock.  Create $TMPDIR before it might be used.
7082         Fix spurious testsuite failure with M4 1.4.11.
7083         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
7085         Optimize AC_REQUIRE.
7086         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
7087         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
7088         (m4_require): Avoid extra macro calls.
7090 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7092         * tests/torture.at (srcdir): Fix quoting.
7094         Do not pass top_srcdir to configure scripts in testsuite.
7095         * tests/autotest.at (srcdir propagation): Copy install-sh to
7096         source tree.
7097         (my only test): Drop setting of `top_srcdir'.
7098         * tests/base.at (Input/Output): Likewise.
7099         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
7100         config.guess, and config.sub to test source tree.
7101         Drop AC_CONFIG_AUX_DIR setting.
7102         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
7103         * tests/torture.at (Substitute a 2000-byte string): Drop
7104         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
7105         (Substitute a newline, datarootdir workaround): Likewise.
7106         (Define a newline): Adjust for linenumber changes in configure.ac.
7107         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
7109         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
7110         if `pwd` contains whitespace.
7112         Quote $abs_top_srcdir in tests.
7113         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
7114         * tests/tools.at (Syntax of the shell scripts): Likewise.
7116         * tests/m4sh.at (LINENO): Quote $0.
7118         Fix testsuite program wrapper for whitespace in `pwd`.
7119         The problem here is that the usual mantra is that command
7120         variables can contain arguments, thus we cannot just escape
7121         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
7122         $top_builddir/tests directory early in $PATH, so that the
7123         wrappers are found by their plain name.
7124         * tests/wrapper.as: Put $testdir early in $PATH.
7125         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
7127         Proper config.status --file/--header and $srcdir escaping.
7128         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
7129         characters in $ac_file_inputs.
7130         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
7131         accordingly.
7132         * tests/torture.at (datarootdir workaround): Adjust.
7133         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
7135         Fix Autotest for whitespace in `pwd`.
7136         * lib/autotest/general.m4 (AT_INIT)
7137         <at_func_create_debugging_script, Driver Loop>:
7138         Quote $at_group_dir.
7139         * tests/autotest.at (whitespace in absolute testdir): New test.
7141         * lib/autom4te.in: Quote @datadir@.
7143         Proper file name escaping in Autoconf programs and Perl modules.
7144         This includes escaping of characters special to the shell
7145         as well as special to Perl, e.g., leading `<' or `>'.
7146         For example, when $file starts with `>', `open ">$file"'
7147         wrongly tries to append to a different file.
7148         * bin/autoconf.as: Fix quoting for autom4te options.
7149         * lib/Autom4te/General.pm (shell_quote): New function, taken
7150         from coreutils, written by Jim Meyering.
7151         (mktmpdir): Use it.
7152         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
7153         and open_quote.
7154         * bin/autoreconf.in (parse_args): Likewise.
7155         * bin/autoscan.in (main): Likewise.
7156         * bin/autoupdate.in (main): Likewise.
7157         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
7158         * bin/ifnames.in: Likewise, XFile usage fixes.
7159         * tests/tools.at (autom4te and whitespace in file names): Extend
7160         test.  Test twice, with special characters allowed on w32, and the
7161         rest.  Test leading and trailing whitespace, for `open_quote'.
7162         (autotools and whitespace in file names): New, analogous test.
7163         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
7164         by Russ Allbery and Eric Blake.
7166         Sync from Automake.
7167         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
7168         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
7169         * lib/Autom4te/FileUtils.pm (open_quote): New function.
7170         (update_file, contents): Use it.
7172         * Makefile.am (autom4te-update): Rewrite for git.
7174 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7176         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
7178         Fix copyright years.
7179         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
7180         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
7182 2007-12-04  Eric Blake  <ebb9@byu.net>
7184         Manually resync with gnulib, since 'make cvs-update' no longer works.
7185         * build-aux/config.guess: New upstream version.
7186         * build-aux/config.sub: Likewise.
7188         When using older automake, don't downgrade build-aux/texinfo.tex.
7189         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
7190         * doc/Makefile.am (TEXINFO_TEX): Add.
7192 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
7194         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
7195         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
7196         #undef as this runs afoul of our new way of creating config.h.
7197         Problem reported by Jim Meyering in
7198         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
7200 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7202         Fix autom4te for unusual characters in input file names.
7203         * bin/autom4te.in (files_to_options): Quote active characters
7204         for the shell.
7205         * tests/tools.at (autom4te and white space in file names):
7206         New test.
7208         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
7209         Document that Tru64 awk always splits $0.
7211 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
7213         * lib/autotest/general.m4 (AT_INIT): Do not extract the
7214         `#AT_STOP_...' line at the end of each test.
7216 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7218         * lib/autotest/general.m4 (AT_INIT): For awk line number
7219         extraction script, ensure `$at_group' has a defined value
7220         even for the empty set, and properly quote its usage inside
7221         the awk script.
7223 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7225         * doc/autoconf.texi (Shell Functions): New chapter.  Document
7226         IRIX sh $0 issue in functions, move content from ...
7227         (Portable Shell): ... here.
7228         (Shell Script Compiler): Note that shell functions are not
7229         totally unportable any more.
7231 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
7232         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7234         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
7235         extracting the line numbers of the last needed test.
7237 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7239         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
7240         Fix quoting.
7242 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7244         Fix IRIX testsuite debugging failures: $0 in functions.
7245         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
7246         Do not use $0 inside a function, as IRIX sh will set that to the
7247         function name rather than the script invocation name.
7249 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
7250         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7252         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
7253         to extract test scripts.
7254         (AT_INIT): Extract and cache test script line numbers.
7256 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7258         * lib/autotest/general.m4: Revert 2007-11-15 patch and
7259         subsequent fixups; the awk -> here-document conversion trashes
7260         performance too much with AIX sh.
7262 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7264         * tests/local.at: Do not test m4, perl with AT_TESTED.
7266         Diagnose and guard against write errors dealing with config.status.
7267         The general idea is this: all write failures from `configure'
7268         writing `config.status' are indicated by $ac_write_error, which
7269         is only checked at the end.  This is safe because config.status
7270         code is not executed before the file is complete.  Other write
7271         failures, be they inside config.status, or in sub shell/awk
7272         scripts spawned from configure or config.status, typically need
7273         earlier checking, as their results are used right afterwards.
7274         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
7275         before writing config.status, check afterwards.
7276         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
7277         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
7278         Set `ac_write_error' for write failures to config.status.  Barf
7279         upon write failures to temporary files.
7280         Adjust note about closing and reopening the here-document.
7281         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
7282         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
7283         reopening the here-document.
7284         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7285         Ensure `ac_write_error' does not escape into config.status.
7286         Also, add a couple of code paths not yet exercised in the test
7287         suite: a config file with input from stdin, and a config header
7288         output to stdout.
7289         Suggestion for catching write errors by Bruno Haible.
7291 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7293         Avoid error with Tru64 awk and testsuite lines with many words.
7294         * lib/autotest/general.m4 (AT_INIT): In the awk script that
7295         reads the testsuite, set the field separator to an unusual value,
7296         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
7297         even splits the input if $i, i>0, was never accessed in the script.
7299         Revert 2007-10-17 change.
7300         * TODO: Multiline args in config files and headers mean something
7301         different and are not fixed, see
7302         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
7303         Report by Stepan Kasal.
7305         * doc/autoconf.texi (Generic Programs): Fix typo.
7307 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
7309         AC_*_TOOL does not canonicalize the prefix
7310         * doc/autoconf.texi (Generic Programs): Do not say that
7311         the *_TOOL macros canonicalize, they simply use the `host_alias'.
7313 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7315         Diagnose write errors in config.status instantiations.
7316         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
7317         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
7318         on write errors.
7319         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
7320         Extend test to also check for some write error failures, using...
7321         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
7322         Report by Bruno Haible.
7324         Indentation fixups.
7325         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
7326         indentation.
7327         (_AT_CHECK): Use less indentation, to save space.
7329 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7331         Add witness macro for @top_build_prefix@ substitution.
7332         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
7333         (_AC_OUTPUT_FILE): Mention it here.
7335 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
7336         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7338         * lib/autotest/general.m4 (at_func_test): Remove.
7339         (AT_INIT): Pre-extract test groups into separate files.
7340         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
7341         Remove at-test-source files together with the $at_group_dir.
7342         * tests/autotest.at (Long test source lines): New test.
7344 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7346         Shell functions and variables may share a namespace.
7347         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
7348         limitation.
7350 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7352         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
7353         gnulib.
7355 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7357         * lib/autoconf/status.m4: Fix a couple of comment typos.
7359         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
7361 2007-11-13  Jim Meyering  <meyering@redhat.com>
7363         Clean up the rule to create "expr".
7364         * tests/Makefile.am (expr): Don't redirect directly to target.
7365         Redirect just once, not for each echo statement.
7366         Use $@, not literal "expr".
7368 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
7370         Don't worry about preprocessor when testing long long.
7371         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
7372         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
7373         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
7374         These no longer check for preprocessor flaws.
7375         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
7376         Do not check for preprocessor flaws.
7378 2007-11-13  Jim Meyering  <meyering@redhat.com>
7380         Adapt dependencies, now that a version change doesn't modify configure.ac
7381         * GNUmakefile: Remove "make clean" kludge.
7382         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
7383         configure.ac.
7384         Don't redirect directly to target.
7385         Use $@, not literal "version.m4".
7387 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7389         * doc/autoconf.texi (Making testsuite Scripts): Document
7390         ":;{" shorthand as in previous patch.
7392 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7394         * doc/autoconf.texi (Limitations of Builtins): Document problem
7395         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
7396         for the workaround.
7397         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
7398         Use ":;{" shorthand.
7399         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
7401 2007-11-12  Jim Meyering  <meyering@redhat.com>
7403         Add more non-srcdir build support.
7404         * GNUmakefile (dummy): Split a long line.
7405         Add -v option to autoreconf invocation.
7407         Remove the autoreconf-provided INSTALL, so that we regenerate it.
7408         * GNUmakefile (dummy): Remove INSTALL.
7410         Remove racy commands to build scripts in bin/ and tests/.
7411         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
7412         are guaranteed to be built, remove the rules that tried to build
7413         them.  Before, with a parallel build, these rules could lead to
7414         two processes writing tests/wrapper.in concurrently.
7416         Build in man/ only *after* building in bin/ and tests/.
7417         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
7418         in both bin/ and tests/.
7420         Accommodate non-srcdir build-from-checkout.
7421         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
7422         Use git's --git-dir=$srcdir/.git option.
7423         Add quotes, in case tarball_version_file contains shell meta-characters.
7424         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
7425         * configure.ac: Pass "." to git-version-gen.
7427         Avoid spurious test failures due to version skew.
7428         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
7430 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7432         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
7433         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
7434         Remove conftest.dSYM directory.
7435         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
7436         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
7437         Remove `conftest.*' recursively.
7438         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
7439         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
7440         Likewise.
7441         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
7442         * THANKS: Update.
7443         Report and analysis by Jeff Squyres and Peter O'Gorman.
7445 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
7447         Fix typos in variable names.
7448         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
7450 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
7452         Document that $((expression)) is not portable.
7453         * doc/autoconf.texi (Shell Substitutions): Here.
7455 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7457         Ignore configure --help* errors due to LINENO-impaired shells.
7458         * tests/torture.at (Configuring subdirectories, Deep Package):
7459         In the --help* tests in read-only trees, make `.' temporarily
7460         writable again for the `stderr' file, and ignore errors due to
7461         the attempt to write configure.lineno.
7462         Report by Patrick Welche.
7464 2007-11-10  Jim Meyering  <meyering@redhat.com>
7466         Generate package.m4 in build-dir, not srcdir.
7467         * tests/Makefile.am (package.m4): Adjust target.
7468         Don't redirect directly to $@.
7469         (CLEANFILES): Add package.m4.
7470         ($(TESTSUITE)): Depend on just-built package.m4, not the one
7471         in $(srcdir).
7472         When running $(AUTOTEST), search "." before searching $(srcdir).
7474         Avoid a race condition that would make parallel "distclean" fail.
7475         * tests/Makefile.am (distclean-generic): Replace the default,
7476         automake-provided rule with an identical one, but with an additional
7477         dependency on distclean-local.  Simply adding the dependency would
7478         cause automake not to emit the rule at all.
7479         * BUGS: Building with -jN works, now.
7481         Distribute git-version-gen.
7482         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
7483         since GNUmakefile is distributed, and requires it for dist* rules.
7485         Remove two more generated files from version control.
7486         * INSTALL: Remove generated file.
7487         * lib/autoscan/autoscan.list: Remove generated file.
7489 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7491         * GNUmakefile (PATH): Remove stray apostrophes; they become
7492         part of PATH, which isn't wanted here.
7494 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7496         New config files output variable `top_build_prefix'.
7497         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
7498         `top_build_prefix'.
7499         * doc/autoconf.texi (Preset Output Variables): Document it.
7500         * NEWS: Update.
7501         Report by Bob Friesenhahn.
7503         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
7504         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
7505         function, to parametrize arithmetic with expr vs. the shell.
7506         Use it where possible.
7507         Suggestion by Benoit Sigoure.
7509 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
7511         Adjust the documentation of autotest WRT atlocal.
7512         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
7513         when using Automake, to write a rule to produce atlocal, since it's
7514         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
7515         distributed, not atconfig.in.
7517 2007-11-04  Eric Blake  <ebb9@byu.net>
7519         Update list information.
7520         * README: Mention new autoconf-commit list.
7521         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
7523 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7525         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
7527         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
7529         * build-aux/.gitignore: Ignore mkinstalldirs.
7531         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
7533 2007-11-03  Jim Meyering  <meyering@redhat.com>
7535         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
7536         * build-aux/git-version-gen: This syncs from coreutils.
7538         Adjust the build procedure so "make check" works reliably.
7539         * README-hacking: Include an extra step between "make" and
7540         "make check" to ensure that the latter passes.
7542         Use just-built tools, when possible.
7543         * GNUmakefile (PATH): Set and export here, ...
7544         (dummy): ... rather than here.
7546 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7547         and Andreas Schwab  <schwab@suse.de>
7549         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
7550         exit status bug.
7552 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7554         * configure.ac (AC_PREREQ): Require version 2.60, for
7555         AC_PROG_SED, AC_PROG_GREP.
7557 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
7558         and Jim Meyering  <meyering@redhat.com>
7559         and Andreas Schwab <schwab@suse.de>
7560         and Eric Blake  <ebb9@byu.net>
7562         Document a bug in GNU Bash with compound commands and redirections.
7563         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
7564         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
7565         workaround.
7567 2007-11-03  Eric Blake  <ebb9@byu.net>
7569         Support m4 1.4.5 in testsuite.
7570         * tests/torture.at (Define a newline): Exclude line numbers in
7571         error message.
7572         Reported by Ralf Wildenhues.
7574 2007-11-03  Jim Meyering  <meyering@redhat.com>
7576         Remove automake-provided files from version control.
7577         * build-aux/elisp-comp: Remove file.
7578         * build-aux/install-sh: Remove file.
7579         * build-aux/missing: Remove file.
7580         * build-aux/mdate-sh: Remove file.
7581         * build-aux/.gitignore: New file.
7582         Suggestion from Ralf Wildenhues.
7584 2007-11-03  Eric Blake  <ebb9@byu.net>
7586         Adjust version comparison to account for git snapshot numbers.
7587         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
7588         component separator.
7589         * doc/autoconf.texi (Number processing Macros)
7590         <m4_version_compare>: Document this change.
7591         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
7593 2007-10-30  Bruno Haible  <bruno@clisp.org>
7595         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
7596         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7597         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
7598         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
7599         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
7600         Suggested by Paul Eggert.
7602 2007-10-28  Jim Meyering  <meyering@redhat.com>
7604         * README-hacking: Autoconf, Automake, and Perl are required to build.
7605         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
7607 2007-10-28  Jim Meyering  <meyering@redhat.com>
7609         README-hacking: Recommend running autoreconf -vi.
7610         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
7611         so that we use just-built tools when they're available.
7612         Suggestions from Ralf Wildenhues.
7614 2007-10-28  Jim Meyering  <meyering@redhat.com>
7616         Make inter-release --version output more useful.
7618         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
7619         which indicates that it is built using the 19th change set
7620         (in _some_ repository) following the "v2.61a" tag, and that 58dd
7621         is a prefix of the commit SHA1.
7622         * build-aux/git-version-gen: New file.
7623         * configure.ac: Run it to set the version.
7624         (AM_INIT_AUTOMAKE): Don't check NEWS here.
7625         * Makefile.am (dist-hook): Arrange so that .version appears only
7626         in distribution tarballs, never in a checked-out repository.
7627         * .gitignore: Add .version here, too.  Just in case.
7628         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
7629         not configure.ac, now that the version number changes automatically.
7631         Ensure that $(VERSION) is up to date for dist-related targets.
7632         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
7633         git-version-gen doesn't match $(VERSION), but only for dist targets.
7635 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7637         Fix `Deep Package' failure with a configure script early in PATH
7638         * tests/torture.at (Deep Package): Add `.' early in PATH.
7639         Report by Jim Meyering.
7641 2007-10-27  Jim Meyering  <meyering@redhat.com>
7643         Remove all generated files from version control.
7644         * aclocal.m4: Remove.
7645         * configure: Remove.
7646         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
7647         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
7648         * README-hacking: New file: how to build from just-checked-out sources.
7650 2007-10-23  Eric Blake  <ebb9@byu.net>
7652         Improve corner case of m4_expand.
7653         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
7654         efficiently.
7655         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
7656         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
7657         documentation.
7659 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7661         * doc/make-stds.texi: Update from gnulib.
7663 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7664         and Eric Blake  <ebb9@byu.net>
7666         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
7667         problem reported by Bruno Haible in
7668         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
7670 2007-10-22  Eric Blake  <ebb9@byu.net>
7672         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
7673         preprocessor.
7675 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7677         Don't check for bug in HP-UX 11.00 cpp.
7678         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7679         Use -1ull rather than -1u, since that causes problems with gnulib; see
7680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7682 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7684         * tests/autotest.at (Backquote command substitution)
7685         (Multiline backquote command substitution)
7686         (Parenthetical command substitution)
7687         (Multiline parenthetical command substitution): Fix typos in
7688         test names.
7690 2007-10-21  Eric Blake  <ebb9@byu.net>
7692         * configure: Regenerate.
7694 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7696         Fix config status generation with Tru64 ksh.
7697         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
7698         escaping of backslash in here-documents.
7700         Fix `Deep Package' test failure on FreeBSD.
7701         * tests/torture.at (Deep Package): Do not add `.' to $PATH
7702         unnecessarily.  Do not try running `/bin/sh configure' with a
7703         configure script to be found in $PATH, if the shell does not do
7704         this resolution.  Fixes test failure on FreeBSD.
7706         Fix config header generation with AIX awk.
7707         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
7708         script, use helper array D_is_set, as `" 0"' does not evaluate
7709         to true for AIX awk.
7711 2007-10-21  Eric Blake  <ebb9@byu.net>
7713         * tests/autotest.at (Banners): Reinstate test, with typo
7714         corrected.
7716 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7718         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
7719         <at_func_validate_ranges>: ... using this new function.
7720         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
7721         Test --list with ranges and keywords.
7722         (Banners): Remove one now-failing test.
7724 2007-10-20  Eric Blake  <ebb9@byu.net>
7726         Fix testsuite --list subset.
7727         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
7728         back to spaces, before listing subset of tests.
7729         Reported by Ralf Wildenhues.
7731 2007-10-19  Eric Blake  <ebb9@byu.net>
7733         s/parenthesis/parentheses/ where appropriate.
7734         * doc/autoconf.texi: Fix typos.
7735         * lib/m4sugar/m4sugar.m4: Likewise.
7736         Reported by Ralf Wildenhues.
7738         Document m4_expand limitation.
7739         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
7740         unbalanced parse.
7741         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
7742         (Writing Testsuites): Mention limitations inherited from
7743         m4_expand.
7745         Improve AT_BANNER handling.
7746         * lib/autotest/general.m4 (BANNERS): New named diversion.
7747         (TESTS_END): Diversion no longer used.
7748         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
7749         shell function, which prints only as needed, using an associative
7750         array of banner text from a special diversion.
7751         <PARSE_ARGS_END>: No longer need awk to find banners.
7752         <TESTS>: Banners are no longer processed by main driver loop, so
7753         we no longer need case statement.
7754         (AT_BANNER): Rewrite to populate new diversion.
7755         (AT_SETUP): Each test invokes its own banner.  No output is needed
7756         to the TESTS diversion.
7757         * doc/autoconf.texi (Writing Testsuites): Document slight
7758         semantics change.
7759         * tests/autotest.at (AT_BANNERS): Enhance test.
7760         * NEWS: Document AT_BANNER.
7762         Document and test AT_BANNER.
7763         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
7764         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
7765         (AT_CHECK_BANNERS): New test.
7767         Doc touchups.
7768         * doc/autoconf.texi (Text processing Macros) <m4_strip>
7769         <m4_text_wrap>: Clarify and fix typos.
7771 2007-10-18  Eric Blake  <ebb9@byu.net>
7773         Ignore `make dist' changelogs in testsuite.log.
7774         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
7775         directories matching AT_PACKAGE_TARNAME-*.
7777         Fix AT_TESTED, AT_KEYWORDS.
7778         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
7779         occurs in string, as duplicates may be added.
7780         (_m4_append_uniq): New helper macro.
7781         (m4_append_uniq_w): New macro.
7782         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
7783         duplication bug by using new macro.
7784         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
7785         programs with stdin redirected, so programs that don't
7786         understand --version won't try to behave interactively.
7787         * tests/autotest.at (Tested programs): Catch this bug.
7788         * tests/m4sugar.at (m4@&t@_append): Test new macro.
7789         * tests/local.at (AT_TESTED): Add m4, perl.
7790         * doc/autoconf.texi (Text processing Macros): Document
7791         m4_append_uniq_w, and update text on m4_append.
7792         * NEWS: Document the addition.
7794 2007-10-17  Eric Blake  <ebb9@byu.net>
7796         Function cleanup.
7797         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
7798         from m4 macro...
7799         (AT_INIT) <at_func_create_debugging_script>: ...to shell
7800         function.
7801         (AT_INIT): Defer function declarations until after --help,
7802         --version.  Format functions consistently, trying to fit in 80
7803         columns.
7804         (TEST_FUNCTIONS): Based on recent changes, rename...
7805         (TEST_GROUPS): ...to this.
7807         Reject FreeBSD m4.
7808         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
7809         * configure: Regenerate.
7810         Reported by Bob Friesenhahn.
7812         Test recent additions.
7813         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
7814         (m4@&t_max and m4@&t_min): New tests.
7815         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
7816         description.
7818 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7820         * TODO: multiline args in config files and headers work now.
7822         Autotest: do not use shell functions for individual tests.
7823         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
7824         extract the source test source, do not invoke it.
7825         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
7826         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
7827         expect exit status of 1.
7828         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
7830         * lib/autotest/general.m4 (at_func_test): Fix test extraction
7831         script.
7833 2007-10-17  Eric Blake  <ebb9@byu.net>
7835         Fix m4_combine for empty suffix list.
7836         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
7837         * doc/autoconf.texi (Text processing Macros): Document this.
7839         Add m4_combine, based on Libtool's lt_combine.
7840         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
7841         * doc/autoconf.texi (Text processing Macros): Document it.
7842         * NEWS: Likewise.
7844 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7846         Fix `configure --help=recursive' in unconfigured/read-only trees.
7847         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
7848         is not writable, use 'cp -p' in this case, in the hope that it
7849         will not actually be needed.  Still try removing files, in case
7850         of other write errors.
7851         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
7852         use $as_myself, not $0.
7853         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
7854         exist, try again in the the source tree.  This change assumes
7855         that the subpackage configure script is capable of running
7856         --help=recursive in the source tree.
7857         * tests/torture.at (Configuring subdirectories, Deep Package):
7858         Adjust tests to expose both issues, also try invocation as
7859         `sh configure ...' and plain `configure ...' with PATH adjusted.
7860         * NEWS, THANKS: Update.
7861         Report by Hans Ulrich Niedermann.
7863 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7865         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7866         Problem reported by H.Merijn Brand in
7867         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7868         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7869         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7870         Check that preprocessor handles 64-bit ints, too.
7872 2007-10-16  Eric Blake  <ebb9@byu.net>
7874         m4_map is a looping construct.
7875         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
7877         Fix m4_map, and add some more utility macros.
7878         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
7879         (m4_echo, m4_make_list): New documented macros.
7880         (_m4_quote, _m4_shift2): New helper macros.
7881         (m4_map): Change semantics to allow calling macro without
7882         arguments.
7883         (m4_map_sep): Likewise.  Also change semantics to quote separator,
7884         to match m4_join and m4_append.
7885         (m4_version_unletter): Fix use of m4_map.
7886         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
7887         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
7888         (Text processing Macros): Mention m4_dquote as a faster
7889         alternative to joining with commas.
7890         (Looping constructs): Document m4_map, m4_map_sep.
7891         * NEWS: Mention new macros.
7893         A few more m4sugar improvements, to benefit libtool.
7894         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
7895         of expansion by avoiding extra uses of $@.
7896         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
7897         (_m4_cdr): New helper macro.
7898         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
7899         (_m4_shift3): New helper macro.
7900         (_m4_foreach): Swap argument order, and use new macro to reduce
7901         size of expansion.
7902         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
7903         count must be positive.
7905         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
7906         Reported by Ralf Wildenhues.
7908 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7910         * doc/autoconf.texi (Portable Shell): Improve description of zsh
7911         4.x function subshell bug with exit and trap.
7913 2007-10-15  Eric Blake  <ebb9@byu.net>
7915         Enhance AS_HELP_STRING.
7916         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
7917         and reduce number of expansions.
7918         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
7919         and to take indent and wrap column numbers.
7920         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
7921         * doc/autoconf.texi (Pretty Help Strings): Document details about
7922         arguments.
7923         (Text processing Macros): Minor tweaks.
7924         * NEWS: Document this change.
7926         Fix 2007-10-03 regression with AT_SETUP([a, b]).
7927         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
7928         (m4_text_box): Use it.
7929         * lib/autotest/general.m4 (AT_SETUP): Use it.
7930         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
7931         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
7932         * NEWS: Revert caveat about semantics change on comma.
7933         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
7935 2007-10-13  Eric Blake  <ebb9@byu.net>
7937         Change m4_join to match libtool's ltsugar semantics.
7938         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
7939         Ignore empty arguments, using...
7940         (_m4_join): ...this new helper.
7941         * tests/m4sugar.at (m4@&t@_join): New test.
7942         * doc/autoconf.texi (Text processing Macros): Document new
7943         semantics of m4_join.
7945         Make AC_PREREQ faster and more robust.
7946         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
7947         (m4_version_prereq): Inline constant expansions.
7948         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
7949         Rewrite in terms of [] list, not () list.
7950         (_m4_list_cmp, _m4_version_unletter): New helper macros.
7951         (m4_version_unletter): Write wrapper around new implementation to
7952         preserve old semantics.
7953         (m4_version_compare): Pass correct type of list, and avoid
7954         overhead of flattening expressions too early.
7955         (m4_do): Move to be near other quoting macros.
7956         (m4_max, m4_min): Always result in decimal output.
7957         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
7958         Move m4_do...
7959         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
7960         (Text processing Macros): Move m4_version_compare...
7961         (Number processing Macros): ...to this new node; document m4_cmp,
7962         m4_list_cmp, m4_sign, m4_max, m4_min.
7963         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
7964         up on bugs fixed by this patch.
7965         * NEWS: Document new macros.
7967 2007-10-12  Eric Blake  <ebb9@byu.net>
7969         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
7970         (Reporting Messages): Fix underfull hbox.
7972         Some more m4sugar documentation.
7973         * lib/m4sugar/m4sugar.m4: Clean up macro order.
7974         * doc/autoconf.texi (Programming in M4): Lighten the warning on
7975         using m4sugar; it is stabilizing and useful.
7976         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
7977         m4_divert, m4_undivert, __file__, __line__, __oline__.
7978         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
7979         m4_fatal, m4_location, m4_warn.
7980         (Diversion support): New node, documenting m4_divert_push,
7981         m4_divert_pop, m4_divert_text, m4_divert_once.
7982         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
7983         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
7984         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
7985         as obsolescent.
7986         (Printing Messages): Change cross-reference.
7988         Document interaction of recent m4_append change with Libtool HEAD.
7989         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
7990         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
7991         * tests/m4sugar.at (m4@&t@_append): New test.
7992         * NEWS: Document semantics change.
7993         * doc/autoconf.texi (Text processing Macros): Likewise.
7995         s/AC_VERSION/AC_AUTOCONF_VERSION/.
7996         * doc/autoconf.texi (Versioning): Change the name.
7997         * NEWS: Likewise.
7998         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
7999         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
8000         Suggested by Ralf Wildenhues.
8002         Namespace cleanup.
8003         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
8004         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
8005         autoconf namespace.
8006         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
8007         (Programming in M4sh, Macro Names): Beef up description of
8008         namespaces reserved for autoconf.
8009         * configure: Regenerate.
8011 2007-10-12  Eric Blake  <ebb9@byu.net>
8012         and Paolo Bonzini  <bonzini@gnu.org>
8014         Speed up execution of subset of testsuite.
8015         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
8016         (AT_INIT) <at_func_test>: New shell function.
8017         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
8018         (AT_INIT) <at_test_source> New variable, names file that holds
8019         current test function definition.
8020         (AT_SETUP): Start the shell function at_func_test_#, into the
8021         TEST_FUNCTIONS diversion.
8022         (AT_CLEANUP): End the shell function.  Simplify the TESTS
8023         diversion to invoke the function.
8025 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8027         * .gitignore: Ignore tags and TAGS files.
8029 2007-10-11  Eric Blake  <ebb9@byu.net>
8031         Config header generation followup.
8032         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
8033         which won't work with the preprocessor nor with the awk
8034         implementation.
8035         * tests/torture.at (Define a newline): Test raw newline detection,
8036         removing the XFAIL.
8037         * doc/autoconf.texi (Defining Symbols): Document recent change to
8038         allow backslash-newline.
8039         * THANKS: Update.
8041 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8043         * lib/autotest/general.m4: Put function braces in separate line.
8045 2007-10-10  Eric Blake  <ebb9@byu.net>
8047         Avoid some overhead from m4_defn and m4_popdef.
8048         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
8049         pass on first argument, since we are documented that way.
8050         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
8051         check where it is safe to do so.
8052         (m4_append): Likewise, and quote the separator.
8053         (m4_text_box): Likewise, and avoid regex, also be robust to
8054         expansion and quadrigraphs.
8056         Another AC_DEFINE speedup.
8057         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
8058         elision...
8059         (_AC_DEFINE_Q): ...here, and only do it once.
8060         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
8061         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
8062         introduced 2007-10-05.
8064         Whitespace cleanup.
8065         * lib/autoconf/general.m4: Use consistent indentation.
8066         * configure: Regenerate.
8068         * NEWS: Announce recent round of speed optimizations.
8070 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8072         * NEWS: Announce shell function usage in Autotest.
8074 2007-10-10  Eric Blake  <ebb9@byu.net>
8075         and Paul Eggert  <eggert@cs.ucla.edu>
8077         Reduce number of forks at startup.
8078         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
8079         sanitization.
8080         * configure: Regenerate.
8082 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8083         and Paul Eggert  <eggert@cs.ucla.edu>
8085         Use awk for config header generation.
8086         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
8087         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
8088         header machinery for use with awk and placement outside the main
8089         config.status instantiation loop.  Retain multi-line defines
8090         through backslash-newline combinations, do not split the script
8091         any more.
8092         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
8093         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
8094         needed.
8095         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
8096         from define values.
8097         * NEWS: Update.
8098         * tests/torture.at (#define header templates): Extend test by
8099         several more cases: white space before and after `#', macros
8100         with parameters in config.hin and as defines, multi-line macro
8101         values.
8102         (Torturing config.status): Use a define value twice the length
8103         in order to exercise the awk literal string limit.
8104         (Substitute and define special characters): Also try special
8105         delimiter, to exercise the special-case code.
8106         Suggestion by Eric Lemings.
8108 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8110         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
8112 2007-10-09  Eric Blake  <ebb9@byu.net>
8114         Improve header of bin/autoconf.
8115         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
8116         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
8117         from M4sh.
8118         * bin/autoconf.as: Put copyright up front in generated file.
8120         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
8122 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8124         * doc/install.texi (Basic Installation): Document `uninstall'.
8125         * INSTALL: Regenerate.
8126         Suggestion by Roberto Bagnara.
8128 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8130         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
8132         Adjust doc. to match latest gnulib.
8133         * build-aux/texinfo.tex: Sync from gnulib.
8134         * doc/standards.texi: Likewise.
8135         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
8136         Documentation License" and remove the subsection.  This simplifies
8137         the manual a bit and is more like what other GNU projects do
8138         nowadays.
8140 2007-10-08  Eric Blake  <ebb9@byu.net>
8142         Use recent changes.
8143         * configure: Regenerate.
8145         Fix regression in m4_text_wrap from 2007-10-05.
8146         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
8147         (m4_sign): Sort.
8148         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
8149         m4_format.
8150         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
8151         * tests/autotest.at (Long test title, Longer test title): Test
8152         this fix, beyond what AS_HELP_STRING already tests.
8154         Avoid m4 warnings on bad m4_format usage.
8155         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
8156         evaulates to 0.
8157         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
8158         enough arguments are provided.
8160 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
8162         * doc/autoconf.texi (Shell portability): Document shell function
8163         portability.
8165 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
8167         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
8168         at_func_check_skip, at_func_check_status, at_func_filter_trace,
8169         at_func_log_failure shell functions.  Use test -s to avoid
8170         useless diff invocations.
8171         (at_func_check_newline): Renamed from at_check_newline.
8172         (AT_SETUP): Define AT_captured_files to empty.
8173         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
8174         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
8175         the shell functions.
8177 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8179         Don't assume "." is writeable, for commands like "autoconf --version".
8180         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
8181         different heuristic instead, one that doesn't rely on creating
8182         files.
8184         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
8185         correctly.
8187 2007-10-05  Jim Meyering  <meyering@redhat.com>
8189         Avoid makeinfo warnings.
8190         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
8191         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
8193 2007-10-05  Eric Blake  <ebb9@byu.net>
8195         Resolve Python issue 1676135 regarding configure directory args.
8196         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
8197         slashes from directory arguments.
8198         * tests/base.at (configure directories): New test.
8199         * doc/autoconf.texi (Installation Directory Variables): Document
8200         the change.
8201         * NEWS: Likewise.
8202         * THANKS: Update.
8203         Reported by Björn Lindqvist.
8205         Provide better short-circuiting operation.
8206         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
8207         (m4_text_wrap): Use it.  Also avoid useless m4_for.
8208         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
8209         new macro.
8210         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
8211         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
8212         to avoid regexps.
8213         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
8214         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
8215         (Conditional constructs): ...here, to new section.  Also document
8216         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
8217         m4_bpatsubsts, and m4_default.
8218         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
8219         m4_do.
8221 2007-10-04  Eric Blake  <ebb9@byu.net>
8223         Fix recent testsuite failures.
8224         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
8225         that must not be re-expanded after AS_ESCAPE.
8226         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
8227         checking if it is an identifier.
8229         Whitespace cleanup.
8230         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
8231         leading whitespace, as it caused space-tab in testsuite.
8232         (AT_INIT): Avoid trailing newlines in testsuite.
8234         One more round of m4_foreach_w speedups.
8235         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
8236         is present.
8237         (_m4_split): Avoid useless expansions inside definition.  Move
8238         argument defaulting...
8239         (m4_split): ...here.  Change alternate quote to something less
8240         likely to appear in $1.  Also, special case space as regexp...
8241         (m4_foreach_w): ...to avoid regexp on single-term list.
8242         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
8243         useless expansions inside definition.
8244         * tests/m4sugar.at (m4@&t@_split): Add tests.
8246 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
8248         * general.m4 (AT_INIT): Add at_check_newline function.
8249         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
8250         (_AT_CHECK): Don't use at_trace_this.
8252 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
8254         Fix previous commit.
8255         * lib/autotest/general.m4 (AT_LINE): Fix regex.
8257 2007-10-04  Eric Blake  <ebb9@byu.net>
8259         Speed up building testsuites.
8260         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
8261         changed since last time.  Use simpler regex.
8263 2007-10-03  Eric Blake  <ebb9@byu.net>
8265         Optimize checking for identifiers.
8266         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
8267         macros, more efficient than regex on m4_re_word.
8268         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
8269         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
8270         now use @&t@.
8271         * configure: Regenerate.
8273         Remove some XFAILs, and make AT_SETUP output line up.
8274         * lib/autotest/general.m4 (AT_SETUP): Only expand description
8275         once; thereafter, use its expansion, properly quoted.
8276         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
8277         expansion with arguments, and check for aligned output.
8278         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
8279         Add a test for macros with parameters.
8280         * NEWS: Document the semantics change.
8281         * tests/base.at: Fix test titles containing commas.
8282         * tests/compile.at: Likewise.
8283         * tests/tools.at: Likewise.
8284         * tests/torture.at: Likewise.
8286         Another round of regex avoidance.
8287         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
8288         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
8289         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
8290         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
8291         character ranges useful in m4_translit.
8292         (m4_toupper, m4_tolower): Optimize the constant portion of
8293         definition.
8294         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
8295         creates $, and reject [] thanks to AS_TR_SH rewrite.
8296         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
8297         (AS_ESCAPE): Factor...
8298         (_AS_ESCAPE): ...into new macro, with second argument required.
8299         Avoid regex in common case.
8300         (_AS_QUOTE): Use new macro.
8302         Whitespace cleanup.
8303         * lib/autoconf/types.m4: Avoid space-tab.
8304         * lib/m4sugar/m4sh.m4: Use tab consistently.
8306 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8308         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
8309         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
8310         should remove m4_shiftn entirely?
8311         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
8312         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
8313         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
8314         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
8315         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
8317 2007-10-03  Eric Blake  <ebb9@byu.net>
8319         Comment touchups.
8320         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
8322 2007-10-02  Eric Blake  <ebb9@byu.net>
8324         Optimize appending text.
8325         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
8326         expressions.
8328         Optimize recursion.
8329         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
8330         lot of hot spots; optimize it for 2 and 3 shifts.
8332         Optimize AC_PREREQ and other m4sugar numerics.
8333         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
8334         (m4_cmp): Compare arbitrary expressions, without overflow.
8335         (m4_version_unletter): Also recognize capital letters.
8336         (m4_version_compare): Avoid regex when splitting version number
8337         string.
8339 2007-10-01  Eric Blake  <ebb9@byu.net>
8341         Once again, reject IRIX m4.
8342         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
8343         implementations that ignore --trace.
8344         * configure: Regenerate.
8345         Reported by Ralf Wildenhues.
8347         Fix regression in AC_DEFINE([macro(with_arg)]).
8348         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
8349         quotes with a careless m4_substr.
8351 2007-09-30  Eric Blake  <ebb9@byu.net>
8353         Allow nameless iteration.
8354         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
8355         indirectly.
8356         * tests/m4sugar.at (myvar): Test this.
8358 2007-09-29  Eric Blake  <ebb9@byu.net>
8360         Speed optimization: avoid m4 regex when other algorithms work.
8361         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
8362         (_AS_QUOTE_IFELSE): Likewise.
8363         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
8364         (m4_bpatsubsts): Split...
8365         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
8366         regex.
8367         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
8368         (m4_qlen): Optimize on short strings, to avoid regex.
8369         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
8370         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
8371         (AC_DEFINE_TRACE): Likewise.
8373 2007-09-28  Eric Blake  <ebb9@byu.net>
8375         Oops - my earlier 'optimization' caused a regression.
8376         * tests/local.at (AT_CHECK_M4): Fix typo.
8378 2007-09-27  Eric Blake  <ebb9@byu.net>
8379         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8381         Catch even more common AC_CACHE_VAL mistakes.
8382         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
8383         lacks '_cv_', or if AC_SUBST appears in body.
8384         * tests/base.at (AC_CACHE_CHECK): Test this change.
8386 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
8387         and Eric Blake  <ebb9@byu.net>
8389         Autotest no longer caters to Ultrix redirection limitation.
8390         * doc/autoconf.texi (Writing testsuite.at): Remove the
8391         limitation that the first parameter of AT_CHECK cannot
8392         contain redirection.
8393         (File Descriptors): Mention that Ultrix limitation is no longer a
8394         show-stopper in modern code.
8395         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
8396         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
8397         * lib/autotest/general.m4 (AT_CHECK): Update comment.
8399 2007-09-27  Eric Blake  <ebb9@byu.net>
8401         Squelch changeword in m4sugar.
8402         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
8403         feature of m4 1.4.x.
8405         Configure whitespace touchups.
8406         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
8407         installation directories, and avoid TAB, in configure --help
8408         output.
8409         * configure.ac: Avoid extra trailing newline.
8410         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
8411         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
8412         config.status --help output.
8413         * configure: Regenerate.
8415         Fix underquotation in AS_HELP_STRING.
8416         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
8417         argument.
8418         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
8419         first-prefix argument.
8420         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
8421         * NEWS: Document AS_HELP_STRING fix.
8423         Autotest formatting touchups.
8424         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
8425         output.
8426         (PATH): Simplify computation of new PATH.
8428 2007-09-26  Eric Blake  <ebb9@byu.net>
8430         Fix testsuite breakage in last patch.
8431         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
8432         font-lock fix.
8433         * tests/torture.at (@%:@define header templates): Rename, so that
8434         output lines up correctly.
8436         More font-lock happiness.
8437         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
8438         confusion.
8440 2007-09-25  Eric Blake  <ebb9@byu.net>
8442         Typo fixes.
8443         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
8444         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
8446         Improve documentation of M4 parameter expansion.
8447         * doc/autoconf.texi (Quoting and Parameters): New section.
8448         (Quotation and Nested Macros): Improve wording.
8450         Improve C99 detection.
8451         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
8452         avoid deprecation warning with icc.
8453         * THANKS: Update.
8454         Reported by Ted Bullock.
8456 2007-09-24  Jim Meyering  <jim@meyering.net>
8458         Whenever possible, use the vertical bar as sed delimiter.
8459         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
8460         Use "|", not "!".
8461         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
8462         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
8463         * tests/mktests.sh (as_me): Likewise.
8464         * lib/freeze.mk (check-forbidden-patterns): Likewise.
8465         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
8466         * configure: Regenerate.
8467         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
8468         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
8469         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
8470         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
8472 2007-09-22  Jim Meyering  <jim@meyering.net>
8474         Add a comment.
8475         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
8476         2004-05-31 change also with a comment in the code.
8478 2007-09-20  Eric Blake  <ebb9@byu.net>
8480         More contribution housekeeping.
8481         * THANKS: Sort.
8482         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
8484         Ignore additional files, when copying cross-repository.
8485         * .gitignore: Ignore CVS directories, emacs edits.
8486         * .cvsignore: Ignore .git directory, emacs edits.
8488 2007-09-15  Eric Blake  <ebb9@byu.net>
8490         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
8491         * doc/autoconf.texi (Text processing Macros): Remove mention of
8492         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
8493         once again.
8494         (Notices): Move AC_PREREQ...
8495         (Versioning): ...to this new section, alongside the new AC_VERSION
8496         alias for the undocumented m4_PACKAGE_VERSION.
8497         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
8498         * lib/autoconf/general.m4 (AC_VERSION): New macro.
8499         * NEWS: Update to match this rename.
8500         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
8501         m4_PACKAGE_VERSION.
8502         * tests/tools.at (autoconf: AC_VERSION): New test.
8503         Suggested by Paolo Bonzini and Benoit Sigoure.
8505 2007-09-14  Eric Blake  <ebb9@byu.net>
8507         Prepare for conversion to git.
8508         * doc/.cvsignore: Avoid multiple listings on one line.
8509         * bin/.cvsignore: Likewise.
8510         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
8511         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
8512         lib/autoscan/.gitignore, lib/autotest/.gitignore,
8513         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
8514         tests/.gitignore: New files, identical to .cvsignore counterpart.
8516 2007-09-13  Eric Blake  <ebb9@byu.net>
8518         Editing eye-candy.
8519         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
8520         font-lock balance.
8521         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
8522         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
8523         * configure: Regenerate.
8525         Clean up 'make dist' of previous patch.
8526         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
8527         (CLEANFILES): Don't clean the stamp, since we distribute the
8528         generated files pre-built.
8529         (MAINTAINERCLEANFILES): Clean it here instead.
8530         * tests/Makefile.in: Regenerate.
8532         Avoid parallel 'make check' issue.
8533         * tests/Makefile.am (mktests.stamp): New witness.
8534         (TESTSUITE_GENERATED_AT): Use it.
8535         (CLEANFILES): Clean the witness.
8536         * tests/.cvsignore (mktests.stamp): Ignore the witness.
8538         Document another awk pitfall.
8539         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
8540         limitation of field variables in END.
8541         Reported by Gary V. Vaughan.
8543         * AUTHORS: Add missing entries.
8545 2007-09-12  Eric Blake  <ebb9@byu.net>
8547         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
8548         * doc/autoconf.texi (Text processing Macros): Document
8549         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
8550         (Redefined M4 Macros): Document m4_ifndef.
8551         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
8552         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
8553         used it while it was undocumented.
8554         * NEWS: Document this change.
8555         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
8556         * lib/m4sugar/Makefile.in: Regenerate.
8557         * tests/m4sugar.at (m4@&t@_version_compare): New test.
8558         Reported by Bruno Haible.
8560         * doc/autoconf.texi (Generic Compiler Characteristics): Add
8561         missing index entries.
8563 2007-09-11  Eric Blake  <ebb9@byu.net>
8565         Centralize all system extensions checks.
8566         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
8567         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
8568         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
8569         AC_USE_SYSTEM_EXTENSIONS.
8570         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
8571         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
8572         * doc/autoconf.texi (Posix Variants): Reword this section,
8573         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
8574         rather than a series of system-specific checks.
8575         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
8576         AC_MINIX.
8577         * NEWS: Document this change.
8578         * THANKS: Update.
8579         Reported by Martin Koeppe.
8581 2007-09-08  Eric Blake  <ebb9@byu.net>
8583         Clean up obsolete macros references.
8584         * doc/autoconf.texi: Add anchors to support better
8585         cross-referencing.
8586         (Particular Structures): Move obsolete macros descriptions...
8587         (External Software): Likewise.
8588         (Package Options): Likewise.
8589         (Obsolete Macros): ...to here.  Add cross-references to
8590         documentation on replacements.
8591         * NEWS: Mention that these macros have been obsolete for a while
8592         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
8594         Improve M4 path searching during configure.
8595         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
8596         macro.
8597         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
8598         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
8599         parameter, and kill side effects.
8600         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
8601         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
8602         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
8603         is found.
8604         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
8605         allow bootstrapping with autoconf 2.61.
8606         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
8607         * configure: Regenerate.
8608         * doc/autoconf.texi (Generic Programs): Document new macro.
8609         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
8610         macro.
8611         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
8612         * NEWS: Document the change.
8613         * THANKS: Update.
8614         Reported by Hans Aberg.
8616         * doc/autoconf.texi (Generic Programs): Fix typo.
8618 2007-09-06  Eric Blake  <ebb9@byu.net>
8620         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
8621         :, and make it clear that optional @var{path} defaults to $PATH.
8622         (Erlang Compiler and Interpreter): Likewise.
8624         Texinfo cleanup.
8625         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
8626         Reword some paragraphs to avoid overfull, underfull hbox
8627         warnings.  Add index entries to avoid overfull vbox warnings.
8629 2007-09-05  Eric Blake  <ebb9@byu.net>
8631         * NEWS: Adjust wording for AC_CONFIG_LINKS.
8632         Reported by Ralf Wildenhues.
8634 2007-09-03  Eric Blake  <ebb9@byu.net>
8636         * NEWS: Document fixes that have been applied since 2.61a.
8638         Housekeeping.
8639         * THANKS: Update, and convert to UTF-8 encoding.
8640         * AUTHORS: Likewise.
8642 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8644         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
8645         names beginning with `-' again.
8647 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
8648             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8650         * doc/autoconf.texi (Defining Directories): Mention
8651         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
8653 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8655         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
8656         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
8657         * tests/base.at (configure arguments): New test.
8658         * THANKS: Update.
8659         Report by Olaf Lenz.
8661         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
8662         arguments in comment.
8663         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
8665 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
8667         * doc/autoconf.texi (File System Conventions): Index the proper
8668         way of detecting absolute file names.
8670 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8672         * build-aux/config.guess, build-aux/config.sub,
8673         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
8674         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
8675         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
8676         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
8677         sectioning change in fdl.texi.
8679         * bin/autoconf.as: Update --version output to match current GCS.
8680         * bin/autoheader.in: Likewise.
8681         * bin/autom4te.in: Likewise.
8682         * bin/autoreconf.in: Likewise.
8683         * bin/autoscan.in: Likewise.
8684         * bin/autoupdate.in: Likewise.
8685         * bin/ifnames.in: Likewise.
8687 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8689         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
8690         file to itself if source and build trees coincide.
8691         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
8692         test.
8693         Report by Sebastian Freundt <hroptatyr@gna.org>.
8695 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
8697         Reword the copyright notices to match what's suggested in GPLv3.
8698         In ChangeLog files, use more-permissive notice rather than GPL, as
8699         per usual GNU standards these days.
8701 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8703         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
8704         limitation reported by Leo Moisio in
8705         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
8707 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8709         * COPYING: Update to GPLv3.  All uses changed.
8711 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8712         and Paul Eggert  <eggert@cs.ucla.edu>
8714         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
8715         fails on AIX 5.3.
8717 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
8719         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
8720         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
8721         `srcdir' as subdirectory of `builddir'.
8723 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
8725         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
8726         * tests/autotest.at (srcdir propagation): New test.
8727         * THANKS: Update.
8728         Reported by Mike Frysinger.
8730 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8732         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
8733         Problem reported by Fred Kreek in
8734         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
8735         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
8736         (Macro Names, Defining Directories): Don't mention PATH as a name
8737         for a fully qualified file name, as this usage violates the GNU
8738         coding standards and we shouldn't recommend it.
8740         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
8741         string and then assume shell builtins like "test" will work.
8743 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
8745         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
8746         not a valid shell variable name.
8747         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
8748         * tests/torture.at (AC_SUBST: variable name validation): New test.
8749         Reported by Andreas Schwab.
8751 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
8753         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
8754         works with both C and C++.
8756 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
8757             Bruno Haible  <bruno@clisp.org>
8759         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
8760         brand tests.
8762 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8764         * doc/autoconf.texi (Particular Types): Give example of use for
8765         AC_TYPE_INT8_T etc.
8767 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
8769         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
8771 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
8773         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
8774         define HAVE_INT8_T, and likewise for similar macros.
8775         Problem reported by Patrick Welche in
8776         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
8778 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
8780         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
8782 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8784         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
8785         choice, since that's what we do with --enable-largefile etc.
8786         Redo indenting and assignments to simplify things a bit, and make
8787         the parens work with Emacs.
8789         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
8790         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
8791         Haible.
8793 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
8795         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
8796         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
8798 2007-05-21  Bruno Haible  <bruno@clisp.org>
8800         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
8801         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
8802         * doc/autoconf.texi (Generic Compiler Characteristics): Move
8803         renamed AC_OPENMP documentation here, from "C compiler".
8804         Mention C++ and Fortran.
8806 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8808         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
8810 2007-05-21  Bruno Haible  <bruno@clisp.org>
8812         * NEWS: Mention AC_C_OPENMP.
8813         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
8814         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
8815         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
8816         macro in the Autoconf macro archive.
8818 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8820         * bin/autom4te.in: Fix typos.
8822 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
8824         * bin/autoconf.as: Handle `-' just like other input files.
8825         * bin/autom4te.in (parse_args): Pass `-' through.
8826         (handle_output): Skip the forbidden token search if we read from stdin.
8827         (up_to_date): Always treat stdin as out of date.
8828         * tests/tools.at (autoconf: input from stdin): New test.
8829         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
8831 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
8833         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
8834         parameters for AT_CLEANUP.
8835         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
8837 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8839         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
8840         * doc/autoconf.texi (C Compiler): Likewise.
8842 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
8844         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
8846 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
8848         * doc/autoconf.texi: Direntry for "autoconf Invocation"
8849         renamed to "autoconf-invocation"
8851         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
8852         in the examples should not use the internal "ac_" prefix.
8854 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
8856         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
8857         * doc/autoconf.texi ($@, case): Document Zsh limitations.
8859 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
8861         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
8862         Reorganize the comments before and in the macro.
8864 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
8866         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
8867         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
8868         section titles and other comments; no code change.
8870 2007-05-01  Kevin Ryde  <user42@zip.com.au>
8872         * doc/autoconf.texi (Particular Programs): Typo
8873         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
8875 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
8877         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
8878         'configure' will fail if the shell lacks proper support for shell
8879         functions.  Suggested by RMS.
8881 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8883         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
8884         about Solaris /bin/printf '%010000x' 123.  Problem reported by
8885         Bruno Haible.
8887 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
8889         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
8890         for a.* when searching for executables, as this prevents users
8891         from having files like a.c.  Problem reported by Ralf Wildenhues in:
8892         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
8893         This fixes a problem introduced on 2000-12-19.
8895 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8897         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
8898         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
8899         via Bruno Haible.
8901 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
8903         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
8904         AC_CHECK_TYPE, AC_CHECK_TYPES.
8905         * doc/autoconf.texi (Generic types): C types must be type-names
8906         (the C terminology), not type-ids (the C++ term).  C++ types
8907         must not be anonymous.
8908         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
8909         for C++; this drops support for anonymous struct and union types,
8910         which were problematic anyway.
8911         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
8912         for C++.
8914 2007-04-12  Jim Meyering  <jim@meyering.net>
8916         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
8918 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8920         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
8921         to prefer a link source from the build tree, if it exists.
8922         Report by Pallav Gupta <pallavgupta@gmail.com>.
8924 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8926         * doc/autoconf.texi (Generic Types): Document the restrictions
8927         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
8928         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
8929         with objects too.  Document the restrictions on its use.
8930         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
8931         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
8932         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
8933         works but the latter doesn't, then it's a valid type.
8934         This lets people use function types and so forth.
8935         For C++ there doesn't seem to be a simple solution, so leave it alone.
8936         (AC_CHECK_SIZEOF): Allow argument to be a variable.
8937         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
8938         AC_CHECK_TYPE; that wasn't documented or necessary.
8940 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8942         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
8943         when cross-compiling.
8945 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8947         * doc/autoconf.texi (External Software): Fix a typo in the
8948         previous change.
8950 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8952         * doc/autoconf.texi (External Software, Package Options):
8953         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
8955 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8957         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
8958         obsolescent.  Suggested by Bruno Haible.
8959         * NEWS: Document this.
8961 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8963         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
8964         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
8965         default still has the problem.  Problem reported by Bruce Korb.
8967 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
8968         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8970         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
8971         comment in the generated config.status.
8973 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
8975         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
8977 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
8979         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
8980         command and case statements to make it a bit clearer and describe
8981         more pitfalls.
8983 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
8985         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
8986         checks for unsigned long long int.
8988 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8990         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
8991         nonstandard grep R.E. escape sequences.
8993 2007-03-17  Jim Meyering  <jim@meyering.net>
8995         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
8996         (Limitations of Usual Tools): Also list \< and \>, and mention that
8997         HP-UX's grep, like the one from Solaris, does not support that syntax.
8999 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
9001         * doc/autoconf.texi (Specifying Names): `--host' does not
9002         change the build type.
9004 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9006         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
9007         suggests AC_CONFIG_HEADERS.
9008         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
9009         AC_CONFIG_HEADERS.  Problem reported by
9010         Peter O'Gorman.
9012 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9014         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
9015         Problem reported by Paolo Bonzini in:
9016         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
9017         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
9018         universal binaries.  Problem reported by Elias Pipping.
9020 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
9022         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
9023         * doc/autoconf.texi (C Compiler): Document this.  There is a new
9024         extra argument ACTION-IF-UNIVERSAL.
9025         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
9026         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
9027         Reindent for sanity's sake.
9029 2007-02-24  Eric Blake  <ebb9@byu.net>
9031         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
9032         copyright.
9033         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
9034         * lib/autotest/general.m4 (AT_INIT): Likewise.
9035         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
9037 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9039         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
9040         status of rm so we know when it failed.
9041         If cleaning of test dir failed before running the test, warn.
9042         Output the line separator in verbose mode before the warning
9043         to make clear the warning belongs to the following test.
9045 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9047         * doc/autoconf.texi (Parentheses): Mention problem with (( in
9048         shells.
9050 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9051         and Paul Eggert  <eggert@cs.ucla.edu>
9053         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
9054         errors introduced in last change.
9056 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9058         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
9059         an actual carriage return.  Use "ac_cr" to contain the actual
9060         carriage return.
9061         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
9062         with traditional Awk and begin.
9063         * tests/torture.at (Limitations of Builtins): Document the problem
9064         with Bash 2.03 printf.
9065         (Substitute and define special characters):
9066         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
9068 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
9070         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
9071         input from /dev/null in awk test, so even Solaris /usr/bin/awk
9072         will not wait for input with a script containing only a BEGIN
9073         rule.
9075 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9077         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
9078         requirements.
9079         * README: Likewise.
9081 2007-02-02  Eric Blake  <ebb9@byu.net>
9083         * NEWS: Update copyright.
9085         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
9086         broken.
9087         * configure.ac: Update error message.
9088         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
9089         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
9090         by Stepan Kasal:
9091         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
9093 2007-01-31  Eric Blake  <ebb9@byu.net>
9095         * THANKS (people): Update.
9097 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9099         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
9100         latest version.
9101         (Shell Substitutions): Note problems with @{var:=value} etc.
9102         Add a new section for problems with @{#var} etc.  Problem noted
9103         by Ralf Wildenhues.  See:
9104         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
9106 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9108         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
9109         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
9110         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
9111         substitution will still be done by the special code.
9112         Report by Jim Meyering.
9114         * doc/autoconf.texi (File System Conventions): Mention that
9115         $PATH_SEPARATOR is for the build system only.
9116         Report by Keith Marshall.
9118 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9120         * doc/autoconf.texi (Setting Output Variables): Mention that
9121         all non-NUL characters are ok in substituted values.
9122         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
9123         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
9124         carriage return for $AWK, needed for BSD awk.
9125         * tests/torture.at (Substitute and define special characters):
9126         Test all 8 bit non-NUL characters.
9127         Report against Automake by Patrick Welche.
9129 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
9131         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
9133 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9135         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
9136         early on the reader side, drop stderr of the input to avoid
9137         `broken pipe' error output; this may happen even with shell
9138         builtin `echo' of some bash versions.  Reports by Ian Macdonald
9139         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
9141 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9143         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
9144         separate items of `ac_user_opts', to avoid long lines.
9145         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
9147 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9149         * doc/autoconf.texi: Fix some typos.
9151 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9153         Fix some wording problems noted by Paolo Bonzini in:
9154         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
9155         * doc/autoconf.texi (Signed Overflow Examples): Give more
9156         discussion about the allow_superuser_privileges example,
9157         and change it a bit to make things clearer.
9158         (Optimization and Wraparound): Clarify whether the compiler
9159         will generate an infinite loop for the example derived from
9160         Autoconf's mktime test.
9161         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
9162         Also, clarify unsigned multiplication overflow.
9164 2007-01-04  Eric Blake  <ebb9@byu.net>
9166         * bin/Makefile.am (RELEASE_YEAR): New macro.
9167         (edit): Use it to supply correct copyright year to scripts.
9168         * bin/autoconf.as (version): Use it.
9169         * bin/autoheader.in ($version): Likewise.
9170         * bin/autom4te.in ($version): Likewise.
9171         * bin/autoreconf.in ($version): Likewise.
9172         * bin/autoscan.in ($version): Likewise.
9173         * bin/autoupdate.in ($version): Likewise.
9174         * bin/ifnames.in ($version): Likewise.
9176 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9178         * doc/autoconf.texi (Integer Overflow): Revised based on today's
9179         feedback.  The most important changes document what happens when
9180         you convert an out-of-range value to a signed integer type, and
9181         say that (sum < a) != (b < 0) reliably detects overflow when sum =
9182         a + b.
9184         * doc/autoconf.texi (Integer Overflow): Greatly expand and
9185         rewrite, taking notions from the recent discussion on the gcc and
9186         autoconf mailing lists; please see
9187         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
9188         and follow the many links.
9189         (Integer Overflow Basics, Signed Overflow Examples):
9190         (Optimization and Wraparound, Signed Overflow Advice):
9191         (Signed Integer Division): New sections.
9193 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
9195         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
9196         preprocessor macro arguments in traced name.
9197         * doc/autoconf.texi (Defining symbols): Document longstanding
9198         support for AC_DEFINE-ing macros with arguments, and document
9199         behavior when the same variable has multiple AC_DEFINEs.
9200         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
9201         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
9202         macros directly, giving much shorter and simpler code.
9204 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
9206         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
9207         space before "$ac_configure_args" to prevent a 'config.status
9208         --recheck' failure if ac_configure_args doesn't contain a leading
9209         space.  This works around a problem with the XEmacs configure.ac,
9210         which uses the (undocumented) ac_configure_args variable
9211         inconsistently with Autoconf.
9213 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9215         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
9216         Include <limits.h>, and use its INT_MAX to rewrite the
9217         j loop so that it does not overflow 'int'.  Problem reported by
9218         Ralf Wildenhues in
9219         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
9220         Play it safe by shifting left by 1 rather than multiplying by 2,
9221         as GCC is less likely to optimize this away when the value
9222         is signed (when it assumes overflow leads to undefined behavior).
9223         Also, don't assume time_t uses two's complement.
9225 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9227         * tests/torture.at (Substitute a 2000-byte string): Avoid using
9228         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
9229         dumps core on it.  Report by Tim Rice.
9231 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
9233         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
9234         --disable-option-checking to --help output even when
9235         AC_PRESERVE_HELP_ORDER is not used.
9236         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
9237         --with argument, rather than argument with [-.] replaced by
9238         underscores.
9239         * NEWS: Fix typo in previous change; the news was in the
9240         wrong section.
9242 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9244         * NEWS: Warnings are now generated by default for unknown
9245         --enable-* and --with-* options.
9246         * doc/autoconf.texi (Option Checking): Renamed from
9247         (Configure Option Checking).  Tighten up the wording a bit.
9248         (External Software, Package Options): Cross-reference to Option
9249         Checking, and use this to shorten our section.
9250         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
9251         "$x" to test "x$foo" != x.
9252         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
9253         Don't warn if $enable_option_checking is "no".
9254         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
9255         ac_unrecognized_opts to the empty string.
9256         Don't echo the unrecognized opts, as this might mishandle
9257         backslashes or leading -.
9258         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
9259         usage next to the other --disable-FEATURE options in the
9260         help string.
9262 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
9264         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
9265         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
9266         Print warning for unrecognized --with and --enable options
9267         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
9268         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
9269         Disable option checking when subdirs are configured.
9270         (AC_OUTPUT): If warnings are enabled, print warning about
9271         unrecognized --with and --enable options at the end of
9272         the configure output (as well as at the beginning).
9273         * doc/autoconf.texi (Option Checking): New node.
9274         Document new option warning functionality.
9276 2006-12-16  Eric Blake  <ebb9@byu.net>
9278         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
9279         * NEWS: Start news for current version.
9281 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9283         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
9284         Define HAVE_GETMNTENT to 1, not to the empty string.
9285         Problem originally reported by Jochen Friedrich in
9286         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
9288         This change prompted by a problem report by Andrey Simonenko in
9289         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
9290         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
9291         object-like macros only, in the traditional portable character
9292         set.
9293         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
9294         Warn about attempts to define things that are not identifiers.
9295         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
9296         awful hack that AC_DEFINEd macro names containing parentheses.
9298 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9300         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
9301         too drastic, even if Texinfo in theory requires it for info mode.
9303         (config.status Invocation): Renamed back from Recreating a
9304         Configuration).
9305         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
9306         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
9308 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9310         * NEWS: Version 2.61a.
9312 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9313         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9315         * NEWS: Document changes with echo and printf, and the lack
9316         of limits on the total size of multi-line values of substituted
9317         variables, and the AC_FUNC_FSEEKO fix.
9319 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
9321         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
9322         Writing configure.ac.
9323         (Autoconf Input Layout): Renamed from configure.ac Layout.
9324         (Recreating a Configuration): Renamed from config.status Invocation.
9325         (Obsolete Recreation): Renamed from Obsolete config.status Use.
9326         (acconfig Header): Renamed from acconfig.h.
9327         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
9328         (Writing Testsuites): Renamed from Writing testsuite.at.
9329         (Autom4te Cache): Renamed from autom4te.cache.
9331         * BUGS: Remove mention of VPATH problem, since it's now documented
9332         not to be a bug in the Autoconf build procedure itself, but rather
9333         a problem with the proprietary `make' programs.
9335         * doc/autoconf.texi (Build Directories): Add a cross reference
9336         to VPATH and Make.
9338         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
9339         * doc/standards.texi: Sync from gnulib.
9341         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
9342         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
9343         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
9344         generated automatically.
9346 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9348         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
9349         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
9350         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
9352 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9354         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
9355         `CEOF$ac_eof' special marker, the awk script cannot contain a
9356         line matching `^CEOF', so this is not needed any more.
9357         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
9358         special marker in the test.
9360 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
9362         * tests/tools.at (autom4te preselections): Use `find -newer';
9363         remove one of the sleeps.
9365         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
9366         more readable, using ...
9367         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
9369         * doc/autoconf.texi (autoheader Invocation): Do not double-
9370         quote the parameter of `AH_BOTTOM' in the example.
9372 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
9374         * doc/autoconf.texi (Configuration Headers): Remove the
9375         example with multiple input files.
9376         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
9377         multiple input files.
9379 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9381         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
9382         creating the awk substitution script, handle one input line at a
9383         time, so that the maximum length of a substituted (multi-line)
9384         value is not limited by the size of the sed pattern space.
9385         The trade-off is a slightly repetitive sed script.
9386         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
9387         can only have up to 7 characters, due to Solaris 10 /bin/sed.
9388         * tests/torture.at (Substitute a 2000-byte string): Increase the
9389         test with several long lines, they should not be caught by sed
9390         limits any more.
9392         * tests/tools.at (autom4te preselections): New test, to flag
9393         entries missing from autom4te.cfg.
9394         Report by David Byron <dbyron@hheld.com>.
9396         * tests/torture.at (Substitute a 2000-byte string): Actually use
9397         AC_PROG_AWK, so the last change works as intended.
9398         (Substitute and define special characters): Likewise.
9399         (Substitute a newline): Likewise.
9401         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
9402         instead of `awk' consistently.
9403         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
9404         * tests/torture.at (Torturing config.status): Test both the
9405         result of AC_PROG_AWK and plain awk.
9406         (Substitute a 2000-byte string): Likewise.
9407         (Substitute and define special characters): Likewise.
9408         (Substitute a newline): Likewise.
9410 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9412         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
9413         can be assigned to a function pointer.  Problem reported by
9414         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
9415         part of a patch by Ralf Wildenhues in that same bug report.
9417 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9419         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
9420         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
9422 2006-12-01  Eric Blake  <ebb9@byu.net>
9424         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
9425         cross-compiling from cygwin to mingw.
9426         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
9427         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
9428         to lib/autoconf/c.m4.
9430 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9432         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
9433         string for more reliable failure.  Wrap the entire test that
9434         causes the broken Solaris printf to dump core, in a subshell,
9435         so the segmentation fault message is reliably suppressed.
9436         Fix shell expansion errors by using /usr/ucb/echo always;
9437         avoid an error on systems without it by another subshell.
9438         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
9439         subshell-$as_echo to `as_echo', for better error message.
9441 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9443         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
9444         `BASH_SOURCE' contain a newline, set them to empty, as they may
9445         not be unset.
9447 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
9449         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
9450         years and is too hard to maintain now.  The last straw was
9451         reported by Jerker Baeck in
9452         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
9453         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
9454         * doc/autoconf.texi (Particular Functions): Move
9455         AC_FUNC_SETVBUF_REVERSED from here...
9456         (Obsolete Macros): ... to here.  Say that it does nothing now.
9457         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
9458         Turn into (almost) a no-op.
9460         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
9461         (AC_C_VOLATILE):
9462         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
9463         These macros are obsolescent and new applications shouldn't need them.
9464         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
9465         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
9466         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
9467         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9468         (AC_FUNC_VPRINTF): Likewise.
9469         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
9470         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
9471         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
9473         * doc/autoconf.texi (Setting Output Variables): Mention that
9474         @VAR1@VAR2 has unspecified behavior.  Problem reported by
9475         Ralf Wildenhues.
9476         * NEWS: Mention this.
9478         * Makefile.am: Put only a single '#' into the copyright notice,
9479         so that it's also present in the output file.  Standardize wording
9480         in makefile copyright notices to match GNU coding standards.
9481         * bin/Makefile.am: Likewise.
9482         * doc/Makefile.am: Likewise.
9483         * lib/Makefile.am: Likewise.
9484         * lib/freeze.mk: Likewise.
9485         * lib/autoconf/Makefile.am: Likewise.
9486         * lib/autoscan/Makefile.am: Likewise.
9487         * lib/autotest/Makefile.am: Likewise.
9488         * lib/m4sugar/Makefile.am: Likewise.
9489         * man/Makefile.am: Likewise.
9490         * tests/Makefile.am: Likewise.
9491         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
9492         one-line file.
9494 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9496         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
9497         in the sed script that mangles the awk script: delete up to the
9498         first exclamation mark only.
9499         * tests/torture.at (Substitute and define special characters):
9500         Test '!' too.
9502 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9504         Rewrite config files generation: avoid quadratic growth in
9505         the number of substituted variables by using awk instead of sed
9506         for the bulk of the substitutions.
9507         * NEWS: Mention this.
9508         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
9509         forbidden in the output (and thus input) file.
9510         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
9511         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
9512         generate just one large awk script for substitutions,
9513         eliminating much of the earlier complexity, while adding some
9514         new complexity.  Only expand the substitution templates at
9515         configure time, for smaller configure script size.  If
9516         _AC_SUBST_FILES are used, test 'awk' for working getline support
9517         at config.status time.  If absent, interpolate through the
9518         shell.  The awk script was written with much help
9519         from Paolo Bonzini and Paul Eggert.
9520         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
9521         (_AC_SED_FRAG_NUM): Likewise.
9522         (_AC_SUBST_CMDS): Renamed from...
9523         (_AC_SED_CMDS): ...this.
9524         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
9525         * tests/torture.at (Substitute a 2000-byte string): Also
9526         substitute a line with 1000 words, and a variable with several
9527         long lines.
9528         (Substitute and define special characters): Test awk special
9529         characters, and put substitution input strings `@foo@' in the
9530         output, to test that no recursion happens; test several other
9531         combinations from Paolo Bonzini.
9533 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9535         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
9536         that replaced echo with AS_ECHO where this wasn't necessary.
9537         Problem reportd by Ralf Wildenhues.
9538         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
9539         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
9540         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
9542 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9544         * lib/freeze.mk (GREP): Removed, no need to initialize this.
9546 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
9548         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
9549         that traditional Awk lacks 3-arg "split".  It has it.
9550         Mention that FS must be a single character, and a few other
9551         99-byte limits of traditional Awk.
9552         Mention that if (i in a) doesn't work with traditional Awk.
9554 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9556         * tests/autotest.at (BSx641-newline in command):
9557         (BS-BS-newline in command, BSx640-newline in command):
9558         (Newline-CODE-BS-newline in command):
9559         (Single-quote-BS-newline in command):
9560         (Single-quote-newline-BS-newline in command):
9561         Use printf '%s\n' instead of echo, for portability to hosts
9562         where echo interprets backslashes.  This will break on hosts
9563         that lack printf, but for now let's assume all such hosts
9564         are dead (if not, we should get reports of test failures).
9566 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9568         'echo' has some portability problems, when given a first argument
9569         with a leading '-', or when given any argument containing '\'.
9570         Avoid using 'echo' in these cases.
9571         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
9572         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
9573         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9574         * lib/autotest/general.m4 (AT_INIT): Likewise.
9575         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
9576         argument might be unportable.
9577         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
9578         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
9579         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
9580         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
9581         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
9582         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
9583         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
9584         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
9585         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
9586         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
9587         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
9588         (AC_PROG_MAKE_SET): Likewise.
9589         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
9590         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
9591         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
9592         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
9593         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
9594         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
9595         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
9596         * bin/autoconf.as: Redo verbose flag implementation, as the old
9597         scheme wouldn't work with AS_ECHO.
9598         * lib/autotest/general.m4 (AT_INIT): Likewise.
9599         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
9600         Don't use ECHO_T, since ECHO_N is now reliable.
9601         * lib/autotest/general.m4 (AT_INIT): Likewise.
9602         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
9603         rather than using a here-document to put the script into a file.
9604         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
9605         use AS_ECHO.
9606         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
9607         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
9608         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
9609         bug, but we might as well stop using ECHO_N and ECHO_C internally.
9610         * lib/autotest/general.m4 (AT_SETUP): Likewise.
9611         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
9612         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
9613         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
9614         operand, as AS_ECHO requires.  Avoid double file name expansion.
9615         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
9616         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
9617         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
9618         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
9619         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9620         Double-quote strings that would otherwise contain M4 comments.
9621         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
9623         * configure.ac (AC_INIT): Bump to 2.61a.
9624         * NEWS: Likewise.
9626 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9628         Version 2.61.
9630         * configure.ac (AC_INIT): Bump to 2.61.
9631         * NEWS: Likewise.
9633         * tests/autotest.at (Macro with backslash in a test title):
9634         Comment out for now, as this tests neither fails nor passes
9635         reliably.  Problem reported by Ralf Wildenhues.
9637 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9639         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
9640         in previous change, which caused test failures.
9642 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
9644         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
9645         code for --enable, --disable, --with, and --without to...
9646         (_AC_INIT_PARSE_ENABLE): ... a new macro.
9647         * doc/autoconf.texi (Package Options):
9648         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
9650 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9652         Import these changes from config via gnulib:
9654         2006-11-15  Ben Elliston  <bje@gnu.org>
9656         From Josselin Mouette <joss@debian.org>:
9657         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
9659         2006-11-08  Ben Elliston  <bje@gnu.org>
9661         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
9663         2006-11-07  Steve Woodford  <scw@NetBSD.org>
9664                     Ben Elliston  <bje@gnu.org>
9666         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
9667         * build-aux/config.sub (sh5el): New basic_machine.
9670         Import this change from coreutils:
9672         2006-02-13  Jim Meyering  <jim@meyering.net>
9674         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
9677         Import this change from gnustandards via gnulib:
9679         2006-11-15  Karl Berry  <karl@gnu.org>
9681         * standards.texi: core -> memory, throughout.
9682         (CPU Portability): show correct example of calling write
9683         on a char value; thanks to Paul Eggert for the code.
9684         Both of these suggestions from Eugene Y. Vasserman.
9687         Import these changes from texinfo via gnulib:
9689         2006-11-08  Karl Berry  <karl@gnu.org>
9691         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
9692           as well as pdf images, since they are supported in pdftex with
9693           no further ado.
9695         2006-11-05  Karl Berry  <karl@gnu.org>
9697         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
9699 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9701         * NEWS: Document the AC_ARG_WITH change.
9703 2006-11-13  Bruno Haible  <bruno@clisp.org>
9705         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
9706         options, transliterate also dots to underscores.
9707         (_AC_ENABLE_IF): Transliterate also dots to underscores.
9708         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
9709         first argument may also contain dots.
9711 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9713         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
9714         benefit of platforms like Solaris+GCC where it is common to have a
9715         non-working g++ installation.
9717 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9718         and Joel E. Denny  <jdenny@ces.clemson.edu>
9719         and Paul Eggert  <eggert@cs.ucla.edu>
9721         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
9722         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
9723         ./micro-suite.
9725 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9727         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
9728         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
9729         Imported from a similar patch to gnulib by Bruno Haible.
9731 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9733         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
9734         * doc/autoconf.texi (C Compiler): Document them.
9735         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
9736         New macros, taken from gnulib.
9738 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9740         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9741         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9742         Matthew Woehlke.
9744 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9746         * tests/torture.at (Configuring subdirectories): Do not skip
9747         Automake 1.10 nor future Automake 11.1 (sic).
9749 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
9750         and Stepan Kasal  <kasal@ucw.cz>
9752         Handle special characters in test case titles correctly.
9753         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
9754         properly.
9755         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
9756         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
9757         argument.  Extend to check titles printed by ./micro-suite and
9758         ./micro-suite -l and the title in micro-suite.log.
9759         (Backquote in a test title,
9760         Single-quote in a test title,
9761         Double-quote in a test title): Don't expect failure anymore.
9762         (Backslash in a test title): Put a non-whitespace character after the
9763         backslash so that Bourne shells might actually see it as an escape
9764         sequence.
9765         (Brackets in a test title,
9766         Pound in a test title,
9767         Comma in a test title,
9768         Quoted Macro in a test title,
9769         Macro in a test title,
9770         Macro with single-quote in a test title): New tests.
9771         (Macro with backquote in a test title,
9772         Macro with double-quote in a test title,
9773         Macro with backslash in a test title): New tests expected to fail.
9774         * tests/torture.at (#define header templates): M4-quote this title in
9775         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
9776         The visible effect was a stray [] in the testsuite output.
9778 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9780         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
9781         `trap ... 0' inside a function, for AIX sh.
9783 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9785         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
9786         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
9787         5363) simply issues a warning when dividing by zero at compile
9788         time.  Problem reported by Elias Pipping.
9790 2006-10-26  Eric Blake  <ebb9@byu.net>
9792         * THANKS: Update.
9793         * doc/autoconf.texi (Evaluation Macros): Improve the example to
9794         show effect on macros that expand with commas.
9795         Reported by Joel E. Denny.
9797         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
9798         Also work with M4 1.4.8.
9800 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9802         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
9803         Jim Meyering.
9805 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
9807         * tests/tools.at (autom4te --force): New test, verifies that
9808         `--force' always rewrites the output file.
9810 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9812         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
9813         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
9815 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
9817         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
9819 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9821         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
9822         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
9823         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
9824         reported by Nelson H. F. Beebe for Coreutils 6.4.
9826         * tests/tools.at (autoconf --trace: user macros): Remove test
9827         for tracing multiline macros, since m4 1.4.7a uses a different
9828         way to number lines.  Problem reported by Ralf Wildenhues.
9830 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
9832         * bin/autom4te.in (handle_m4): Do not redirect stdin to
9833         /dev/null since the heuristics for interactive behaviour was
9834         fixed in CVS m4.
9836         * bin/autom4te.in: With --force, always refresh the output
9837         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
9839         * bin/autoconf.as: Fix the verbose message at the end.
9841 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9843         * configure.ac (AC_INIT): Bump to 2.60c.
9844         * NEWS: Likewise.
9846 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9848         * NEWS: Version 2.60b.
9850         Import this change from Texinfo:
9851         2006-10-15  Karl Berry  <karl@gnu.org>
9852         * build-aux/texinfo.tex: automake 1.10
9854         * NEWS: Remove AC_CACHE_CHECK_INT.
9855         * doc/autoconf.texi (Caching Results): Likewise.
9856         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
9857         AC_CACHE_CHECK_INT, since it's no longer public.
9858         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
9859         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
9861 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9863         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
9865 2006-10-19  Eric Blake  <ebb9@byu.net>
9867         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
9868         (m4_maketemp): Avoid warnings with M4 1.9a.
9869         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
9870         m4_mkstemp.
9871         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
9872         * NEWS: Likewise.
9874 2006-10-16  Eric Blake  <ebb9@byu.net>
9876         * doc/autoconf.texi (Setting Output Variables): Fix typo.
9878         * bin/autoconf.as (version): Reword to match GNU Coding
9879         Standards.
9880         * bin/autoheader.in (version): Likewise.
9881         * bin/autom4te.in (version): Likewise.
9882         * bin/autoreconf.in (version): Likewise.
9883         * bin/autoscan.in (version): Likewise.
9884         * bin/autoupdate.in (version): Likewise.
9885         * bin/ifnames.in (version): Likewise.
9887 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
9889         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
9890         looking for special shell characters.
9891         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
9892         macro defined by AS_VAR_PUSHDEF before passing it as a
9893         parameter.
9894         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
9895         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
9896         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
9897         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
9898         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
9899         Likewise.
9900         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
9901         AS_VAR_* properly.
9902         * tests/m4sh.at (AS_LITERAL_IF): New test.
9904 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9906         (Imported from Automake.)
9907         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9908         which incorrectly sets the mode of an existing destination
9909         directory.  In some cases the unpatched install-sh could do the
9910         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9911         system.  We hope this is rare in practice, but it's clearly worth
9912         fixing.  Problem reported by Alex Unleashed in
9913         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9914         Also, don't bother to check for -m bugs unless we're using -m;
9915         suggested by Stepan Kasal.
9917 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9919         Import this change from Automake:
9921         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
9922         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
9923         is enabled by default with gnu and gnits strictness.
9924         Report from Bruno Haible.
9926         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
9927         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
9928         gnu and gnits modes.
9930         Import this change from Config:
9932         2006-09-20  Ben Elliston  <bje@gnu.org>
9933         * build-aux/config.sub (score, score-*): New.
9935         Import this change from Gnulib:
9937         2006-09-16  Karl Berry  <karl@gnu.org>
9938         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9939         to avoid sectioning errors.
9941         Import these changes from Texinfo:
9943         2006-10-04  Karl Berry  <karl@gnu.org>
9944         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
9945         (\quoteexpand): rename to \rquoteexpand.
9946         (\codequoteleft): new def, to look for @set codequotebacktick.
9947         (\lquoteexpand, \quoteexpand): new defs.
9948         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
9949         (\code): must use new \...Char values, since now ` is active.
9951         2006-08-26  Karl Berry  <karl@gnu.org>
9952         * build-aux/texinfo.tex (\textdegree): New command.
9954         2006-08-12  Karl Berry  <karl@gnu.org>
9955         * build-aux/texinfo.tex (error \box0): smaller font.
9957 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9959         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
9961 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
9963         * doc/autoconf.texi (Autoheader Macros): Warn that the text
9964         added to the template can get mangled.
9966 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9968         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
9969         include the default headers, and redefine obstack_chunk_alloc
9970         and obstack_chunk_free.  Fixes false failure with glibc.
9972 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9974         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
9975         for backward compatibility with Libtool 1.5.22.  Problem reported
9976         by Ralf Wildenhues.
9978 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9980         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
9981         AC_PROG_CC.
9982         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
9984 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9986         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
9987         the NonStop platform.
9988         * doc/autoconf.texi (Posix Variants): Likewise.
9989         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
9991         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
9992         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
9993         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
9994         Use a better substitute, by inspecting the output of "ls"
9995         rather than just using ":".
9996         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
9997         rather than AS_EXECUTABLE_P, since we needn't worry about
9998         non-regular files here.
10000         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
10001         due to configuration hassles with this.  See Tonya Underwood's report
10002         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
10003         * doc/autoconf.texi (Special Shell Variables): Likewise.
10005 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10006             Stepan Kasal  <kasal@ucw.cz>
10008         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
10009         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
10011 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
10013         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
10014           initialization which is not inherited through the environment
10015         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
10016         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
10018 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10020         * doc/autoconf.texi (Limitations of Usual Tools): Describe
10021         problems with mkdir -p -m.
10023 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10025         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
10026         comment about ac_cpp_err; it was incorrect, and anyway
10027         ac_cpp_err is being removed below.
10028         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
10029         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
10030         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
10031         nobody uses it.
10032         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
10033         with werror_flag and conftest.err and so forth.  This is more
10034         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
10035         and anyway the user shouldn't normally want to see this gorp logged.
10036         Problem reported by Ralf Wildenhues.
10037         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
10038         empty, not 'no', since the rest of the code uses 'test -z'.
10040 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
10042         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
10043         Use a single call to AC_DO_TOKENS rather than multiple, for
10044         efficiency.
10045         (_AC_LINK_IFELSE): Test that resulting file is executable.
10046         Problem reported by mwoehlke in
10047         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
10049         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
10050         than creating a file to use with test -x; this is much faster.
10052 2006-10-02  Bruno Haible  <bruno@clisp.org>
10054         * lib/autom4te.in (Automake-preselections): Add
10055         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
10057 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
10059         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
10060         standard error, `experr' should be used, not `expout'.
10062 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10064         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
10065         fseeko testing program twice; just use the earlier result.
10066         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
10067         Set cache var to 'unknown' (not 'no') if leaving the macro unset
10068         still doesn't let the program compile.
10069         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
10070         failed.
10072         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
10073         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
10074         include it, without including anything else.
10075         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
10076         expressions.
10077         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
10079 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10081         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
10082         `error.h', and include it, for a `error_at_line' prototype.
10083         Use a nonempty format string in the link test.
10084         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
10085         for a declaration of wait3.
10087 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10089         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
10090         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
10091         can apply to constants too, and that it checks for macro defns.
10092         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
10093         and simply cast the identifier to void.  This handles structure
10094         values.  Problem reported by Ralf Wildenhues.
10095         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
10097 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10099         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
10100         structure, and function symbols.
10102 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10104         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
10105         member.
10107 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10109         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
10110         * README: Likewise.
10111         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10113 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10114         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10116         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
10117         warnings (uninitialized value).
10118         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
10119         present.
10120         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
10121         parentheses.
10122         (AC_STRUCT_TM): Likewise, avoid unused variables.
10124 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10126         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
10127         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
10128         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
10129         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
10130         Report by Olly Betts.
10132 2006-09-19  Eric Blake  <ebb9@byu.net>
10134         * m4/m4.m4: Change copyright.
10135         * configure: Regenerate.
10136         * Makefile.in: Likewise.
10137         * bin/Makefile.in: Likewise.
10138         * doc/Makefile.in: Likewise.
10139         * lib/Makefile.in: Likewise.
10140         * lib/Autom4te/Makefile.in: Likewise.
10141         * lib/autoconf/Makefile.in: Likewise.
10142         * lib/autoscan/Makefile.in: Likewise.
10143         * lib/autotest/Makefile.in: Likewise.
10144         * lib/emacs/Makefile.in: Likewise.
10145         * lib/m4sugar/Makefile.in: Likewise.
10146         * man/Makefile.in: Likewise.
10147         * tests/Makefile.in: Likewise.
10149         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
10150         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
10151         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
10152         --error-output, to avoid warnings with M4 2.0.
10154 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
10156         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
10157           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
10158         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
10160 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
10162         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
10163         expansion of AC_CHECK_FUNCS.
10165 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
10167         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
10168         mistaken comment: the path has to be relative; do not use
10169         the path at runtime.
10171 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10173         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
10174         argument to `--prefix' for sub-configure scripts.
10175         Pass `--silent' to sub-configure scripts.
10176         * tests/torture.at (Configuring subdirectories): Add tests
10177         for both changes.
10178         * doc/autoconf.texi (Setting Output Variables): Fix example to
10179         not show `--silent' being passed to a `configure' re-run.
10181 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10183         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
10184         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
10185         for the existence of the directory at configure-time.  That's
10186         too late, anyway.  Problem reported by Stefan Seefeld.
10188         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
10189         7.1.4 /usr/bin/posix/sh described by Tim Rice in
10190         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
10192 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
10194         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
10195         works with GNU M4 1.4.3 again; make the normalized form
10196         match the current m4 message; fix the description.
10197         * test/tools.at (autom4te cache): Adapt to the change.
10199 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10201         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
10202         to catch glibc bug 2821
10203         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10205         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
10206         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
10207         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
10208         assume C89.
10210 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
10212         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
10213         preselections ...
10214         (Autoconf): ... here.
10215         (Autoscan-preselections): Delete.
10217 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
10219         * lib/autom4te.in (Automake-preselections): Preselect
10220         AM_ENABLE_MULTILIB.
10222 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10224         * doc/autoconf.texi (Preset Output Variables): srcdir and
10225         top_srcdir are not necessarily relative.  Problem reported
10226         by Dries Kimpe.
10228 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10230         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
10231         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
10232         accept files with extension `.f'.  For consistency, also prefer
10233         xlf over f77.
10234         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
10235         from last patch.
10237 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
10239         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
10240         of ERLANG_LIB_VER_* variables.
10241         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
10242         variables.
10244 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10245         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10247         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
10248         bugs of Bash 2.01 and 2.05a.
10249         (Fortran Compiler): Document that AC_PROG_CC should be called
10250         before AC_PROG_FC, due to a bug in Autoconf.
10252 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10254         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
10255         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
10256         except the first two arguments are reversed.
10257         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
10258         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
10259         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
10260         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
10261         equivalent to the old AC_COMPUTE_INT.
10262         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
10263         All uses changed to AC_CACHE_CHECK_INT.
10264         * tests/base.at (AC_CACHE_CHECK_INT): New test.
10265         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
10267 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10269         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
10270         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
10271         programs should use their Gnulib counterparts.
10272         * doc/autoconf.texi (Particular Functions): Likewise.
10273         (Macro Names, testsuite Invocation): Replace uses of these
10274         obsolete macros with uses of non-obsolete macros.
10276 2006-08-29  Eric Blake  <ebb9@byu.net>
10278         * configure.ac (AC_INIT): Bump to 2.60b.
10279         * NEWS: Update.
10281 2006-08-28  Eric Blake  <ebb9@byu.net>
10283         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
10284         mistakenly swapped on 2006-08-15.
10286 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10288         * NEWS: Version 2.60a.
10290 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
10292         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
10293         file created by the PGI compiler.
10295 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
10297         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
10298         simplify the code.
10300 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10302         Fix Lex library problem reported to us by Julio Garvia.
10303         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
10304         for the default, which the user can override.
10305         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
10306         deal with LEXLIB.
10307         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
10308         didn't work if some values were cached but not others.  Test for
10309         broken lex libraries like native ia64-hp-hpux11.22; see
10310         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
10311         work around the problem by preferring an empty LEXLIB to -lfl or
10312         -ll.  Let the user set LEXLIB='' to indicate no library needed.
10314         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
10315         * README: Likewise.
10316         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10318 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10320         Rework to use more-modern build style.
10321         Many files are renamed; all uses of their names were changed.
10322         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
10323         * .x-sc_useless_cpp_parens: New file.
10324         * build-aux/config.guess: Renamed from config/config.guess.  Update.
10325         * build-aux/config.sub: Renamed from config/config.sub.  Update.
10326         * build-aux/elisp-comp: Renamed from config/elisp-comp.
10327         * build-aux/install-sh: Renamed from config/install-sh.  Update.
10328         * build-aux/mdate-sh: Renamed from config/mdate-sh.
10329         * build-aux/missing: Renamed from config/missing.
10330         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
10331         * build-aux/vc-list-files: Renamed from config/vc-list-files.
10332         * config/Makefile.am: Removed.
10333         * config/mkinstalldirs: Removed.
10334         * config/move-if-change: Removed.
10335         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
10336         * Makefile.am (SUBDIRS): Remove config.
10337         (ACLOCAL_AMFLAGS): Include from m4, not config.
10338         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
10339         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
10340         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
10341         Fail if there's an error.
10342         * Makefile.cfg (move_if_change): Remove.
10343         (wget_files): Remove.
10344         (cvs_executable_files): New macro.
10345         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
10346         (executable-update): Use $(cvs_executable_files).
10347         (local-checks-to-skip): Remove.
10348         * Makefile.maint: Merge from coreutils, plus add our own changes
10349         (gzip_rsyncable): New macro.
10350         (GZIP_ENV): Use it.
10351         (CVS_LIST): Use build-aux/vc-list-files.
10352         (VERSION_REGEXP): New macro.
10353         (local-checks-available): Add patch-check, $(syntax-check-rules),
10354         check-AUTHORS.
10355         (syntax-check-rules): Compute dynamically.
10356         (sc_cast_of_x_alloc_return_value): Work even if no source files.
10357         (sc_cast_of_alloca_return_value): Likewise.
10358         (sc_prohibit_atoi_atof): Simplify regexp.
10359         (sc_no_if_have_config_h, sc_require_config_h):
10360         (sc_prohibit_assert_without_use,
10361         (sc_obsolete_symbols): Check for O_NDELAY.
10362         (sc_texi_notab): Remove.
10363         (sc-changelog): Don't make an exception for '----' lines.
10364         (.re-list): Remove, so we don't have a junk file behind.
10365         (sc_system_h_headers): Remove the need for .re-list.
10366         (sc_the_the):  New rule.
10367         (sc_tight_scope): Simplify.
10368         (sc_trailing_blank): Renamed from sc_trailing_space.
10369         (longopt_re): New macro.
10370         (sc_two_space_separator_in_usage): New rule.
10371         (sc_unmarked_diagnostics): Look at all files under CVS.
10372         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
10373         (news-date-check, changelog-check): Version is OK.
10374         (po-check): Look for lib files even if not in CVS.
10375         (copyright-check): Use $() not ``.
10376         (maintainer-distcheck): Do not depend on changelog-check.
10377         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
10378         Also check for -Wpointer-arith.
10379         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
10380         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
10381         Remove.
10382         (announcement): Add --gpg-key-id arg.
10383         (cvs-sv): Remove.
10384         (move_if_change): Just use mv.
10385         (local_updates: Remove wget-update, po-update.
10386         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
10387         (config.guess-url_prefix, config.sub-url_prefix): Remove.
10388         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
10389         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
10390         ($(get-targets)): Remove.
10391         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
10392         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
10393         (cvs-update): Get from gnulib.
10394         (emut_upload_commands): gnupload is in build-aux now.
10395         (alpha beta major): Add changelog-check.  Check version.
10396         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
10397         (AC_CONFIG_FILES): Remove.
10398         * bin/autoconf.as: Add spaces to avoid distcheck warning.
10399         * config/announce-gen: Sync from coreutils.
10400         * doc/make-stds.texi: Sync from gnulib.
10401         * doc/standards.texi: Likewise.
10402         * man/Makefile.am: Adjust for config -> build-aux renaming.
10403         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
10404         * tests/local.at: Adjust from config -> build-aux renaming.
10405         * tests/tools.at: Likewise.
10406         * tests/torture.at: Likewise.
10408         * NEWS: The C99 check now tests for vararg macros and 64-bit
10409         preprocessor ints.
10410         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
10411         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
10412         64-bit preprocessor ints.  Check for static initialization of
10413         long long.  Remove unnecessary casts.
10415 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10417         * doc/autoconf.texi (Particular Programs): Mention that
10418         @INSTALL@ and @MKDIR_P@ may vary for different output files.
10419         Reported by Alexandre Duret-Lutz.
10421 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10423         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
10424         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
10425         Bill Northcott in
10426         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
10428 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10430         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
10431         pacify insanely picky compilers.  Problem reported by Eric Blake.
10433         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
10434         longer supported by Sun.
10436 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10438         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
10439         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
10440         -Wundef -Werror".  Problem reported by David Fang in
10441         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
10442         * doc/autoconf.texi (Header Templates, Default Includes):
10443         (Particular Functions, Generic Functions, Header Portability):
10444         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
10445         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
10446         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
10447         Prefer #ifdef to #if.
10448         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
10449         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
10450         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
10451         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
10452         Likewise.
10453         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
10454         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
10455         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
10456         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10457         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
10458         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
10459         this.
10461 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10463         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
10464         problems with arg script text that doesn't end in newline, and
10465         with '-e a...'.  Problems reported by Ralf Wildenhues.
10467 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
10469         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
10470         check for libXt by a check for libX11.
10472 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10474         * doc/autoconf.texi (config.status Invocation): Adjust according
10475         to last change.
10477 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10479         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
10480         --help' should mention that `--version' outputs configuration
10481         settings.  Report by Bruno Haible.
10483 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10485         Fix test suite failures reported by Pierre in
10486         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
10487         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
10488         the compiler created a file "b.out" when it didn't create anything
10489         at all.
10490         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
10491         Discard stderr too, when invoking the test script.
10493 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
10495         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
10496         in the restoring of the werror flag.
10498 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10500         * doc/autoconf.texi (Volatile Objects): Be even a little
10501         less skeptical about "volatile", after discussion with
10502         Bruno Haible on bug-gnulib.
10503         (Limitations of Usual Tools): Warn about sed stripping
10504         leading white space from text.  From Bruno Haible.
10506 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
10508         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
10509         compiler complains about it, even if things works after the
10510         complaint.  Problem reported by Peter O'Gorman.
10512         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
10513         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
10514         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
10516 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
10518         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
10519         after -R regardless of host.  Patrick Welche reports that this
10520         fixes things on NetBSD 3.99.
10522         * NEWS: Recommend M4 1.4.5.
10523         * README: Likewise.
10524         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
10525         * tests/tools.at (autom4te cache): Update wording of diagnostic
10526         to match M4 1.4.5.
10528 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10530         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
10531         under AC_C_VOLATILE.
10532         (Volatile Objects): Be a little less skeptical about what
10533         "volatile" means.  Derived from thoughts by Ben Pfaff in
10534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
10536 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10538         * doc/autoconf.texi: Fix some typos.
10540 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10542         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10543         more globally, since the 2006-06-30 patch didn't suffice.  Problem
10544         reported by Keith Marshall.  Also, don't bother with builddir2,
10545         since it shouldn't be needed any more.
10547 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
10549         * doc/autoconf.texi (Generic compiler characteristics):
10550         Document AC_COMPUTE_INT.  Fix wrong statements on Default
10551         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
10553         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
10554         (_AC_COMPUTE_INT): Add obsoletion warnings.
10555         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
10556         AC_COMPUTE_INT.
10558         * NEWS: Document change.
10560 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10562         * doc/autoconf.texi (Volatile Objects): New section.
10564         * NEWS: Document previous change.
10566 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10568         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
10569         Require that long long int be at least 64 bits wide.  C99 requires
10570         this and enough programs depend on it so we should check for it.
10571         Bruno Haible reports in
10572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
10573         that long long int is 32 bits wide with some nonstandard compilers.
10574         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10576 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10578         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
10579         to a nonexistent file, so that we don't have to worry about
10580         a local site configuration that doesn't use /usr/local.
10581         Problem reported by Keith Marshall in
10582         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
10584 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
10586         * doc/autoconf.texi: Be more consistent about using @acronym with
10587         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
10588         quite right (it talked about "OSF/Tru64", even though the
10589         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
10590         and it even mentioned "OSF 4"!) and at this point there's little
10591         reason to talk about OSF any more, since it died in 1994.
10592         (Specific Compiler Characteristics): Simplify example of
10593         negative-size array.
10594         (File Descriptors): Reorder to make the text flow better.
10595         Remove joke about "appreciate the various levels"; I didn't get it.
10596         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
10597         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
10598         (File Descriptors, Limitations of Usual Tools):
10599         Tone down the advice against renaming or removing open files.
10600         (Limitations of Usual Tools): Add a new section, on 'rm'.
10602 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
10604         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
10605         -lXt in LIBS, idea from Karsten Hopp; this was due since
10606         this change:
10608         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10609         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
10610         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
10611         (which belong to Xt, not X itself).  See Debian bug 327655.
10613 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10615         * configure.ac (AC_INIT): Bump to 2.60a.
10616         * NEWS: Update.
10618 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10620         Version 2.60.
10622         * configure.ac, NEWS: Update.
10624 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10626         * config/texinfo.tex: Sync from upstream.
10628         * bin/autom4te.in (handle_traces): Transform the `@S|@'
10629         quadrigraph correctly in traces.
10631         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
10632         Fix typos.
10634         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
10635         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
10636         not defined.
10637         * doc/autoconf.texi (Changed Directory Variables): New node,
10638         to document the whole `datarootdir' business a bit better.
10639         * NEWS: Update.
10640         * tests/torture.at (datarootdir workaround): Extend test.
10641         Prompted by report by Alexandre Julliard.
10643 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
10645         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
10646         when using default mode of IBM C 6 for AIX.  Problem and two-line
10647         fix reported by Larry Jones.
10649 2006-06-22  Alexandre Julliard <julliard@winehq.org>
10651         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
10652         about literal '${datarootdir}' if a definition is found in the
10653         output file.
10655 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10657         * NEWS: Use "M4" rather than "m4" when appropriate.
10658         Problem reported by Eric Blake.
10659         * doc/autoconf.texi: Likewise.
10660         Use @acronym around BSD, GCC, and GNU when appropriate.
10661         (Why GNU M4): Renamed from "Why GNU m4".
10662         (Redefined M4 Macros): Mention that Posix
10663         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
10664         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
10665         to int.
10667 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10669         * bin/autom4te.in (handle_output): Do not forbid the empty
10670         pattern.
10671         * tests/tools.at (autoconf: the empty token): New test.
10673 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
10675         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
10676         calls, so that we do not care whether they are LIFO or FIFO;
10677         in the m4_wrap, do not check which diversion is the topmost
10678         one, just check that the stack is balanced at the end.
10679         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
10680         base diversion forever--pop the previous diversion before
10681         opening the new one; consequently, remove the m4_wrap call.
10682         * lib/autotest/general.m4 (AT_INIT): Likewise.
10683         * tests/m4sugar.at: Do not use
10684         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
10686 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
10687         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10689         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
10690         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
10691         Rework example of m4wrap token-pasting trouble so that it doesn't
10692         care whether it's LIFO or FIFO.
10693         Fix some "contrary to"s that are awkward in English.
10695 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10697         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
10698         to `yes' instead of `int$1_t' if the type is found, for more
10699         consistent configure output (where $1 is the number of bits).
10700         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
10701         Suggested by Bruno Haible.
10703         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
10704         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
10705         with system headers.  Report by Bruno Haible.
10707 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10709         * config/config.guess, config/config.sub: Sync from upstream.
10711         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
10712         in order to avoid picking up an older installed frozen m4sh.m4f.
10713         Besides an outdated shell startup, this could have been created
10714         by an earlier M4 version with incompatible frozen file format.
10716 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10718         * README: Recommend m4 1.4.4 instead of 1.4.3..
10719         * doc/autoconf.texi: Likewise.
10720         (Special Chars in Names): Say that $(.FOO) is portable, as
10721         suggested by Stepan Kasal.
10722         (Installation Directory Variables, Build Directories):
10723         (Automatic Remaking, Subdirectories, Fortran Compiler):
10724         (Making testsuite Scripts, Defining Directories):
10725         Quote variable usages better.
10726         (Making testsuite Scripts): Add clean-local rule to makefile
10727         snippet, by Eric Blake.
10728         (Installation Directory Variables): Fix table item font.
10729         Reword slightly to clarify.  Generalize advice about
10730         not using special characters to include all file-related
10731         vars, not just VPATH.
10732         (Special Chars in Variables): Warn about special characters in
10733         $(srcdir) too.
10734         (Assignments): Clarify default-value example as suggested by
10735         Ralf Wildenhues in
10736         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
10737         (Special Shell Variables): Note leading ./ or ../, as suggested
10738         by Eric Blake.
10739         (Limitations of Builtins): Under cd, warn about CDPATH.
10740         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
10741         Ralf Wildenhues.
10743 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10745         * doc/autoconf.texi (Configuration Actions): Remove duplicate
10746         `@var', for texi2html.
10747         (Systemology): Some more word wrapping, for DVI output.
10748         (autom4te Invocation): The short option for `--melt' is `-M',
10749         not `-m'.
10751 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10753         * doc/autoconf.texi: More formatting and English tweaks,
10754         many suggested by Ralf Wildenhues.
10755         Reword to avoid "@code{...}'s" and the like, since it's ugly
10756         with Emacs info mode.  discontents -> woes.
10757         Put a few "will"s back.  time stamp -> timestamp.
10758         side-effect -> side effect.
10760 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10762         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
10763         Warn about $@ not persisting.  Problem reported by Julien Danjou in
10764         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
10765         (Special Chars in Names): Renamed from Leading _ in Macro Names.
10766         Mention other special chars, too.
10768 2006-06-14  Eric Blake  <ebb9@byu.net>
10770         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
10772 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10774         * doc/autoconf.texi: Some systematic minor improvements, as
10775         follows.  Use "makefile" when talking about makefiles
10776         generally (which might be named "makefile" or "Makefile" or even
10777         "foo.mk"), "Makefile" when talking about a specific makefile
10778         called "Makefile".  This unclutters the text from weird quotes
10779         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
10780         values" rather than "@var{foo}s" and similar constructs containing
10781         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
10782         English-language improvements.  Change the prefix "sub-" to "sub"
10783         and "re-" to "re".
10784         Put blank lines around examples more consistently.
10785         Avoid "rather" and "very" as intensifiers.
10786         Avoid "will" as an auxiliary.
10787         (Limitations of Make): Split this node into....
10788         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
10789         (Leading _ in Macro Names, Backslash-Newline-Newline):
10790         (Backslash-Newline Comments, Long Lines in Makefiles):
10791         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
10792         (obj/ and Make, make -k Status, VPATH and Make):
10793         (VPATH and Double-colon, $< in Explicit Rules):
10794         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
10795         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
10796         New nodes, resulting from splitup of Limitations of Make.
10797         All cross-references changed.  Raise the top node from
10798         a section to a chapter, and all subnodes accordingly.
10799         Redo the introductory wording to match the new organization.
10800         (Installation Directory Variables): Use an example that is
10801         closer to what Autoconf actually does.  Mention that VPATH's
10802         value should not contain metacharacters or white space.
10803         (Fortran Compiler): Fix a VPATH bug in an example.
10804         (Leading _ in Macro Names): Mention that this problem is no longer
10805         of practical concern.
10806         (VPATH and Make): Reword the advice to make it clearer
10807         that Autoconf and Automake support VPATH in non-GNU make, but
10808         many packages have bugs in this area.
10809         ($< in Explicit Rules): Refer to Build Directories rather
10810         than using a (non-VPATH-safe) example.
10811         (Automatic Rule Rewriting): Mention the sort of disaster that
10812         can ensue with Solaris-style rule rewriting with VPATH.
10814 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10816         * doc/install.texi (Compilers and Options): Weaken the
10817         suggestion to use GNU make for VPATH builds.
10819         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
10820         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
10822         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
10823         in regular expression.
10825 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10827         * doc/autoconf.texi (Installation Directory Variables):
10828         Drop extra @samp from `@table @samp' item.
10829         (Limitations of Usual Tools): Comment fix.
10830         Do not nest @samp just to point to other table items.
10831         (Writing testsuite.at) <AT_CHECK>: The second argument to
10832         `@dvar' is already @samp'ed.
10833         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
10834         do not use @var in the second argument.
10836 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10838         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
10839         $as_shell.exe too.  Problem reported by Andreas Buening in
10840         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
10842 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10844         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
10845         `unused variable' compiler warning, for `-Wall -Werror'.
10846         Reported by Jaap Haitsma in
10847         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
10849 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10851         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
10852         case the compiler dumps core.  Problem reported for
10853         OpenServer 5.0.7 by Tim Rice in
10854         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
10855         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
10856         Likewise.
10858 2006-06-06  Tim Rice <tim@multitalents.net>.
10860         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
10861         "ERROR" only shows up in "make check" output if there is an
10862         error.
10864 2006-06-06  Eric Blake  <ebb9@byu.net>
10866         * tests/tools.at (automatically allowed tokens): Fix typo.
10868 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10870         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
10872         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
10873         typically overflows on x86 CPUs, even though the C standard
10874         requires otherwise.
10876 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10878         * configure.ac (AC_INIT): Bump to 2.59e.
10879         * NEWS: Update.
10881 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10883         Version 2.59d.
10885         * config/texinfo.tex: Sync from upstream.
10887         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
10888         seen, invoke libtoolize with `--ltdl' argument.
10889         * lib/autom4te.in (Autoreconf-preselections): Adjust.
10890         * NEWS: Update.
10891         Suggested by Eric Blake.
10893 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10895         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
10896         reported by Ralf Wildenhues.
10897         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
10899 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10901         * THANKS: Update.
10903 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10905         * doc/autoconf.texi: Modernize some of the references to Solaris.
10907 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
10909         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
10910         message issued by AC_REQUIRE.
10911         * tests/m4sugar.at: Check m4_require's error message.
10912         * tests/base.at: Check AC_REQUIRE's error message.
10913         * tests/local.at (AT_CHECK_M4): New macro, almost identical
10914         to...
10915         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
10916         AT_CHECK_M4.
10917         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
10918         `expout' as the last parameter.
10919         * tests/tools.at: Adapt to the above change.
10921 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
10923         * doc/autoconf.texi (Limitations of Usual Tools): Correct
10924         information about race-free implementations of mkdir.
10926 2006-06-04  Eric Blake  <ebb9@byu.net>
10928         * bin/autoreconf.in (help): Document M4 environment variable.
10929         * bin/autoconf.as (Usage): Likewise.
10930         * bin/autom4te.in (help): Likewise.
10931         * doc/autoconf.texi (autom4te Invocation): Likewise.
10933 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10935         * NEWS: GNU make now recommended for VPATH builds.
10936         Mention that some macros are now documented to be obsolescent.
10937         * doc/autoconf.texi:
10938         Prefer "current" to "modern" to describe
10939         currently-used (albeit perhaps old-fashioned) hosts.
10940         Mention which ancient features no longer need to be worried about.
10941         setgid -> set-group-ID
10942         setuid -> set-user-ID (these are the Posix terms)
10943         Fix some misuses of "only".
10944         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
10945         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
10946         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
10947         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
10948         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
10949         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
10950         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
10951         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
10952         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
10953         Mention that these macros are obsolescent.
10954         (Installation Directory Variables): shall -> should
10955         (File Descriptors): Mention that 0, 1, 2 might get reopened.
10956         Mention that it's now safe to use 3 and 4.
10957         (Limitations of Usual Tools): cp -r is now specified by Posix.
10958         Omit longwinded and obsolescent discussion of cp -f.
10959         Modernize discussion of expr, ls.
10960         (Limitations of Make): Modernize discussion of VPATH builds.
10961         Mention $? as a workaround in some cases.
10962         * doc/install.texi (Basic Installation):
10963         Mention "./configure; make; make install" first.  Be more
10964         specific about why this file is generic.  Remove unnecessary
10965         parens.  Remove misleading "only".  Remove obsolete advice
10966         about csh.  Don't say "configure" takes awhile; say it
10967         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
10968         and CC=c99 rather than CC=c89, as these are blessed by current
10969         Posix.  Recommend GNU make if doing a VPATH build.
10971 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
10973         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
10974         examples involving shell prompts.
10976 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
10977         and Paul Eggert  <eggert@cs.ucla.edu>
10979         * doc/autoconf.texi (Here-Documents): Add details about the
10980         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
10981         use "here-documents" instead of "here documents".
10983 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10985         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
10987 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10989         * doc/autoconf.texi (File System Conventions): Warn about ":"
10990         anywhere in directory names.
10992 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10994         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
10995         about quoting the case statement, just in case.
10996         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
10997         was fixed in ksh93g; reported by Ralf Wildenhues.
10999 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
11001         * doc/autoconf.texi (System Services): Do not document
11002         overriding EXEEXT via ac_cv_exeext=ext.
11003         (Particular Programs) <AC_PROG_MKDIR_P>:
11004         Document that ${MKDIR_P} understands --.
11005         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
11006         comment.
11008 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11010         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
11011         argument with leading hyphen.  Problem reported by Paul Eggert.
11013 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11015         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
11016         about quoting ac_try: quote all of it, if any of it seems suspicious.
11017         This means we don't have to worry about ${ or sed any more.
11018         Also, double-quote the case statement, to work around misuses via
11019         underquoting as reported by Ralf Wildenhues in
11020         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
11021         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
11022         undocumented and dangerous macro.
11023         Problem reported by Ralf Wildenhues in
11024         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
11026 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11028         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
11029         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
11030         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
11032 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11034         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
11035         since evidently some packages rely on the old, broken behavior.
11036         Problem reported by Ralf Wildenhues in
11037         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
11038         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
11039         pre-2006-05-26 definitions, but leave in the comments that
11040         these macros are dangerous and should not be used.
11041         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
11042         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
11043         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
11044         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
11045         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
11047 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11049         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
11050         the use of 'tr', since this is our only use of 'tr'.
11052 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11053         and Paul Eggert  <eggert@cs.ucla.edu>
11055         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
11056         Don't assume 'grep' works on long lines, since AIX grep doesn't.
11058 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11060         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
11061         the output file in the `${datarootdir}' test.
11063 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
11064         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11066         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
11067         mention of `datarootdir' in the input file(s), but literal
11068         `${datarootdir}' in the output file, and we haven't warned yet,
11069         then warn as well: the user may have (erroneously) used
11070         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
11071         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
11072         * tests/torture.at (datarootdir workaround): Extend this test.
11073         * NEWS: Update.
11075 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11076         and Paul Eggert  <eggert@cs.ucla.edu>
11078         * doc/autoconf.texi (autoheader Invocation): The first argument to
11079         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
11080         alternatives and clear up the language a bit.
11082 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11084         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
11085         ac_config_guess, ac_config_sub, ac_configure.
11086         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
11087         Fix typo that prevented an unnecessary space from being removed.
11088         Problems reported by Ralf Wildenhues in:
11089         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
11091 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
11093         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
11094         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
11095         Don't use the term "thread-safe" to talk about mkdir race
11096         conditions, since the problem is more a process than a thread
11097         issue.  Problem reported by Stepan Kasal in:
11098         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
11099         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
11100         the test for 'install' more closely.  Look at MKDIR_P first.
11101         Look in the PATH, and at /opt/sfw/bin.
11102         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
11103         Don't bother to try mkdir -p, since we already check mkdir --version;
11104         just look at the version number.  (There's no easy way to check
11105         for race-free implementations.)
11106         * tests/tools.at (autoconf: subdirectories): Adjust to above
11107         changes, since MKDIR_P now might end in "/mkdir -p".
11109         * doc/autoconf.texi (autoheader Invocation): Mention that the
11110         first arg of AC_DEFINE_UNQUOTED must be a literal.
11111         Problem reported by Ben Pfaff in
11112         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
11114         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
11115         * doc/autoconf.texi (Special Chars in Variables): New section.
11116         (Preset Output Variables): Warn about special chars in CPPFLAGS.
11117         (Installation Directory Variables): Quote $(datadir) better.
11118         (Limitations of Builtins): Describe some of eval's trickiness.
11120         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
11121         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
11122         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
11123         in front of every arg, not just trailing args.  Quote apostrophes.
11124         (_AC_EVAL_ECHO): New macro.
11125         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
11126         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
11127         removed.
11128         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
11129         exposed by quoting of eval argument.  Put the command on line line
11130         so it logs better.
11131         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
11132         (_AC_PATH_X, AC_PATH_X): Quote more safely.
11133         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
11134         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
11135         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
11136         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
11137         Use eval more safely.
11138         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
11139         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
11140         to be replaced.
11141         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
11142         lines, exposed by quoting of eval argument.
11144 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
11145         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11147         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
11148         initialization of `ac_cv_exeext', do not override it if it was
11149         already set, unless it was set to `no', for compatibility with
11150         Autoconf-2.13, and comment this.
11151         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
11152         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
11153         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
11154         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
11155         Document that this test may be overridden by setting
11156         `ac_cv_exeext'.
11158 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11160         Revert these two patches:
11162         2006-04-06  Eric Blake  <ebb9@byu.net>
11163         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
11164         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
11165         2006-04-01.
11167         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11168         Clean up _AC_COMPILER_EXEEXT* macros.
11169         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
11170           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
11171           ac_file to the name of the default output file and call
11172           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
11173           initial `rm' of the candidate files...
11174         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
11175           the same list in subsequent `rm' calls, and for the temporary
11176           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
11177           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
11178         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
11179         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
11180           no longer needed) by libtool.  Make it a cache check.
11181         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
11182           copied here by mistake.
11183         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
11184           _AC_COMPILER_EXEEXT.
11185         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
11186           _AC_COMPILER_OBJEXT directly.
11187         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11189 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11191         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
11192         Fix description of how the buggy `sed' works.
11194 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
11196         Sync from Automake:
11198         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
11199         ENOLCK.  Only mention `make -j' when applicable.  Only raise
11200         fatal errors when `make -j' is involved.  Improve error message.
11202 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11204         * doc/autoconf.texi (Here-Documents): We now know more about
11205         the variable expansion in here documents bug.
11206         Thanks to Tim Rice and Stepan Kasal.
11208         * doc/autoconf.texi (Making testsuite Scripts): Add an example
11209         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
11211 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11213         * tests/autotest.at (Multiline command from M4 expansion):
11214         No failure to be expected if the shell quotes newlines in
11215         commands in the `set -x' output.  Report by Tim Rice.
11216         * THANKS: Update.
11218 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11220         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
11221         expansion in the here-documents used by config.status, as that
11222         runs afoul of the Korn shell version M-12/28/93d bug described in
11223         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
11224         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
11225         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
11227 2006-05-23  Jim Meyering  <jim@meyering.net>
11229         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11230         Fix typo introduced with 2006-04-02 change.  It reversed the sense
11231         of the test.
11233 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11235         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
11236         ac_dB slightly, to save bytes in the script.
11237         Max out at 50 lines, rather than 96; this is more likely
11238         (though not guaranteed) to avoid obscure 'sed' failures.
11240 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11242         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
11243         `tr -d -' as bad option argument.  Work around this by deleting
11244         an unrelated character.
11245         Report by Tim Rice <tim@multitalents.net>.
11247 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
11248             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
11249             Stepan Kasal  <kasal@ucw.cz>
11251         * doc/autoconf.texi (Particular Programs): Do not promise that
11252         we always prefer the GNU version of the program, and that we
11253         search according to PATH; both rules can have exceptions.
11254         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
11255         AC_PROG_SED.  Move descriptions of limitations
11256         to the Limitations of Usual Tools section.
11257         (Limitations of Usual Tools) <sed>: Mention script length
11258         limitations with Solaris /usr/ucb/sed.
11259         <grep>: Fix wording for empty alternative.  Mention that -c and
11260         -l should not be combined, and that -E and -F should not be
11261         combined.
11263 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11264         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11266         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
11267         limits in Solaris 8 /usr/ucb/sed by testing a long script.
11269 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
11271         * doc/autoconf.texi (Defining Symbols): Literal parameter of
11272         AC_DEFINE is now passed to m4_pattern_allow.
11273         * NEWS: Mention that; likewise for AC_SUBST.
11274         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
11275         the parameter to m4_pattern_allow.
11276         * tests/tools.at: Add a check for that.
11278 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
11280         * lib/autoconf/status.m4: Fix typos.
11282 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11284         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11285         only the files that this macro generates.
11287 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11289         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
11290         the HP-UX sed limitation of 99 commands, labels do not count.
11291         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
11292         in the comment.
11293         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
11295 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11297         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
11298         Import the following fix from coreutils:
11300         2006-01-13  Jim Meyering  <jim@meyering.net>
11302         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
11303         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
11304         not double-quote uses of that variable, to accommodate the rare
11305         case in which getmntent is available in none of the libraries
11306         checked.  This happens at least on FreeBSD 5.0.
11308 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11310         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
11311         ac_config_guess, ac_config_sub, and ac_configure, since evidently
11312         some other programs unwisely rely on these undocumented vars.
11313         But put in warning comments about them.
11314         Problem reported by Ralf Wildenhues in
11315         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
11316         * NEWS: Document that these variables are intended to go away.
11318 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11320         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
11321         and set the language to C++ (analogous to the equivalent Fortran
11322         tests).
11324         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
11325         * doc/autoconf.texi (C++ Compiler): Document it.
11326         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
11327         * NEWS: Update.
11329 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11331         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
11332         that caused config.status to generate 100-command sed scripts; the
11333         portable limit is 99.
11335 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11337         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
11338         variable `ac_d' instead of `d' to avoid infringing namespace.
11339         Report by Ralf Menzel.
11341 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11343         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
11344         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
11345         * tests/tools.at (autoconf: subdirectories): New test, taken from
11346         the corresponding problem report by Ralf Wildenhues in:
11347         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
11349         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
11350         Quote some uses of shell variables if they might suffer unexpected
11351         globbing.  This doesn't fix all instances of quoting problems that
11352         I found, just the easy ones that look safe.
11353         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
11354         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
11355         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
11356         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
11357         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
11358         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11359         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
11360         Likewise.
11361         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
11362         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
11364 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11366         * bin/autoreconf.in ($help): Reword according to the manual.
11367         Suggested by Olly Betts.
11369 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
11370         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11372         * bin/autoreconf.in: Pass the directory argument to
11373         `require_configure_ac'.  Fix comment.
11374         * tests/torture.at (Configuring subdirectories): Expose this.
11375         Reported by Olly Betts.
11377 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11379         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
11380         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
11381         Automake as follows:
11383         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
11384         `$configure_in' instead of `configure.in', to preserve
11385         directory component.
11387 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11389         * config/config.guess, config/config.sub, config/texinfo.tex,
11390         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
11392 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11394         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
11395         test for C99 conformance; (bool) 0.5 is an integer constant
11396         expression, but (bool) -0.5 is not.  Problem reported by Fedor
11397         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
11399 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11401         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
11402         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
11403         Warn about obsolete install-sh files.  Remove stray sentence
11404         fragment and fix cross reference.
11405         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
11406         install -d; this undoes the 2006-05-10 change.
11407         (MKDIR_P): Mark with AN_MAKEVAR.
11408         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
11409         that we don't require $INSTALL to be thread-safe.  Move comments
11410         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
11411         of AC_PROG_INSTALL.  Output a message saying that we're checking
11412         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
11413         MKDIR_P instead of AC_SUBST.
11414         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
11415         Special magic for MKDIR_P, too.
11416         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
11417         a dnl.
11418         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
11420 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11422         Sync from Automake, as follows:
11424         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11425         * config/install-sh: Initialize IFS, so field splitting isn't
11426         turned off later.
11427         * config/mkinstalldirs: Likewise.
11428         * config/missing: Remove superfluous quotes.  Replace all uses of
11429         `[' by `test', for consistency, and for..
11430         * config/missing (sed_minuso, sed_output): New variables.
11431         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
11432         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
11433         Fixes `missing' to detect `--output' for help2man.  Fixes
11434         PR automake/483.  Report by Dennis J. Linse.
11435         (autom4te): Document in `missing --help'.
11437 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11439         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
11440         * config/install-sh: Don't use 'path' to talk about file names,
11441         as per GNU coding standards.  Close a race condition reported by Ralf
11442         Wildenhues and Stepan Kasal.  There is still a race condition
11443         on hosts that predate Posix 1003.1-1992, but we can't help this.
11444         Don't mishandle weird characters like space on pre-Posix hosts.
11445         Invoke mkdir at most once per dir arg on pre-Posix hosts.
11446         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
11447         AC_PROG_MKDIR_P from AS_MKDIR_P.
11448         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
11449         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
11450         earlier editions are not (including Automake 1.8.3).
11451         Do not suggest mkinstalldirs for thread-safety.
11452         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
11453         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
11454         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
11455         presence of special characters and race conditions.
11456         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
11457         in Autoconf's name space.
11459 2006-05-10  Bruno Haible  <bruno@clisp.org>
11460         and Paul Eggert  <eggert@cs.ucla.edu>
11462         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
11463         from Automake with minor changes.
11464         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
11466 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11468         * config/install-sh: Update to Automake CVS version, as follows:
11469         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
11470         * lib/install-sh: Simplify the expr implementation of dirname.
11471         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11472         * lib/install-sh: Handle --, and diagnose unknown options.
11474 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11476         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
11477         `./autom4te' to create `./testsuite', since the `all' target
11478         will ensure its presence, but `installcheck' should not create
11479         the uninstalled wrappers.
11481         * tests/torture.at (Unusual Automake input files): Skip if we
11482         detect automake < 1.8.
11484 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11486         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
11487         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
11488         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
11489         * NEWS: Update.
11491 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11493         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
11494         munge (multiple) white space and other oddities.
11495         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
11496         single quotes in variable assignment.
11497         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
11498         and similar failures by adding multiple spaces, tabs, and other
11499         special characters.
11500         Report and different test suggested by Francesco Romani
11501         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
11503         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
11504         single quotes, we only need to search for single quotes; this
11505         both simplifies the search pattern, and makes us less
11506         susceptible to `echo' variations for arguments not containing
11507         single quotes.
11508         (_AC_ARG_VAR_VALIDATE): Likewise.
11510 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11512         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
11513         `$*' and IFS concatenation issue with traditional shells and
11514         bash-2.04.  Report by Seanster@Seanster.com.
11516 2006-05-03  Bruno Haible  <bruno@clisp.org>
11518         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
11519         precisely which Mac OS X versions have the od problem.
11521 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11523         * doc/autoconf.texi: Use @option systematically.
11525 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11526         and Bruno Haible  <bruno@clisp.org>
11528         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
11529         about 'od'.
11530         (Integer Overflow): Mention the special case of integer division
11531         overflow.
11533 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11535         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
11536         traditional shells like the Solaris one that do not use the
11537         first IFS character for assembling `$*'.
11538         Prompted by a related report from autoconf_bug@nro.ca.
11540 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11541         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11543         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
11544         Mention more problems with the -e option.
11546 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11548         * NEWS: Typo.
11549         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
11551         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
11552         in URLs to improve DVI formatted output (requires texinfo 4.6).
11553         (System Services, Systemology, Shellology): Likewise.
11554         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
11555         output.
11557         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
11558         continuous text.
11559         (Runtime): Fix macro argument names to match description:
11560         `action-if-found' -> `action-if-true' and similarly.
11561         (Obsolete Macros): Likewise.
11562         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
11563         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
11564         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
11566 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11568         * doc/autoconf.texi (Limitations of Make): Clean up markup.
11570         * ChangeLog: Typo.
11571         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
11572         DVI output.
11574 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11576         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
11577         /bin/sh set unsorted output.
11578         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
11579         * tests/local.at: Likewise.
11581 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11583         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
11584         (Integer Overflow, Null Pointers, Buffer Overruns):
11585         (Floating Point Portability, Exiting Portably): New sections.
11586         (Writing Test Programs): Fix some langauge.  Recommend exiting
11587         with status 1, not merely nonzero.  Clarify exit declaration.
11588         (Run Time): Move C exit status stuff to new Exiting Portably section.
11589         (Systemology): Mention Posix and levenez.  Update v7 reference.
11590         (Portable Shell): Mention the Posix shell.
11592 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
11594         * bin/autoconf.as (me): Replace by as_me.
11596 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11598         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
11599         since as_me isn't set yet.
11601 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11603         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
11604         a few minor bugs in this area.
11606         * doc/autoconf.texi (Programming in M4sh): Comment out the
11607         documentation of AS_BASENAME, for now.
11608         (Shell Substitutions): Do not use AS_DIRNAME in an example.
11609         (Limitations of Builtins) <basename>: Do not refer to
11610         AS_BASENAME.
11611         * bin/autoconf.as (me): Don't use AS_BASENAME.
11612         (dir): Remove the unused variable.
11613         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
11614         AS_DETECT_REQUIRED.  All uses changed.
11615         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
11616         All uses changed.
11617         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
11618         (AS_BASENAME): Use "basename --" to protect against leading "-".
11619         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
11620         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
11621         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
11622         (_AS_DIRNAME_PREPARE): Likewise.
11623         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
11624         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
11625         (AS_DIRNAME): Use "dirname --".
11627 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11629         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
11630         of "run time" and "run-time" changed to "runtime", for consistency.
11631         * lib/autoconf/fortran.m4: Likewise (in comment).
11632         * lib/autoconf/functions.m4: Likewise.
11633         * lib/autoconf/general.m4: Likewise.
11634         * lib/autoconf/headers.m4: Likewise.
11636         * doc/autoconf.texi (Run Time): Document the exit status situation
11637         with more accuracy and detail.
11639 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11641         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
11642         Archive is not officially `GNU' any more.  Update URL.
11643         (Defining Directories): Likewise
11644         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
11646 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11648         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
11649         newline from the `trap' code to finish `config.log'; the NetBSD
11650         /bin/sh resets the exit status after an empty command, as
11651         documented in doc/autoconf.texi.
11652         Reported by Dalibor Topic <robilad@kaffe.org>.
11654 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
11656         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
11657         Suggested by Bruno Haible.
11659 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
11661         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
11662         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
11663         Instead, just list the shells that we know work.
11664         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
11665         changed.  Be more cautious about the _cv_ variable.
11666         * tests/tools.at (Syntax of the shell scripts): Check the
11667         _cv_ variable once, at first, to avoid an internal autoconf error
11668         when sh -n does not work.
11670 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11672         * lib/Autom4te/FileUtils.pm: Sync from Automake.
11674 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
11676         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
11677         use ">&-" since we're only 99.999% sure that this is portable,
11678         and since the MinGW bug is fixed in a different way.
11679         * lib/autotest/general.m4 (AT_INIT): Likewise.
11681 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
11683         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
11684         before opening config.log, to avoid hitting a bug on MinGW.
11686 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11688         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
11689         AS_MESSAGE_LOG_FD before reopening it onto the log file.
11690         This works around a MinGW bug reported by Eric Paire.
11691         Make sure that all writes to the log file append to it,
11692         rather than possibly losing data.
11693         * lib/autotest/general.m4 (AT_INIT): Likewise.
11695 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
11697         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
11698         description.
11700 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11702         * NEWS: Update.
11704         * configure.ac (AC_INIT): Bump to 2.59d.
11706 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11708         Version 2.59c.
11710         * Makefile.maint (news-date-check): Do not require a leading `*'
11711         before the release date in NEWS.
11713 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
11714         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11716         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
11717         the instantiated file do not contain the string 'datarootdir'
11718         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
11719         @mandir@, replace the reference '${datarootdir}' by the value.
11720         * tests/torture.at (datarootdir workaround): New test.
11721         * NEWS: Advertise this temporary fixup.
11722         Based on a patch by Bruno Haible, reported and analyzed by
11723         Paul Eggert and Noah Misch.
11725 2006-04-12  Eric Blake  <ebb9@byu.net>
11727         * tests/autotest.at (Debugging a failed test): Fix comment.
11729 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
11731         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
11732         all the changes since 2006-04-07.
11734 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11736         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
11737         succeeded, but `ln -s file dir' failed, take care to remove the
11738         leftover target before the next test, to prevent its spurious
11739         failure; also make sure `ln file dir' works before selecting it.
11740         Thanks to Keith Marshall for pointing this out.
11741         * THANKS: Update.
11743         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
11744         assignments in `at_debug_args', so that we put them correctly
11745         in the `run' script.
11746         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
11747         Reported by Eric Blake.
11749 2006-04-11  Eric Blake  <ebb9@byu.net>
11751         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
11752         top-level tests after micro-suite has been run.   Used in...
11753         (Debugging a successful test, Debugging script and environment),
11754         (Debugging a failed test): ...these new tests.  The first of these
11755         is fixed by...
11756         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
11757         macro, split out from...
11758         (AT_INIT): ...here, so that using -d also generates a run script.
11759         Document that -d inhibits top-level logging.
11760         * doc/autoconf.texi (testsuite Invocation): Document that -d only
11761         inhibits top-level logging; debug scripts are created.
11763         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
11764         check.
11765         * tests/autotest.at (Empty test, Empty check): New test to check it.
11767         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
11768         from gcc.
11770 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
11772         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
11773         the files if a problem appears.  Make the empty *.at files
11774         read-only, too.  Proposed by Ralf Wildenhues.
11776 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11778         * config/Makefile.am: Add comment to force updated Makefile.in.
11780         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
11781         space only patch to this file, this patch causes the Makefile.in
11782         files that include freeze.mk to be updated, and thus have a
11783         newer time stamp again, which in turn makes a pristine CVS
11784         checkout have correct time stamps.
11786         * Makefile.maint (cvs-sv): New macro, to be used..
11787         (config.guess-url_prefix, config.sub-url_prefix)
11788         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
11789         point to CVS text checkout of Gnulib files.
11790         (copyright-check): Bump current year.
11791         (announcement): Do not hard-wire `./announce-gen'.
11792         (cvs-update): Propagate failures of `cvs' and `move-if-change'
11793         correctly.
11794         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
11795         `chmod +x'.
11796         (wget_files): Update config.guess, config.sub, texinfo.tex by
11797         `wget-update', now that their URLs work again.
11799 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11801         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
11802         Problem noted by Paul D. Smith.
11804 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11806         * doc/autoconf.texi: Remove unused words from word list.
11807         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
11808         .x-sc_trailing_space: New files.
11810         * doc/standards.texi: Sync from gnulib.
11812         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
11813         `LIBOBJDIR' as experimental.
11815         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
11816         with a target directory; it's internally implemented as `cp'
11817         anyway, but since Autoconf advertises the possibility to use
11818         a target directory when LN_S is `ln -s', we need to find out.
11819         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
11820         analyzed by Keith Marshall <keith.marshall@total.com>.
11822         * THANKS: Update.
11824 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11826         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
11827         confdefs.h as-is.  In general, if it has backslash-newline or the
11828         like, then it doesn't work either to sort or to remove empty
11829         lines.
11831 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
11833         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
11835 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
11837         * lib/autom4te.in (Automake-preselections): Preselect
11838         _AM_SUBST_NOTMAKE.
11840 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11842         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
11843         apostrophe within a single-quoted string, as this is the usual
11844         tradition and is easier to read than '"'"'.  Don't rely on the
11845         shell treating "$/" like '$/'.  Use a more-consistent indenting
11846         style for the trap.
11848 2006-04-09  Eric Blake  <ebb9@byu.net>
11850         * tests/autotest.at (Backquote command substitution),
11851         (Multiline backquote command substitution): Remove mistaken
11852         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
11853         applied...
11854         (Parenthetical command substitution, Multiline parenthetical
11855         command substitution): here.
11857 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11859         Import macros from gnulib (often changing their name).
11861         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
11862         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
11863         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
11864         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
11865         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
11866         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11867         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
11868         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
11869         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
11870         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
11871         The manual mentions Gnulib more prominently.
11872         * doc/autoconf.texi (Gnulib): New node.
11873         (Pointers): Add Gnulib URL.
11874         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
11875         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
11876         Gnulib section.
11877         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
11878         suggest a #define rather than a typedef for _Bool, and mention
11879         Gnulib rather than trying to substitute stdbool code.
11880         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
11881         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
11882         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
11883         AC_STRUCT_DIRENT_D_TYPE.
11884         (Particular Types): Mention stdint.h and inttypes.h as standard
11885         headers too.
11886         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11887         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
11888         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
11889         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
11890         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
11891         (C Compiler): Move AC_C_LONG_DOUBLE to ...
11892         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
11893         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
11894         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
11895         (Coding Style).  Don't mention m4_expand_once.
11896         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
11897         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
11898         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
11899         (AC_CHECK_FUNCS): Use it.
11900         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
11901         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
11902         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
11903         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
11904         (AC_HEADER_ASSERT): New macro.
11905         (AC_HEADER_STDBOOL): Don't assume "#error" works.
11906         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
11907         Catch a bug in an HP-UX C compiler.
11908         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
11909         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
11910         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
11911         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
11912         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
11913         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
11914         New macros.
11916         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
11917         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
11919 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
11921         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
11922         of the warning introduced by the 2001-08-28 change.
11924 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
11925             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11927         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
11928         variables shall be overriden by the cache.
11929         * tests/torture.at (AC_ARG_VAR): Test also with a first value
11930         that contains braces.
11932 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11934         Revert the patch from 2006-04-01 and only improve
11935         _AS_DETECT_BETTER_SHELL:
11937         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
11938         skip nonexistent directories.
11939         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
11940         only shell candidates which exist.
11941         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
11942         * lib/autotest/general.m4 (AT_INIT): No need to give three
11943         parameters to _AS_PATH_WALK.
11945 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
11946             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11948         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
11949         distinguish m4sugar macros.
11950         * tests/tools.at (autoupdating with aclocal and m4_include):
11951         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
11952         test case by Noah Misch <noah@cs.caltech.edu>.
11954 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11956         Revert my change from 2006-03-17, in other words:
11957         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
11958           and DUALCASE=1.
11959         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
11960         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
11961           it is set.
11963 2006-04-07  Eric Blake  <ebb9@byu.net>
11965         * doc/autoconf.texi (Programming in M4sh): Document that
11966         AS_MKDIR_P exits the script on failure.
11967         * lib/autotest/general.m4: Remove redundant AS_ERROR.
11969 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11971         * config/elisp-comp, config/install-sh, config/mdate-sh,
11972         config/missing, config/mkinstalldirs: Sync from Automake.
11974         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
11975         from Automake.
11977         * doc/make-stds.texi: Sync from gnulib.
11979 2006-04-06  Eric Blake  <ebb9@byu.net>
11981         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
11982         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
11983         2006-04-01.
11985 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
11986             Eric Blake  <ebb9@byu.net>,
11987             Paul Eggert  <eggert@cs.ucla.edu>,
11988             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11990         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
11991         whether `set' quotes correctly: redirect stderr of the tested
11992         `set', and use a subshell, for Ultrix; use `sed' instead of
11993         `grep' for zsh `set' which may write binary output; match only
11994         at the beginning of a line, to avoid false positives.
11995         In order to avoid false positives by unrelated variables with
11996         multiline content, put the dump algorithm in a subshell and
11997         unset all variables containing newlines (except some which are
11998         special to the shell).  Warn about cache variables that are
11999         unset.
12001 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12003         * config/config.guess, config/config.sub, config/texinfo.tex:
12004         Sync from upstream.
12006         * tests/mktests.sh: Reword comments.
12008         * tests/mktests.sh: Only skip internal macros starting with
12009         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
12010         Update exclusion lists for the test suite to this end:
12011         (AC_ARG_VAR): Do test this now.
12012         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
12013         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
12014         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
12015         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
12017         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
12018         shell issue with double-quoted command substitutions of native
12019         commands.
12020         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
12021         Marshall.
12023         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
12024         no file matches the glob, discard the warning, set `nullglob'.
12025         (syntax-check): Likewise.
12026         (sc_cast_of_x_alloc_return_value): Likewise.
12027         (sc_cast_of_alloca_return_value, sc_error_exit_success)
12028         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
12029         (m4-check): Likewise.
12030         (sc_system_h_headers): Do not print rule on execution.
12031         (sc_tight_scope): Do not fail for non-existing `src' directory.
12032         (sc_changelog): Skip the Copyright footer.
12033         * lib/autoconf/lang.m4: Remove trailing space.
12035         * lib/autoconf/status.m4: More replacements to
12036         <tab><space> where this makes sense.
12038 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
12040         * tests/Makefile.am (maintainer-check-posix):
12041           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
12043         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
12044           ac_config_<foo>s again, sometimes normalized, sometimes not.
12045         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
12046         (AC_CONFIG_COMMANDS): Do not do so here.
12047         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
12048           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
12049           2005-07-25 rewrite.  Noticed by Noah Misch.
12051         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
12052           _AC_PRESERVE_HELP_ORDER, ...
12053         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
12055         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
12056           inside m4_expand_once; it is redundant.
12058         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
12059           for --help from Cygnus `configure.'
12061 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12063         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
12064         on a patch proposed by Ralf Wildenhues.
12066 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12068         * lib/autoconf/status.m4: Replace <space>''<tab> with
12069         <tab><space> where this makes sense.
12071 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
12072             Noah Misch  <noah@cs.caltech.edu>
12074         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
12075         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
12076         * doc/autoconf.texi (Help Formatting): New node.
12077         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
12079 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12081         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
12082         lib/autoconf/specific.m4, lib/autoconf/status.m4,
12083         lib/autoconf/types.m4, lib/autotest/general.m4,
12084         tests/mktests.sh, tests/torture.at: White space cleanup:
12085         remove some SPACE before TAB, or add quoting ('' or @&t@).
12087         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
12089         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
12091 2006-04-05  Eric Blake  <ebb9@byu.net>
12093         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
12094         empty test suite works.
12095         * tests/autotest.at (Empty test suite): Remove xfail.
12097 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
12099         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
12100         TAGS to ac_config_<foo>s.
12101         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
12102         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
12103         normalizing it, consistent it with previous releases.
12104         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
12106 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12108         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
12109         Use simplified args that Eric Blake originally suggested.
12111 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
12113         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
12114         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
12115         Use 'comm' rather than N instances of grep; this also fixes a bug
12116         whereby substrings were incorrectly matched, causing us to not
12117         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
12118         (exclude_list): Exclude empty macros.
12119         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
12121         Use awk rather than grep -E or egrep, to avoid
12122         portability problems with regular expressions containing newlines.
12123         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
12124         Switch from grep to awk syntax.
12125         (ac_exclude_script): Renamed from ac_exclude_egrep.
12126         (au_exclude_script): Renamed from au_exclude_egrep.
12128 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
12130         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
12131         a subdirectory subject to Cygnus `configure'.
12132         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
12134         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
12135         report request when we have no AC_PACKAGE_BUGREPORT.
12137 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12139         * THANKS: Update.
12141         * tests/mktests.sh: Update copyright year in the header of the
12142         generated files.
12144         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
12145         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
12146         typedef'ed restricted pointer, to catch a compiler bug on
12147         HP-UX 11.x, and fix warnings so it passes with -Werror.
12148         (_AC_PROG_CC_C99): Likewise.
12149         Reported by Albert Chin <china@thewrittenword.com>.
12150         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
12152 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
12154         * bin/autoscan.in (subdirs): New global.
12155         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
12156         (output): Emit AC_CONFIG_SUBDIRS as needed.
12157         * tests/autoscan.at (autoscan): Remove XFAIL.
12159 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
12161         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
12163 2006-04-03  Eric Blake  <ebb9@byu.net>
12165         * THANKS: Add myself.
12167 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12169         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
12170         to log, point to testsuite output tree.
12172 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12174         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
12175         * doc/autoconf.texi (Function Portability): Mention that C++
12176         has trouble with 'exit'.
12177         (Guidelines): Test programs shouldn't use 'exit'.
12178         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
12179         Remove; all uses removed.
12180         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
12181         Return from 'main' instead of calling 'exit'.
12182         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
12183         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
12184         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
12185         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
12186         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
12187         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
12188         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
12189         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
12190         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
12191         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
12192         * tests/compile.at: Likewise.
12194 2006-04-02  Pavel Roskin  <proski@gnu.org>
12196         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
12198 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12200         Clean up _AC_COMPILER_EXEEXT* macros.
12202         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
12203           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
12204           ac_file to the name of the default output file and call
12205           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
12206           initial `rm' of the candidate files...
12207         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
12208           the same list in subsequent `rm' calls, and for the temporary
12209           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
12210           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
12211         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
12212         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
12213           no longer needed) by libtool.  Make it a cache check.
12214         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
12215           copied here by mistake.
12216         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
12217           _AC_COMPILER_EXEEXT.
12218         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
12219           _AC_COMPILER_OBJEXT directly.
12220         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
12222 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12224         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
12225         (AS_DIRNAME): Use it.
12226         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
12228         * tests/*.at: Remove the generated ones.
12230 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12232         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
12234 2006-04-01  Eric Blake  <ebb9@byu.net>
12236         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
12237         directories, unless optional third argument supplied.
12238         (AS_UNAME): Don't optimize PATH walk.
12240         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
12242 2006-04-01  Eric Blake  <ebb9@byu.net>
12243         and Stepan Kasal  <kasal@ucw.cz>
12245         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
12246         and fix some typos.
12248 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
12250         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
12251         Autoconf version number despite a zero- or one-argument AC_INIT.
12253         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
12254         subordinate tools.
12255         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
12256         * doc/autoconf.texi (autoreconf Invocation): Document it.
12258         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
12259         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
12261 2006-04-01  Eric Blake  <ebb9@byu.net>
12263         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
12264         * lib/autotest/general.m4: Be tolerant of existing directory when
12265           rm failed to remove it.
12267 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12269         * bin/autoupdate.in: Redefine m4_location so that warnings print
12270         the correct lines of the input file by subtracting..
12271         (_au__first_line): ..this new definition.
12273         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
12274         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
12275         Remove stray newline in output.
12276         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
12277         AC_DEFUN this for autoconf, including the obsoletion diagnose.
12278         Fixes autoupdating of code where the replacement output contains
12279         m4sugar macros.
12280         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
12281         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
12282          (au_exclude_list): Add AC_LANG_SAVE.
12283         * tests/tools.at: Several new tests for all of this.
12284         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
12285         hairy details.
12286         The AC_LANG_SAVE issue was reported against Libtool by
12287         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
12288         Kristian Kvilekval <kris@cs.ucsb.edu>.
12290 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
12292         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
12293           switch all of them on and of when necessary.  Fixes the bug when
12294           m4sugar macros (e.g., m4_define) were expanded after the first
12295           automatic update (e.g., after AC_PREREQ or AC_INIT).
12297 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
12299         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
12300         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
12302         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
12303         correctly.  Problem reported by Eric Blake.
12304         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
12305         Ralf Wildenhues.
12307 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12309         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
12310         Tighten up the basename/dirname wording.
12312 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12314         * Makefile.maint (sc_texi_notab): New check: do not use TABs
12315         in texinfo files outside of verbatim environments.
12316         (syntax-check-rules): Update.
12317         * doc/autoconf.texi (Configuration Headers): Conform to it.
12319 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
12321         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
12322           aclocal cannot be given on the command line.
12324 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12326         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
12327         Give an example for AS_DIRNAME instead of referring to Posix..
12328         (File System Conventions): Put discussion of // versus / here, and
12329         modernize it a bit.
12330         (Limitations of Usual Tools): Add basename.  Remove verbiage
12331         after dirname, since it got moved to the above sections.
12332         All this was inspired by a patch proposed earlier by Eric Blake.
12334 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12336         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
12337         `$0' to protect against spaces.
12338         * lib/autotest/general.m4 (AT_INIT): Likewise.
12339         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
12340         `$0', $as_me.
12342 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12344         * bin/autoscan.in: The value of find_configure_ac should be
12345         checked for existence, so we don't barf over a nonexisting
12346         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
12348 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12350         * bin/autoupdate.in: Fix some typos.
12352 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
12354         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
12356         * lib/autoscan/autoscan.list: Refreshed.
12358 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12360         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
12361         and Erlang related variables.
12363         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
12364         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
12365         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
12366         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
12367         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
12368         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
12369         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
12370         (_AC_PROG_OBJC_G): New macros.
12371         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
12372         * doc/autoconf.texi (Objective C Compiler): New node.
12373         (Preset Output Variables): Document OBJCFLAGS.
12374         (Language Choice): Document `Objective C' language.
12375         (Fortran Compiler): Fix typo.
12376         * NEWS: Updated.
12377         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
12379 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
12381         * doc/autoconf.texi (Default Includes): Fix typo
12382           s/AC_HEADERS_STDC/AC_HEADER_STDC/
12383         (Limitations of Usual Tools): s/unwriteable/unwritable/
12384         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
12385           Fix typos in the comments.
12387 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
12389         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
12390           Factor out the warning to...
12391         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
12392         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
12393         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
12395         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
12396           case `ac_delim' when writing the sed script.
12398         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
12399           moved DUALCASE=1 ...
12400         (AS_SHELL_SANITIZE): ... here.
12401         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
12402           that it is set.
12404         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
12405           AC_SUBST.
12406         (_AC_PATH_PROG): Store the result to VARIABLE.
12407         (AC_PATH_PROG): No need to set VARIABLE again.
12409         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
12410           the first one is usual AT_CHECK_MACRO test, the second one checks
12411           that the same works when cross-compiling.
12412         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
12413         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
12415 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12417         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
12418         the directory `/usr/bin/posix' in the shell search, to prefer
12419         the Posix shell not only in subsequent spawns as with `$BIN_SH'
12420         on Tru64.
12422         * doc/autoconf.texi (contents): To fix texi2html output, hide
12423         `@setcontentsaftertitlepage' for HTML.
12424         (Writing Autoconf Macros): Likewise, insert space after `@c'.
12425         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
12426         `@,{c}'.
12428 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
12430         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
12431           sanitizing...
12432         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
12433         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
12434           why IFS is restored so late; thank you, Ralf, for reminding us.
12436 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
12438         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
12439           variables in the examples.
12441 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12443         * doc/autoconf.texi (several sections): Cleaned up documentation for
12444         macros in erlang.m4.
12446 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12448         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
12449         failure condition for `$(cmd)' style command substitutions.
12450         (Parenthetical command substitution, Multiline parenthetical
12451         command substitution): Use it.
12453         * doc/autoconf.texi (Special Shell Variables): Missing word.
12454         Reported by Keith Marshall <keith.marshall@total.com>.
12456         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
12457         IFS even in case of empty `$PATH'.
12459 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12461         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
12462         `expr' away if there is nothing to do.
12463         < --keywords >: Simplify and robustify argument handling.
12464         Revert erroneous comment from 2005-08-23.  Extend to allow
12465         keyword negation with `!'.
12466         Update help message.  Remove broken code to prevent running
12467         tests multiple times.
12468         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
12469         Update and fix the documentation accordingly.
12470         * tests/autotest.at (Keywords): Renamed to..
12471         (Keywords and ranges): .. this.  Extended to make sure negated
12472         keywords, keywords taken from AT_SETUP arguments, and numeric
12473         test ranges work, and that matching is case-insensitive.
12475 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12477         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
12478         allow to pass unnamed structs even in C++.
12479         (AC_CHECK_SIZEOF):  Likewise.
12480         Also fix quoting error in `AC_MSG_FAILURE' arguments.
12481         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
12482         struct): New tests for unnamed structs, each both native and
12483         cross-compiling.
12485         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
12486         a structure inside a cast, for C++ conformance.
12487         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
12488         Also fix quoting error in `AC_MSG_FAILURE' arguments.
12490         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
12491         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
12492         trying to execute the command `no'.
12494         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
12495         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
12496         expanded outside.
12498         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
12499         example.  Do not emphasize `$%', it is hardly new and special.
12500         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
12502         * doc/autoconf.texi (Limitations of Usual Tools): Document
12503         OpenBSD and traditional `grep' failure to handle multiple
12504         patterns separated by newlines.
12506 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12508         * doc/autoconf.texi (several sections): Add documentation for macros
12509         in erlang.m4.
12511 2006-03-10  Eric Blake  <ebb9@byu.net>
12513         * doc/autoconf.texi (Obsolete Macros): Fix wording of
12514         AC_TRY_LINK_FUNC.
12516 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
12518         * doc/autoconf.texi: Use @acronym more consistently for acronyms
12519         like BSD, GPL, LGPL.  Fix minor English typos.
12520         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
12521         Mention that these macros are becoming obsolete.
12522         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
12523         Use more modern terminology for which standard is what.
12524         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
12525         and to ansi2knr.
12526         (AC_PROG_CXX): Likewise.
12527         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
12528         Remove obsolete discussion about how to port to K&R.
12529         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
12530         the obsolescent AC_HEADER_STDC.
12531         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
12532         can't rely on it.
12534 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12536         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12537         Remove stdin redirection from /dev/null to allow pipe to work.
12539 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12541         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
12542         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
12543         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
12544         Ralf Wildenhues.
12546 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12548         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
12549         HP-UX sed is 99 commands, not 100.
12550         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
12551         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
12552         newline for portability.
12553         * tests/torture.at (Torturing config.status): Also test 100
12554         AC_SUBST_FILE invocations.  Fix test to actually verify the
12555         AC_CONFIG_FILES output.
12556         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
12557         command, label, and read-file `r' limits.  Unify HP-UX spelling.
12559         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
12560         non-suffix rule.
12561         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
12562         non-GNU make.
12563         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
12564         * tests/mktests.sh: Small shell portability fixes.
12566 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12568         * doc/autoconf.texi (Caching Results): Fix the examples to use a
12569         recommended quoting style and discard unwanted output.
12571 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12573         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
12574         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
12575         cases, and to work around Tru64 expr bug.
12577 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12579         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
12580         expr bug that turns the result of a regex match into a number if
12581         possible.
12583 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12585         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
12586         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
12587         in section `Specific Compiler Characteristics'.
12589 2006-03-04  Eric Blake  <ebb9@byu.net>
12591         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
12592         variable warning.
12594 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12596         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
12597         order of variable initialization, so even the Solaris 2.6 shell
12598         can create a config header correctly.  Fixes lots of test suite
12599         failures.
12601 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12603         * doc/autoconf.texi (Text processing Macros): New node to
12604         document the m4sugar macros m4_re_escape, m4_tolower,
12605         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
12607 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12609         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
12610         XrmInitialize (0) -> XrmInitialize ().
12611         Reported by Toshio Kuratomi.
12613 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12615         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
12616         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
12617         * doc/autoconf.texi (Programming in M4sh): Adjusted.
12618         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
12619         both macros are defun'ed so that required macros are evaluated
12620         outside.
12622         * doc/autoconf.texi (Prerequisite Macros): State more precisely
12623         where a required macro will be expanded.
12624         (Coding Style): Another reason not to use `m4_define'.
12626 2006-02-21  Eric Blake  <ebb9@byu.net>
12628         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
12630 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12632         * doc/autoconf.texi (Looping constructs): New node, to
12633         document m4_for, m4_foreach, m4_foreach_w, and mention
12634         obsolete AC_FOREACH.
12635         (Obsolete Macros): Document AC_FOREACH.
12636         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
12637         (m4_for): Fix to never loop (almost) endlessly, work correctly
12638         with arithmetic expressions in arguments, a step of zero or
12639         non-integer multiple of the interval, and avoid integer
12640         overflow.
12641         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
12642         m4_foreach_w.
12644 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
12646         Add basic support for Erlang, both for configuring Erlang/OTP
12647         tools, and Erlang as a conf test language.
12648         * lib/autoconf/erlang.m4: New file.
12649         * lib/autoconf/autoconf.m4: Add erlang.m4.
12650         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
12651         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
12652         * NEWS: Add short description of new macros.
12653         * THANKS: Add Romain Lenglet.
12655 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12657         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
12658         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
12660 2006-02-15  Eric Blake  <ebb9@byu.net>
12662         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
12663         warning.
12665 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12667         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
12668         (_AS_CASE): Private helper macro.
12669         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
12670         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
12671         Fix syntax of AS_IF description
12672         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
12673         for the AC_REQUIRE mess.
12674         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
12675         AS_SHELL_SANITIZE.
12677 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12679         * doc/autoconf.texi: Minor style cleanup.
12680         Be consistent about spaces after commas.
12681         Insert [] where empty args look a bit funny.
12682         Fix some "i.e." and "e.g." usages.
12683         Try to avoid "X/Y" usages.
12684         Don't be pedantic about "ISO C99"; just say C99.
12685         Prefer GNU style for spaces in front of parens.
12686         (Function Portability): Comment about C89 versus C99
12687         signed integer division.
12688         (Particular Headers): Use current gnulib style for dirent
12689         includes.
12691 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
12692         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12694         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
12695         macros without parameters.
12696         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
12697         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
12698         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
12699         `$#' bug.
12700         (autoupdate): Updated to match AU_ALIAS fix.
12702 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12703         and Paul Eggert  <eggert@cs.ucla.edu>
12705         * doc/autoconf.texi (Programming in M4sh): Document
12706         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
12708 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12710         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
12711         (AS_BOURNE_COMPATIBLE): ..this.
12712         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
12714 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12716         * doc/install.texi (Defining Variables): Tighten up the
12717         CONFIG_SHELL wording.
12719 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
12720         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12722         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
12723         of (set -o) rather than testing whether (set -o posix) succeeds,
12724         to work around a bug in the AIX 5.3 shell.  Problem originally
12725         reportd by Howard Chu for libtool.
12727 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
12729         * doc/autoconf.texi (Running the Compiler, Running the Linker):
12730         Changes the macro arguments in summaries to match the
12731         descriptions.
12733 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
12735         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
12736         hint as ``a workaround for a bug.''
12738 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12740         * bin/autoreconf.in: New option `--no-recursive'.
12741         Improve wording for subpackages a bit.
12742         * doc/autoconf.texi (autoreconf Invocation): Updated.
12743         * NEWS: Updated.
12745         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
12746         in environment of `configure', not the command line.
12747         Reported by Howard Chu <hyc@highlandsun.com>.
12749 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12751         * doc/autoconf.texi (Limitations of Builtins): Document the
12752         problem with "trap -".
12754 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
12756         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
12757         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
12758         messages to differentiate Fortran and Fortran 77 tests.
12759         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
12760         AC_LANG_ASSERT, to allow use in mixed-language projects.
12762 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12764         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
12765         FOO" to "defined (FOO)".
12766         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
12767         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
12768         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
12769         * tests/tools.at (ifnames): Likewise.
12771 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12773         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
12774         * lib/Autom4te/General.pm (mktmpdir): Likewise.
12775         (END): Improve error message a bit.
12776         Reported by Bruce Korb <bkorb@gnu.org>.
12778 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12780         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
12781         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
12783 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
12785         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
12786         requires sys/stream.h.  Reported by Oliver Kiddle.
12788 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12789             Stepan Kasal  <kasal@ucw.cz>
12791         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
12792         before the removals of test dirs, use `find' to avoid modification
12793         of symlinked directories.
12795 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
12797         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
12798         Don't ignore the macro arguments.
12800 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
12802         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
12803         declaration that works for MSVC.
12805 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12807         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
12808         Add `*.map' and `.inf' for Green Hills compiler.
12809         Reported by Stefan Seefeld <stefan@codesourcery.com>.
12811         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
12812         correctly: pad with spaces after FIRST_PREFIX if necessary,
12813         and compute string lenghts with `m4_qlen' instead of `m4_len'.
12814         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
12815         * tests/m4sh.at (AS_HELP_STRING): Test extended.
12816         * NEWS: Updated.
12817         Reported by numerous people, numerous times.
12819 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12821         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
12822         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
12823         * lib/autoconf/general.m4, lib/autoconf/status.m4:
12824         * lib/autotest/general.m4, tests/local.at:
12825         Update copyright year to 2006.
12827         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
12828         sed substitutions.
12829         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
12830         for file names, again.  Reported by Noah Misch.
12831         (Coding Style): Explain that s|a|b| is preferred for file names.
12832         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
12833         (AC_OUTPUT_MAKE_DEFS): Likewise.
12834         * lib/autotest/general.m4 (AT_INIT): Likewise.
12835         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
12836         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
12838         Fix Posix-conformance bugs re use of { command in sed scripts,
12839         and improve the sed-related documentation a bit.
12840         * doc/autoconf.texi (Installation Directory Variables): Use
12841         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
12842         rather than "sed" when talking about Sed in general.
12843         (Particular Programs): Likewise.
12844         (Coding Style): y is like s with respect to / and ,.
12845         (Limitations of Usual Tools): Document the weird restrictions
12846         that Posix has about { }.  Use better quoting.
12847         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
12848         Rewrite to conform to Posix rules about { } in sed scripts.
12849         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
12850         * tests/foreign.at (Libtool): Likewise.
12851         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
12852         Use our own style advice re 's,a,b,' versus 's|a|b|'.
12854 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12856         * lib/autoconf/status.m4: Fix typo.
12858         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
12859         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
12860         `-def', for the benefit of Portland `pgf90 -Mipa'.
12861         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
12863 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12865         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
12866         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
12867         shell from zsh to bash.
12869 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
12871         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
12872           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
12874 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12876         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
12877         parentheses in $(...).  Problem reported by Eric Blake.
12879 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12881         * doc/autoconf.texi (Limitations of Usual Tools):
12882         Mention which characters can be escaped with \ in portable regular
12883         expressions used in grep, sed, expr.  Mention the leading ^ problem
12884         with expr.  Clean up some confusing wording.  Mention which
12885         grep options are portable.
12887 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
12889         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
12891 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
12893         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
12894         patch, noted by Ralf Wildenhues.
12896 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12898         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
12899         posix' unconditionally, for pdksh in `native sh' emulation.
12901 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12903         * doc/autoconf.texi (Shellology): Document eval $? problem
12904         with ash.
12905         (Limitations of Builtins): Likewise.
12907 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12909         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
12910         CONFIG_SHELL in the environment of the configure rerun.
12911         * doc/autoconf.texi (Here-Documents, config.status Invocation):
12912         Suggest passing CONFIG_SHELL absolute, and in the environment
12913         rather than as option.
12915 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12917         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
12918         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
12919         Fix macro quoting.  Fix output for n * 98 substituted variables.
12921 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12923         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
12924         `tmp' to avoid file removal race.
12926 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12928         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12929         ac_clean_files and LIBOBJS.
12931 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12933         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
12934         Factor functionality to..
12935         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
12936         `AC_SUBST($1)' in the public version.
12937         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
12938         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
12939         ac_pt_* variables.
12941 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
12943         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
12944         filesystems.
12946 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12948         * NEWS: Move AH_HEADER mention to right place.
12950 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
12952         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
12953         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12955 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
12957         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
12958         conftst2.$ac_objext.
12959         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12961 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
12963         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
12964         conftest.o, to see whether the compiler really obeys; rm the object
12965         file before and after the test and register it with ac_clean_files.
12966         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12968 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
12970         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
12971         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
12972         code so that the most common case requires less forks.
12974 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
12976         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
12977         not portable; thanks to Paul Eggert and Alexandre.
12979         * NEWS: Fix an old typo.
12981 2005-10-20  Jim Meyering  <jim@meyering.net>
12983         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
12984         the latter'', in two places.
12986 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
12988         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
12989         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
12990         the inner workings of AC_LANG_FUNC_LINK_TRY.
12991         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
12992         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
12993         by the function rather than ignoring it.
12994         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
12995         comparing its address.  Intel's interprocedural optimization was
12996         outsmarting the old heuristic.  Problem reported by
12997         Mikulas Patocka.
12999 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
13001         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
13003 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13005         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
13006         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
13008 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
13010         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
13011         before removing it (chmod -R u+rwx); there are three instances of this.
13013 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13014             Stepan Kasal  <kasal@ucw.cz>
13016         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
13017         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
13018         make its content writable before removing it.  Remove an errorneous
13019         comment from the end, where the logs of the failed tests are copied
13020         to the main log file.
13022 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
13024         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
13025           in case the computer is too quick.  Double quote the configure.ac
13026           snippets.
13028         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
13029           problems if the testsuite were running too fast.
13031 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13033         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
13034         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
13035         (which belong to Xt, not X itself).  See Debian bug 327655.
13036         * NEWS: Mention this.
13038 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
13040         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
13042 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
13044         * config/move-if-change: Don't output "$2 is unchanged";
13045         suggested by Ben Elliston.  Handle weird characters correctly.
13047 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
13049         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
13050           calls, so that the final expansion of this macro is shorter.
13051           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
13052           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
13053           the cleanup there.  Use AS_VAR_* macros, to be more general.
13054         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
13056         * lib/autoconf/general.m4: Use AS_IF where appropriate.
13058         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
13060 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
13062         * doc/autoconf.texi (Configuration Headers): Add an index entry
13063           for AH_HEADER.
13065 2005-08-26  Pavel Roskin  <proski@gnu.org>
13067         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
13068         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
13069         running xmkmf.
13071 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
13073         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
13074         The previous patch didn't work, so try a better one.
13076 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
13078         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
13079         in the example.  Reported by Bruno Haible.
13080         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
13081         "if $undefined_var;" succeeds with my shell.
13083         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
13084         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
13085         but change the m4_divert_text to m4_divert_once.
13087 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13089         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
13090         Work around bug in Solaris /usr/xpg4/bin/awk.
13091         The bug is present in at least Solaris 8 through 10.
13093 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
13095         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
13096         some evil values and relying on the fact that $* concatenates the
13097         parameters by the first character from IFS.
13099 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
13100             Stepan Kasal  <kasal@ucw.cz>
13102         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
13103         first header appears, define AH_HEADER.
13104         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
13105         Update limitations about when to call AC_CONFIG_HEADERS.
13106         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
13107         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
13108         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
13109         ``Configuration Actions''; fix their index entries.
13111         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
13112         options correctly.  Process N-M as M-N if M is smaller than N.
13113         Process ranges correctly so that N-N will run only N.
13114         Sort and uniquify the tests that will be run.  If there is more
13115         than one test, reinsert the banners for the tests.
13116         * tests/autotest.at (Keywords): Unmark XFAIL.
13118 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
13120         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
13121           before passing the macro name to AH_TEMPLATE.
13123         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
13124           now opens log after option processing; in particular, --version
13125           and --help do not touch config.log.
13127         * Makefile.maint: Revert the change from 2005-08-12.
13129 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
13131         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
13132           common code to...
13133         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
13135 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13137         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
13138         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
13139         Language cleanup.
13141         * doc/autoconf.texi (Defining Symbols, Changed Results):
13142         Prepend to LIBS, not append, in examples.
13144 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
13146         When building in place, set srcdir="."; suggested by Tim Van Holder.
13148         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
13149           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
13150         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
13151         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
13152           does not mean "no --srcdir option".
13154 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13156         * tests/autoscan.at (autoscan): New file.
13157         * tests/suite.at: Use it.
13158         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
13159         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
13161         * tests/autotest.at (Keywords): Test keywords combinations.
13163 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
13165         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
13166           add "2>&1"; gzip 1.2.4 prints help on stderr.
13168 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
13170         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
13171         was pushdef'ed twice while popped only once.  Push it only once.
13172         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
13174 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
13176         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
13177         prefixed by mere "===", not "configure: === ".
13179 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13181         * Makefile.maint: Update from Bison.
13183         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
13184         "<tab>" in comment, so that the point is understandable.
13186 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
13188         Rewrite substantial part of lib/autoconf/status.m4.
13189         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
13190         and CONFIG_COMMANDS are not processed in four separate loops.
13191         Instead, there is one main loop.  This alows that the common code
13192         is expanded only once, thus config.status (and configure) is smaller.
13194         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
13195         the AC_LIST_FILES and cousins macros are no longer used.
13197         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
13198         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
13199         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
13200         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
13201         contain the initialization, nor the for loop, nor the associated
13202         commands; all these go to ...
13203         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
13204         _AC_OUTPUT_CONFIG_STATUS.
13205         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
13206         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
13207         (_AC_OUTPUT_FILE): The creation of the sed script ...
13208         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
13209         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
13210         _AC_OUTPUT_MAIN_LOOP.
13211         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
13212         _AC_CONFIG_COMMANDS): Use ...
13213         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
13214         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
13215         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
13216         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
13217         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
13218         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
13219         ... new macros.
13220         (_AC_CONFIG_UNIQUE): Update.
13221         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
13222         Replaced by this ...
13223         (_AC_LIST_TAGS): ... new common macro.
13224         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
13225         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
13226         (_AC_LIST_TAG_COMMANDS): ... new common macro.
13227         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
13228         this didn't belong to the `config commands' section.
13229         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
13230         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
13231         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
13232         to the `config commands' section either.
13233         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
13234         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
13236         ... and many changes to the comments nearby.
13238         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
13239         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
13240         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
13241         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
13242         (#define header templates): The comment at the top of the generated
13243         header now includes the name(s) of the source file(s).
13245         Several unrelated small changes:
13247         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
13248         parameter to AC_DIAGNOSE.
13249         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
13250         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
13251         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
13252         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
13253         with AU::AC_OUTPUT.
13254         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
13255         in AC_OUTPUT doesn't double-quote it either.
13256         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
13257         parameters.
13259 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
13261         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
13262         versions of Portland Group compiler produce single- and double-quoted
13263         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
13264         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
13266 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13268         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
13269         This is a corrected version of yesterday's patch.
13271 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
13273         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
13274         path, too; insert a "===" to emphasize the line.
13276         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
13277           ac_cv_build_alias to ac_build_alias.
13278         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
13280         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
13281         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
13282         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
13283         (AC_ARG_VAR): ... here.
13284         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
13285           target_alias.
13287         Keep a list of all precious variables and process them with one simple
13288         for loop, instead of expanding all commands, or, OTOH, complicated
13289         processing of output of "set".
13290         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
13291         variable names in new macro...
13292         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
13293         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
13294           a loop to assign all ac_env_* and ac_cv_env_* variables.
13295         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
13296           to INIT_PREPARE.
13297         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
13298           its value to shell variable ac_precious_vars and call
13299           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
13300         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
13301           _AC_ARG_VAR_VALIDATE.
13303         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
13304           and the AC_SUBSTs ...
13305         (AC_INIT): ... here.
13307         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
13308           the ac_subst_files section in config.log.
13310         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
13312 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13314         * NEWS: New macro AC_C_TYPEOF.
13315         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
13316         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
13317         * tests/c.at (C keywords): Test AC_C_TYPEOF.
13319         Fix problems reported by Nicolas Joly.
13320         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
13321         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
13322         They are generated by the Tru64 v5.1B shell.
13324 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
13326         Fix my changes from 2005-07-01; reported by Noah Misch.
13327         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
13328         description, the macro now accepts only a single tag.
13329         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
13331         Fix cases when the varsions of Autoconf and Autotest don't match.
13332         Reported by Noah Misch.
13333         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
13334         at_top_builddir, for compatibility with older autotest.
13335         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
13336         is not set, use at_top_builddir, for compatibility with older
13337         versions of autoconf.
13339 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13341         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
13342         Problem reported by Patrick Welche.
13344 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13346         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
13347         sed substitution command, so that we allow | in program prefixes
13348         and program suffixes.  (& is a problem anyway; we're not fixing
13349         that here.)
13350         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
13351         configure_input, top_builddir, srcdir, etc.
13352         * lib/autotest/general.m4 (AT_INIT): Likewise, for
13353         PATH_SEPARATOR in AUTOTEST_PATH.
13355 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
13357         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
13358         for loop over config.site files using `set', to allow
13359         directory names containing IFS characters.
13361 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13363         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
13364         directories with weird names.  Apparently some people like living
13365         on the edge.  However, improve the test that "pwd" actually does
13366         report a name for the working directory.
13367         * NEWS: Remove the claim that we test for funny chars in dir names.
13369 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
13371         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
13372         replaced ...
13373         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
13374         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
13375         Now accept a single tag, not whitespace separated list.
13376         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
13378 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
13380         * doc/autoconf.texi (Configuration Headers): Change the explanation
13381         about #include <config.h>.
13382         (Generic Functions): Mention the Gnulib project.
13383         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
13385         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
13386         document to output the default config_* lists to config.status.
13387         Don't recognize option --file, if the functionality is not there.
13388         Likewise for --header; moreover, recognize --he and --h as shortcuts
13389         for --help in that case.
13391         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
13392         matches the order of execution.  No code changed.
13394 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13396         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
13397         single-quoted -cmdline argument in Portland Group compiler.
13398         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
13400 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
13402         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
13404 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
13406         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
13407         descriptors to child processes; reported by Norman Gray.
13409 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
13411         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
13413         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
13414         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
13415         (AC_SUBST): Call it.
13416         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
13417         the directory specific variables; but don't call it for configure_input.
13419 2005-06-28  Derek Price  <derek@ximbiot.com>
13421         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
13422         addition.
13424 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13426         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
13427         directory have inherent problems with special characters like spaces,
13428         due to limitations in Make syntax.  Problem reported by Alexandre
13429         Duret-Lutz.
13430         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
13431         Also, fix Tru64 porting problem with shell patterns,
13432         reported by Ralf Wildenhues.
13434 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13436         * doc/autoconf.texi (Subdirectories): Fix markup typos.
13438 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13440         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
13442         Fix some more shell quoting problems.  Prompted by a bug report
13443         from Justace Clutter.
13444         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
13445         variable into diagnostic.  Make the diagnostic an error, not a warning,
13446         because we really don't support spaces and suchlike in dir names.
13447         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
13448         Don't worry about backslashes in srcdir; it can't happen now.
13449         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
13450         Simplify ac_optarg handling.
13451         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
13453 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
13455         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
13456         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
13457         * tests/atlocal.in: Propagate $EGREP and $SED.
13458         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
13459         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
13461         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
13462         that '\|' is not allowed in BREs; recommend using newline separated
13463         list of patterns instead of multiple -e options.
13465         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
13467         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
13469 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13471         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
13473 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
13475         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
13476         b, t, r, w commands require single space, while : cannot have any.
13477         (Special Shell Variables): Fix sed code this in the example.
13478         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
13479         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
13481         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
13482         expand to the empty list.  Don't use two pairs of m4_changequote,
13483         it's not necessary.
13485 2005-06-20  Derek Price  <derek@ximbiot.com>
13487         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
13489 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13491         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
13492         * doc/autoconf.texi:
13493         Don't mention Solaris versions so much, if a
13494         problem is common to all extant versions of Solaris.  Say "SunOS
13495         4" instead of "SunOS" for SunOS 4.
13496         (awk): Mention more of the limitations of traditional Awk.
13497         (cat): Don't talk about cat -v.
13499 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13501         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
13502         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
13503         but the implementation is entirely different and is designed
13504         to be compatible with glibc strverscmp.
13505         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
13507         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
13508         on Mac OS X 10.4 reported by Peter O'Gorman in:
13509         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
13510         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
13511         Use shell builtins rather than 'expr', to work around expr bug.
13513 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13515         * doc/autoconf.texi: "filesystem" -> "file system".
13516         "behaviour" -> "behavior".
13517         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
13518         * lib/autoconf/general.m4: Omit blank after ":" sed command,
13519         as per POSIX.
13520         * lib/m4sugar/m4sh.m4: Likewise.
13521         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
13522         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
13524         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
13525         (.x.1): Ignore the time stamp in the .TH line when deciding whether
13526         to update the man page.  That way, we don't have to check in new
13527         man pages every month.
13529         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
13530         quotes and backslashes.  Patch from Derek Price.
13532 2005-06-10  Derek Price  <derek@ximbiot.com>
13534         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
13535         AS_TR_SH.
13537 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
13539         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
13540         -u, since it outputs chatter if the input files are the same.
13541         Problem reported by Ralf Menzel.
13543 2005-06-08  Derek Price  <derek@ximbiot.com>
13545         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
13546         renaming them since they are about to be redefined anyhow.
13548 2005-06-08  Derek Price  <derek@ximbiot.com>
13550         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
13551         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
13552         Move m4_undefine to alphabetical order.
13554 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13556         * README: Recommend GNU M4 1.4.3 or later.
13557         * doc/autoconf.texi (Introduction): Likewise.
13558         Reword to avoid some formatting glitches.
13559         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
13560         Clarify explanation of HP compiler bug.
13561         Redo example output tp match current CVS snapshot.
13562         Use @example.org in email addresses when the examples
13563         might get inadvertently cut-and-pasted into user code.
13564         Remove example of autom4te usage that doesn't seem to work now.
13565         Use modern AC_INIT (except when the example is meant to be
13566         shown with Autoconf 2.13).
13567         Update ksh info for Solaris 9 and later.
13568         KB -> kB.
13569         Modernize description of Automake versions a bit.
13570         Don't claim a future version of Autoconf is near.
13571         * doc/install.texi: Reword to avoid some formatting glitches.
13573 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13575         * doc/autoconf.texi: Add [] to examples, so that the manual
13576         follows its own advice about quoting better.
13577         Reword to avoid some formatting glitches.
13578         * doc/installt.exi: Reword to avoid some formatting glitches.
13580         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
13581         Tru64 ksh pattern matching bug.  Reported against Libtool by
13582         Albert Chin <libtool@mlists.thewrittenword.com> and
13583         Nicolas Joly <njoly@pasteur.fr>.
13585 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
13587         m4_cdr of one-member list was [[]] (one-member list containing an
13588         empty string) instead of [] (an empty list.  Callers were skewed to
13589         match this misbehaviour.  As a consequence of this:
13590          - m4_foreach([x], [], [foo]) expanded to `foo', while
13591          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
13592         This bug has been fixed:
13594         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
13595           expand to an empty string; print error msg if called without
13596           an argument list.
13597         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
13598           misbehaviour; handle [] and [[]] correctly.
13600 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
13602         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
13603         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
13604           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
13606 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
13608         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
13609           swallow records with more than 99 fields.
13610         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
13611           parse the long line.
13613 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
13615         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
13616           swallow literals longer than 399.  Reported by Ralf Wildenhues.
13617         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
13618           to workaround this limitation.
13620 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
13622         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
13623         to gfortran, and make these the first two compiler names
13624         checked (following the general autoconf preference for gcc).
13626 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
13628         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
13629         (DISTCLEANFILES): Remove $(check_SCRIPTS).
13630         (testsuite): Make sure autotest.m4f is up-to-date before using it.
13632 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13634         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
13635         expression of unbounded size when processing the --list
13636         option.  This runs afoul of a limit of 399 bytes per regular
13637         expression on AIX.  Problem reported by Ralf Wildenhues.
13639 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13641         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
13642         * doc/autoconf.texi (Particular Headers): Reword example
13643         for multiline stdbool replacement.
13644         (Setting Output Variables): Reword text a bit.  Don't
13645         give all the details about |#_!!_#|.
13646         Reword description of line replacement.
13648 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
13650         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
13651         now contain newlines, and substituted files must be referenced on
13652         a line alone; the sed scripts to substitute them are now very
13653         different.
13654         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
13655         commands can be put in a sed script portably.
13656         * doc/autoconf.texi (Setting Output Variables): Document above
13657         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
13658         use of multiline substitution.
13659         * tests/torture.at: No longer expect substitution of newline to fail.
13661 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13663         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
13664         From Ralf Menzel (trivial change).
13666 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13668         * tests/local.at: Don't attempt to check for negated character
13669         classes in shell scripts.  The test was too brittle.
13671 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
13673         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
13674         * doc/autoconf.texi (Limitations of Builtins): Document this
13675           limitation.
13677 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
13679         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
13680           common code; used in many places in the tree.
13681         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
13682         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
13684         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
13686         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
13687           messages when ac_unique_file is not found.
13688         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
13689         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
13690           commands, for consistency with AC_MSG_ERROR and such.
13692         * bin/autoconf.as: Make more use of "shift 2" in option processing.
13694         * bin/Makefile.am: Merge the two rules for creating scripts.
13696 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
13698         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
13699         obsolete; it was never documented.
13700         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
13702 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
13704         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
13705         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
13706         (ac_top_builddir): ... this ...
13707         (ac_top_build_prefix): ... to this; the old name is also kept, for
13708           backward compatibility.
13709         (ac_top_builddir_sub): New variable, without the trailing slash,
13710           always nonempty.
13711         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
13712         * doc/autoconf.texi (Configuration Actions): Rename
13713           ac_top_builddir to ac_top_build_prefix.
13714         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
13715           at_top_builddir to at_top_build_prefix.
13716         * lib/autotest/general.m4 (AT_INIT): Likewise.
13718 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
13720         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
13721           of confdefs.h .
13723 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
13725         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
13726           argument to m4_foreach.  I guess it was necessary in the past,
13727           but I think it's a no-op now.
13729 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
13731         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
13732           ``cat <<_ACEOF'' commands to one.
13733         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
13734         * lib/autoconf/status.m4: On various places, use expr instead of
13735           ``echo|sed.''
13736         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
13737         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
13738         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
13739           a range.
13740         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
13741           the wrong patterns between ``case'' and ``esac.''  The previous
13742           code had false positives.
13744 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
13746         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
13747         as on 2005-05-02.
13748         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
13749         Mention LIBOBJDIR.
13751 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13753         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
13754         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
13755         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
13756         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
13757         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
13758         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
13759         config/config.guess, config/config.sub, config/elisp-comp,
13760         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
13761         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
13762         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
13763         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
13764         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
13765         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
13766         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
13767         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
13768         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
13769         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
13770         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
13771         lib/autoconf/general.m4, lib/autoconf/headers.m4,
13772         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
13773         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
13774         lib/autoconf/specific.m4, lib/autoconf/status.m4,
13775         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
13776         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
13777         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
13778         lib/autotest/general.m4, lib/emacs/Makefile.am,
13779         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
13780         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
13781         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
13782         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
13783         tests/compile.at, tests/foreign.at, tests/fortran.at,
13784         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
13785         tests/semantics.at, tests/suite.at, tests/tools.at,
13786         tests/torture.at, tests/wrapper.as:
13787         Update FSF postal mail address.
13789 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
13791         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
13792           check.
13793         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
13794           enough arguments, similarly as in m4_bpatsubsts.
13796 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
13798         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
13799           of absolute paths.
13801 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
13803         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
13804           for absolute directory names in one loop.
13805         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
13806           abbreviations of --version and --debug.
13808 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13810         * doc/autoconf.texi (Autoconf Language): Be more precise about
13811         quoting rules.  Problems noted by Stepan Kasal.
13812         Also, throughout this document, be more careful about white space.
13813         "blank", "white space", and "space" all have different meanings
13814         and we should be careful to say what we mean.
13816 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13818         Fix C++ related problems reported by Werner Lemberg.
13819         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
13820         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
13821         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
13822         avoid problems with C++ and throw.
13823         * tests/compile.at: .cpp, not .cc.
13825         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
13827 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13829         * doc/autoconf.texi (Generic Functions): Typos.
13831 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
13833         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
13834         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
13835         set by latest automake.
13837 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13839         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
13840         outputs 0 on GNU/Linux these days.
13842 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13844         * doc/autoconf.texi (Autoconf Language): Add more description
13845         about quoting heuristics.
13846         (Limitations of Builtins): Describe "set -" problems.
13848 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13850         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
13851         not newline.
13853         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
13854         by AC_DEFINE; it was a mistake.
13855         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
13857 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
13859         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
13861 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
13863         * doc/autoconf.texi (External Software): Quadrigraphs are not
13864           processed correctly in AS_HELP_STRING; avoid this in the examples.
13865         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
13866         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
13867           comment and reduce m4_default([foo], []) to [foo].
13868         (m4_strip): Update the explanation.
13870 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
13872         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
13873         Remove core.conftest.* too; it's generated by Tru64 5.1.
13874         Problem reported by Jennis Pruett.
13875         * lib/autoconf/functions.m4
13876         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
13877         Don't bother to remove core files; AC_RUN_IFELSE should do that
13878         for you.
13880 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
13882         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
13884 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
13886         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
13887         Report from Horst Wente.
13889 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
13891         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
13892           the comment.
13894 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
13896         * doc/autoconf.texi (External Software, Package Options): Add
13897           examples showing how to implement --with-* and --enable-* options.
13899 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13901         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
13902         as well as configure.in.  Problem reported by Gregorio Guidi.
13904 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13906         * doc/autoconf.texi (Particular Functions): Use gnulib's current
13907         pattern for alloca snippet.
13909 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
13911         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
13913 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
13915         * doc/autoconf.texi (Generic Programs): Fix a typo.
13917 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
13919         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
13920         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
13922 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13924         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
13925         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
13926         whole-archive (-zallextract, -zdefaultextract) options in the hope of
13927         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
13928         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
13930 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
13932         * NEWS: The configure command now warns you if you attempt to use
13933         a directory whose name contains a special character like space,
13934         newline, or "\".
13935         * doc/autoconf.texi (Installation Directory Variables): Allow
13936         "," in file names.  Do not use \@; it's not a portable regexp.
13937         * bin/Makefile.am (edit): Likewise.
13938         * lib/Makefile.am (edit): Likewise.
13939         * tests/Makefile.am (edit): Likewise.
13940         * tests/semantics.at: Likewise.
13941         * tests/torture.at: Likewise.
13942         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
13943         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
13944         * doc/autoconf.texi (File System Conventions): Warn about
13945         unportable file names.
13946         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
13947         (AC_INIT): Use it.
13948         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
13949         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
13950         ac_pwd, and quote srcdir.
13951         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
13953         * doc/autoconf.texi: Fix some systematic formatting problems.
13954         ".)"  needs a following @: if not at the end of a sentence, and
13955         similarly for "!)".  "etc." should be preceded by a comma.
13956         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
13958 2005-03-22  Bruno Haible  <bruno@clisp.org>
13960         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
13961         argument is often called 'build-aux'.
13963 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
13965         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
13966           macro AC_TRY_LINK is obsolete.
13967         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
13968           `AC_CONFIG_FILES'.
13970 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
13972         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
13973           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
13974           from a Common Lisp's `cl'.
13975         (AC_PROG_CXX): Behave according to the documentation: don't
13976           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
13977           make the variable CCC precious; use `cl.exe', not `cl'.
13979 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13980             Alexandre Duret-Lutz  <adl@gnu.org>
13982         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
13983         /dev/null, as "configure" shouldn't read stdin, and this insulates
13984         us from problems (e.g., when testing for "cl").  Also, do this
13985         redirection before invoking "hostname" or "uname", and keep the
13986         original input stream available via...
13987         (AS_ORIGINAL_STDIN_FD): ... this new macro.
13988         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
13989         bother with "</dev/null" since it's now done at the top of
13990         'configure'.
13991         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
13992         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13993         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13994         * doc/autoconf.texi (File Descriptor Macros): New section.
13995         (Printing Messages): Mention it.
13996         * tests/base.at (Input/Output): New test.
13998 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14000         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
14001         newline if neither \c nor -n work, as that would output two
14002         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
14004 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
14006         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
14007         This causes that any required macros inside will get before the if.
14008         * doc/autoconf.texi (autom4te.cache): A typo.
14010 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14012         Undo previous change, except keep the change to
14013         lib/autoconf/programs.m4 that replaced grep with shell
14014         pattern-matching.  This is because net-snmp configure reads stdin.
14015         Reported by Noah Misch.
14017 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
14019         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
14020         from /dev/null, as "configure" shouldn't read stdin, and this
14021         insulates us from problems (e.g., when testing for "cl").
14022         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
14023         before invoking "hostname" or "uname".
14024         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
14025         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
14026         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
14027         "</dev/null" since it's now done at the top of 'configure'.
14028         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
14029         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
14030         Also, replace grep with shell pattern-matching, to save a process.
14032 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
14034         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
14035         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
14036         avoid thinking that Allegro Common Lisp's "cl" command is a C++
14037         compiler.
14039 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14041         * doc/autoconf.texi (Limitations of Usual Tools): Document that
14042         grep -q isn't portable.  Improve grep -s explanation.
14043         Problem reported by Dan Manthey.
14045 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14047         * doc/autoconf.texi (Special Shell Variables): Clarify
14048         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
14050 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14052         * doc/autoconf.texi: Use @acronym for DJGPP.
14053         Fix some @code's that should have been @env's, and vice versa.
14054         Sort environment variable names.
14055         Mention that shells no longer inherit IFS.
14056         Don't recommend PATH_SEPARATOR=';' so strongly.
14057         Mention that $RANDOM might expand to the empty string.
14058         "symlink" and "soft link" -> "symbolic link".
14059         Improve mktemp description (reported by Bruno Haible).
14061 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14063         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
14064         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
14065         Likewise.
14066         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
14067         Likewise.
14069 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14071         * NEWS: Mention AT_COPYRIGHT.
14073         * tests/local.at (AT_CMP): Use diff directly on input files rather
14074         than copying them.
14076         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
14077         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
14079 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
14080         and Paul Eggert  <eggert@cs.ucla.edu>
14082         * tests/autotest.at (Empty test suite): New test.
14083         * tests/torture.at (Substitute and define special characters)
14084         (Substitute a 2000-byte string, Define to a 2000-byte string)
14085         (Substitute a newline, Define a newline): New tests.
14087 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
14089         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
14090         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
14091         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
14092         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
14093         (Standard regular expressions): New test.
14094         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
14095         excess test name quoting.
14096         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
14097         CPPFLAGS to `configure' instead of setting it in `configure'.
14099         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
14100         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
14101         on some platforms.
14103         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
14104         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
14106         * tests/local.at (AT_CMP): New macro.
14107         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
14108         (AC_SAVE_STATE): Move environment grep...
14109         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
14110         (AT_CONFIG_CMP): New macro.
14111         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
14112         * tests/c.at (Extensions): Do not exit early.
14113         * tests/atlocal.in: Inherit $GREP.
14115         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
14116         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
14118         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
14119         (AC_COPYRIGHT): Factor header comment portion out and move into...
14120         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
14121         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
14122         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
14123         --version output.
14124         * tests/local.at: Add Autoconf test suite copyright notice.
14125         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
14127 2005-02-04  Bruno Haible  <bruno@clisp.org>
14128         and Paul Eggert  <eggert@cs.ucla.edu>
14130         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
14132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14134         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
14135         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
14137         Try not to generated lines of unlimited length, as POSIX places a
14138         2047-byte limit on line length of portable text files.
14139         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
14140         Use newline as a separator, not space.
14141         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
14142         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
14143         space.
14145 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14147         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
14148         as_func_*.  Add test to check whether positional parameters
14149         are restored after function return.
14151 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14153         * doc/autoconf.texi (Special Shell Variables): Mention _,
14154         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
14155         if they contain a lower-case letter.  The DUALCASE problem was
14156         reported by Ralf Wildenhues.
14158         * bin/autoconf.as: Don't exit with status 0 after write failure
14159         with --help or --version.
14160         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
14161         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
14163 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14165         * doc/autoconf.texi (Limitations of Usual Tools):
14166         Unicos 9 sed limitations.
14167         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
14168         to get the option-enhanced interface on older Crays.  Try ftn for
14169         Fortran 95 (newer Crays).
14171 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14173         * man/Makefile.am (.x.1): Go back to the simple solution, but take
14174         care to echo the commands, so the user knows what's going on.
14175         Modified from a suggestion by Stepan Kasal.
14177         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
14178         with a cross reference.  Derived from a suggestion by Bruce Korb.
14180 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
14182         * doc/autoconf.texi (config.status Invocation): Warn about
14183         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
14184         * doc/install.texi (Defining Variables): Likewise.
14185         Based on a proposed patch by Ralf Wildenhues.
14187         * man/Makefile.am (.x.1): Make sure the required generated files
14188         are up to date.  Problem and original solution proposed by Stepan Kasal.
14189         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
14190         implicit-man-prerequisites): New rules, used by the above.
14192         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
14193         * config/config.guess, config/config.sub, config/install-sh: Likewise.
14194         * config/missing, config/texinfo.tex: Likewise.
14196 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
14198         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
14199         Update the long comment explaining it.
14201         m4_require no longer writes an ``is required by'' line to the
14202         execution stack.  It contains only one bit of non-redundant
14203         information: that the macro was required, not called.  And even
14204         this bit is useless in most situations: have you ever met a macro
14205         which both calls and requires the same macro?
14207         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
14208         (_m4_defun_pro_outer): ... only via this macro, for the outermost
14209           macro.
14210         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
14211         (m4_expansion_stack_pop): Remove the misplaced comment.
14212         (m4_require): Don't put the ``is required by'' line to the
14213           execution stack; slightly improve the out-of-a-defun error message.
14214         (_m4_divert_grow): New macro, counter for the temporary diversions.
14215         (_m4_require_call): Use it.
14216         * tests/m4sugar.at (m4_require): Expect output without the
14217           ``is required by'' messages.
14219 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14221         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
14222         rather than x for expr.
14224         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
14225         this is safe.
14226         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
14227         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
14228         * lib/autotest/general.m4 (AT_INIT): Likewise.
14229         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
14230         * tests/mktests.sh: Likewise.
14232 2005-01-27  Akim Demaille  <akim@epita.fr>
14234         Have autoheader honor --force.
14236         * doc/make-stds.texi, doc/standards.texi: Update from masters.
14237         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
14238         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
14239         from masters, so that FileUtils.pm's update_file provide --force
14240         support.
14241         * bin/autoheader.in: Pass $force to update_file so that
14242         config.h.in is always recreated when --force.
14244 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
14246         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
14248 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14250         * doc/autoconf.texi (Limitations of Builtins): Clarify that
14251         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
14253 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14255         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
14256         Warn about newline stripping in `` and $().  Update Solaris
14257         version to 9.
14258         (Limitations of Builtins): Use expr "X...", not expr "x...", as
14259         X insulates us from future changes to Posix.
14260         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
14261         stripping.
14263 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
14265         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
14266           you cannot use AC_DEFINE to define macros containing `[' or `]'.
14268 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
14270         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
14271         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
14272         bug-tar mailing list.
14274 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
14276         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
14278 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14280         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
14281         ulongval to be static, to avoid unwanted GCC warning.  Problem
14282         reported by Michael Jennings via Daniel Reed; see
14283         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
14285 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
14287         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
14288         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
14289         datadir, infodir, and mandir.  Adjust argument parsing code.
14290         (_AC_INIT_HELP): Update help text.
14291         * doc/autoconf.texi (Installation Directory Variables): Document
14292         new variables.
14294 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
14296         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
14297         not seem to work, assume it does set $(MAKE).
14298         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
14300 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
14302         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
14304 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
14306         A cleanup of the diversion support in m4sugar.
14308         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
14309         (_m4_divert_n_stack): New macro; the expansion is
14310           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
14311           otherwise.
14312         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
14313         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
14314           stored in _m4_divert_diversion or _m4_divert_dump.
14315         (m4_divert_pop): When the parameter is given, compare the symbolic
14316           name with the last diversion pushed on the stack.  Previously, the
14317           current diversion was compared with the numeric value of the
14318           diversion given as the parameter.
14319         (m4_require): If the macro hasn't been expanded yet, call ...
14320         (_m4_require_call): this new macro.
14322 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14324         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
14325         Workarounds for documented `case' limitations.
14327 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14329         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
14330         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
14332 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
14334         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
14335         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
14336         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
14338         Patch from Roger Leigh (with some minor changes) as follows:
14339         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
14340         Resurrect AC_PROG_CC_STDC.
14341         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
14342         AC_PROG_CC_C89, AC_PROG_CC_C99.
14343         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
14344         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
14345         AC_PROG_CC_C99): New macros.
14346         (AC_PROG_CC_STDC): Use them.
14347         (_AC_PROG_CC_STDC): Remove.
14348         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
14349         * THANKS: Add Roger Leigh.
14351 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
14353         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
14354         signals that the package uses Automake; a `Makefile.am' is typical but
14355         not essential.  Reported by Magnus Therning.
14356         * tests/torture.at (autoreconf.): New banner.
14357         (autoreconf and non-AC configure): Rename to `Non-Autoconf
14358         AC_CONFIG_SUBDIRS'.
14359         (autoreconf an empty directory): Rename to `Empty directory'.
14360         (Unusual Automake input files): New test.
14362 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
14364         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
14365         (AT_SETUP): Clear AT_capture_files.
14366         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
14367         (AT_KEYWORDS): Fix comment typo.
14368         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
14369         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
14370         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
14372 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
14374         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
14375         If the variable to set is already set, set ac_cv_path_$1
14376         to the preset value so caller can assume ac_cv_path_$1
14377         is available.  (trivial change)
14379 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
14381         * BUGS (Minor Problems): Warn about makefile limitations.
14382         * Makefile.am: Find and update `INSTALL' in $(srcdir).
14383         * man/Makefile.am: Find and update manual pages in $(srcdir).
14385 2004-12-24  Eric Blake  <ebb9@byu.net>
14387         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
14388         shells in subshell, to avoid noise from ash.  (trivial change)
14390 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14392         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
14393         problems with SunOS ksh and backslash escaping, Bourne shells and
14394         closing brackets (both within character classes).  Bug reported
14395         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
14396         <read>: New entry.  Mention non-availability of -r.
14398 2004-12-21  Akim Demaille  <akim@epita.fr>
14400         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
14401         avoid cluttering displayed messages.  Rather, prepend srcdir where
14402         AT_LINE is used for log files.
14404 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
14406         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
14407         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
14408           no longer part of the macro, quote the occurrence of ``$tmp''.
14409         * doc/autoconf.texi (Forbidden Patterns): Typo.
14411 2004-12-21  Akim Demaille  <akim@epita.fr>
14413         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
14414         separated from the test title by forcing a white space.
14416 2004-12-21  Akim Demaille  <akim@epita.fr>
14418         Enable Emacs navigation within testsuite.log files.
14420         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
14421         use the compilation mode.
14422         (AT_LINE): Point to the srcdir.
14424 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
14426         * tests/Makefile.am (installcheck-local): Use $(bindir).
14427         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
14428         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
14429         Makefile.am scheme Autoconf now uses.
14431 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
14433         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
14434         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
14436 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
14438         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
14439         (_AT_CHECK): Use it.
14440         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
14441         (AS_ESCAPE): Fix comment.
14442         * tests/autotest.at: Adjust section banner comments.
14443         (AT_CHECK_AT): Accept STATUS and STDERR.
14444         (AT_CHECK_AT_TEST): Likewise.
14445         (Invalid brace-enclosed parameter expansion)
14446         (Multiline command from M4 expansion)
14447         (Double-M4-quoted command): New tests.
14449 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14451         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
14453 2004-12-17  Akim Demaille  <akim@epita.fr>
14455         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
14456         m4_pattern_allow.
14457         Suggested by Alexandre Duret-Lutz.
14458         * doc/autoconf.texi (Setting Output Variables): Catch up.
14460 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14462         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
14464 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14466         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
14467           remove the comment which said we cannot.
14469 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14471         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
14472         Reini Urban and Paul Eggert for reporting the dependencies.
14474         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
14475         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
14476         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
14478 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
14480         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
14481           so that eg. ``autoscan --help'' doesn't truncate it.
14483 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
14485         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
14486         generated conftest files.
14488 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
14490         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
14491         tracing on commands with possibly-escaped newlines.
14492         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
14493         discontinued behavior and its implications.
14494         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
14495         (BSx641-newline in command, BS-BS-newline in command)
14496         (BSx640-newline in command, Newline-CODE-BS-newline in command)
14497         (Single-quote-BS-newline in command)
14498         (Single-quote-newline-BS-newline in command): New tests.
14500 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
14502         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
14503           on platforms where it works.
14504         (_AS_TEST_PREPARE): Test for ``test -x''.
14505         (_AS_BROKEN_TEST_PREPARE): Nuke.
14507 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
14509         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
14510         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
14511           give only 4-letter prefix to AS_TMPDIR, comment fixed.
14512         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
14513           create the temporary directory.
14514         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
14516 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
14518         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
14519         (trivial change)
14521 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
14523         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
14525 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
14527         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
14528         to avoid using a negated character class.  Reported by Nicolas Joly.
14529         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
14531 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
14533         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
14534         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
14535         Don't depend on .x file explicitly, since "make" does that for us.
14536         Suggested by Stepan Kasal.
14538         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
14539         Add *.tmp.
14540         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
14541         ifnames): Factor common code.  And they said it couldn't be done!
14543 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
14545         * bin/.cvsignore: Add autoconf.in.
14546         * tests/.cvsignore: Add wrapper.in.
14547         * lib/autotest/general.m4: Escape '$' in case pattern.
14549 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
14551         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
14553         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
14555         * tests/autotest.at: New file.
14556         * tests/suite.at: Include it.
14557         * tests/Makefile.am: Distribute it.
14559         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
14560           shell tracing on a command that could contain multiple lines.
14561         * doc/autoconf.text: Document that fact and its implications.
14562         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
14563         * tests/autotest.at (Multiline backquote command substitution,
14564           Multiline parameter expansion, Literal multiline command,
14565           Multiline parenthetical command substitution): Remove XFAIL.
14567 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
14569         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
14570         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
14572 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
14574         * configure.ac (test suite): Cease to generate wrapper scripts.
14575         * configure: Regenerate.
14576         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
14577         (m4f_dependencies): Adjust accordingly.
14578         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
14579         (wrapper.in): Generate it in the build directory.
14580         (MAINTAINERCLEANFILES): Delete wrapper.in.
14581         (CLEANFILES): Add wrapper.in.
14582         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
14583         the output.  Replace each $as_me with a @wrap_program@.
14584         * tests/wrapper.in: Delete it; we always build it.
14586         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
14587         (EXTRA_DIST): Remove autoconf.in.
14588         (CLEANFILES): Add autoconf.in.
14589         (autoconf): Find autoconf.in in the build directory.
14590         * bin/autoconf.in: Delete it; we always build it.
14592 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
14594         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
14595         PATH members so as to not prepend an empty element.  Move a comment.
14596         * Makefile.am (SUBDIRS): Build in `tests' last.
14597         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
14599 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14601         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
14602         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
14603         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
14604         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
14606 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
14608         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
14609         patch: extra "-l"s.
14611 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14613         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
14614         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
14615         * doc/autoconf.texi (Particular Functions): Mention new behavior.
14617 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
14619         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
14620           out the common code to ...
14621         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
14622           value of the #define--default to 1, iff the macro was called
14623           with exactly one parameter.
14625 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
14627         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
14628         "char c = '\200';" rather than "char c = 0x80;" as the
14629         latter doesn't conform to the strict C standard due to
14630         overflow on signed char hosts.
14632         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
14633         to -qlanglvl=ansi.  We don't want to disable extensions.
14635 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
14637         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
14638         (Using Autotest, testsuite Scripts, Writing testsuite.at):
14639         Reword slightly to avoid some English-language problems noted
14640         by Ralf Wildenhues in:
14641         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
14643 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
14645         * NEWS: Add ^L above each release.
14647 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14649         Fix documentation problems reported by Russ Boylan in
14650         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
14651         along with some nearby cruft.
14652         * doc/autoconf.texi (Libtool): Libtool can be used without
14653         Automake (not without Autoconf).
14654         (Introduction): Mention lists.gnu.org.
14655         * BUGS: Don't mention bugs.gnu.org.
14656         Remove mention of ancient libtool compatibility problem.
14657         * NEWS: Mention that bugs.gnu.org is kaput.
14658         * README: Likewise.  Mention where mailing list archives can be found.
14660 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
14662         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
14664 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14666         * doc/autoconf.texi (Pretty Help Strings): Go back to
14667         single-quoting assignments to cache variables.
14669 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
14671         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
14672         with the examples; fix the bug in MY_ARG_WITH example reported
14673         by Alexandre Duret-Lutz.
14674         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
14675         expansion of $1 in the comment emitted to configure.
14677 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14679         * doc/autoconf.texi (Pretty Help Strings): Fix typo
14680         in my editing of the previous patch.  Problem reported
14681         by Alexandre Duret-Lutz.
14683 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
14685         * doc/autoconf.texi (Autoconf Language): Explain that
14686         ``descriptions'' may not be double quotes.
14687         (Quotation Rule Of Thumb): Likewise.
14688         (Pretty Help Strings): Likewise; remove the wrong comment;
14689         simplify the examples and improve their quoting.
14691 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
14693         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
14694         the $1_found variable, don't test whether the file is executable;
14695         Both things are checked ...
14696         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
14697         the former ``test -f''.
14698         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
14700 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
14702         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
14703         use cp -R instead.
14705 2004-11-10  Derek R. Price  <derek@ximbiot.com>
14707         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
14708         limitations.  Reorder paragraphs for clarity.
14710 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14712         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
14713         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
14714         variants", "Unix", and some related minor wording fixups.
14716         (Shellology, Special Shell Variables): Document that the Zsh
14717         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
14718         to Alexandre Duret-Lutz for this info.
14720 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
14722         * doc/autoconf.texi (One-Shot Macros): New node.
14724 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14726         * doc/autoconf.texi (Function Portability): Fix misdescription
14727         of putenv.  Problem reported by Michael Wardle.
14729 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14731         * doc/autoconf.texi (auindex): New macro.
14732         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
14733         Problem reported by Stepan Kasal.
14735 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14737         Fix problems reported by Andreas Buening in:
14738         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
14739         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
14740         in test makefile.
14741         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
14742         readable; it's not true in OS/2-emx.
14744 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
14746         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
14747         "/usr/include", clear ac_x_includes instead of leaving it as "no"
14748         (trivial change).  Problem and patch reported by Andrew Church in:
14749         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
14751 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14753         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
14754         three args in examples.  Problem reported by Frederik Fouvry in:
14755         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
14756         Also, fix some minor spacing and punctuation bugs.
14758 2004-09-02  Akim Demaille  <akim@epita.fr>
14760         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
14761         "case" to restore ordering.
14762         Reported by Stepan Kasal.
14764 2004-08-26  Akim Demaille  <akim@epita.fr>
14766         * doc/autoconf.texi: Minor typos and stylos.
14768 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14770         * configure.ac (AC_INIT): Bump to 2.59c.
14772 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14774         Version 2.59b.
14776         * README: Add advice about m4 1.4.2.
14778         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
14779         texinfo.tex for now (done by hand now).
14780         * Makefile.maint (wget_files, cvs_files):
14781         Remove ansi2knr.c; nobody uses it.
14782         (ansi2knr.c-url_prefix): Remove.
14783         (cvs-update): Fix test for failure.  I don't know why it ever
14784         worked...
14786         * doc/autoconf.texi: Update URLs, some of which went stale.
14787         Use @uref rather than @href.
14789         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
14790         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
14792         * config/config.guess, config/config.sub, config/elisp-comp,
14793         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
14794         doc/fdl.texi, doc/standards.texi: Sync with master copy.
14796         * NEWS, TODO, configure.ac, bin/autoscan.in,
14797         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
14798         doc/install.texi, lib/Autom4te/Configure_ac.pm,
14799         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
14800         lib/autoconf/programs.m4, lib/autoconf/status.m4,
14801         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
14802         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
14803         tests/tools.at, tests/torture.at:
14804         Use "file name" rather than "filename" or "path",
14805         to be consistent with the terminology of the GNU coding standards.
14807 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14809         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
14810         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
14811         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
14812         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
14814         More fixes to support spaces in the name of the build directory.
14815         This isn't a complete fix but it's an improvement.
14817         * bin/autoconf.as (autom4te_options): New var.
14818         Use it instead of appending to AUTOM4TE, so that we can allow
14819         spaces in the build directory's absolute name.
14820         * bin/autoheader.in ($autoconf): Allow spaces in file names.
14821         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
14822         AT_CHECK_NOESCAPE): Likewise.
14823         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
14824         main program): Likewise.
14826 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14828         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
14829         From Ralf Corsepius in:
14830         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
14832 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14834         * doc/autoconf.texi (Function Portability): Document isinf and
14835         and isnan.  From a suggestion by Kevin Ryde.
14837         * lib/Autom4te/General.pm (END): Return correct exit status even
14838         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
14840 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14842         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
14843         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
14844         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
14846 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
14848         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
14849         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
14850         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
14851         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
14852         * lib/autom4te.in (Automake-preselections): Preselect
14853         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
14855 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
14857         * lib/autom4te.in (Automake-preselections): Preselect
14858         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
14859         trace them.
14861 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
14863         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
14864         Tru64.
14865         * doc/autoconf.texi (Shellology): Mention BIN_SH.
14866         Document problem with "`""`" in pdksh POSIX mode.
14868 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14870         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
14871         with pdksh, too.  Problem reported by Patrick Welche via
14872         Gary V. Vaughan.
14873         * doc/autoconf.texi (Shellology): Note that set -o posix is
14874         useful for pkdsh, too.
14876 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14878         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
14879         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
14880         Don't fail if ENV or BASH_ENV is readonly.
14881         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
14882         etc. are read only.  Problem reported by Ludovic Courtes.
14884 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
14886         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
14887         zsh, disable GLOB_SUBST to avoid backslash handling problems.
14888         (trivial change)
14890 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14892         * doc/autoconf.texi (File System Conventions): Warn about
14893         names like "aux".  Problem reported by Eric Blake.
14895         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
14896         by zero instead of array size, so that we can use any arithmetic
14897         constant expression (instead of requiring an integer constant
14898         expression).  This allows us to test expressions like DBL_MAX <
14899         LDBL_MAX, which didn't conform to the C standard using the old
14900         method.
14901         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
14902         now that we can do floating-point tests at compile time.
14904 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14906         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
14907         and LDBL_EPSILON, as the resulting expression isn't an
14908         integer constant expression and violates the C standard.
14909         Problem reported by Nelson H. F. Beebe.  Also, check
14910         for "L" suffix, and check that long double doesn't have
14911         worse range or precision than double, that mixed-mode
14912         arithmetic doesn't generate a diagnostic, that double
14913         constants fit in long double.
14915 2004-06-03  Kevin Ryde  <user42@zip.com.au>
14917         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
14918         malloc(0) and realloc(NULL,size).
14920         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
14921         Bob Proulx.
14923 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14925         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
14926         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
14927         by Jim Meyering.
14929 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
14931         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
14932         can be rewritten using if-then-else.  Suggested by Bruno Haible.
14934 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14936         * doc/autoconf.texi (testsuite Scripts): Fix typo.
14937         Problem reported by Stepan Kasal.
14939 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14941         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
14942         change).  Patch reported by Ralf Wildenhues in
14943         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
14945         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
14946         function F exists if the compiler and linker let you compile an
14947         expression like (F != 0).  Recent versions of GCC optimize away
14948         the reference to F in that case, since every function address must
14949         be nonzero, so the link succeeds even if F does not exist.
14950         Problem reported by Manu in
14951         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
14953         * doc/autoconf.texi (Systemology): Standardize on the spelling of
14954         "Unix".  Many uses changed.
14955         (Limitations of Builtins): Explain better why the ! command isn't
14956         portable.
14958 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
14960         * lib/autom4te.in (Automake-preselections): Preselect
14961         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
14963 2004-05-19  Kevin Ryde  <user42@zip.com.au>
14965         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
14966         referencing AC_FUNC_STRERROR_R.
14968         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
14969         note pessimistic assumption when cross compiling.
14971 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14973         * doc/autoconf.texi (Limitations of Make): Note that BSD make
14974         (until 2004) invoked subcommands with sh -e, contra POSIX.
14975         Reported by Kevin Ryde.
14977 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
14979         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
14980         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
14981         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
14982         `test -f "        /usr/bin/grep"', which _always_ failed.
14983         (AC_PROG_SED): Ditto bogus PATH fix.
14984         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
14985         requires that grep correctly supports _multiple_ `-e' options, rather
14986         than stating only that grep should accept `-e'.
14988 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14990         Port to C99, which requires that 'exit' be declared.
14992         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
14993         to ensure that stdlib.h is included.
14994         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
14995         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
14996         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
14997         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
14998         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
14999         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
15000         when using 'exit' in a test; C99 requires that 'exit' be declared.
15002 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15004         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
15005         now prefers 'grep' implementations that accept -e.
15006         (Limitations of Usual Tools): Describe problems of traditional
15007         egrep and fgrep with long input lines, and of traditional grep
15008         with -e.
15009         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
15010         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
15011         All callers changed.  Append /usr/xpg4/bin to the PATH, for
15012         Solaris.
15013         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
15014         the user with complaints about multiple -e options.
15015         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
15016         Define it with AC_PROG_GREP.
15017         * configure.ac (AC_PROG_GREP): Add.
15018         * lib/freeze.mk (GREP): New macro.
15020 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
15022         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
15023         a possible candidate only after all others fail, rather than
15024         consulting it first.  This improves backward compatibility by
15025         better reflecting the way shell selection occurred in previous
15026         versions of Autoconf, and should help to avoid triggering latent
15027         problems in other packages, such as the one in Automake where zsh
15028         is not handled robustly:
15029         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
15030         Although it is not Autoconf's responsibility to work around
15031         problems in Automake, it nevertheless makes sense to avoid
15032         introducing unnecessary incompatibilites.
15034 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
15035             Gary V. Vaughan  <gary@gnu.org>
15037         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
15038         how deeply nested we are when a suitable tool is found, set the
15039         ac_path_TOOL_found flag.
15040         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
15041         nested we are in this macro.  Break out of all 3 nested loops if
15042         ac_path_TOOL_found is set.
15044 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
15046         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
15047         of the _AS_PATH_WALK loop too if GNU flavor is found.
15049 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
15051         * doc/autoconf.texi (Limitations of Make): Update documentation
15052         for `$<'.  New entry `Long lines', based on a report from Simon
15053         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
15054         paragraph about DJGPP, based on a mail from Richard Dawe.
15056 2004-04-20  Paul Eggert  <eggert@twinsun.com>
15058         * tests/c.at (C keywords): Don't assume that GCC supports
15059         "restrict" and "inline", as sufficiently-old GCC versions do not
15060         (also, GCC configured to be in pedantic C89 mode does not).
15061         Problem reported by Sumit Pandya in:
15062         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
15064         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
15065         consider -g to work if it generates warnings when plain compiles
15066         don't.  Problem reported by Braden McDaniel in:
15067         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
15069         * doc/autoconf.texi (Slashes): New section, to document a problem
15070         reported by Jim Meyering in:
15071         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
15073         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
15074         linker output files before linking, to work around IRIX 6 linker bug.
15075         Problem reported by Rainer Orth in:
15076         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
15078 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
15080         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
15081         best tool so far counter rely on the tool path variable name to
15082         avoid checks for one tool being affected by the results of running
15083         the length check on a previous tool.
15085         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
15086         match expression argument, as different greps have different
15087         regular expression flavours.
15088         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
15089         literals.
15090         (AC_PROG_EGREP): Pass 'EGREP$'.
15091         (AC_PROG_GREP): Pass 'GREP$'.
15093 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
15095         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
15096         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
15098 2004-03-29  Paul Eggert  <eggert@twinsun.com>
15100         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
15101         Types, Specific Compiler Characteristics, System Services,
15102         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
15103         etc. consistently instead of 'long', 'short', 'unsigned' etc.
15104         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
15105         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
15106         Likewise.
15107         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
15108         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
15109         AC_TYPE_OFF_T): Likewise.
15110         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
15111         Likewise.
15113         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
15114         pacify libtool 1.5.2.  Fix quoting problems in sed command.
15116 2004-03-28  Paul Eggert  <eggert@twinsun.com>
15118         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
15119         now defines HAVE_DECL_TZNAME if it is declared, when
15120         HAVE_STRUCT_TM_TM_ZONE is not defined.
15121         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
15122         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
15123         for HAVE_TZNAME.
15125 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
15127         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
15128         superfluous backslashing of quotes (") in sed expressions;
15129         thanks to Paul Eggert.
15131 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
15133         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
15134         Fortran compiler is ifort, also added pghpf; thanks to Nelson
15135         H. F. Beebe for the bug report.
15137 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
15139         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
15140         quoted -cmdline argument in Portland Group compiler (bug
15141         reported by Jeffrey J. Barteet).
15143 2004-03-25  Kevin Ryde  <user42@zip.com.au>
15145         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
15146         (Run Time): ... here, where it's now mentioned.
15148 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
15150         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
15151         inherits from language Autoconf-without-aclocal-m4.
15152         (Customizing autom4te): Adjust example; the cache must now be
15153         disabled for language Autoconf-without-aclocal-m4.
15155 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
15156             Nathanael Nerode  <neroden@twcny.rr.com>
15158         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
15159         AC_CHECK_TOOLS): Warn if a cross-tool is found without
15160         a prefix.
15161         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
15162         AC_CHECK_TARGET_TOOLS): New macros.
15163         * doc/autoconf.texi (Generic Programs): Document
15164         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
15165         AC_CHECK_TARGET_TOOLS, and warn for future changes
15166         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
15167         AC_CHECK_TOOLS.
15168         (Specifying Names): Document the reason for these future
15169         behavioral changes.
15170         * tests/mktests.sh: Do not generate tests for the
15171         new macros.
15172         * NEWS: Document these changes.
15174         * doc/autoconf.texi: Avoid macros with unbraced arguments,
15175         they make TeX hang up.
15177 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
15179         * NEWS: New macro AC_CHECK_ALIGNOF.
15180         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
15181         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
15182         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
15183         vowel.
15184         (AC_CHECK_ALIGNOF): New macro.
15185         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
15186         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
15187         those for sizeof.
15189 2004-03-03  Paul Eggert  <eggert@twinsun.com>
15191         * bin/Makefile.am (edit): Don't use $< in a context where
15192         POSIX doesn't require support for it.  Use $@.in instead.
15193         Problem reported by Anthony N. Frasso in
15194         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
15195         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
15197 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
15199         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
15200         from the next generation of Libtool.
15201         * lib/autom4te.in (Autoreconf-preselections): Ditto.
15203 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
15205         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
15206         is not always thread-safe.  Report from Nathanael Nerode.
15208 2004-02-18  Paul Eggert  <eggert@twinsun.com>
15210         Fix a dependencies problem, stemming from a Autoconf 2.59 build
15211         problem on QNX reported by Stephen Rasku in
15212         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
15214         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
15215         $(m4sh_m4f_dependencies); this removes a FIXME.
15216         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
15217         (MAINTAINERCLEANFILES): Split into pieces,
15218         one per related section.  Add $(srcdir)/wrapper.in.
15220 2004-02-09  Paul Eggert  <eggert@twinsun.com>
15222         * doc/autoconf.texi (Setting Output Variables): Emphasize that
15223         AC_SUBST provides no portable way to escape literal newlines.
15225         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
15226         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
15227         Darwin uses -lcrt2.o and there's little point to cataloging all
15228         the system variants.  Partial fix reported by Andreas Waechter in:
15229         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
15230         for bug reported by Nelson H. F. Beebe in:
15231         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
15233 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
15235         * doc/autoconf.texi (AU_DEFUN): Fix English,
15236         suggested by Paul Eggert.
15237         * lib/autoconf/autoupdate.m4: Correct reference to
15238         acobsolete.m4, suggested by Alexandre Duret-Lutz.
15240 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
15242         * bin/autoupdate.in: Define __file__ so that warnings
15243         refer to the correct file.
15244         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
15245         the behavior of the third argument.
15246         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
15247         correctly the behavior of the third argument.  Document
15248         what the three macros that AU_DEFUN defines do.  Fix
15249         warning message when the third argument includes $0
15250         (reported by Alexandre Duret-Lutz).
15252 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
15253             Eric Sunshine  <sunshine@sunshineco.com>
15254             Paul Eggert  <eggert@twinsun.com>
15256         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
15257         (AS_INIT): Output shell initialization there. Removed optional
15258         parameter. Expand _AS_SHELL_FN_SPY.
15259         (AS_INIT_WITH_SHELL_FN): Removed.
15260         (_AS_SHELL_FN_SPY): New macro.
15261         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
15262         macros.
15263         (AS_SHELL_SANITIZE): Remove loop to find better shell
15264         and documentation for the parameter.
15265         (_AS_DETECT_BETTER_SHELL): Move it here.
15266         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
15267         (_AS_RUN): Move it here, support testing with eval.
15268         (AS_REQUIRE_SHELL_FN): Require shell functions when
15269         it is used.
15270         (_AS_LINENO_WORKS): Put around braces, we do not
15271         trigger the bash bug anymore.
15272         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
15273         use AS_INIT_WITH_SHELL_FN.
15274         * bin/autoconf.in, tests/wrapper.in: Regenerated.
15276 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
15278         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
15279         * doc/autoconf.texi: Don't say that the third parameter
15280         is broken.
15281         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
15282         (AU_DEFUN): Honor the third parameter, create autoupdate
15283         macros with AU_DEFINE.
15284         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
15285         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
15286         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
15287         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
15288         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
15289         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
15290         AC_XENIX_DIR): Likewise.
15291         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
15292         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
15293         * lib/autoconf/status.m4: Remove FIXME.
15294         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
15295         that the macro is not present anymore in the updated
15296         configure.ac.
15297         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
15298         of autoupdate.
15300 2004-01-28  Paul Eggert  <eggert@twinsun.com>
15302         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
15303         copyright years.
15304         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
15305         2003 (except 1997) to the list of copyright years.  This undoes
15306         the 2003-05-22 change, which removed the older years from the list.
15307         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
15309 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
15310             Albert Chin-A-Young  <china@thewrittenword.com>
15312         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
15313         grep or ggrep program in PATH that accepts as long lines as
15314         possible.
15315         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
15316         AC_PROG_GREP.
15317         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
15318         egrep and fgrep respectively if $GREP -E/-F don't work.
15319         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
15320         _AC_PROG_GREP, and AC_PROG_SED.
15321         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
15322         longest input length accepted by a command.
15323         (AC_PROG_SED): Use it.
15324         * doc/autoconf.texi (Particular Programs): Document the changes.
15325         * NEWS: Updated.
15327 2004-01-27  Paul Eggert  <eggert@twinsun.com>
15329         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
15330         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15331         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
15332         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
15334         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
15335         bin/autoconf.in, config/Makefile.in, config/config.guess,
15336         config/config.sub, config/install-sh, config/mdate-sh,
15337         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
15338         lib/Makefile.in, lib/Autom4te/Makefile.in,
15339         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
15340         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
15341         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
15342         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
15343         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
15344         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
15345         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
15346         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
15347         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
15348         tests/actypes.at: Regenerate and/or sync with original
15349         sources.
15351 2004-01-26  Paul Eggert  <eggert@twinsun.com>
15353         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
15354         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
15355         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
15356         not <inttypes.h>.  Problem reported by Tim Mooney in
15357         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
15358         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
15359         Likewise.
15361         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
15362         otherwise "make check" fails because it forbids cmp (I guess
15363         because cmp treats files as binary on DOS-like systems).
15365         * tests/mktests.sh: Update copyright date to 2004, since some tests
15366         have changed in 2004.
15368 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
15370         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
15371         non-truncating sed or gsed program in PATH.
15372         * tests/acprograms.at: Add it.
15373         * doc/autoconf.texi (Particular Programs): Document it.
15374         * NEWS: Updated.
15376 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15378         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
15379         -std1 disables some useful extensions on Tru64.  Problem reported
15380         by N. Lichtmaier in
15381         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
15383 2004-01-14  Paul Eggert  <eggert@twinsun.com>
15385         * doc/autoconf.texi (Programming in M4sh): Document that
15386         AS_MKDIR_P succeeds if the destination is a symbolic link
15387         to an existing directory.
15388         (Limitations of Usual Tools): Note that mkdir -p might not
15389         succeed on symlinks to directories.
15391 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
15393         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
15394         * bin/autoheader.in: Grammar fix in message.
15395         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
15396         Test for dir before calling mkdir -p.  (trivial changes)
15398 2004-01-13  Eric Blake  <ebb9@byu.net>
15400         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
15401         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
15403 2004-01-10  Jim Meyering  <jim@meyering.net>
15405         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
15407 2004-01-09  Paul Eggert  <eggert@twinsun.com>
15409         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
15410         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
15411         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
15412         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
15413         AC_COMPILE_IFELSE, since we now assume our caller invokes
15414         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
15415         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
15416         of AC_RUN_IFELSE; this avoids the warning mentioned above.
15417         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
15419 2004-01-07  Paul Eggert  <eggert@twinsun.com>
15421         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
15422         `"'...'"`, as it's confusing (and I suspect it may not work on
15423         some platforms).  The code was incorrect anyway, as it assumed
15424         that \$ evaluated to itself in that context.  Reported by
15425         Alexandre Duret-Lutz.
15427 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
15429         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
15430         and _LT_AC_TAGCONFIG.
15432 2004-01-06  Paul Eggert  <eggert@twinsun.com>
15434         * doc/autoconf.texi (One Macro Call): Fix an incorrect
15435         example, and add more examples.  Reported by Eric Sunshine.
15437 2004-01-05  Paul Eggert  <eggert@twinsun.com>
15439         * doc/autoconf.texi (Limitations of Usual Tools):
15440         Remove warning against "rm -fr" introduced yesterday; it
15441         was a false alarm.
15443         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
15444         autoscan, autoupdate, ifnames): Don't use chmod -w.
15445         * lib/Makefile.am (autom4te.cfg): Likewise.
15446         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
15447         "chmod -w".
15449 2004-01-04  Paul Eggert  <eggert@twinsun.com>
15450             Paolo Bonzini  <bonzini@gnu.org>
15452         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
15453         by doing lineno substitution only on lines containing "$LINENO".
15455 2004-01-04  Paul Eggert  <eggert@twinsun.com>
15457         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
15458         Use "rm -f" to remove conftest.sed, not plain "rm".
15459         Bug reported by David Relson in
15460         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
15462         * Makefile.am (autom4te-update):
15463         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
15464         * Makefile.maint (my-distcheck, do-po-update): Likewise.
15465         * doc/autoconf.texi (Guidelines): Likewise.
15466         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
15467         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
15468         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
15469         * lib/autotest/general.m4 (AT_INIT): Likewise.
15470         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
15471         * tests/Makefile.am (clean-local): Likewise.
15472         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
15473         srcdir): Likewise.
15474         * doc/autoconf.texi (Limitations of Usual Tools):
15475         Warn against "rm -fr".
15477 2004-01-03  Paul Eggert  <eggert@twinsun.com>
15479         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
15480         -c -o might not work.  From a suggestion by Kevin Ryde.
15481         (C Compiler, Generating Sources, Limitations
15482         of Usual Tools, Limitations of Make, Making testsuite Scripts):
15483         Don't put '-o' after non-options, as POSIX doesn't allow this.
15484         Mention that cc's name might be gcc or c89 or whatever.
15486 2004-01-04  Kevin Ryde  <user42@zip.com.au>
15488         * doc/autoconf.texi: Add various further index entries.
15490 2003-12-29  Paul Eggert  <eggert@twinsun.com>
15492         * bin/autoreconf.in (autoreconf_current_directory):
15493         Fix typo: mkdir without umask arg.
15495 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
15497         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
15498         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
15499         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
15500         explanation clearer.
15502 2003-12-24  Andreas Schwab  <schwab@suse.de>
15504         * doc/autoconf.texi (Default Includes): Fix misspelling of
15505         AC_INCLUDES_DEFAULT.
15507 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
15509         * configure.ac: Test if sh -n works.
15510         * configure: Regenerate.
15511         * tests/atlocal.in: Store the result here.
15512         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
15513         tools.at, looking in atlocal's ac_cv_sh_n_works instead
15514         of explicitly testing.
15515         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
15516         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
15517         * tests/tools.at (Syntax of the shell scripts): Simplify
15518         using AT_CHECK_SHELL_SYNTAX.
15519         (Syntax of the Perl scripts): Remove definition of
15520         AT_CHECK_PERL_SYNTAX.
15522 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
15524         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
15525         stderr to /dev/null.
15526         * bin/autoconf.in: Regenerate.
15527         * bin/wrapper.in: Regenerate.
15529 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
15531         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
15532         Extracted from AS_SHELL_SANITIZE.
15533         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
15534         macros.
15535         (AS_SHELL_SANITIZE): Move reinvocation code from
15536         _AS_LINENO_WORKS, use it to find out if shell
15537         functions work.
15538         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
15539         does not work.
15540         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
15541         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
15542         was called.
15543         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
15544         * bin/autoconf.in: Regenerate.
15545         * tests/wrapper.in: Regenerate.
15546         * tests/tools.at: Test the syntax of tests/autoconf
15547         and tests/testsuite.
15549 2003-11-24  Akim Demaille  <akim@epita.fr>
15551         * config/announce-gen (&print_locations, &print_signatures)
15552         (&sizes): New.
15553         Use them.
15554         No longer rely on Gnus to inline the list of signatures: compute
15555         them on the fly.
15557 2003-11-24  Akim Demaille  <akim@epita.fr>
15559         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
15560         override some files.
15561         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
15562         From Debian Autoconf 2.58.
15564 2003-11-24  Akim Demaille  <akim@epita.fr>
15566         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
15567         uses.
15568         From Debian Autoconf 2.58.
15570 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15572         * TODO: Remove already done things.  Update the part about finding
15573         tools for the target.
15575 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15577         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
15578         Make wording more consistent.
15579         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
15580         Explain the transition better.
15581         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
15582         the transition better.
15584 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
15586         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
15587         parameter of AU_DEFUN.
15588         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
15589         (AU_DEFUN): Remove the third parameter, it was not used.
15590         Use AC_DEFUN directly, not AU_DEFINE.
15591         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
15592         the expanded body, consistently with other macros such as AC_USG.
15594 2003-11-17  Paul Eggert  <eggert@twinsun.com>
15596         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
15597         into the initial confdefs.h, to work around a bug in NextStep 3.3
15598         patch 3 reported by Eric Sunshine.
15600 2003-11-15  Kevin Ryde  <user42@zip.com.au>
15602         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
15603         than $target since the latter is not usual, add guidelines on when to
15604         use or not use the system type.
15606 2003-11-12  Derek Price  <derek@ximbiot.com>
15608         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
15609         typo misrepaired by an auto-spellcheck.
15611 2003-11-12  Akim Demaille  <akim@epita.fr>
15613         * bin/autoreconf.in (&parse_args): Don't call automake with
15614         --force-missing unless it actually supports it.
15615         From Debian #219336.
15617 2003-11-12  Akim Demaille  <akim@epita.fr>
15619         * configure.ac: Bump to 2.59a.
15620         Require 2.59.
15622 2003-11-06  Akim Demaille  <akim@epita.fr>
15624         Version 2.59.
15626 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
15628         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
15629         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
15630         and ac_abs_top_srcdir are absolute paths.
15631         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
15633 2003-11-05  Akim Demaille  <akim@epita.fr>
15635         * configure.ac: Bump to 2.58a.
15637 2003-11-05  Kevin Ryde  <user42@zip.com.au>
15639         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
15640         it provokes a warning from makeinfo about looking like a cross
15641         reference in info output.
15643         * doc/autoconf.texi (Function Portability): Add notes on signal
15644         handler return type, as per AC_TYPE_SIGNAL.
15646 2003-11-04  Akim Demaille  <akim@epita.fr>
15648         Version 2.58.
15649         * doc/standards.texi: Update from master.
15651         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
15653 2003-11-04  Akim Demaille  <akim@epita.fr>
15655         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
15656         computing the absolute path to d1 in the source hierarchy: it may
15657         not exist at all.  So don't cd into it.
15658         From Alexandre Duret-Lutz.
15659         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
15661         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
15662         From Paul Eggert, but named after Perl's IO::Spec->catfile.
15663         * doc/autoconf.texi (Programming in M4sh): Document.
15664         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
15666 2003-11-03  Pavel Roskin  <proski@gnu.org>
15668         * doc/autoconf.texi (Generic Structure Checks): Describe
15669         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
15671 2003-10-31  Akim Demaille  <akim@epita.fr>
15673         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
15674         (GNU Fortran): New.
15675         * doc/autoconf.texi (Language Choice): Document.
15676         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
15677         the current language is Fortran.
15679 2003-10-31  Akim Demaille  <akim@epita.fr>
15681         * bin/autom4te.in (&freeze): Use a less likely warning separator
15682         than `\n\n', so that `\n\n\n' is valid in warnings.
15683         Reported by Steve Huston.
15685 2003-10-28  Akim Demaille  <akim@epita.fr>
15687         * Makefile.cfg (local_updates, executable-update): Tweak to be
15688         robust to parallel makes.
15689         Suggested by Alexandre Duret-Lutz.
15691 2003-10-27  Akim Demaille  <akim@epita.fr>
15693         * Makefile.cfg (executable-update): New.
15694         (local_updates): Call it.
15696 2003-10-27  Akim Demaille  <akim@epita.fr>
15698         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
15699         Don't remove core.* as it may remove valid user files.
15700         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
15701         (AC_FUNC_UTIME_NULL): Likewise.
15703 2003-10-23  Akim Demaille  <akim@epita.fr>
15705         Version 2.57g.
15706         * config/config.guess, config/config.sub: Upgrade from masters.
15708 2003-10-23  Akim Demaille  <akim@epita.fr>
15710         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
15711         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
15712         hand...
15714 2003-10-23  Akim Demaille  <akim@epita.fr>
15716         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
15717         Don't forget to remove conftest.err.
15719 2003-10-23  Akim Demaille  <akim@epita.fr>
15721         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
15722         same object file in $LIBOBJS.
15723         Reported by Alexandre Duret-Lutz & Derek Robert Price.
15724         * doc/autoconf.texi (Generic Functions): Adjust.
15726 2003-10-20  Paul Eggert  <eggert@twinsun.com>
15728         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
15729         Use 'eval', so that the resulting configure scripts work even if
15730         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
15732 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
15734         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
15735         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
15736         (_AC_LINK_IFELSE): Check the werror flag.
15737         * doc/autoconf.texi (Generic Compiler Characteristics): Document
15738         AC_LANG_WERROR.
15739         * NEWS: Mention it.
15741 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
15743         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
15744         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
15745         override AC_LINK_IFELSE.
15747 2003-10-15  Paul Eggert  <eggert@twinsun.com>
15749         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
15750         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
15751         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
15752         Mention /usr/dt/bin/dtksh on Solaris.
15753         (Shell Substitutions): Warn about $((...)).
15754         (Parentheses): New section.
15756 2003-10-15  Kevin Ryde  <user42@zip.com.au>
15758         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
15759         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
15761 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
15763         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
15764         cross test.
15766 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
15768         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
15769         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
15771 2003-10-10  Andreas Schwab  <schwab@suse.de>
15773         * bin/autoheader.in: Avoid empty first line in --version and
15774         --help output.
15775         * bin/ifnames.in: Likewise.
15777 2003-10-09  Paul Eggert  <eggert@twinsun.com>
15779         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
15780         Issue a more-informative diagnostic.
15781         Problems reported by Eric Sunshine.
15783 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
15785         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
15786         -mGLOB_options_string stuff for Intel ifc, which can cause
15787         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
15788         pattern-matching instead of grep.
15790 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
15792         * doc/autoconf.texi: Document new FC Fortran macros.
15794 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
15796         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
15797         that future autopoint/aclocal/automake/autoreconf will be able
15798         to trace to find where to install local m4 macros.
15799         * doc/autoconf.texi (Input): Document it.
15800         * NEWS: Updated.
15802 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
15804         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
15805         -lcrtbegin.o to list of ignored flags and fix underquoting of
15806         -lcrt[01].o.
15808 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
15810         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
15811         cache variable instead of $G77 to decide whether to include -O2,
15812         since $G77 is specific to Fortran 77.
15814 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
15816         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
15817         free" flag.  Re-order flags tested into rough order of popularity.
15819 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
15821         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
15822         arguments so that it can be used with syntax identical to
15823         AC_PROG_F77, and so that we can more easily decide to
15824         remove/deprecate the DIALECT optional argument in the future if it
15825         proves troublesome.
15826         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
15827         non-freeform-supporting compilers.  Document freeform flags.
15829 2003-10-03  Akim Demaille  <akim@epita.fr>
15831         * configure.ac: Look for emacs, not macs.
15832         Reported by Eric Sunshine.
15834 2003-10-03  Akim Demaille  <akim@epita.fr>
15836         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
15837         * bin/autoreconf.in (autoreconf_current_directory): Create the
15838         AUX_DIR if needed, for sake of automake --add-missing etc.
15839         Suggested by Alexandre Duret-Lutz.
15841 2003-10-03  Akim Demaille  <akim@epita.fr>
15843         * configure.ac: Quotation and formatting changes.
15844         (EMACS): Don't set it if it is not recent enough to support
15845         autoconf-mode.el.
15846         From Eric Sunshine.
15848 2003-10-02  Akim Demaille  <akim@epita.fr>
15850         * bin/ifnames.in (&scan_file): Skip C++ comments.
15851         From Jeremy Yallop.
15853 2003-10-01  Pavel Roskin  <proski@gnu.org>
15855         * doc/autoconf.texi (Particular Structure Checks):
15856         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
15858 2003-10-01  Akim Demaille  <akim@epita.fr>
15860         Version 2.57f.
15862 2003-09-30  Paul Eggert  <eggert@twinsun.com>
15864         * lib/Autom4te/XFile.pm: Use Errno.
15865         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
15866         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
15868 2003-09-30  Akim Demaille  <akim@epita.fr>
15870         * config/announce-gen (&print_news_deltas): Extracted from...
15871         (&print_changelog_deltas): here.
15872         (&news_file): Rename as...
15873         (@news_file): this.
15875 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
15877         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
15878         have been created when invoking the compiler.
15879         * tests/fortran.at (GNU Fortran 77): Quote $G77.
15881 2003-09-29  Akim Demaille  <akim@epita.fr>
15883         Version 2.57e.
15885         * config/mkinstalldirs: Upgrade.
15887 2003-09-28  Paul Eggert  <eggert@twinsun.com>
15889         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
15890         Problem reported by Lars J. Aas in
15891         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
15892         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
15893         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
15894         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
15896 2003-09-26  Akim Demaille  <akim@epita.fr>
15898         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
15899         directory for AC_CONFIG_COMMANDS' first argument exists.
15900         This makes valid the invocation of _AC_SRCPATH that follows.
15901         Reported by Eric Sunshine.
15902         * doc/autoconf.texi (Configuration Commands): Adjust.
15904 2003-09-26  Akim Demaille  <akim@epita.fr>
15906         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
15907         Reported by Ralf Corsepius.
15909 2003-09-26  Akim Demaille  <akim@epita.fr>
15911         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
15912         arguments.
15913         Actually, use AU_ALIAS.
15914         From Bruno Haible.
15916 2003-09-26  Paul Eggert  <eggert@twinsun.com>
15918         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
15919         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
15920         Problem reported by Eric Sunshine in:
15921         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
15923 2003-09-26  Akim Demaille  <akim@epita.fr>
15925         The test suite are sometimes assigning timings incorrectly.
15926         Reported by Henk Krus.
15927         Diagnosed by Nicolas Joly.
15929         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
15930         AT_help_all.
15931         Instead of making AT_help a sequence of assignments to grow
15932         $at_help_all, just make AT_help_all be the growing contents of
15933         $at_help_all, and make a single assignment in...
15934         (AT_INIT): here.
15935         (at_times_skip): Flip the meaning and rename as...
15936         (at_times_p): this.
15937         (AT_INIT): When summarizing the test that ran, remove
15938         $at_times_file after use, and check it is present before trying to
15939         use it.
15941 2003-09-25  Akim Demaille  <akim@epita.fr>
15943         Version 2.57d.
15945         * bin/Makefile.am (edit): Handle '@configure_input@'.
15946         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
15947         (ifnames): chmod -w.
15948         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
15949         executables, not bin/ executables!  Otherwise all the magic needed
15950         to find non installed files is turned off.  This caused a failure
15951         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
15952         as found in its environment (sent by tests/autoreconf): pointing
15953         to bin/autom4te that could not find its files.
15954         * tests/mktests.sh: Force the replacement of generated files, for
15955         the sake of "mv" program that are interactive when overwriting a
15956         -w file.
15957         * config/install-sh: Upgrade from CVS Automake.
15959 2003-09-23  Paul Eggert  <eggert@twinsun.com>
15961         * doc/autoconf.texi (Limitations of Builtins): Document test -h
15962         versus test -L issues.
15964 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
15965             Paul Eggert  <eggert@twinsun.com>
15967         Trivial change to support GCC's configuration procedure.
15968         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
15969         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
15970         about inconsistency if the preprocessor is set to give errors for
15971         any warning.
15972         * doc/autoconf.texi (C Compiler Characteristics): Document this.
15974 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
15976         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
15977         and XFile.pm from Automake.
15978         * lib/Autom4te/XFile.pm: Update from Automake.
15980 2003-09-12  Akim Demaille  <akim@epita.fr>
15982         Version 2.57c.
15984 2003-09-12  Akim Demaille  <akim@epita.fr>
15986         * config/config.guess, config/config.sub, config/missing,
15987         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
15988         from masters.
15990 2003-09-12  Akim Demaille  <akim@epita.fr>
15992         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
15993         not asm/types.h.
15995 2003-09-11  Akim Demaille  <akim@epita.fr>
15997         * doc/autoconf.texi (Header Portability): linux/random.h.
15998         From Peter Hendrickson.
16000 2003-09-10  Akim Demaille  <akim@epita.fr>
16002         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
16003         willing to edit the output files.
16005 2003-09-10  Akim Demaille  <akim@epita.fr>
16007         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
16008         and AC_FC_FREEFORM.
16009         * tests/mktests.sh: Skip AC_FC_SRCEXT.
16010         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
16012 2003-09-09  Akim Demaille  <akim@epita.fr>
16014         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
16015         Reported by Gary Vaughan.
16016         * bin/autom4te.in (handle_m4): Likewise.
16018 2003-09-09  Akim Demaille  <akim@epita.fr>
16020         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
16021         trailing files.
16023 2003-09-07  Paul Eggert  <eggert@twinsun.com>
16025         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
16026         Improve the accuracy of the wording about obsolescence.
16027         From a suggestion by Ian Lance Taylor in
16028         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
16030 2003-09-05  Paul Eggert  <eggert@twinsun.com>
16032         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
16033         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
16035 2003-09-04  Akim Demaille  <akim@epita.fr>
16037         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
16038         AC_FUNC_WAIT3.
16040 2003-09-04  Akim Demaille  <akim@epita.fr>
16042         * bin/autom4te.in: Use &fatal where more appropriate than &error.
16043         (freeze): When exiting, use $exit_code.
16044         * lib/autoconf/fortran.m4: Comment changes.
16046 2003-09-04  Akim Demaille  <akim@epita.fr>
16048         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
16050 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
16052         Add support for newer Fortran dialects.  The F77 interface is
16053         unchanged, and continues to support Fortran 77.  New FC macros
16054         correspond to all the old F77 macros, with output variables FC,
16055         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
16056         available dialect, but older dialects can be specified.  There are
16057         new macros AC_FC_SRCEXT to set the source extension, and
16058         AC_FC_FREEFORM to accept free-form source files.
16060         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
16061         New macros.
16062         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
16063         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
16064         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
16065         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
16066         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
16067         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
16068         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
16069         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
16070         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
16071         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
16072         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
16073         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
16074         AC_FC_SRCEXT, AC_FC_FREEFORM):
16075         New macros.
16076         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
16077         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
16078         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
16079         Rewrite in terms of the above.
16080         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
16081         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
16082         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
16083         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
16085 2003-09-02  Paul Eggert  <eggert@twinsun.com>
16087         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
16088         Document problems with timestamp resolution that 'make', 'cp -p', and
16089         'touch -r' have.
16091 2003-08-27  Akim Demaille  <akim@epita.fr>
16093         * tests/m4sugar.at (cross_warning): Make sure to enable the
16094         output, so that we can track spurious m4sugar output.
16095         * tests/local.at: Require 2.57.
16096         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
16097         are defaulted by AT_CHECK anyway.
16098         Use AT_CHECK_AUTOM4TE.
16099         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
16100         missing dnl.
16102 2003-08-27  Akim Demaille  <akim@epita.fr>
16104         * bin/autoheader.in: Issue the "Using auxiliary..." message only
16105         when -Wobsolete is set.
16106         Set it on by default.
16107         Suggested by Klee Dienes.
16109 2003-08-27  Akim Demaille  <akim@epita.fr>
16111         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
16112         documentation.
16113         From Guido Draheim.
16115 2003-08-26  Akim Demaille  <akim@epita.fr>
16117         * doc/autoconf.texi (Output): Make clear that one can run code
16118         after AC_OUTPUT.
16120 2003-08-25  Akim Demaille  <akim@epita.fr>
16122         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
16123         CVS Bison.
16125 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
16127         * bin/autoreconf.in (parse_args): Do not pass --no-force to
16128         Automake versions prior to 1.8.
16130 2003-08-25  Akim Demaille  <akim@epita.fr>
16132         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
16133         From Ville Karaila.
16135 2003-08-24  Akim Demaille  <akim@epita.fr>
16137         * configure.ac: Bump to 2.57c.
16139 2003-08-22  Akim Demaille  <akim@epita.fr>
16141         Version 2.57b.
16143         * Makefile.cfg (local-checks-to-skip): New.
16144         * Makefile.maint (local-check): Rename as...
16145         (local-checks-available): this.
16146         (local-check): New.
16148         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
16149         * configure.ac: Require Automake 1.7.6.
16151 2003-08-22  Akim Demaille  <akim@epita.fr>
16153         Output stack traces in warnings.
16155         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
16156         Replace the former...
16157         (m4_warn): Pass the call stack to _m4_warn.
16158         * bin/autom4te.in: Adjust to output the call stack.
16159         * tests/m4sugar.at (m4@&t@_warn): Adjust.
16161 2003-08-22  Akim Demaille  <akim@epita.fr>
16163         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
16164         * bin/autom4te.in: Adjust.
16166 2003-08-21  Akim Demaille  <akim@epita.fr>
16168         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
16169         (&verbose): Remove.
16170         (&getopt): Adjust the note and verb channels, depending upon
16171         --verbose.
16172         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
16173         * bin/autoupdate.in: Adjust.
16174         Use &verb, not &verbose.
16176 2003-08-21  Akim Demaille  <akim@epita.fr>
16178         * bin/autoheader.in (&parse_args): Use &parse_warnings and
16179         &parse_WARNINGS.
16180         ($help): Use Autom4te::ChannelDefs::usage.
16181         * bin/autoscan.in: Use Autom4te::ChannelDefs.
16182         * lib/Autom4te/General.pm: Don't export error: you don't own it.
16184 2003-08-21  Akim Demaille  <akim@epita.fr>
16186         First stab at preserving warnings between calls to autom4te,
16187         including when the cache is used.
16189         There are still several issues: (i) there are too many runs of m4
16190         (one for include, one for warnings, and some more), (ii) warnings
16191         spreading on several lines are not handled gracefully, (iii) the
16192         code meant to have the call stack display for errors does not work
16193         (its handling should move from m4 to autom4te).
16195         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
16196         Use them.
16197         (@preselect): Add m4_warn.
16198         ($exit_status): Remove, use $exit_code.
16199         ($help): Use Autom4te::ChannelDefs::usage.
16200         (&handle_m4): No longer define the m4_warnings.
16201         At each run, extract and report the warnings.
16202         Always cache the result, including if the exit status is on
16203         failure, since if nothing changes, we should result in the same
16204         failure, hence we can use the cache.
16205         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
16206         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
16207         Remove.
16208         (m4_warn): Redefine as a do-nothing: it is its invocation that
16209         matters, as warnings are now reported via traces.
16210         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
16211         the contents of m4_warn: make it _call_ m4_warn, so that tracing
16212         the latter reveals calls to the former.
16214         Adjust the tests.
16216         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
16218 2003-08-21  Akim Demaille  <akim@epita.fr>
16220         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
16221         Use them.
16223 2003-08-21  Akim Demaille  <akim@epita.fr>
16225         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
16226         forward order.
16227         * lib/Autom4te/ChannelDefs.pm: Doc typos.
16228         (&parse_warnings): Accept a list of warning requests.
16229         (&usage): Return a string, not a side effect.
16230         (cross): New warning category.
16232 2003-08-21  Akim Demaille  <akim@epita.fr>
16234         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
16235         (&require_configure_ac): Accept an optional directory argument.
16236         ($configure_ac): Remove.
16237         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
16238         (&catfile): Remove.
16239         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
16240         * bin/autoscan.in: Adjust.
16242 2003-08-20  Akim Demaille  <akim@epita.fr>
16244         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
16245         Reported by Alexandre Duret-Lutz.
16247 2003-08-20  Akim Demaille  <akim@epita.fr>
16249         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
16250         * bin/autom4te: Adjust.
16251         In particular, be Autoconf tools are really silent when properly
16252         working, bind the verbosity of the 'note' channel to $verbose.
16253         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
16254         (&xsystem, &contents): Remove, since they are exported by...
16255         * lib/Autom4te/FileUtils.pm: this.
16256         More perldoc.
16257         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
16258         * lib/Autom4te/FileUtils.pm: here.
16260 2003-08-20  Akim Demaille  <akim@epita.fr>
16262         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
16263         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
16264         from CVS Automake.
16266 2003-08-20  Akim Demaille  <akim@epita.fr>
16268         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
16269         (autom4te-update): New.
16270         * Makefile.cfg (update): Bind autom4te-update.
16272 2003-08-19  Derek Price  <derek@ximbiot.com>
16274         * lib/autotest/general.m4: Comment various HELP_* diversions.
16275         (PARSE_ARGS_BEGIN): New section for option parsing related
16276         initialization.
16277         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
16278         package specific options and associated help.
16280 2003-08-19  Akim Demaille  <akim@epita.fr>
16282         * config/announce-gen, Makefile.cfg: New.
16283         * Makefile.am: Adjust.
16284         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
16286 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
16288         * lib/autom4te.in (Automake-preselections): Preselect
16289         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
16290         and m4_sinclude.
16292 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
16294         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
16295         (Autoconf-without-aclocal-m4): ... this new language.
16296         * doc/autoconf.texi (autom4te Invocation): Mention
16297         Autoconf-without-aclocal-m4.
16299 2003-08-18  Derek Price  <derek@ximbiot.com>
16301         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
16302         RUN-IF-PASS optional arguments.
16304 2003-08-18  Derek Price  <derek@ximbiot.com>
16306         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
16308 2003-08-16  Derek Price  <derek@ximbiot.com>
16310         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
16311         STDOUT & STDERR arguments.
16313 2003-08-14  Derek Price  <derek@ximbiot.com>
16315         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
16316         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
16317         shorter column three.  Add DESCRIPTION to log file content.
16319 2003-08-13  Derek Price  <derek@ximbiot.com>
16321         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
16322         output.
16324 2003-08-12  Derek Price  <derek@ximbiot.com>
16326         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
16327         (AT_CHECK_NOESCAPE): Move core functionality to...
16328         (_AT_CHECK): ...this new macro.
16330 2003-08-07  Derek Price  <derek@ximbiot.com>
16332         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
16333         (AT_CHECK_NOESCAPE): ...to this new macro.
16335 2003-07-31  Paul Eggert  <eggert@twinsun.com>
16337         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
16338         in Bash 2.01.  Problem reported by Brian Gough in
16339         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
16341 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
16343         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
16344         -lcrt1.o, for OS X.  (trivial change)
16346 2003-07-07  Paul Eggert  <eggert@twinsun.com>
16348         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
16349         inside '#ifndef __cplusplus'.  Problem reported by
16350         Bob Friesenhahn.
16352 2003-07-06  Bill Clarke  <llib@computer.org>
16354         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
16355         'long', not 'int', for benefit of Sun's recent C++ compilers
16356         (trivial change).  See:
16357         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
16358         (This really should be 'intptr_t', not 'long', but that would
16359         take more work.)
16361 2003-06-25  Akim Demaille  <akim@epita.fr>
16363         * lib/Makefile.am (autom4te.cfg): Make it read only.
16364         Depend on Makefile since it contains substitutions.
16365         From Paolo Bonzini.
16366         * lib/autom4te.in (args): Add local.at? for Autotest args.
16367         This change was made on autom4te.cfg which is generated.
16368         Reported by Raja R. Harinath.
16370 2003-06-25  Akim Demaille  <akim@epita.fr>
16372         * doc/autoconf.texi (Header Portability): sys/mount.h.
16373         From Gareth McCaughan.
16375 2003-06-23  Akim Demaille  <akim@epita.fr>
16377         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
16378         not all of them.  This fixes 1. the fact that when testing
16379         Autoconf there are many many config.log, 2. the incorrect use of
16380         top_srcdir to find config.log.
16381         Don't mix the detailed output of failed test with the summary of
16382         failures.  Rather, append detailed log afterwards.
16384 2003-06-23  Akim Demaille  <akim@epita.fr>
16386         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
16387         always run: output config.log on $at_group_log.
16389 2003-06-23  Akim Demaille  <akim@epita.fr>
16391         * tests/torture.at (#define header templates): Don't use quotes in
16392         C++ comments as it puzzles Emacs' sh font-lock-mode.
16394 2003-06-23  Akim Demaille  <akim@epita.fr>
16396         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
16397         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
16398         * tests/atspecific.m4: Rename as...
16399         * tests/local.at: This.
16400         * tests/suite.at: Move the globals into...
16401         * tests/local.at: here.
16402         * tests/Makefile.am: Adjust.
16403         * doc/autoconf.texi (testsuite Scripts): Adjust.
16405 2003-06-21  Kevin Ryde  <user42@zip.com.au>
16407         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
16408         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
16409         ensuring we add -std1 for full-ANSI.
16411         * doc/autoconf.texi (hdrindex): New macro.
16412         Add index entries for portability of various standard header files.
16414 2003-06-20  Akim Demaille  <akim@epita.fr>
16416         * configure.ac: Bump to 2.57b.
16418 2003-06-20  Akim Demaille  <akim@epita.fr>
16420         Version 2.57a.
16422 2003-06-20  Akim Demaille  <akim@epita.fr>
16424         * bin/autom4te.in: Don't rely on $HOME being defined.
16425         Reported by Marc Espie as PR/233.
16427 2003-06-20  Akim Demaille  <akim@epita.fr>
16429         * lib/autotest/general.m4: Use at_times_file only if used.
16430         From Nicolas Joly.
16432 2003-06-20  Akim Demaille  <akim@epita.fr>
16434         * config/config.guess, config/config.sub, config/elisp-comp,
16435         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
16436         Update from masters.
16438 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
16440         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
16441         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
16442         (TEST_SCRIPT): New diversion.
16443         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
16444         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
16445         (AT_INIT): Support for expected failures.
16447 2003-06-02  Akim Demaille  <akim@epita.fr>
16449         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
16450         changes.
16451         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
16452         Autoconf nor Automake.
16453         (&contents): New, from Automake.
16454         PODify.
16456 2003-05-28  Paul Eggert  <eggert@twinsun.com>
16458         * NEWS, doc/autoconf.texi (Particular Functions),
16459         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
16460         is the inverse of localtime.
16462 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
16464         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
16465         (handle_exec_errors): New function.  Work around $! being
16466         altered by WEXITSTATUS.
16467         (xqx, xsystem): Use handle_exec_errors.
16469 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
16471         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
16472         Do not call `_exit()', simply modify `$?'.
16473         (xsystem): Reset $! before running system, and check it afterward.
16474         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
16475         63 for version mismatches.
16477 2003-05-23  Akim Demaille  <akim@epita.fr>
16479         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
16480         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
16481         the middle of a line).
16482         * lib/m4sugar/m4sugar.m4: Likewise.
16483         Remove useless spaces in comments.
16485 2003-05-23  Akim Demaille  <akim@epita.fr>
16487         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
16488         exit 63, so that we (or Automake's "missing") can tell the
16489         difference with a plain failure.
16490         * doc/autoconf.texi (Notices): Adjust.
16492 2003-05-23  Akim Demaille  <akim@epita.fr>
16494         * Makefile.am, bin/Makefile.am, config/Makefile.am,
16495         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
16496         White spaces cleanup.
16498 2003-05-22  Jim Meyering  <jim@meyering.net>
16499             Paul Eggert  <eggert@twinsun.com>
16501         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
16502         Remove `#include <stdlib.h>' from the list; we should never
16503         make confdefs.h include <stdlib.h> or <cstdlib>, because the
16504         resulting namespace pollution would cause other tests to fail.
16505         Configure scripts run with some older versions of g++ and HP's
16506         aCC would fail due to such an #include.  Problems reported by
16507         Matthew Mueller in <http://bugs.debian.org/120704> and by
16508         Keith Bostic in
16509         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
16510         In the test, use the test declaration before including <stdlib.h>,
16511         as that's closer to how it'll be used.
16513 2003-05-23  Akim Demaille  <akim@epita.fr>
16515         * doc/autoconf.texi (Header Portability): ucred.h.
16516         From Ian Redfern.
16518 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
16520         Overhaul Autotest's logging: generate separate log files
16521         in testsuite.dir/NNN/testsuite.log, and append them to
16522         testsuite.log instead of re-running the test verbosely.
16524         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
16525         file descriptor, write 0 to at_status_file instead of setting
16526         at_status=0, initialize some new variables (at_status_file,
16527         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
16528         to rerun the tests, instead append the at_group_log to the
16529         at_suite_log when a test fails.
16530         (AT_SETUP): pipe the test case's output into at_tee_pipe,
16531         with the AS_MESSAGE_LOG_FD redirected to stdout.
16532         (AT_CLEANUP): save the output status in $at_status_file
16533         and restore it, redirect the AS_MESSAGE_LOG_FD back to
16534         its original place.
16535         (AT_CHECK): since tests are run with a redirected stdout,
16536         and used to be re-run in verbose mode, turn some $at_verbose
16537         into echo, and don't redirect the output of testing stdout
16538         and stderr.
16540         * lib/autotest/autoconf.texi (testsuite Scripts): Update
16541         the name of the debugging directory and information about
16542         its contents.
16544 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
16546         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
16547         parameter.
16549 2003-05-22  Akim Demaille  <akim@epita.fr>
16551         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
16552         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
16553         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
16554         * lib/autoconf/status.m4: Fix and adjust copyright notices.
16556 2003-05-22  Akim Demaille  <akim@epita.fr>
16558         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
16559         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
16560         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
16561         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
16562         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
16563         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
16564         * lib/autoconf/status.m4, lib/autoconf/types.m4,
16565         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
16566         * tests/atspecific.m4, tests/base.at, tests/compile.at,
16567         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
16568         * tests/tools.at, tests/torture.at:
16569         Whitespace clean up.
16570         Suggested by Jim Meyering.
16572 2003-05-22  Akim Demaille  <akim@epita.fr>
16574         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
16575         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
16576         Reported by Jim Meyering.
16578 2003-05-22  Akim Demaille  <akim@epita.fr>
16580         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
16581         Add AC_HELP_STRING  to the obsolete macros section.
16582         Typos.
16583         Use '@.' for sentences that ended in a capital letter.
16584         From Art Haas.
16586 2003-05-22  Akim Demaille  <akim@epita.fr>
16588         * config/config.guess, config/config.sub, config/elisp-comp,
16589         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
16590         * config/texinfo.tex, doc/standards.texi: Update from masters.
16592 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
16594         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
16595         it to eval.
16597 2003-05-21  Akim Demaille  <akim@epita.fr>
16599         * bin/autoupdate.in ($m4): Fix quotation.
16600         Reported by Martin Mokrejs.
16602 2003-05-19  Paul Eggert  <eggert@twinsun.com>
16604         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
16605         Remove non-ASCII characters.
16607 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
16609         * tests/semantics.at (AC_SEARCH_LIBS): New test.
16610         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
16611         AC_CHECK_HEADERS_NEW): New tests.
16613 2003-05-17  Akim Demaille  <akim@epita.fr>
16615         * lib/autoconf/functions.m4: Use the default includes so that
16616         memcmp be declared before being tested.
16617         Reported by Sander Niemeijer.
16618         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
16619         * doc/autoconf.texi (Default Includes): Document
16620         AC_INCLUDES_DEFAULT.
16622 2003-05-17  Akim Demaille  <akim@epita.fr>
16624         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
16625         * doc/autoconf.texi (Obsolete Macros): Adjust.
16626         Reported by Werner LEMBERG and Debian Bug 190886.
16628 2003-05-16  Akim Demaille  <akim@epita.fr>
16630         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
16631         user name space clashes.
16632         Reported by Bruno Haible.
16634 2003-05-16  Akim Demaille  <akim@epita.fr>
16636         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
16637         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
16638         them uniform, and more robust to Perl special characters.
16639         Reported by Martin Mokrejs.
16641 2003-05-14  Akim Demaille  <akim@epita.fr>
16643         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
16645 2003-05-14  Akim Demaille  <akim@epita.fr>
16647         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
16648         linux/irda.h.
16650 2003-05-12  Akim Demaille  <akim@epita.fr>
16652         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
16653         message.
16654         From Matthias Andree.
16656 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
16658         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
16659         and truncate.
16661 2003-05-06  Akim Demaille  <akim@epita.fr>
16663         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
16664         longer updates aclocal.m4 if useless, (ii) if a file m4_included
16665         by aclocal.m4 is changed it might require the importing of another
16666         m4 extension file, i.e., aclocal must be run.
16668         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
16669         (&parse_args): Use --force with aclocal if required and supported.
16670         (&autoreconf_current_directory): Use &run_aclocal.
16672 2003-05-06  Akim Demaille  <akim@epita.fr>
16674         Lock autom4te's cache.
16676         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
16677         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
16678         argument instead of a file name, so that the request file remains
16679         open during the whole autom4te run.
16680         ($icache_file): New.
16681         (&freeze): Lock the $icache_file.
16683 2003-04-29  Derek Price  <derek@ximbiot.com>
16685         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
16686         seperator with m4_append_uniq().  It doesn't work.
16687         (AT_CLEANUP): Add `;' to end of at_help_all.
16688         (AT_INIT): Allow --keywords to be specified more than once.  When
16689         grepping $at_help_all for keywords, use the field and keyword
16690         seperators to ensure a complete keyword match.  Alter at_prev handling
16691         to support the new --keywords behavior.
16693 2003-04-27  Karl Berry  <karl@freefriends.org>
16695         * doc/autoconf.texi: Make the dir entries in the autoconf manual
16696         align better with others.  I also made some of the individual
16697         entries on one line, for brevity and to make it easier for me to
16698         sort my dir-example file in the Texinfo distribution :).
16700 2003-04-12  Jim Meyering  <jim@meyering.net>
16702         * NEWS: Mention the new macro.
16703         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
16704         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
16705         * tests/c.at: Test AC_C_RESTRICT.
16706         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
16708 2003-04-08  Akim Demaille  <akim@epita.fr>
16710         * bin/ifnames.in: Skip C++ comments.
16711         From Jeremy Yallop.
16713 2003-04-08  Akim Demaille  <akim@epita.fr>
16715         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
16716         From Ilya Zakharevich.
16718 2003-04-08  Akim Demaille  <akim@epita.fr>
16720         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
16721         net/if.h, stdlib.h.
16723 2003-04-01  Derek Price  <derek@ximbiot.com>
16725         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
16726         from Akim's checkin of 2003-03-29.
16728 2003-04-01  Derek Price  <derek@ximbiot.com>
16730         * tests/torture.at (Configuring subdirectories): Add missing
16731         close-quote for Akim's change from 2003-03-28.
16733 2003-04-01  Akim Demaille  <akim@epita.fr>
16735         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
16736         (AC, AT, MS): these.
16737         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
16738         New.
16739         Use them.
16740         * doc/Makefile.am (CLEANFILES): Adjust.
16741         (TEXI2DVI): Make it --batch.
16743 2003-03-31  Derek Price  <derek@ximbiot.com>
16745         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
16746         which removed the main loop.
16747         Thanks to Akim Demaille.
16749 2003-03-29  Akim Demaille  <akim@epita.fr>
16751         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
16752         that starts a GUI.
16753         From Ilya Zakharevich.
16755 2003-03-29  Akim Demaille  <akim@epita.fr>
16757         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
16758         documentation to read is Autoconf's.
16759         Suggested by Paul Eggert.
16761 2003-03-28  Akim Demaille  <akim@epita.fr>
16763         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
16764         reading the section "Present But Cannot Be Compiled" when the
16765         header causes problems.
16767 2003-03-28  Akim Demaille  <akim@epita.fr>
16769         * tests/torture.at (Configuring subdirectories): Require aclocal
16770         1.4, otherwise the test fails, as it does support configure.ac.
16771         This fixes the "test 40 failed" bug reports.
16773 2003-03-28  Akim Demaille  <akim@epita.fr>
16775         * doc/autoconf.texi (C Compiler): `#line' portability.
16776         From Paul Eggert and Nelson H. F. Beebe.
16778 2003-03-27  Derek Price  <derek@ximbiot.com>
16780         * lib/autotest/general.m4: Eliminate main loop and reorganize test
16781         layout in order to allow scripting around test groups.
16783 2003-03-27  Derek Price  <derek@ximbiot.com>
16785         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
16786         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
16787         use new diversions in preparation for accepting new arguments and
16788         allowing scripting around tests.
16789         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
16791 2003-03-26  Derek Price  <derek@ximbiot.com>
16793         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
16794         obsolete AC_HELP_STRING.
16795         (AC_HELP_STRING): AU_DEFUN to...
16796         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
16797         * tests/m4sh.at (AS_HELP_STRING): New test.
16799         * tests/acgeneral.at: Regenerated.
16801 2003-03-26  Derek Price  <derek@ximbiot.com>
16803         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
16804         sense.  Verbosify the diversion definitions comment.
16806 2003-03-26  Derek Price  <derek@ximbiot.com>
16808         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
16809         AS_PREPARE.
16811 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
16813         * doc/autoconf.texi (Present But Cannot Be Compiled):
16814         Grammar fixes and minor rewording. (trivial change)
16816 2003-03-06  Paul Eggert  <eggert@twinsun.com>
16818         Work around a problem noted by Nelson H. F. Beebe with coreutils
16819         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
16820         2002/05/09) rejects '#line 32768 "configure"' because the line
16821         number overflows.
16822         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
16823         #line directives.
16824         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
16825         * doc/autoconf.texi (Generating Sources): Document this.
16827 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
16829         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
16830         file name for the m4 program, when it has an "exe" file extension.
16831         DJGPP's error messages include the error code in brackets -
16832         remove the error code during normalization.
16834 2003-02-28  Akim Demaille  <akim@epita.fr>
16836         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
16838 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
16840         * doc/autoconf.texi (Limitations of Make): Remove the section
16841         about `$<' in inference rules, it was a bogus interpretation of
16842         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
16843         Tru64 make in the "target lookup" section.
16844         (Automake): Automake 1.5+ no longer requires special tools to be
16845         present on the developer's host.
16847 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
16849         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
16850         to a shell that can handle redirection or quoting correctly.
16851         Override SHELL with the shell detected by configure.
16852         Use of $^O suggested by Tim van Holder.
16853         * bin/autom4te.in (BEGIN): Likewise.
16854         * bin/autoreconf.in (BEGIN): Likewise.
16855         * bin/autoscan.in (BEGIN): Likewise.
16856         * bin/autoupdate.in (BEGIN): Likewise.
16857         * bin/ifnames.in (BEGIN): Likewise.
16859         * bin/ifnames.in: Add final newline to help and version messages.
16861         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
16862         to cope with DOS-style absolute paths, when constructing
16863         ${ac_make}.
16865         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
16866         When constructing paths with IFS=:, quote the path. If we're
16867         constructing a DOS-style absolute path, we don't want to split it
16868         on the colon.
16870         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
16871         in description.
16873 2003-02-25  Pavel Roskin  <proski@gnu.org>
16875         * bin/autoheader.in: Add missing newline when printing
16876         suggestion how change AC_DEFINE call.
16878 2003-02-24  Paul Eggert  <eggert@twinsun.com>
16880         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
16881         2002-09-01 patch by replacing "test -n" with "test -z".
16882         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
16883         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
16885         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
16886         to fix a mismatch between example and discussion.
16888 2003-02-24  Kevin Ryde  <user42@zip.com.au>
16890         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
16891         format starting with "-".
16893 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
16895         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
16896         is not portable inside Makefile.
16898 2003-02-20  Akim Demaille  <akim@epita.fr>
16900         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
16901         compiler says yeah, but preproc says nope, compiler is right.
16902         Conversely, prompt the reader to send a bug report to the
16903         maintainers of the package, not of Autoconf.
16905 2003-02-20  Klee Dienes  <kdienes@apple.com>
16907         * bin/autoreconf.in (autoreconf_current_directory): Properly
16908         handle an empty aclocal.m4.
16910 2003-02-20  Akim Demaille  <akim@epita.fr>
16912         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
16913         $ac_prefix_program.
16914         From Larry Jones.
16916 2002-12-23  Paul Eggert  <eggert@twinsun.com>
16918         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
16919         innocuous variant befor including <limits.h> or <assert.h>.  This
16920         works around a bug reported by Albert Chin: HP-UX 11i
16921         (and earlier versions) have a <limits.h> that declares
16922         gettimeofday and many other functions.
16924 2002-12-03  Paul Eggert  <eggert@twinsun.com>
16926         Version 2.57.
16928         * NEWS, configure.ac: Update version.
16930         * doc/fdl.texi: Upgrade to FDL version 1.2.
16932         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
16933         nontrivially in main's body, so that f's external declaration is
16934         not optimized away in AIX.  This should fix the bug reported by
16935         Martin Frydl in
16936         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
16938         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
16939         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
16940         defined, to support freestanding compilers.  This should fix the
16941         bug reported by Momchil Velkov in
16942         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
16944         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
16945         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
16946         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
16947         by Simon Josefsson in
16948         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
16950         * Makefile.maint (www-gnu): New macro.
16951         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
16952         the location has moved.
16954 2002-12-02  Martin Frydl  <martin@systinet.com>
16956         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
16957         \(.*\) match is too long and there is something more to be checked.
16958         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
16960 2002-11-15  Akim Demaille  <akim@epita.fr>
16962         Version 2.56.
16964         * config/install-sh: chmod +x.
16965         From Paul Eggert.
16966         * config/move-if-change: Indenting changes.
16967         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
16968         * configure.ac (AM_INIT_AUTOMAKE): here.
16969         Require 1.7.1.
16971 2002-11-14  Akim Demaille  <akim@epita.fr>
16973         Version 2.55.
16975         * config/config.guess, config/config.sub, config/install-sh:
16976         Update from masters.
16978 2002-11-14  Akim Demaille  <akim@epita.fr>
16980         * Makefile.maint: Sync with Bison, i.e.:
16981         (po-check): Scan .l and .y files instead of the
16982         .c and the .h files that they generate.  This fixes the bug
16983         reported by Tim Van Holder in:
16984         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
16985         Look for N_ as well as for _.  Try to avoid matching #define for
16986         N_ and _.
16987         From Paul Eggert.
16989 2002-11-14  Akim Demaille  <akim@epita.fr>
16991         * doc/autoconf.texi (C Compiler): Compiling several files at once.
16992         From Paul Eggert and Albert Chin-A-Young.
16994 2002-11-14  Akim Demaille  <akim@epita.fr>
16996         * doc/autoconf.texi (C Compiler): Solitary backslashes.
16997         From Paul Eggert and Albert Chin-A-Young.
16999 2002-11-14  Kevin Ryde  <user42@zip.com.au>
17001         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
17002         than assigning in main, to avoid HP cc +O3 optimizing it away.
17004 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
17006         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
17007         option.  Process --recheck after parsing all options.  Pass -q
17008         option to configure on --recheck.
17009         (AC_OUTPUT): Pass -q from configure to config.status.
17010         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
17011         arguments to record.
17012         * doc/autoconf.texi (config.status Invocation): Document
17013         config.status -q option.
17015 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
17017         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
17018         Makefile.in if Makefile.am exists.
17019         (output): Strip `.am' from Makefiles.  Don't
17020         output AC_CONFIG_FILES if no Makefiles were found.
17022 2002-11-07  Akim Demaille  <akim@epita.fr>
17024         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
17025         (local_updates): New.
17026         * Makefile.maint: Update, from CVS Bison.
17027         (local_updates): New.
17029 2002-11-06  Akim Demaille  <akim@epita.fr>
17031         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
17032         declaration in extern "C" too.
17033         Reported by Roberto Bagnara.
17035 2002-11-06  Akim Demaille  <akim@epita.fr>
17037         * tests/torture.at (Configuring subdirectories): Don't use grep
17038         -w.
17039         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
17040         Reported by Ezra Peisach.
17042 2002-11-05  Akim Demaille  <akim@epita.fr>
17044         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
17045         Remove.
17046         We _have_ to stop using the old compatibility scheme that tried to
17047         avoid useless backslashes because Libtool 1.4.3 contains a
17048         AC_DEFINE([error_t], [int],
17049         [Define to a type to use for \`error_t' if it is not
17050         otherwise available.])
17051         We _have_ to quote the single quote and backslashes with \.  The
17052         old compatibility scheme saw that ` was backslashed, and therefore
17053         did not quote the single quote.  Hence before this patch, Autoconf
17054         was not compatible with Libtool.
17056 2002-11-04  Paul Eggert  <eggert@twinsun.com>
17058         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
17059         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
17060         LC_NAME, LC_PAPER, LC_TELEPHONE.
17061         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
17063 2002-11-04  Akim Demaille  <akim@epita.fr>
17065         Version 2.54c.
17067         * Makefile.maint (update, cvs-update, po-update, do-po-update):
17068         New.
17069         * config/texinfo.tex: Update.
17071 2002-11-03  Akim Demaille  <akim@epita.fr>
17073         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
17074         from...
17075         (&autoreconf): here.
17076         ($help, $make, &parse_args, &autoreconf_current_directory):
17077         Support -m/--make.
17078         * doc/autoconf.texi (autoreconf Invocation): Adjust.
17080 2002-10-31  Bruno Haible  <bruno@clisp.org>
17082         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
17083         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
17084         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
17085         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
17086         to ac_cv_func_realloc_0_nonnull.
17087         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
17089 2002-10-31  Akim Demaille  <akim@epita.fr>
17091         The test suite was no longer checking for trailing envvars and files.
17093         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
17094         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
17096 2002-10-31  Akim Demaille  <akim@epita.fr>
17098         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
17099         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
17100         Make variable, not a shell variable.
17101         Suggested by Bruno Haible.
17103 2002-10-31  Akim Demaille  <akim@epita.fr>
17105         * bin/autom4te.in (load_configuration): Reject #args out of any
17106         language.
17108 2002-10-31  Akim Demaille  <akim@epita.fr>
17110         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
17111         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
17112         (_AC_RUN_IFELSE): Use it.
17113         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
17114         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
17115         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
17116         inline it.
17118 2002-10-30  Akim Demaille  <akim@epita.fr>
17120         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
17121         * doc/autoconf.texi (autom4te Invocation): Adjust.
17122         Suggested by Tim van Holder.
17124 2002-10-29  Paul Eggert  <eggert@twinsun.com>
17126         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
17127         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
17128         Problem reported by Bruno Haible.
17130 2002-10-29  Akim Demaille  <akim@epita.fr>
17132         * doc/autoconf.texi (Header Templates): Put also in words what the
17133         pictures says to assist free style readers.
17134         (Customizing autom4te): s/--cache=/--cache /.
17136 2002-10-29  Akim Demaille  <akim@epita.fr>
17138         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
17139         sys/wait.h.
17140         sparc_address_test returns void.
17141         Use it with an argument, as prototyped.
17142         From Bruno Haible.
17144 2002-10-29  Akim Demaille  <akim@epita.fr>
17146         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
17147         configure.in, not configure.ac.
17148         Reported by Bruno Haible.
17150 2002-10-29  Akim Demaille  <akim@epita.fr>
17152         * tests/torture.at (Deep Package): New test.
17153         (Configuring subdirectories): Don't use a testSubDir as Autotest
17154         now does it itself.
17156 2002-10-29  Akim Demaille  <akim@epita.fr>
17158         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
17159         * doc/autoconf.texi (Invoking autom4te): Rename as...
17160         (autom4te Invocation): this, for consistency with the other nodes.
17162 2002-10-29  Akim Demaille  <akim@epita.fr>
17164         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
17165         Reported by Ralf Corsepius.
17167 2002-10-29  Akim Demaille  <akim@epita.fr>
17169         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
17170         characters is a back as an `obsolete' warning now.
17171         Reported by Ralf Corsepius.
17173 2002-10-28  Akim Demaille  <akim@epita.fr>
17175         * configure.ac: Bump to 2.54c.
17177 2002-10-28  Akim Demaille  <akim@epita.fr>
17179         Version 2.54b.
17181         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
17183 2002-10-28  Akim Demaille  <akim@epita.fr>
17185         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
17186         m4 executable names, and different GNU M4 version.
17187         Reported by Ezra Peisach and Paul Jarc.
17189 2002-10-27  Akim Demaille  <akim@epita.fr>
17191         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
17192         AC_RUN_IFELSE.
17194 2002-10-27  Akim Demaille  <akim@epita.fr>
17196         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
17197         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
17198         Die when a simple Fortran program cannot be compiled.
17199         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
17200         Issue a warning if no function is given.
17202 2002-10-27  Akim Demaille  <akim@epita.fr>
17204         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
17205         Move the documentation of AC_TRY_RUN to...
17206         (Obsolete Macros): here.
17207         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
17208         (autoconf Invocation): Remove the duplicates with `invoking
17209         autom4te'.
17210         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
17211         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
17213 2002-10-27  Akim Demaille  <akim@epita.fr>
17215         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
17216         and AC_LANG_FUNC_LINK_TRY.
17217         (Examining Libraries): Rename as...
17218         (Running the Linker): this.
17219         Document AC_LINK_IFELSE.
17220         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
17221         (Obsolete Macros): here.
17222         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
17223         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
17224         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
17225         * lib/autoconf/headers.m4 (AC_USG): Likewise.
17227 2002-10-27  Akim Demaille  <akim@epita.fr>
17229         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
17231         More `check config.log' messages.
17233         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
17234         * doc/autoconf.texi (Printing Messages): Document it.
17235         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
17236         appropriate.
17237         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
17238         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
17239         (_AC_COMPILER_OBJEXT): Likewise.
17240         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
17241         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
17242         Likewise.
17243         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
17244         Likewise.
17246         Deprecate macros with unusual interfaces.
17248         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
17249         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
17251         Document the new ones, and proper style.
17253         * doc/autoconf.texi (Generating Sources): New.
17254         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
17255         (Examining Declarations): Rename as...
17256         (Running the Preprocessor): this.
17257         Document AC_PREPROC_IFELSE.
17258         (Examining Syntax): Rename as...
17259         (Running the Compiler): this.
17260         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
17261         (Obsolete Macros): Move the definition of AC_TRY_CPP and
17262         AC_TRY_COMPILE here.
17264 2002-10-27  Akim Demaille  <akim@epita.fr>
17266         Move sections around.
17268         * doc/autoconf.texi (Customizing autom4te): Remove a lost
17269         sentence.
17270         Reported by Burno Haible.
17271         (Language Choice): Now the first section of...
17272         (Writing Tests): this section.
17273         Make the introduction less C-centric.
17274         (Guidelines, Test Functions): Move to...
17275         (Writing Test Programs): this new section.
17276         (Test Programs): Merge into...
17277         (Run Time): this.
17279 2002-10-27  Akim Demaille  <akim@epita.fr>
17281         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
17282         autom4te.in that resulted in the need for two `make' runs.
17284 2002-10-27  Akim Demaille  <akim@epita.fr>
17286         * configure.ac: Bump to 2.54b.
17288 2002-10-25  Akim Demaille  <akim@epita.fr>
17290         Version 2.54a.
17292         * Makefile.maint: Update from the Coreutils.
17293         (AMTAR): Remove, obsolete.
17294         (automake_repo): Update to redhat.com.
17295         (cvs_file): New.
17296         Adjust to the fact that ansi2knr is now hosted by Automake.
17297         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
17298         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
17299         Update from masters.
17300         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
17301         autoscan.pre is not to be installed, and autoscan.list is not to
17302         be shipped.
17303         (CLEANFILES): Add autoscan.list.
17304         (autoscan.list): Disable the cache.
17305         * bin/Makefile.am: Include freeze.mk.
17307 2002-10-25  Akim Demaille  <akim@epita.fr>
17309         * bin/autom4te.in (&load_configuration): Take the file as
17310         argument.
17311         (&parse_args): Handle -C, --cache.
17312         ($help): Adjust.
17313         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
17314         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
17315         * doc/autoconf.texi (Invoking autom4te): Document --cache.
17316         Now a subsection of...
17317         (Using autom4te): This new section.
17318         (Customizing autom4te): New.
17319         (autom4te.cache): Adjust.
17321 2002-10-25  Akim Demaille  <akim@epita.fr>
17323         * doc/autoconf.texi (Generic Headers): More information on how to
17324         use AC_CHECK_HEADERS.
17326 2002-10-25  Akim Demaille  <akim@epita.fr>
17328         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
17329         Space changes.
17331 2002-10-25  Akim Demaille  <akim@epita.fr>
17333         * bin/autoscan.in (output): Output AC_PREREQ.
17334         (%needed_macros): Add AC_PREREQ so that configure.ac without one
17335         be reported.
17337 2002-10-23  Akim Demaille  <akim@epita.fr>
17339         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
17340         document _Bool.
17342 2002-10-23  Akim Demaille  <akim@epita.fr>
17344         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
17345         Reported by Peter Eisentraut.
17347 2002-10-23  Akim Demaille  <akim@epita.fr>
17349         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
17350         type _Bool.
17351         Fix a typo.
17352         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
17353         Eggert's recommandations.
17355 2002-10-22  Akim Demaille  <akim@epita.fr>
17357         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
17358         Bison, by Paul Eggert.
17359         * doc/autoconf.texi (Particular Headers): Document it.
17361 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
17363         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
17364         `$ac_configure_args'.
17366 2002-10-22  Akim Demaille  <akim@epita.fr>
17368         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
17369         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
17370         From Art Haas.
17372 2002-10-22  Akim Demaille  <akim@epita.fr>
17374         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
17376         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17377         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
17378         (_AC_CHECK_HEADER_NEW): Rename as...
17379         (AC_CHECK_HEADER): this.
17381 2002-10-22  Akim Demaille  <akim@epita.fr>
17383         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
17384         words about HP-UX cmp: it was actually a user-written cmp.
17386 2002-10-22  Akim Demaille  <akim@epita.fr>
17388         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
17389         are a few warnings.
17390         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17391         Quote for Perl '' strings, not "".
17392         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
17393         strings.
17395 2002-10-22  Akim Demaille  <akim@epita.fr>
17397         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
17398         characters is a syntax warning now.
17399         (_AS_QUOTE): Accept $2 as list of characters to quote.
17400         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
17401         Quote for Perl, not sh.
17402         * bin/autoheader.in: When $debug, report the file which is
17403         `do'ne.
17404         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
17405         `@', to tickle Perl's lists.
17406         Reported by Carlos Velasco.
17408 2002-10-18  Akim Demaille  <akim@epita.fr>
17410         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
17411         missing included files _are_ errors.
17412         Thanks to Alexandre Duret-Lutz.
17413         * tests/tools.at (autom4te cache): Adjust.
17414         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
17415         (AT_CHECK_M4SUGAR): Use it.
17416         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17417         Adjust.
17418         * tests/tools.at (autom4te): Now it does exit 1.
17420 2002-10-17  Akim Demaille  <akim@epita.fr>
17422         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
17423         Fixes the `AC_ARG_VAR' test failures.
17424         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
17425         * lib/freeze.mk (check-forbidden-patterns): New.
17426         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
17427         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
17428         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
17429         /dev/null.
17430         Reported months ago by H. Merijn Brand.
17432 2002-10-17  Akim Demaille  <akim@epita.fr>
17434         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
17436 2002-10-16  Paul Eggert  <eggert@twinsun.com>
17438         * Makefile.maint (wget_files): Remove ansi2knr.c.
17439         (ansi2knr.c-url_prefix): Remove.
17441 2002-10-16  Akim Demaille  <akim@epita.fr>
17443         Because of caching, some files that no longer exist and are no
17444         longer required can still cause errors.
17445         Reported by Alexandre Duret-Lutz.
17447         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
17448         to frozen files in @ARGV, as @ARGV must remain being a list of
17449         files.  Rather, at M4 call sites, use this...
17450         (&files_to_options): New function.
17451         (&freeze): Use &error.
17452         (&up_to_date): If a file that was included according to the cache
17453         is no longer there, then the output is out dated.
17454         (&main): Don't even check whether a file is up to date is anyway
17455         --force is given.
17456         * tests/tools.at (autom4te cache): New.
17458 2002-10-16  Akim Demaille  <akim@epita.fr>
17460         * bin/autoconf.as: Kill dead options.
17461         * bin/autoupdate.in (&parse_args): Kill old options.
17462         * bin/autoreconf.in (&parse_args): Remove dead options.
17463         Factor some code.
17464         (&autoreconf): Report the directories we enter *and leave*, so
17465         that error messages can be easily located, and use GNU Make
17466         format, so that Emacs' compile mode understands us.
17467         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
17468         if some file was changed instead of `print'.
17469         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
17470         (&parse_args): Remove the dead options.
17471         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
17472         autoheader's quiet mode.
17473         (AT_CHECK_AUTOUPDATE): Likewise.
17474         * tests/tools.at (autoupdate): Adjust.
17475         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17477 2002-10-11  Akim Demaille  <akim@epita.fr>
17479         No longer use CPP to check for the existing of headers: use CC to
17480         check for compilability.
17482         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
17483         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
17484         (_AC_CHECK_HEADER_NEW): Rename as...
17485         (AC_CHECK_HEADER): this.
17487         * lib/autotest/general.m4 (AT_INIT): Include the failed test
17488         numbers in the Subject suggestion.
17490 2002-10-11  Akim Demaille  <akim@epita.fr>
17492         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
17493         Suggest using AC_CHECK_DECLS instead.
17495 2002-10-11  Akim Demaille  <akim@epita.fr>
17497         * tests/torture.at (AC_ARG_VAR): Have configure report the value
17498         of `precious'.
17500 2002-10-11  Akim Demaille  <akim@epita.fr>
17502         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
17503         file name to enable parallel executions.
17504         From Sam Varshavchik.
17506 2002-10-08  Akim Demaille  <akim@epita.fr>
17508         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
17509         aclocal invocation, as Gettext macros might not be visible to
17510         aclocal.
17511         Instead of blindly running autopoint, scan configure.ac (not the
17512         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
17513         Reported by Paul D. Smith.
17515 2002-10-08  Paul Eggert  <eggert@twinsun.com>
17517         Work around problems found when POSIXLY_CORRECT=1 is set.
17518         None of this seems to have anything to do with POSIX, really,
17519         but it's how Perl getopt works.
17520         * bin/autom4te.in (parse_args): Configure GetOpt with
17521         "permute", too.
17522         * doc/autoconf.texi (Invoking autom4te):
17523         --warning -> --warnings.
17524         * lib/autom4te.in: --warning -> --warnings.
17526 2002-09-28  Akim Demaille  <akim@epita.fr>
17528         * doc/autoconf.texi (autom4te.cache): New section.
17530 2002-09-28  Akim Demaille  <akim@epita.fr>
17532         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
17533         (Automake-preselections): Update.
17534         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
17536 2002-09-28  Akim Demaille  <akim@epita.fr>
17538         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
17539         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
17540         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
17541         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
17543 2002-09-28  Akim Demaille  <akim@epita.fr>
17545         * tests/torture.at (Configuring subdirectories): Be robust to
17546         users who use config.site to require for a cache: in this case,
17547         the two last configure runs, using two different sets of
17548         arguments, trigger a legitimate error.
17550 2002-09-28  Akim Demaille  <akim@epita.fr>
17552         * tests/m4sh.at (Functions Support, Functions and return Support):
17553         New.
17555 2002-09-28  Akim Demaille  <akim@epita.fr>
17557         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
17558         autoheader are Perl programs.
17559         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
17560         (autom4te): Specify that the sources are in the $srcdir.
17561         * doc/autoconf.texi (Installation Directory Variables): Adjust.
17563 2002-09-28  Akim Demaille  <akim@epita.fr>
17565         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
17566         (tm_zone): Move their rules to...
17567         * lib/autoconf/types.m4: here, using AN_ macros.
17568         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
17569         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
17570         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
17571         * lib/autoconf/programs.m4: here.
17572         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
17573         (ETAGS_FOR_AUTOCONF): New.
17574         Use it.
17576 2002-09-28  Akim Demaille  <akim@epita.fr>
17578         * lib/autoconf/autoscan.m4: New file.
17579         * lib/autoconf/autoconf.m4: Include it.
17580         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
17581         that were listed in the original autoscan.list.
17582         * lib/autoconf/headers.m4: Similarly with headers.
17583         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
17584         (.m4.m4f): Don't pass --prepend-include, since that's done by
17585         tests/autom4te itself.
17586         * lib/autoscan/Makefile.am: Include freeze.mk.
17587         (autoscan.list): New target --this file is no longer a source.
17588         (autoscan.pre): New file.
17590 2002-09-28  Akim Demaille  <akim@epita.fr>
17592         * bin/autoscan.in (@kinds): Make them singular.
17593         Adjust all uses.
17594         (&init_tables): When --debug, report the list of rules to ease
17595         tracking changes in autoscan.list.
17596         * lib/autoscan/autoscan.list (function): Strip comments, sort.
17598 2002-09-28  Akim Demaille  <akim@epita.fr>
17600         * lib/autoscan/functions, lib/autoscan/headers,
17601         * lib/autoscan/identifiers, lib/autoscan/makevars,
17602         * lib/autoscan/programs: Merge into...
17603         * lib/autoscan/autoscan.list: this.
17604         * bin/autoscan.in (&init_tables): Adjust.
17606 2002-09-28  Akim Demaille  <akim@epita.fr>
17608         * lib/autoscan/functions, lib/autoscan/headers,
17609         * lib/autoscan/identifiers, lib/autoscan/makevars,
17610         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
17611         `functions' line is now prefixed with `function:'.
17612         * bin/autoscan.in (&init_tables): Adjust.
17614 2002-09-28  Akim Demaille  <akim@epita.fr>
17616         From now on, autoscan files must always map a macro name to a
17617         word: there is no `default' macro for autoscan.
17619         * bin/autoscan.in (&init_tables): Reject entries with no macro at
17620         all.
17621         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
17622         explicit.
17624 2002-09-28  Akim Demaille  <akim@epita.fr>
17626         * bin/autoscan.in (%c_keywords): Remove.
17627         (&used): Keep only track of the words we might be interested in.
17628         (&output_kind): It is no longer needed to look for non active
17629         checks.
17631 2002-09-27  Akim Demaille  <akim@epita.fr>
17633         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
17634         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
17635         * lib/autoscan/functions: Adjust.
17636         * doc/autoconf.texi (Particular Functions): Adjust.
17638 2002-09-27  Akim Demaille  <akim@epita.fr>
17640         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
17641         from /tmp.
17642         Thanks to Bill Moseley and Paul Eggert.
17643         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
17644         the tmpdir must be created.
17645         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
17646         dir be in the build tree, instead of $TMPDIR.
17648 2002-09-27  Akim Demaille  <akim@epita.fr>
17650         * bin/autoscan.in: Improve the comments.
17651         (&parse_args): Drop obsolete undocumented options.
17652         (&output_kind): Output warnings.
17653         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
17654         (getwd): Trigger a warning.
17656 2002-09-26  Akim Demaille  <akim@epita.fr>
17658         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
17659         Reported by Ralf Corsepius.
17660         * doc/autoconf.texi (autoreconf Invocation): Likewise.
17662 2002-09-26  Akim Demaille  <akim@epita.fr>
17664         Single suffix rules and seperated dependencies are not portable.
17666         * doc/autoconf.texi (Installation Directory Variables): Update.
17667         (Limitations of Make): Some about `Single Suffix Rules and
17668         Separated Dependencies'.
17669         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
17670         (ifnames, autoscan, autom4te): Un-factor into several rules.
17672 2002-09-25  Paul Eggert  <eggert@twinsun.com>
17674         * BUGS (Interoperability bugs): New section.  Mention libtool
17675         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
17677 2002-09-24  Paul Eggert  <eggert@twinsun.com>
17679         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
17680         make handles suffix-rules differently from GNU make.
17682         * bin/Makefile.am (SUFFIXES, .in): Remove.
17683         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
17684         Move the body of the old .in rule here.
17686 2002-09-16  Akim Demaille  <akim@epita.fr>
17688         i960 compilers create `b.out' files by default.
17689         Reported by Ralf Corsepius.
17691         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
17692         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
17694 2002-09-13  Paul Eggert  <eggert@twinsun.com>
17696         * doc/autoconf.texi (Particular Headers): Remove obsolete
17697         reference to `struct timezone' in the description of
17698         AC_HEADER_TIME.
17700 2002-09-13  Akim Demaille  <akim@epita.fr>
17702         Version 2.54.
17704         * config/config.sub, config/config.guess: Update.
17705         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
17706         * Makefile.am: Adjust.
17708 2002-09-13  Akim Demaille  <akim@epita.fr>
17710         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
17711         reading config.log when the compiler is rejected.
17712         Suggested by Guido Draheim.
17714 2002-09-13  Akim Demaille  <akim@epita.fr>
17716         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
17717         (chdir_init) might hang when stat'ing mounted directories.
17718         Reported by Vance Shipley.
17720 2002-09-12  Akim Demaille  <akim@epita.fr>
17722         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
17723         the lists.
17725 2002-09-12  Akim Demaille  <akim@epita.fr>
17727         * doc/autoconf.texi (Defining Symbols): Present two different
17728         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
17729         difference between 1 argument calls, and 2-3 argument calls.
17731 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
17733         * doc/autoconf.texi: Review grammar and punctuation.
17735 2002-09-11  Paul Eggert  <eggert@twinsun.com>
17737         * doc/autoconf.texi: Fix minor formatting, spelling, and
17738         grammatical typos.
17739         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
17740         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
17741         is obsolescent.
17743 2002-09-11  Akim Demaille  <akim@epita.fr>
17745         * doc/autoconf.texi (Questions): Rename as...
17746         (FAQ): this.
17747         (Defining Directories): New.
17749 2002-09-09  Akim Demaille  <akim@epita.fr>
17751         * doc/autoconf.texi (Making testsuite Scripts): Update.
17752         Suggested by Nishio Futoshi.
17754 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
17756         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
17757         plain `@' is wanted.
17759 2002-09-09  Akim Demaille  <akim@epita.fr>
17761         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
17762         `duplicates', since the algorithm was too naive and could keep
17763         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
17764         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
17765         Reported by Ralf Corsepius.
17766         * tests/torture.at (Configuring subdirectories): Exercise these
17767         cases.
17769 2002-09-09  Akim Demaille  <akim@epita.fr>
17771         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
17772         looking for a replacement file.
17773         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
17774         directory is relative.
17775         * doc/autoconf.texi (Generic Functions): Clarify the replacement
17776         directory definition.
17777         Reported by Andreas Schwab and Jim Meyering.
17779 2002-09-06  Akim Demaille  <akim@epita.fr>
17781         * doc/autoconf.texi (Setting Output Variables): Clarify what
17782         precious variables are.
17783         Suggested by Pontus Skoeld.
17785 2002-09-05  Akim Demaille  <akim@epita.fr>
17787         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
17788         (ifnames, autoscan, autom4te): Since we don't only depend on
17789         configure.ac variables (such as VERSION etc.), but also on prefix
17790         and so forth, depend on Makefile, not configure.ac.
17791         Reported by Alexandre Duret-Lutz.
17792         * doc/autoconf.texi (Installation Directory Variables): Adjust.
17794 2002-09-05  Kevin Ryde  <user42@zip.com.au>
17796         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
17797         doesn't seem to be confined to ia64, just say "some versions".
17799 2002-09-04  Akim Demaille  <akim@epita.fr>
17801         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
17802         Automake 1.6c.
17803         * Makefile.am (maintainer-clean-local): Remove.
17804         (MAINTAINERCLEANFILES): Remove COPYING.
17806 2002-09-03  Paul Eggert  <eggert@twinsun.com>
17808         * doc/autoconf.texi (Configuration Commands): Remove obsolete
17809         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
17810         Brinkmann.
17812 2002-09-03  Akim Demaille  <akim@epita.fr>
17814         * configure.ac: Bump to 2.53d.
17815         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
17816         as of today, on Automake's team suggestion.
17818 2002-09-03  Akim Demaille  <akim@epita.fr>
17820         Version 2.53c.
17822 2002-09-02  Akim Demaille  <akim@epita.fr>
17824         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
17825         SITE_MACRO_DIR.
17826         * configure.ac: Disable SITE_MACRO_DIR.
17828 2002-09-02  Jim Meyering  <meyering@lucent.com>
17830         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
17831         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
17832         Also, tweak grammar: s/make sure to/be sure to/.
17834 2002-09-02  Paul Eggert  <eggert@twinsun.com>
17836         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
17837         directory names are generally preferable to physical names.
17839 2002-09-02  Akim Demaille  <akim@epita.fr>
17841         * lib/Autom4te/General.pm (&update_file): s/die/error/.
17842         Reported by Raja R. Harinath.
17843         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
17844         * bin/autoupdate.in: Use error instead of die.
17846 2002-09-01  Paul Eggert  <eggert@twinsun.com>
17848         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
17849         ordinary shell concatenation rather than echo+tr+sed command that
17850         runs afoul of a long-line-related sed bug in Solaris 8.
17852         * bin/autoheader.in (parse_args): --warning -> --warnings.
17854         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
17855         stdout, as traditional "ls" does.
17856         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
17857         _AC_COMPILER_EXEEXT_O): Likewise.
17858         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
17860         * bin/autoconf.as: Add --prepend-include option.  This patch was
17861         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
17862         but bin/autoconf.in is generated automatically from bin/autoconf.as.
17864         * bin/autoconf.in, configure: Regenerate.
17866         * doc/autoconf.texi (Special Shell Variables): Mention
17867         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
17869         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
17870         MAILPATH and set PS1, PS2, PS4 to default values, to work
17871         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
17872         For LC_ALL etc, first try to set to "C" as POSIX requires and as
17873         the Autoconf documentation specifies; fall back to "unset" only if
17874         this fails.  Use a shell for-loop for this rather than an m4 loop,
17875         to shorten the output script.
17877 2002-08-30  Paul Eggert  <eggert@twinsun.com>
17879         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
17880         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
17881         for the CDPATH problem.  Document PWD.
17882         (Limitations of Builtins): Document the problem that "cd $foo" and
17883         "ls $foo" may refer to different directories in shells conforming
17884         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
17885         example, since the old example is now out of date.
17887         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
17888         FOO" and "ls FOO" talk about different directories; this catches
17889         problems when POSIX 1003.1-2001 "cd" fails due to symlink
17890         spaghetti.
17892         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
17893         of rolling our own unset.
17894         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
17895         in practice we needn't worry about CDPATH if unset doesn't work.
17897         * Makefile.in, aclocal.m4, bin/Makefile.in,
17898         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
17899         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
17900         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
17901         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
17902         tests/Makefile.in: Regenerate with Automake 1.6.3.
17904         * config/config.guess, config/config.sub, config/mkinstalldirs:
17905         Update.
17907         * configure: Regenerate with self.
17909 2002-08-30  Kevin Ryde  <user42@zip.com.au>
17911         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
17912         default output.
17914 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17916         * bin/autom4te.in (Request::load): Correctly test for "do" read
17917         failure.
17919 2002-08-29  Akim Demaille  <akim@epita.fr>
17921         * lib/Autom4te/General.pm (&xqx): New.
17922         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
17923         hand, which is not portable.
17924         (&error): New.
17925         * bin/autom4te.in: Use them.
17926         Use &error instead of die.
17927         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17928         Adjust.
17930 2002-08-17  Paul Eggert  <eggert@twinsun.com>
17932         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
17933         default list of compilers to try, since it was long ago superseded
17934         by the ksh fc builtin.  Suggested by Steven G. Johnson.
17936 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
17938         * doc/autoconf.texi (Invoking autom4te): End the option table,
17939         fixing a bug introduced by the previous patch.
17940         (Limitations of Make): Add a 'target lookup' subentry in the
17941         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
17943 2002-07-29  Mark D. Roth  <roth@feep.net>
17945         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
17946         options and use $AUTOM4TE_PATH.
17947         * doc/autoconf.texi: Remove documentation of autom4te
17948         --include-envvar and --site-macro-subdir options and document
17949         use of $AUTOM4TE_PATH.
17950         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
17951         arguments from each language section.
17953 2002-07-29  Paul Eggert  <eggert@twinsun.com>
17955         * doc/install.texi: Include copyright symbol in copyright notice.
17957         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
17958         Replace with:
17959         (AM_MAKEINFOFLAGS): New macro.
17960         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
17961         * Makefile.am (INSTALL): Use the new macros.
17962         Use -o rather than --output, since "missing" does not grok --output.
17964 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
17966         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
17967         comments do not always work. Never trust the exit status of
17968         `make -k'.
17970 2002-07-24  Kevin Ryde  <user42@zip.com.au>
17972         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
17973         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
17975 2002-07-23  Paul Eggert  <eggert@twinsun.com>
17977         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
17978         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
17979         apparently treats PATH="nonexistent" as if it contained ".".
17980         Bug reported by Stefan `Sec' Zehl.
17982 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
17984         * doc/autoconf.texi (Limitations of Make): Mention the special
17985         handling of the obj/ directory by BSD make.
17987 2002-07-20  Kevin Ryde  <user42@zip.com.au>
17989         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
17990         backslashes.
17992 2002-07-19  Akim Demaille  <akim@epita.fr>
17994         * doc/autoconf.texi (Function Portability): `exit'.
17995         (Programming in M4sh): Ethymology of M4sh.
17997 2002-07-19  Akim Demaille  <akim@epita.fr>
17999         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
18001 2002-07-18  Akim Demaille  <akim@epita.fr>
18003         Version 2.53b.
18005 2002-07-18  Akim Demaille  <akim@epita.fr>
18007         * config/config.guess, config/config.sub: Update.
18009 2002-07-18  Akim Demaille  <akim@epita.fr>
18011         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
18012         Automake's parts.
18014         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
18015         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
18016         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
18018 2002-07-18  Akim Demaille  <akim@epita.fr>,
18019             Alexandre Duret-Lutz  <duret_g@epita.fr>
18021         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
18022         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
18024 2002-07-17  Russ Allbery  <rra@stanford.edu>
18026         * doc/autoconf.texi (Initializing configure): Clarify the
18027         description of the tarname default.
18029 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
18031         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
18032         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
18033         latter was not run.
18035 2002-07-17  Akim Demaille  <akim@epita.fr>
18037         * lib/Autom4te/General.pm (find_file): Browse the directories in
18038         the order they are given.
18040 2002-07-17  Akim Demaille  <akim@epita.fr>
18042         * tests/wrapsh.as, tests/wrappl.as: Merge into...
18043         * tests/wrapper.as: this.
18044         * tests/Makefile.am, configure.ac: Adjust.
18046 2002-07-17  Mark D. Roth  <roth@feep.net>
18048         * configure.ac: Add --enable-site-macro-dir option.
18049         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
18050         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
18051         --site-macro-subdir options.
18052         * bin/autoconf.in: Add --prepend-include option.
18053         * bin/autoheader.in: Add --prepend-include option.
18054         * bin/autoreconf.in: Add --prepend-include option.
18055         * bin/autoscan.in: Add --prepend-include option.
18056         * bin/autoupdate.in: Add --prepend-include option.
18057         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
18058         macro directory, remove note that include path directories are
18059         used in reverse order, and document --prepend-include option.
18060         * lib/autom4te.in: Use --prepend-include instead of --include.
18061         * tests/wrapsh.in: Use --prepend-include instead of --include.
18063 2002-07-17  Akim Demaille  <akim@epita.fr>
18065         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
18066         tarnames.
18067         * doc/autoconf.texi (Initializing configure): Adjust.
18069 2002-07-17  Akim Demaille  <akim@epita.fr>
18071         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
18072         (_AC_FUNC_MALLOC): New.
18073         (AC_FUNC_MALLOC): Use the latter.
18074         Define HAVE_MALLOC to 0 if broken.
18075         * doc/autoconf.texi (Particular Functions): Adjust.
18077 2002-07-16  Akim Demaille  <akim@epita.fr>
18079         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
18080         * doc/autoconf.texi (C Compiler): Adjust.
18082 2002-07-09  Akim Demaille  <akim@epita.fr>
18084         * doc/autoconf.texi: Properly set the ``header'' part.
18086 2002-07-09  Akim Demaille  <akim@epita.fr>
18088         * doc/autoconf.texi (Systemology): Some about Darwin.
18090 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
18092         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
18093         Don't use AC_REQUIRE in AU_DEFUN.
18095 2002-07-09  Art Haas  <ahaas@neosoft.com>
18097         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
18099 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
18101         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
18102         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
18103         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
18104         so that Emacs setups GNU style for perl-mode and cperl-mode.
18106 2002-06-27  Paul Eggert  <eggert@twinsun.com>
18108         * config/install-sh: Quote $src.  Prefer || to test's -o option,
18109         as per "Limitations of Builtins".
18110         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
18111         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
18113         * tests/mktests.sh: Use grep instead of fgrep, as per
18114         "Limitations of Builtins".
18116 2002-06-15  Paul Eggert  <eggert@twinsun.com>
18118         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
18119         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
18120         so that we consistently test the just-built programs.
18121         * tests/wrappl.as: Likewise.
18123 2002-06-12  Paul Eggert  <eggert@twinsun.com>
18125         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
18126         name, so that symlinks to 'autoconf' work properly.  Bug reported
18127         by Bruno Haible.
18128         * bin/autoheader.in (AUTOM4TE): Likewise.
18129         * bin/autoreconf.in (autoconf, autoheader): Likewise.
18130         * bin/autoscan.in (autom4te): Likewise.
18131         * bin/autoupdate.in (autom4te): Likewise.
18133         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
18134         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
18135         on Solaris 2.5.1.
18137 2002-06-11  Andreas Schwab  <schwab@suse.de>
18139         * doc/autoconf.texi: Add more dir entries.
18141 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
18143         * bin/autom4te.in ($cache): Don't define using `$me', the name
18144         of the cache should not depend on the name under which autom4te
18145         was installed.
18147 2002-06-07  Akim Demaille  <akim@epita.fr>
18149         * tests/tools.at (autoconf: forbidden tokens, basic)
18150         (autoconf: forbidden tokens, exceptions): Adjust to the change of
18151         words in autom4te.in.
18153 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
18155         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
18156         _AC_LANG_PROGRAM_C_F77_HOOKS.
18158 2002-06-07  Akim Demaille  <akim@epita.fr>
18160         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
18161         rename as...
18162         (AC_REPLACE_FNMATCH): this.
18163         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
18164         AC_FUNC_FNMATCH_GNU.
18166 2002-06-07  Akim Demaille  <akim@epita.fr>
18168         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
18169         Rosetta Stone for Unix.
18171 2002-06-07  Akim Demaille  <akim@epita.fr>
18173         * bin/autom4te.in (warn_forbidden): When rejecting a token,
18174         suggest m4_pattern_allow.
18175         Suggested by Adam J. Richter.
18177 2002-06-07  Akim Demaille  <akim@epita.fr>
18179         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
18180         ac_config_libobj_dir.
18181         (AC_CONFIG_LIBOBJ_DIR): New.
18182         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
18183         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
18184         Use ac_config_libobj_dir to find the replacement files.
18185         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
18186         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
18187         (AC_REPLACE_FNMATCH_GNU): these.
18188         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
18189         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
18190         * tests/mktests.sh (ac_exclude_list): Don't check
18191         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
18193 2002-06-06  Paul Eggert  <eggert@twinsun.com>
18195         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
18196         if ln doesn't work.
18197         * NEWS: Likewise.
18198         * doc/autoconf.texi (Configuration Links): Likewise.
18199         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
18201 2002-06-05  Paul Eggert  <eggert@twinsun.com>
18203         * config/config.guess, config/config.sub, config/texinfo.tex:
18204         Update from masters.
18206 2002-05-29  Paul Eggert  <eggert@twinsun.com>
18208         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
18209         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
18210         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
18211         Likewise.
18212         * lib/autoconf/Makefile.am (check-local): Likewise.
18213         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
18214         * lib/autoconf/types.m4 (commentary only): Likewise.
18215         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
18216         * lib/autotest/Makefile.am (check-local): Likewise.
18217         * lib/m4sugar/Makefile.am (check-local): Likewise.
18218         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
18219         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
18221         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
18222         * doc/autoconf.texi (Particular Programs): Document them.
18223         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
18224         * NEWS: Likewise.
18226 2002-05-27  Paul Eggert  <eggert@twinsun.com>
18228         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
18229         * NEWS, doc/autoconf.texi (Particular Types): Document it.
18230         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
18231         instead of AC_MBSTATE_T, which never existed.
18233 2002-05-23  Akim Demaille  <akim@epita.fr>
18235         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
18236         version of Autoconf that is discussed.
18238 2002-05-22  Paul Eggert  <eggert@twinsun.com>
18240         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
18241         from the default list of compilers to try.  Suggested by
18242         Kate Hedstrom.
18243         * NEWS: Document the above.
18244         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
18246 2002-05-17  Paul Eggert  <eggert@twinsun.com>
18248         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
18249         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
18250         This improves on an earlier suggestion by H. Peter Anvin.
18252 2002-05-16  Paul Eggert  <eggert@twinsun.com>
18254         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
18255         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
18256         Both macros now accept an optional source-dir arg.
18257         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
18259         * NEWS: Document this.
18260         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
18262         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
18263         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
18264         not for GNU extensions; this undoes part of the 2000-11-03 change,
18265         reverting to 2.13-compatible behavior.
18266         Add new optional argument DIR.
18267         (AC_FUNC_FNMATCH_GNU): New macro.
18269         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
18271 2002-05-08  Paul Eggert  <eggert@twinsun.com>
18273         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
18274         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
18275         and it causes a 'test' syntax error if it fails.
18276         Bug reported by Stephen Gildea.
18278         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
18279         If prototypes are supported, use them to check this at compile-time,
18280         instead of trying to check it at run-time.  If we must do a run-time
18281         check, assume that setvbuf is standard when cross-compiling, as
18282         nonstandard setvbuf occurs only on ancient and unlikely hosts.
18283         Bug reported by Paul D. Smith.
18285         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
18286         argument specifying location of getloadavg.c.  This removes a
18287         FIXME.  This idea was taken from Jim Meyering's implementation in
18288         textutils.
18289         * doc/autoconf.texi (Particular Functions): Document this.
18290         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
18291         that's what the code does; this fixes a bug reported by
18292         Paul D. Smith.
18294 2002-05-03  Akim Demaille  <akim@epita.fr>
18296         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
18297         autopoint instead of gettextize.
18298         ($uses_alocal): Rename as...
18299         ($uses_aclocal): this.
18300         * doc/autoconf.texi (autoreconf Invocation): Adjust.
18301         Suggested by Bruno Haible.
18303 2002-05-03  Akim Demaille  <akim@epita.fr>
18305         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
18307 2002-04-29  Paul Eggert  <eggert@twinsun.com>
18309         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
18310         files to be 1 second older; just set them to be the same time.
18311         Also, sleep 1 second after the first aclocal, to work around
18312         problems with sub-second time stamps on the input files.
18314 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
18316         * doc/autoconf.texi: Mention "set -e -x" lossage
18317         under node "Limitations of Builtins".
18319 2002-04-29  Akim Demaille  <akim@epita.fr>
18321         * doc/install.texi: Better wording for setting variables when
18322         running configure.
18323         From Christian Cornelssen.
18325 2002-04-29  Akim Demaille  <akim@epita.fr>
18327         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
18328         of lack of $LINENO support, then the test will compare the $LINENO
18329         in testsuite vs. the lineno in the test file.  This is wrong, of
18330         course.
18331         Be sure to protect it.
18332         Reported by Patrick Welche.
18334 2002-04-25  Akim Demaille  <akim@epita.fr>
18336         * doc/autoconf.texi (Obsolete Macros): Typo.
18337         Reported by Vladimir Volovich.
18339 2002-04-25  Akim Demaille  <akim@epita.fr>
18341         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
18342         than some of the input files, hence, on the second run of aclocal,
18343         if some of its input are younger, make them older.
18344         Suggested by Paul Eggert.
18346 2002-04-25  Akim Demaille  <akim@epita.fr>
18348         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
18349         Thanks to Paul Eggert.
18351 2002-04-25  Akim Demaille  <akim@epita.fr>
18353         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
18354         and ac_subst_vars be sh variables containing the list of
18355         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
18356         DEFAULT diversion.
18357         (_AC_INIT_PREPARE): Use them to log them.
18358         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
18359         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
18360         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
18361         _AC_SUBST_FILES and _AC_SUBST_VARS.
18362         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
18364 2002-04-24  Akim Demaille  <akim@epita.fr>
18366         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
18367         autoheader, so that automake does not complain about a missing
18368         config.h.in that was to be created.
18370 2002-04-23  Akim Demaille  <akim@epita.fr>
18372         * bin/autoheader.in (parse_args): --warning takes an argument.
18373         Fixes PR/220.
18375 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
18377         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
18378         and bb.out when cleaning up.
18380 2002-04-22  Akim Demaille  <akim@epita.fr>
18382         Version 2.53a.
18384 2002-04-22  Akim Demaille  <akim@epita.fr>
18386         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
18388 2002-04-22  Akim Demaille  <akim@epita.fr>
18390         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
18391         comma.
18392         Reported by Gregory Giannoni.
18394 2002-04-22  Akim Demaille  <akim@epita.fr>
18396         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
18397         Fixes false failures on Darwin.
18399 2002-04-21  Paul Eggert  <eggert@twinsun.com>
18401         * TODO, bin/autoupdate.in, doc/autoconf.texi,
18402         lib/autoconf/general.m4, lib/autoconf/libs.m4,
18403         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
18404         tests/tools.at: Minor spelling and grammar fixes.
18406 2002-04-20  Paul Eggert  <eggert@twinsun.com>
18408         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
18409         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
18410         * lib/autotest/general.m4 (AT_INIT): Likewise.
18411         * tests/atgeneral.m4 (AT_INIT): Likewise.
18413 2002-04-19  Paul Eggert  <eggert@twinsun.com>
18415         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
18416         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
18417         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
18418         lib/autoconf/functions.m4, lib/autoconf/general.m4,
18419         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
18420         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
18421         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
18422         Minor spelling and grammar fixes.
18424         * doc/autoconf.texi: Follow the outline suggested in the GNU
18425         Sample Texts sections of the Texinfo 4.2 manual.  Most
18426         importantly, this makes sure that the copyright notices appear in
18427         all output formats.  You probably need Texinfo 4.2 to generate
18428         the manual now.
18430         Fix some bugs when using "$@" when there might be zero positional
18431         arguments in cases where this matters.
18433         * bin/autoconf.as: Rewrite so that the problem does not come up.
18434         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
18435         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
18436         * lib/autotest/general.m4 (AT_INIT): Likewise.
18438         * bin/autoheader.in: Use 'case' statement to work around problem.
18439         * bin/auto4mte.in: Likewise.
18440         * bin/autoreconf.in: Likewise.
18441         * bin/autoscan.in: Likewise.
18442         * bin/autoupdate.in: Likewise.
18443         * bin/ifnames.in: Likewise.
18445         * doc/autoconf.texi (Shell Substitutions): Document the problem.
18447         * lib/autotest/general.m4 (AT_INIT):
18448         Use Zsh alias to work around problem.
18449         * tests/atgeneral.m4 (AT_INIT): Likewise.
18451         * tests/c.at: We can't have zero arguments, so remove workaround
18452         that is not portable to Zsh.
18454 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
18456         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
18457         from aclocal.m4 too.
18459 2002-04-12  Akim Demaille  <akim@epita.fr>
18461         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
18463 2002-04-10  Akim Demaille  <akim@epita.fr>
18465         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
18466         workaround for ${1+"$@"}.
18467         * doc/autoconf.texi (Shell Substitutions): Explain it.
18468         From Oliver Kiddle and Peter Stephenson.
18470         Have M4sh perform minimal shell sanitizing.
18472         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
18473         part into...
18474         (_AS_PREPARE): this new macro.
18475         (AS_PREPARE): New.
18476         (AS_INIT): Invoke AS_SHELL_SANITIZE.
18477         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
18479         Adjust Autoconf and Autotest.
18481         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
18482         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
18483         * lib/autotest/general.m4 (AT_INIT): Likewise.
18484         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
18485         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
18486         AS_SHELL_SANITIZE.
18488         Use this M4sh to generate Autoconf's shell scripts.
18490         * tests/wrapsh.as: New, precursor of wrapsh.in.
18491         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
18492         on Autotest and M4sh.
18493         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
18494         (wrapsh.in): New target.
18495         * bin/autoconf.as: New, precursor of autoconf.in.
18496         (autoconf.in): New target.
18498 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
18500         * doc/autoconf.texi (Limitations of Make): Mention the issue
18501         with indented comments in rules.
18503 2002-04-09  Andreas Schwab  <schwab@suse.de>
18505         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
18506         ac_top_builddir when setting ac_abs_top_builddir.
18508 2002-04-06  Kevin Ryde  <user42@zip.com.au>
18510         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
18511         (Portable Shell): Cross reference to Systemology.
18513 2002-04-05  Akim Demaille  <akim@epita.fr>
18515         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
18516         directories when descending in a SUBDIRS.
18517         Reported by Ezra Peisach.
18519 2002-04-04  Andreas Schwab  <schwab@suse.de>
18521         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
18522         contains no literal separators.
18524 2002-04-03  Akim Demaille  <akim@epita.fr>
18526         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
18527         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
18528         Use dnl, not the KILL diversion.
18529         Extracted from...
18530         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
18531         (AC_CONFIG_LINKS): here.
18532         Adjust.
18533         Don't use the KILL diversion, as it kills spurious output, which
18534         results in failures being hidden.
18535         Use m4_defn where appropriate.
18536         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
18537         after the second argument.
18538         Use m4_defn.
18539         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
18540         syntax, as it is provided by M4sugar.
18541         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
18543 2002-04-03  Andreas Schwab  <schwab@suse.de>
18545         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
18546         expanded if $# <= 2.
18548         * bin/autoreconf.in (autoreconf): Run automake after rerunning
18549         aclocal.
18551 2002-04-03  Akim Demaille  <akim@epita.fr>
18553         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
18554         (_AC_COMPILER_EXEEXT_REJECT): New.
18555         Also recognize *.bb and *.bbg as compilation byproducts.
18556         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
18557         (_AC_COMPILER_OBJEXT): Use them.
18558         Fixes Debian #138666.
18560 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
18562         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
18564         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
18565         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
18566         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
18567         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
18568         (AC_C_CONST): Same.
18569         (AC_C_INLINE): Same.
18570         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
18571         * doc/autoconf.texi, NEWS: Document.
18572         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
18573         AC_C_CROSS.
18575 2002-04-02  Akim Demaille  <akim@epita.fr>
18577         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
18578         _AS_MKDIR_P_PREPARE.
18580 2002-03-28  Kevin Ryde  <user42@zip.com.au>
18582         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
18583         to avoid versions of HP C which don't allow that.
18585 2002-03-27  Paul Eggert  <eggert@twinsun.com>
18587         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
18588         (AS_SHELL_SANITIZE): Invoke it.
18589         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
18591 2002-03-26  Akim Demaille  <akim@epita.fr>
18593         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
18595 2002-03-26  Akim Demaille  <akim@epita.fr>
18597         * doc/autoconf.texi (Introduction): The GNATS base moved.
18599 2002-03-25  Paul Eggert  <eggert@twinsun.com>
18601         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
18602         as POSIX requires, as it doesn't work with Zsh.
18603         * doc/autoconf.texi (Assignments): Document the problem.
18605 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
18607         * doc/autoconf.texi (Limitations of Make): Mention more issue
18608         about VPATH, overriding of macros in sub-makes, and handling of
18609         SHELL.
18611 2002-03-21  Paul Eggert  <eggert@twinsun.com>
18613         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
18614         problem with here-document buffer boundaries.
18616         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
18617         when reinvoking the shell, to work around problems with installers
18618         who put strange things like "cd" commands in their environments.
18620 2002-03-19  Akim Demaille  <akim@epita.fr>
18622         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
18623         From Aaron Ucko.
18625 2002-03-19  Akim Demaille  <akim@epita.fr>
18627         * bin/autoscan.in (scan_file): Specify the location in `&used'
18628         invocations.
18629         From Nicolas Joly.
18631 2002-03-19  Akim Demaille  <akim@epita.fr>
18633         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
18634         From Nishio Futoshi.
18636 2002-03-19  Akim Demaille  <akim@epita.fr>
18638         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
18640 2002-03-18  Paul Eggert  <eggert@twinsun.com>
18642         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
18643         (Limitations of Usual Tools): Add mkdir section.
18645         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
18646         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
18647         back on AS_DIRNAME to compute prefixes otherwise; this is
18648         roughly what mkinstalldirs does.  That way, we need not have
18649         our own filename disassembler.  The old disassembler did not
18650         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
18652         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
18653         Create at_test_all by a series of assignments,
18654         not by a single assignment of a long string.  The latter causes ksh
18655         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
18656         presumably because of a buffer overrun.
18658 2002-03-14  Paul Eggert  <eggert@twinsun.com>
18660         * lib/autotest/general.m4 (at_times_skip):
18661         Renamed from at_times.  Now a boolean.
18662         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
18663         says 'times: not found'.
18665 2002-03-14  Akim Demaille  <akim@epita.fr>
18667         * bin/autoreconf.in (&study_gettextize): New.
18668         (&autoreconf): Handle newest gettextize.
18669         Rerun aclocal if needed.
18670         Suggested by Andreas Schwab.
18672 2002-03-13  Akim Demaille  <akim@epita.fr>
18674         * doc/autoconf.texi (Special Shell Variables): More about IFS.
18676 2002-03-13  Akim Demaille  <akim@epita.fr>
18678         * doc/autoconf.texi (Header Portability): New.
18679         Add information about stdint.h and inttypes.h from Paul Eggert.
18681 2002-03-13  Akim Demaille  <akim@epita.fr>
18683         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
18684         -p'.
18685         From Bob Proulx.
18687 2002-03-12  Akim Demaille  <akim@epita.fr>
18689         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
18690         m4_require.
18692 2002-03-11  Andreas Schwab  <schwab@suse.de>
18694         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
18695         does not do it if --with-lispdir is given.
18697 2002-03-08  Akim Demaille  <akim@epita.fr>
18699         Version 2.53.
18701 2002-03-08  Akim Demaille  <akim@epita.fr>
18703         * doc/autoconf.texi (Subdirectories): Clarify that the
18704         subdirectory should exist.
18706 2002-03-08  Akim Demaille  <akim@epita.fr>
18708         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
18710 2002-03-08  Akim Demaille  <akim@epita.fr>
18712         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
18713         aliases the actual variables, and modifications of the former
18714         affect the latter.
18716 2002-03-08  Akim Demaille  <akim@epita.fr>
18718         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
18719         because of C-c: have m4 output in tmp files, then mv them.
18721 2002-03-08  Akim Demaille  <akim@epita.fr>
18723         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
18724         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
18725         * bin/ifnames.in: Copyright update.
18727 2002-03-08  Akim Demaille  <akim@epita.fr>
18729         * doc/autoconf.texi (Invoking autom4te): New.
18731 2002-03-05  Akim Demaille  <akim@epita.fr>
18733         * doc/autoconf.texi (Specifying Names): Clarification suggested by
18734         Kevin Ryde.
18736 2002-03-05  Akim Demaille  <akim@epita.fr>
18738         Version 2.52i.
18740 2002-03-04  Akim Demaille  <akim@epita.fr>
18742         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
18743         * lib/autoconf/general.m4 (AC_INIT): More informative error
18744         message for LIBOBJ.
18746 2002-03-04  Akim Demaille  <akim@epita.fr>
18748         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
18749         parallel builds.
18751 2002-03-04  Akim Demaille  <akim@epita.fr>
18753         * doc/autoconf.texi (Transforming Names): Equality between target
18754         and host is irrelevant.
18755         (Specifying Names, Canonicalizing): Remove all references to the
18756         backward compatibility hooks.  Rather, collect them all into...
18757         (Hosts and Cross-Compilation): this new section.
18758         * doc/install.texi (System Type): Ditto.
18759         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
18760         that `--host' implies cross-compilation.
18762 2002-03-04  Akim Demaille  <akim@epita.fr>
18764         * doc/autoconf.texi (Evaluation Macros): New.
18765         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
18766         useless.
18767         (_m4_foreach): Define the variant with immediate evaluation so
18768         that it contains exactly the items, not an expression which
18769         evaluation is the current item.
18770         (m4_re_string, m4_re_word): Don't over quote them.
18772 2002-03-04  Akim Demaille  <akim@epita.fr>
18774         Instead of having stacking `shift's evaluated at the end, let
18775         `foreach' loops immediately evaluate them.
18777         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
18778         $*.  This is the n-th time I change my mind, but hopefully this is
18779         the last...
18780         (m4_lquote): New.
18781         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
18782         efficient.
18783         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
18784         it was only a hack for m4_text_wrap.
18785         (m4_car2): Remove, replaced by...
18786         (m4_cdr): New.
18787         (_m4_foreach): Adjust.
18788         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
18789         m4_bpatsubst for clarification.
18791 2002-03-04  Akim Demaille  <akim@epita.fr>
18793         * doc/autoconf.texi (Changequote is Evil): New.
18795 2002-03-03  Kevin Ryde  <user42@zip.com.au>
18797         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
18798         on old systems like SunOS.
18800 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
18802         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
18803         lib/autoconf/functions.m4, lib/autoconf/general.m4,
18804         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
18805         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
18806         of messages.
18808 2002-02-28  Akim Demaille  <akim@epita.fr>
18810         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
18811         message to be sent.
18813 2002-02-28  Kevin Ryde  <user42@zip.com.au>
18815         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
18817 2002-02-25  Akim Demaille  <akim@epita.fr>
18819         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
18820         From Akinori Musha.
18822 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
18824         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
18825         translate \r\n to \n.
18827 2002-02-07  Akim Demaille  <akim@epita.fr>
18829         Version 2.52h.
18831 2002-02-07  Akim Demaille  <akim@epita.fr>
18833         Fix Autoconf PR/209.
18834         Also reported by Frank Denis.
18836         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
18838 2002-02-07  Akim Demaille  <akim@epita.fr>
18840         Fix Autoconf PR/207:
18841         AC_PREFIX_PROGRAM fails with dashed program names
18843         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
18844         variable when looking for the prefix program.
18845         Now it also works for shell variables.
18847 2002-02-07  Akim Demaille  <akim@epita.fr>
18849         * doc/autoconf.texi (Limitations of Builtins): More about
18850         case/esac.
18852 2002-02-06  Akim Demaille  <akim@epita.fr>
18854         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
18855         case/esac, some shells don't support it.
18856         Reported by Zack Weinberg.
18857         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
18859 2002-02-06  Akim Demaille  <akim@epita.fr>
18861         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
18862         sure not to introduce newlines in at_groups.
18863         * lib/autotest/Makefile.am (autotest.m4f): Typo.
18865 2002-02-06  Akim Demaille  <akim@epita.fr>
18867         * tests/torture.at (Configuring subdirectories): Skip if aclocal
18868         is not available.
18870 2002-02-05  Paul Eggert  <eggert@twinsun.com>
18872         * doc/autoconf.texi (Specific Compiler Characteristics):
18873         Describe HP-UX cc bug workaround more accurately.
18874         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
18875         not unsigned long.
18876         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
18877         cross-compilers, too.  This undoes some of the most recent change
18878         to this file.
18880 2002-02-05  Akim Demaille  <akim@epita.fr>
18882         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
18883         to make sure they are up to date when `check' is run.
18885 2002-02-05  Akim Demaille  <akim@epita.fr>
18887         * doc/autoconf.texi (Making testsuite Scripts): Document
18888         package.m4.
18890 2002-02-05  Akim Demaille  <akim@epita.fr>
18892         * lib/freeze.mk: New.
18894 2002-02-05  Akim Demaille  <akim@epita.fr>
18896         Implement `autom4te --freeze'.
18898         * bin/autom4te.in (&freeze): New.
18899         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
18900         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
18902 2002-02-05  Akim Demaille  <akim@epita.fr>
18904         * bin/autom4te.in (&parse_args): Implement `frozen files are
18905         optional are the sum of the previous files on the command line'.
18906         Also, pass `--reload-state=' on them, so...
18907         (handle_m4): don't.
18908         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
18909         (M4sh): Rely on M4sugar.
18910         (Autotest, M4sh, M4sugar): Use frozen files.
18912 2002-01-31  Akim Demaille  <akim@epita.fr>
18914         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
18915         * doc/autoconf.texi (Initializing configure): Adjust.
18917 2002-01-30  Akim Demaille  <akim@epita.fr>
18919         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
18920         alphanumeric to `-' instead of `_'.
18922 2002-01-30  Akim Demaille  <akim@epita.fr>
18924         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
18925         for plain code, the other for cross-compilation code.  The latter
18926         is now run with GCC only.
18927         * doc/autoconf.texi (Compilers and Preprocessors): New.
18929 2002-01-30  Akim Demaille  <akim@epita.fr>
18931         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
18932         values.
18933         * doc/autoconf.texi (Initializing configure): Explain how to
18934         change AC_INIT default values.
18936 2002-01-29  Akim Demaille  <akim@epita.fr>
18938         * tests/torture.at (Configuring subdirectories): Use configure.in,
18939         so that aclocal 1.4 works.
18940         Reported by Alexandre Duret-Lutz and Larry Schmitt.
18942 2002-01-28  Akim Demaille  <akim@epita.fr>
18944         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
18945         needs an argument.
18947 2002-01-28  Akim Demaille  <akim@epita.fr>
18949         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
18950         AUTOTEST_PATH *after* it was set.
18951         Don't put `.' in the PATH: the user should be precise and `./' if
18952         needed.  In addition, given that the test suite does some `cd', if
18953         `.' is in the path, the `tested programs' sections will report
18954         programs found in the test suite's directory, while during the
18955         tests (performed in their own directory), these programs are no
18956         longer visible.  In other words, the results is confusing and
18957         useless.
18958         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
18960 2002-01-24  Akim Demaille  <akim@epita.fr>
18962         Version 2.52g.
18964 2002-01-24  Akim Demaille  <akim@epita.fr>
18966         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
18967         * doc/autoconf.texi: Finally add Akim as an author.
18969 2002-01-24  Akim Demaille  <akim@epita.fr>
18971         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
18972         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
18973         Bourne. Use /bin/sh.
18974         From Andreas Buening.
18976 2002-01-24  Akim Demaille  <akim@epita.fr>
18978         * config/config.guess, config/config.sub, config/texinfo.tex:
18979         Update from masters.
18981 2002-01-24  Akim Demaille  <akim@epita.fr>
18983         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
18984         * config/auxdir.m4, config/cond.m4, config/depend.m4,
18985         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
18986         * config/missing.m4, config/sanity.m4, config/select.m4,
18987         * config/strip.m4: Remove, to ease sync'ing with any version of
18988         Automake.
18990 2002-01-24  Akim Demaille  <akim@epita.fr>
18992         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
18993         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
18994         Reported by Geir Ove Myhr.
18996 2002-01-21  Akim Demaille  <akim@epita.fr>
18998         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
19000 2002-01-21  Akim Demaille  <akim@epita.fr>
19002         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
19003         message on invalid options.
19004         * bin/autom4te.in (parse_args): Don't use
19005         Autoconf::General::getopt with non valid options.
19007 2002-01-17  Jim Meyering  <meyering@lucent.com>
19009         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
19010         $ac_cv_exeext so we don't use an old, invalid, cached value.
19012 2002-01-11  Akim Demaille  <akim@epita.fr>
19014         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
19015         Meyering.
19016         * doc/autoconf.texi (Function Portability): Document the strnlen
19017         limitation.
19018         (Particular Functions): Document AC_FUNC_STRNLEN.
19019         * lib/autoscan/functions: Adjust.
19021 2002-01-06  Akim Demaille  <akim@epita.fr>
19023         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
19024         package.m4, since is really depends upon configure.ac, not
19025         configure.
19026         * doc/autoconf.texi (testsuite Scripts): Adjust.
19027         * tests/Makefile.am (package.m4): New.
19028         EXTRA_DIST it since its a source.
19030 2002-01-06  Akim Demaille  <akim@epita.fr>
19032         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
19033         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
19034         and PACKAGE_BUGREPORT from here...
19035         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
19036         arguments.
19037         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
19038         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
19039         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
19040         * tests/tools.at (autoheader): Adjust.
19041         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
19043 2002-01-06  Akim Demaille  <akim@epita.fr>
19045         * bin/autoscan.in (scan_file): Use `&used'.
19047 2002-01-03  Akim Demaille  <akim@epita.fr>
19049         * doc/autoconf.texi (Output): Improved wording regarding use of
19050         AC_OUTPUT.
19051         From Olly Betts.
19053 2001-12-18  Kevin Ryde  <user42@zip.com.au>
19055         * doc/autoconf.texi (Function Portability): Add notes on sscanf
19056         sometimes needing writable input.
19058 2001-12-17  Jim Meyering  <meyering@lucent.com>
19060         * doc/autoconf.texi (New Macros): Tweak wording.
19062 2001-12-14  Akim Demaille  <akim@epita.fr>
19064         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
19065         trailing files, don't apply `-rf' to files which might not be
19066         created by configure (core, core.*, and *.core), but just `rm -f'.
19067         Suggested by Jonathan Kamens.
19069 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
19071         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
19073 2001-12-14  Akim Demaille  <akim@epita.fr>
19075         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
19077 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
19079         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
19080         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
19081         abs_srcdir, top_srcpath to abs_top_srcdir.
19082         (_AC_OUTPUT_FILES): Adjust.
19083         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
19084         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
19085         * tests/wrappl.in, tests/wrapsh.in: Adjust.
19087 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
19089         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
19090         C/Fortran linking on HP/UX, by extracting the Fortran library
19091         search path from the LPATH line in the $F77 -v output.
19093 2001-12-12  Kevin Ryde  <user42@zip.com.au>
19095         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
19096         forbidden file descriptors table.
19098 2001-11-26  Akim Demaille  <akim@epita.fr>
19100         * bin/autoscan.in (%c_keywords): Build it at top level.
19101         Map to 1 in order to simplify its uses.
19103 2001-11-26  Akim Demaille  <akim@epita.fr>
19105         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
19106         Remove $filepath, useless.
19107         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
19108         variables, they are really part of the tokens.
19109         Split the input line on spaces and then look for tokens.
19110         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
19111         because of `lex$U.$(OBJEXT)'.
19112         (&scan_files): Use "@list" instead of join.
19113         * doc/Makefile.am (CLEANFILES): Add *.fns.
19115 2001-11-26  Akim Demaille  <akim@epita.fr>
19117         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
19118         Remove, replaced by...
19119         * tests/wrappl.in: Be common for all the Perl executables.
19120         In particular autoscan and autoheader want -I.
19121         * configure.ac: Adjust.
19122         * lib/autoscan/headers: errno.h is portable.
19124 2001-11-26  Akim Demaille  <akim@epita.fr>
19126         * bin/autoscan.in (used): New.
19127         Use it.
19129 2001-11-26  Akim Demaille  <akim@epita.fr>
19131         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
19132         directives.
19133         (&scan_sh_file): Remove a duplicate pattern.
19134         (&check_configure_ac): Use long options.
19135         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
19137 2001-11-26  Akim Demaille  <akim@epita.fr>
19139         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
19140         Before, having a line containing the opening of a multi line
19141         comment made the whole line be ignored.
19143 2001-11-26  Akim Demaille  <akim@epita.fr>
19145         * doc/autoconf.texi (Using an Autotest Test Suite): New.
19146         (testsuite Scripts): Be one of its subsection.
19147         (Autotest Logs): New.
19149 2001-11-26  Akim Demaille  <akim@epita.fr>
19151         Test groups are now run two directories deeper.
19153         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
19154         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
19155         at_top_builddir.
19156         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
19157         top_srcdir, builddir and top_builddir.
19158         Use `at_*dir' relatively to the directory containing the
19159         suite, use `*dir' when relatively to the current group dir.
19161 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
19163         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
19164         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
19165         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
19166         spelling errors.
19168 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
19170         * doc/autoconf.texi (Using System Type): Add an example of `case
19171         $host' usage so people quit using `case $target' everywhere.
19173 2001-11-22  Akim Demaille  <akim@epita.fr>
19175         * doc/autoconf.texi (Installation Directory Variables): Englishoes
19176         spotted by Jim Meyering.
19178 2001-11-16  Paul Eggert  <eggert@twinsun.com>
19180         This patch implements a `long double' suggestion by Oliver Kiddle.
19182         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
19183         static, to catch errors if the value isn't known at compile-time
19184         and the compiler supports dynamic arrays.  Change its name from
19185         `_array_' to `test_array' to avoid potential name clashes.
19186         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
19187         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
19188         better than double.  Catch a bug in GCC 2.95.2 x86.
19189         * doc/autoconf.texi (C Compiler): Document the above.
19190         * NEWS: Likewise.
19192 2001-11-13  Akim Demaille  <akim@epita.fr>
19194         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
19195         hand.
19196         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
19198 2001-11-13  Akim Demaille  <akim@epita.fr>
19200         * lib/autotest/general.m4 (AT_INIT): After having run the test
19201         group, go back to the initial directory, not to at_suite_dir.
19203 2001-11-13  Akim Demaille  <akim@epita.fr>
19205         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
19206         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
19207         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
19208         option.
19209         (AT_CHECK_CONFIGURE): Use absolute paths.
19210         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
19211         The problem is still the old one: there is no means in M4 (that I
19212         know about) to create a defining macro, because there is no means
19213         to create `$1' etc., therefore, the defining macro ``swallows''
19214         all the arguments meant to the defined macro.
19216 2001-11-13  Akim Demaille  <akim@epita.fr>
19218         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
19219         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
19220         configure.ac.
19221         * tests/aclocal.m4: Remove, as it is no longer used.
19223 2001-11-13  Akim Demaille  <akim@epita.fr>
19225         * lib/autotest/general.m4: Change `tests?' into `groups?' in
19226         variable names when referring to a single test group, or to
19227         `suite' when referring to the whole test suite.
19228         `at_last_test' is removed: m4 compute at_format itself.
19229         (at_stdout, at_stder1, at_stderr): New variables.
19230         (AT_CHECK): Use them.
19232 2001-11-13  Akim Demaille  <akim@epita.fr>
19234         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
19235         in PATH.
19236         Create `testsuite.dir/003/run' instead of `testsuite.003'.
19237         Do it as soon as a test fails, don't wait till the end of the test
19238         suite.
19239         Don't remove $as_me.[0-9]*, since these files no longer exist.
19241 2001-11-13  Akim Demaille  <akim@epita.fr>
19243         * tests/tools.at: Use absolute paths, since we are no longer run
19244         in place.
19246 2001-11-13  Akim Demaille  <akim@epita.fr>
19248         Now that tests are running in their own private dir, there is no
19249         need to list the files to remove at the end of tests groups.
19251         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
19252         (AT_data_files, at_data_files): Remove.
19253         (AT_CLEANUP, AT_DATA): Simplify.
19254         (AT_INIT): Adjust.
19255         Remove the group dir if !debug && !failed.
19256         * tests/atspecific.m4: Adjust.
19258 2001-11-13  Akim Demaille  <akim@epita.fr>
19260         Start a new layout for Autotest: `testsuite' creates
19261         `testsuite.dir' in which the at-check-line etc. files are to be
19262         found, and `testsuite.dir/003' where the test group 3 is run.
19264         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
19265         at_check_line_file, at_format, at_test_normalized, at_group_dir
19266         are new variables.
19267         Create the directories.
19268         Use absolute paths for at- files.
19269         (AT_CHECK): Adjust.
19271 2001-11-11  Michael Matz  <matz@kde.org>
19273         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
19274         (m4_car2): New.
19275         (m4_car): Properly quote arguments.
19277 2001-11-13  Akim Demaille  <akim@epita.fr>
19279         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
19280         with stricter rules on LIBOBJS.
19282 2001-11-12  Paul Eggert  <eggert@twinsun.com>
19284         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
19285         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
19286         __PROTOTYPES too.
19288 2001-11-12  Akim Demaille  <akim@epita.fr>
19290         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
19292 2001-11-12  Akim Demaille  <akim@epita.fr>
19294         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
19295         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
19296         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
19297         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
19298         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
19299         specify to what the macro should be defined (typically to 1).
19301 2001-11-12  Akim Demaille  <akim@epita.fr>
19303         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
19304         From Jim Meyering.
19306 2001-11-12  Akim Demaille  <akim@epita.fr>
19308         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
19309         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
19310         definition used by Automake where LEX is +/- "${missing} lex" and
19311         `missing' itself contains variables.
19313 2001-11-12  Akim Demaille  <akim@epita.fr>
19315         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
19316         Now that M4sh pushes BODY, the comments were output at the end of
19317         the test suites.
19319 2001-11-08  Akim Demaille  <akim@epita.fr>
19321         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
19322         that we can trace macros from aclocal.m4.
19323         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
19324         obsoleted, and redirect to the former anyway.
19325         Reported by Ralf Corsepius.
19327 2001-11-08  Akim Demaille  <akim@epita.fr>
19329         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
19330         processed only if present.
19331         * tests/torture.at (Configuring subdirectories): Use autoreconf
19332         instead of successive calls to autoconf.
19333         Add a nonexistent subdirectory to exercise the patch above.
19334         Reported by Ralf Corsepius.
19336 2001-11-08  Kevin Ryde  <user42@zip.com.au>
19338         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
19339         doesn't accept .S files.
19341 2001-11-07  Akim Demaille  <akim@epita.fr>
19343         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
19344         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
19345         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
19346         * bin/autom4te.in (warn_forbidden): New.
19347         (handle_output): Use it.
19348         Read m4_pattern_forbid with messages.
19350 2001-11-05  Akim Demaille  <akim@epita.fr>
19352         * bin/autom4te.in (--normalize): Remove.
19353         * lib/autom4te.in: Adjust.
19355 2001-11-05  Akim Demaille  <akim@epita.fr>
19357         * tests/Makefile.am (testsuite): Rename this target as...
19358         ($(TESTSUITE)): this.
19359         From Nicolas Joly.
19361 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
19363         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
19364         the --prefix option, also remove it's argument.
19366 2001-11-05  Akim Demaille  <akim@epita.fr>
19368         * doc/autoconf.texi (testsuite Invocation): Update.
19369         (Writing testsuite.at): Update.
19371 2001-11-03  Akim Demaille  <akim@epita.fr>
19373         * doc/autoconf.texi: s/@code/@command/ where appropriate.
19375 2001-11-03  Akim Demaille  <akim@epita.fr>
19377         * lib/Autom4te/General.pm: (&catfile, &canonfile)
19378         (&file_name_is_absolute): New, wrappers around routines from
19379         File::Spec.
19380         Use and export them.
19381         (&find_configure_ac): Optionally take a directory where to look at.
19382         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
19383         the arguments.
19384         Default @ARGV to `.', not find_configure_ac.
19385         (&autoreconf): Argument is a directory.
19386         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
19387         * doc/autoconf.texi (autoreconf Invocation): Update.
19389 2001-11-03  Akim Demaille  <akim@epita.fr>
19391         * lib/Autom4te/General.pm (@export_vars, @export_subs)
19392         (@export_forward_subs): New.
19393         Add basename, dirname, and fileparse.
19394         (@EXPORT): Adjust.
19395         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
19396         Don't look for aclocal flags if we already know aclocal is not
19397         used.
19398         Move aclocal.m4t only if it exists.
19399         Reported by Ezra Peisach.
19401 2001-11-03  Akim Demaille  <akim@epita.fr>
19403         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
19404         passed on command line, defaulting to ./configure.ac if present.
19405         (&maybe_autoreconf, File::Find): Remove, unused.
19406         (&autoreconf): If autoconf is not used, don't try to trace.
19408 2001-11-02  Akim Demaille  <akim@epita.fr>
19410         * configure.ac: Bump to 2.52g.
19412 2001-11-02  Akim Demaille  <akim@epita.fr>
19414         Version 2.52f.
19416 2001-11-02  Akim Demaille  <akim@epita.fr>
19418         * config/config.guess, config/config.sub, doc/standards.texi:
19419         * config/lispdir.m4: Update from masters.
19420         * configure.ac: Bump to 2.52f.
19422 2001-11-02  Akim Demaille  <akim@epita.fr>
19424         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
19425         Don't run aclocal when aclocal.m4 is not from aclocal.
19426         From Ezra Peisach.
19427         Don't run libtoolize and gettextize if --install is not given.
19429 2001-11-01  Paul Eggert  <eggert@twinsun.com>
19431         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
19432         be invoked before _AS_LINENO_PREPARE.
19433         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
19434         than character ranges.
19436         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
19437         invoking AS_BASENAME.  Set the locale variables to 'C' if
19438         possible, as POSIX requires this to get the traditional
19439         behavior.
19440         * doc/autoconf.texi (Special Shell Variables): Describe the above.
19442 2001-10-31  Paul Eggert  <eggert@twinsun.com>
19444         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
19445         with {}, as that triggers a bug in Bash 2.05.
19447         (_AS_LINENO_PREPARE): Use Sed rather than
19448         Awk.  Fix the sed prepass to work even if there are multiple
19449         instances of $LINENO on the same line.  Do not substitute for
19450         other variables like $LINENOT.  Do not check file dates; such a
19451         check is unreliable on sufficiently fast machines, and removing
19452         the check makes the code simpler and more reliable.  Check for
19453         output and chmod failures.
19455         * doc/autoconf.texi (Special Shell Variables): Document
19456         the above.
19458 2001-10-31  Akim Demaille  <akim@epita.fr>
19460         * tests/Makefile.am (atconfig): Remove this target, Automake
19461         handles it now.
19463 2001-10-31  Akim Demaille  <akim@epita.fr>
19465         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
19466         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
19467         provided, while it is optional.
19468         * configure.ac: Adjust.
19470 2001-10-26  Paul Eggert  <eggert@twinsun.com>
19472         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
19473           lib/Autom4te/Struct.pm:
19474         Require Perl 5.005_03 instead of just 5.005, as some tests fail
19475         with 5.005_02.
19477         * doc/autoconf.texi (Special Shell Variables): Document some
19478         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
19480         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
19481         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
19482         eval $LINENO is not portable in practice.
19484 2001-10-24  Akim Demaille  <akim@epita.fr>
19486         * lib/Autom4te/General.pm (backname): New.
19488 2001-10-24  Akim Demaille  <akim@epita.fr>
19490         * m4/: Remove, merged into...
19491         * config/: here.
19493 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
19495         * doc/autoconf.texi (Shellology): Mention the problems with bash
19496         2.05's use of ANSI quoting in its `set' builtin.
19498 2001-10-22  Paul Eggert  <eggert@twinsun.com>
19500         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
19501         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
19502         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
19503         POSIX decided to standardize on the int flavor of strerror_r.
19504         Always do char* test, as there's no reason not to.
19505         Assign to a char* var, to catch strerror_r that returns int*.
19507         * doc/autoconf.texi (Particular Functions):
19508         Document the above changes.  Also, document the fact that
19509         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
19511         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
19513 2001-10-20  Akim Demaille  <akim@epita.fr>
19515         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
19516         the executable was missing from the log.
19518 2001-10-20  Akim Demaille  <akim@epita.fr>
19520         * lib/Autom4te/General.pm (&update_file): If destination is
19521         unchanged, remove the source.
19522         (&up_to_date_p): Don't be verbose, be debug.
19523         * bin/autoreconf.in: No longer support --m4dir.
19524         (&autoreconf): Display the full path of the configure.ac we are
19525         studying.
19526         Trace it only once.
19527         Be sure to honor --force with gettextize.
19528         Always run aclocal.
19529         * doc/autoconf.texi: Adjust.
19531 2001-10-20  Akim Demaille  <akim@epita.fr>
19533         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
19534         Remove, dead.
19535         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
19536         `intl' is already present, as it refuses unless --force.
19537         (&parse_args): Use -I, --include instead of the old Autoconf
19538         options.
19539         ($localdir, $autoconf_dir): Remove.
19540         (@include): New.
19541         (&maybe_autoreconf): New, to preserve $_ for File::Find.
19543 2001-10-19  Jens Petersen  <petersen@redhat.com>
19545         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
19546         * doc/autoconf.texi (Particular Programs): Likewise.
19548 2001-10-19  Akim Demaille  <akim@epita.fr>
19550         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
19551         file in @configure_input@.
19552         Don't mention `automatically' in addition to `generated'.
19553         * tests/torture.at (#define header templates): Adjust.
19555 2001-10-19  Akim Demaille  <akim@epita.fr>
19557         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
19558         comment, explain how to install automatic mode selection.
19559         From Russ Allbery.
19561 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
19563         * bin/autoreconf.in (autoreconf): Display the path to the
19564         configure.ac being studied.
19566 2001-10-18  Paul Eggert  <eggert@twinsun.com>
19568         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
19569         long, to work around a bug in the HP C compiler version HP92453-01
19570         B.11.11.23709.GP.
19572         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
19573         (AS_BASENAME_EXPR): New macro.
19574         (AS_BASENAME_SED): Do not assume GNU sed semantics.
19575         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
19576         and fall back on 'sed' only if the other two fail.  This makes
19577         AS_BASENAME act more like AS_DIRNAME.
19578         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
19579         contains white space.
19580         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
19581         Use AS_DIRNAME, since I think it's now DOS-friendly.
19582         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
19583         Allow "dirname //FOO" to return either / or //, as POSIX allows
19584         either behavior.
19586 2001-10-10  Akim Demaille  <akim@epita.fr>
19588         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
19589         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
19590         From Eric Sharkey.
19592 2001-10-10  Akim Demaille  <akim@epita.fr>
19594         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
19595         m4_define, since...
19596         (_AS_ECHO_N): AS_REQUIREs it.
19598 2001-10-10  Akim Demaille  <akim@epita.fr>
19600         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
19601         (AC_INCLUDES_DEFAULT): Move to...
19602         * lib/autoconf/headers.m4: here.
19603         * lib/autoconf/types.m4: Comment changes.
19604         * doc/autoconf.texi: Specify where the default includes are used
19605         in the macro prototypes.
19607 2001-10-09  Akim Demaille  <akim@epita.fr>
19609         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
19610         transition code.
19612 2001-10-08  Akim Demaille  <akim@epita.fr>
19614         * bin/autoreconf.in (&autoreconf): Remove debugging code.
19615         (&parse_args): Pass verbosity/debugging options to subtools when
19616         --debug, not when --verbose.
19617         * lib/autom4te.in (Autoreconf-preselections): New.
19618         (Autoconf): Use it.
19620 2001-10-08  Akim Demaille  <akim@epita.fr>
19622         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
19624 2001-10-08  Akim Demaille  <akim@epita.fr>
19626         * doc/autoconf.texi (autoreconf Invocation): Adjust.
19627         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
19629 2001-10-08  Akim Demaille  <akim@epita.fr>
19631         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
19632         (Syntax of the shell scripts): Don't.
19633         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
19634         bother with $force since...
19635         * lib/Autom4te/General.pm: does.
19637 2001-10-08  Akim Demaille  <akim@epita.fr>
19639         * bin/autoreconf.in: Rewrite in Perl.
19640         * configure.ac: Adjust.
19641         * lib/Autom4te/General.pm (&up_to_date_p): New.
19642         * bin/autom4te.in (&up_to_date_p): Use it.
19643         Rename as...
19644         (&up_to_date): this.
19646 2001-10-08  Akim Demaille  <akim@epita.fr>
19648         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
19649         (m4_list_cmp): Use $0 to reinvoke yourself.
19650         (m4_patsubsts): New.
19651         (m4_strip, m4_version_unletter): Use it.
19652         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
19654 2001-10-08  Akim Demaille  <akim@epita.fr>
19656         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
19657         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
19658         * lib/autoconf/types.m4, lib/autotest/general.m4,
19659         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
19660         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
19661         m4_bregexp, m4_bpatsubst, and m4_bmatch.
19662         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
19664 2001-10-08  Akim Demaille  <akim@epita.fr>
19666         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
19668 2001-10-08  Akim Demaille  <akim@epita.fr>
19670         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
19671         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
19672         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
19673         * tests/tools.at, tests/m4sh.at: Use it.
19674         * tests/m4sh.at: Don't rely on Autoconf macros.
19675         (DIRNAME_TEST): Also exercise the expr variant.
19676         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
19677         preferred M4sugar extension is now `.4s'.
19678         * tests/README: Remove.
19680 2001-10-08  Akim Demaille  <akim@epita.fr>
19682         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
19683         (m4_provide_if): this.
19684         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
19685         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
19686         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
19687         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
19689 2001-10-08  Akim Demaille  <akim@epita.fr>
19691         Use `add-log-current-defun-function' for ChangeLog creation.
19692         Suggested by Tom Tromey.
19694         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
19695         (autotest-mode): Adjust.
19696         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
19697         'comment-region onto `C-c ;'.
19698         Comments are `#', not `dnl'.
19699         (autoconf-current-defun): New.
19700         (autoconf-font-lock-keywords): Recognize `m4_defun'.
19702 2001-10-08  Akim Demaille  <akim@epita.fr>
19704         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
19705         * lib/m4sugar/m4sh.m4: here.
19706         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
19707         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
19708         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
19709         include handle the m4_pattern_*, no longer push the
19710         BODY diversion nor set the /bin/sh line, AS_INIT does it.
19711         * lib/autotest/general.m4 (AT_INIT): Likewise.
19712         * tests/base.at: Adjust the tests to use AS_INIT.
19713         * tests/tools.at (AT_DATA_FORBIDDEN): New.
19714         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
19715         Autoconf.
19717 2001-10-07  Paul Eggert  <eggert@twinsun.com>
19719         * doc/autoconf.texi (config.status Invocation):
19720         CONFIG_SHELL defaults to a shell that supports LINENO if available.
19722         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
19723         shell does not support LINENO, and if CONFIG_SHELL is unset or
19724         empty, and if we can find a shell that does support LINENO,
19725         then set CONFIG_SHELL to that shell and then re-execute
19726         ourselves with CONFIG_SHELL.
19728 2001-10-05  Paul Eggert  <eggert@twinsun.com>
19730         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
19731         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
19732         build of $(TESTSUITE).
19734 2001-10-05  Akim Demaille  <akim@epita.fr>
19736         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
19737         iff we are a bareword.
19738         Reported by Raja R Harinath.
19740 2001-10-05  Akim Demaille  <akim@epita.fr>
19742         * tests/m4sh.at (LINENO): New.
19743         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
19744         PATH_SEPARATOR before using it.
19745         Fix the absolute path case/esac pattern.
19746         Provide $0 as fallback for as_myself.
19747         Reported by Raja R Harinath.
19749 2001-10-05  Akim Demaille  <akim@epita.fr>
19751         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
19752         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
19754 2001-10-05  Akim Demaille  <akim@epita.fr>
19756         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
19757         (AS_SHELL_SANITIZE): here.  Use it.
19758         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
19759         From Paul Eggert.
19761 2001-10-04  Akim Demaille  <akim@epita.fr>
19763         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
19764         combination of Awk and sed to replace $LINENO.
19766 2001-10-02  Paul Eggert  <eggert@twinsun.com>
19768         * doc/autoconf.texi (Limitations of Builtins): You can't use
19769         "source"; it's not portable.  Remove confusing and
19770         somewhat-incorrect example involving "." and "/".
19772         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
19773         compatibility with POSIX shells.
19775 2001-10-02  Akim Demaille  <akim@epita.fr>
19777         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
19778         instead of exec'ing to preserve $0 and $@.
19780 2001-10-01  Akim Demaille  <akim@epita.fr>
19782         * tests/testsuite (AT_INIT) <at_pass_list>: New.
19783         Don't run twice the same test.
19785 2001-10-01  Akim Demaille  <akim@epita.fr>
19787         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
19788         No longer output the list of tests.
19789         <--list>: New option.
19790         <--full-help>: Remove.
19791         Complete the short/long options duality.
19792         Various small adjustments.
19794 2001-10-01  Akim Demaille  <akim@epita.fr>
19796         * doc/autoconf.texi: Use @kbd for user input.
19797         Always use `$' as shell prompt.
19799 2001-09-30  Paul Eggert  <eggert@twinsun.com>
19801         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
19802         Don't use nested parenthesization.  This patch was originally
19803         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
19804         but somehow it didn't get incorporated then.
19805         * doc/autoconf.texi (Limitations of Usual Tools):
19806         Clarify remark about sed and nested parenthesization.
19808         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
19809         Report an error if the size cannot be determined even though
19810         the type exists.
19811         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
19812         Check for `expr' arithmetic overflow, and for compilation failure,
19813         and invoke a new argument $4 if either is discovered.
19814         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
19815         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
19817 2001-09-28  Akim Demaille  <akim@epita.fr>
19819         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
19820         * m4/lispdir.m4: New.
19821         * aclocal.m4, configure.ac: Adjust.
19823 2001-09-28  Akim Demaille  <akim@epita.fr>
19825         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
19826         (AT_TESTED): this.
19827         (AT_INIT): More the wrapped section to where it will be expanded.
19828         Output `AT_tested' only when existing.
19829         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
19831 2001-09-27  Akim Demaille  <akim@epita.fr>
19833         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
19834         generates too many bug reports.
19836         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
19837         status when executing the ACTION-IF-FALSE.
19838         * tests/base.at (AC_TRY_*): Rename as...
19839         (AC_TRY_COMMAND): this.
19840         (AC_RUN_IFELSE): New.
19841         * tests/compile.at (Extensions, C keywords)
19842         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
19843         (Broken/missing compilers, AC_PROG_CPP with warnings)
19844         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
19845         * tests/c.at (Extensions, C keywords)
19846         (Broken/missing compilers, AC_PROG_CPP with warnings)
19847         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
19848         (AC_PROG_CPP requires AC_PROG_CC): here and...
19849         * tests/fortran.at (GNU Fortran 77): there.
19850         * doc/autoconf.texi (autoconf Invocation): Fix the example:
19851         AC_TRY_RUN is about compilation, not shell commands.
19852         (Test Programs): AC_TRY_RUN works as used to be advertised.
19854 2001-09-27  Akim Demaille  <akim@epita.fr>
19856         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
19857         Raja R Harinath:
19858         Be sure to detect when $LINENO always returns the same value.
19859         Look for the original script, basename($0) is certainly not
19860         enough.
19861         Pass the CLI arguments to `$as_me.lineno'.
19863 2001-09-25  Akim Demaille  <akim@epita.fr>
19865         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
19866         Be sure the close and reopen the LOG fd before and after using tee
19867         to extend the log.
19868         <at_tests_pattern>: Adjust to the new format of at_help_all.
19870 2001-09-23  Akim Demaille  <akim@epita.fr>
19872         * bin/autom4te.in (parse_args): There can be several invocations
19873         of --language now.
19875 2001-09-23  Akim Demaille  <akim@epita.fr>
19877         * doc/autoconf.texi (Top): Wrap in @ifnottex.
19879 2001-09-23  Akim Demaille  <akim@epita.fr>
19881         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
19882         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
19883         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
19884         builddir, buildpath, top_builddir, and top_buildpath.
19885         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
19886         the current directory.
19887         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
19888         variables *before* changing the current directory.
19889         Skip nonexistent dirs.
19890         * doc/autoconf.texi (Preset Output Variables): Document these
19891         variables.
19893         * lib/autotest/general.m4: Do not reset AT_victims.
19894         Don't compute at_srcdir nor at_top_srcdir.
19896         * tests/tools.at: Hence use top_srcdir.
19898         * tests/Makefile.am, tests/autoconf, tests/autoheader,
19899         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
19900         Remove.
19901         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
19902         * tests/wrapsh.in, tests/autoupdate.in: New.
19903         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
19904         * configure.ac: Build the position independent wrappers.
19906         * man/Makefile.am: Now that test wrappers are position
19907         independent, use them and drop dark envvar magic.
19909 2001-09-23  Akim Demaille  <akim@epita.fr>
19911         * doc/autoconf.texi (Common Shell Constructs): Rename as...
19912         (Programming in M4sh): this.
19913         Promote to @section.
19915 2001-09-23  Akim Demaille  <akim@epita.fr>
19917         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
19918         Pass $at_debug_args to the rerun test suite.
19919         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
19920         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
19921         From Paul Eggert.
19923 2001-09-23  Akim Demaille  <akim@epita.fr>
19925         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
19927 2001-09-23  Akim Demaille  <akim@epita.fr>
19929         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
19930         over-escaping.
19932 2001-09-23  Akim Demaille  <akim@epita.fr>
19934         * lib/Autom4te/General.pm (&debug): New.
19935         * bin/autom4te.in ($language): Move to...
19936         (parse_args): here.
19937         Handle --language in languages.
19938         * lib/autom4te.in (Automake-selections, Autoheader-selections)
19939         (Autoscan-selections): New.
19940         (Autoconf): Adjust.
19942 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
19944         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
19945         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
19946         to match current versions from CVS Automake.
19948 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
19950         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
19951         for $LINENO.
19953 2001-09-22  Akim Demaille  <akim@epita.fr>
19955         * lib/autoconf/autotest.m4: Create `package.m4'.
19956         * tests/Makefile.am (package.m4): Remove.
19958 2001-09-22  Akim Demaille  <akim@epita.fr>
19960         Rely on `$LINENO' when possible instead of `__oline__'.
19962         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
19963         `$LINENO' support replacement when not supported.
19964         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
19965         them explicitly to be sure they are not output before this section
19966         (via m4_require).  Cosmetic only.
19967         * lib/autoconf/c.m4, lib/autoconf/general.m4,
19968         * lib/autoconf/programs.m4: Replace all the occurrences of
19969         `__oline__' with `$LINENO'.
19970         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
19972 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
19974         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
19975         character (u: -> ue) in a code comment.
19976         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
19977         it works.
19979 2001-09-21  Akim Demaille  <akim@epita.fr>
19981         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
19982         Suggested by Jim Meyering.
19984 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19986         * lib/autoconf/programs.m4: Use extensions listed in
19987         $ac_executable_extensions when looking for programs.
19989 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19991         * lib/autoconf/general.m4: Fix a small Englisho.
19992         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
19993         setting up ac_dir_suffix and ac_top_builddir.
19994         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
19996 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19998         * doc/autoconf.texi (File System Conventions): Clarify the use of
19999         PATH_SEPARATOR.
20000         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
20001         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
20002         be used instead of ':'.
20003         * lib/autotest/general.m4: Replace occurrences of ':' in
20004         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
20006 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
20008         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
20009         arguments.  Fixed a typo.
20011 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
20013         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
20014         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
20016 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
20018         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
20019         * bin/autoupdate.in: Ditto.
20020         * bin/autoheader.in: Reworded a few comments.
20021         * bin/autoconf.in: Reworded help text for a few options.
20022         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
20023         * bin/autoscan.in, bin/autoupdate.in: Ditto.
20025 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
20027         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
20028         already have $file).  Set output files to binary mode (helps avoid
20029         CR issues on DOSish systems).
20031 2001-09-19  Akim Demaille  <akim@epita.fr>
20033         * lib/autotest/general.m4: Englishoes.
20034         From Tim Van Holder and Alexey Mahotkin.
20036 2001-09-18  Paul Eggert  <eggert@twinsun.com>
20038         * doc/autoconf.texi (Common Shell Constructs): New node,
20039         documenting AS_DIRNAME.
20040         (Limitations of Usual Tools): Refer to it when discussing dirname.
20041         Also, update discussion of POSIX standard to reflect latest draft.
20043         * lib/autoconf/c.m4:
20044         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
20046         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
20047         Do not pass a first argument with leading '-'
20048         to expr, by parenthesizing initial integers that might be negative.
20050         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
20051         now merely checks whether it is an error to pass an argument
20052         to getpgrp.
20054         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
20055         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
20056         whether it is a (compile-time) error to pass an argument to
20057         getpgrp.  This simpler test supports the revised documentation,
20058         and is all that AC_FUNC_GETPGRP's users really need.
20060 2001-09-18  Akim Demaille  <akim@epita.fr>
20062         * doc/autoconf.texi (Limitations of Make) <$<>: New.
20064 2001-09-18  Akim Demaille  <akim@epita.fr>
20066         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
20067         `{}'.
20068         * lib/autotest/general.m4 (AT_INIT): Adjust.
20070 2001-09-18  Paul Wagland  <paul@wagland.net>
20072         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
20073         correctly.
20074         Add test for AS_BASENAME.
20075         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
20076         added test. It now correctly handles /1/2/3/, returning '3' not ''.
20077         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
20078         * tests/base.at: Fixed the expected responses. The old ones were
20079         one line out...
20080         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
20081         the documentation claims it should (and how it behaved in 2.13).
20083 2001-09-18  Akim Demaille  <akim@epita.fr>
20085         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
20086         the AC_CONFIG_COMMANDS invocation.
20087         This also solves the name clash problems.
20088         Don't set the package's ID.
20089         * lib/m4sugar/Makefile.am (version.m4): Revamp.
20090         No longer to be shipped.
20091         (version.in): Remove.
20092         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
20093         * lib/autoconf/status.m4: Adjust.
20094         Use `m4_PACKAGE_STRING'.
20095         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
20096         the only optional argument is the name of the test suite.
20097         Expect `package.m4' to define the package signature.
20098         * lib/autom4te.in (Autotest): Add `package.m4?'.
20099         * tests/Makefile.am (package.m4): New.
20100         * tests/suite.at: ifnames is a victim.
20102 2001-09-18  Akim Demaille  <akim@epita.fr>
20104         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
20105         AC_LIBSOURCE, AC_CONFIG_FILES.
20106         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
20107         program version string doesn't match the package's.
20108         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
20109         after `(cached)'.
20111 2001-09-17  Paul Eggert  <eggert@twinsun.com>
20113         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
20114         Allow expression to return any value that can fit into unsigned long
20115         (not int, as before).  Check for output errors.
20117 2001-09-17  Bruno Haible  <haible@ilog.fr>
20119         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
20120         Always include <stdio.h> and <stdlib.h>. Evaluate
20121         the expression in an extra function before these includes. Call
20122         fprintf "%d" only after ensuring the argument is of type 'int'.
20123         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
20125 2001-09-17  Paul Eggert  <eggert@twinsun.com>
20127         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
20128         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
20129         fatal errors, and AC_CHECK_LIB causes it to include libraries even
20130         when they don't exist.
20132         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
20133         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
20134         need it.
20136         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
20137         version with the version used by fileutils 4.1, except use
20138         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
20139         we don't need it.
20141         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
20143 2001-09-13  Akim Demaille  <akim@epita.fr>
20145         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
20146         _first_.
20147         Reported by Gerrit P. Haase.
20149 2001-09-13  Akim Demaille  <akim@epita.fr>
20151         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
20152         m4_defn'ing is valid.
20154 2001-09-13  Akim Demaille  <akim@epita.fr>
20156         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
20157         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
20158         Use it.
20160 2001-09-13  Akim Demaille  <akim@epita.fr>
20162         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
20163         m4_match.
20164         (m4_re_escape): New.
20165         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
20166         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
20167         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
20168         Likewise.
20169         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
20170         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
20171         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
20172         AT_tests_all for consistency.
20173         Set at_victims.
20174         (AT_VICTIMS): Similar to AT_KEYWORDS.
20175         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
20177 2001-09-13  Akim Demaille  <akim@epita.fr>
20179         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
20181 2001-09-13  Akim Demaille  <akim@epita.fr>
20183         * lib/autotest/general.m4 (AT_INIT): Create and remove
20184         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
20185         test suites can cohabit.
20187 2001-09-13  Akim Demaille  <akim@epita.fr>
20189         * tests/mktests.sh: Don't output banners for empty test files.
20191 2001-09-13  Akim Demaille  <akim@epita.fr>
20193         Test suites can be run independently of configure.
20195         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
20196         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
20197         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
20198         ECHO_N etc.
20199         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
20200         and at_c.
20201         * lib/autotest/general.m4: Use ECHO_*.
20203 2001-09-13  Akim Demaille  <akim@epita.fr>
20205         * bin/ifnames.in: Rewrite in Perl.
20206         * configure.ac: Don't look for AWK.
20207         * tests/tools.at (AWK portability): Remove.
20208         (Syntax of the shell scripts): Don't check ifnames.
20209         (AT_CHECK_PERL_SYNTAX): New.
20210         (Syntax of the Perl scripts): Check ifnames.
20211         * tests/ifnames: New.
20213 2001-09-13  Akim Demaille  <akim@epita.fr>
20215         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
20216         test group titles.
20217         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
20218         Remove all the other keywords.
20220 2001-09-10  Akim Demaille  <akim@epita.fr>
20222         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
20223         SETUP: no longer used.
20224         Support -k, --keywords.
20225         <at_help>: Be `no', `short', or `long'.
20226         <at_help_all>: New variable.
20227         (AT_KEYWORDS): New.
20228         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
20229         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
20230         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
20231         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
20232         No longer fill the HELP diversion.
20233         (AT_CLEANUP): Use them.
20234         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
20235         (m4_list_append): Remove.
20237         Spread a few keywords in the Autoconf test suite.
20239 2001-09-10  Akim Demaille  <akim@epita.fr>
20241         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
20242         PATH_SEPARATOR, let M4sh compute it.
20243         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
20244         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
20245         Move to...
20246         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
20247         Simplify when the path is not a literal.
20248         (AS_UNAME): Use it to report PATH.
20249         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
20250         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
20251         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
20252         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
20253         normalize the path, and to look for victims.
20254         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
20255         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
20257 2001-09-07  Akim Demaille  <akim@epita.fr>
20259         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
20260         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
20261         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
20262         related variables into `at_package_*'.
20263         * lib/autotest/general.m4 (AT_VICTIMS): New.
20264         (AT_INIT): Adjust for stand-alone/embedded test suites.
20265         (AS_MESSAGE_LOG_FD): Define and use it.
20266         * tests/suite.at (AT_VICTIMS): Use it.
20267         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
20268         at_version.
20270 2001-09-07  Akim Demaille  <akim@epita.fr>
20272         Move toward possibly stand-alone test suites.
20274         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
20275         in addition, it introduces useless differences in logs.
20276         (AT_INIT): Let atconfig and atlocal be both optional.
20277         Adjust PATH computation.
20278         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
20280 2001-09-07  Akim Demaille  <akim@epita.fr>
20282         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
20283         m4sugar/version.m4.
20285 2001-09-05  Akim Demaille  <akim@epita.fr>
20287         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
20288         to avoid GCC warnings.
20289         From Uwe Seimet.
20291 2001-09-05  Akim Demaille  <akim@epita.fr>
20293         * bin/autom4te.in: --language is -l, not -s.
20295 2001-09-05  Akim Demaille  <akim@epita.fr>
20297         Be ready to handle filenames as stupid as `dnl.at', for if even
20298         the maintainer is dumb enough to do that...
20300         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
20301         excellence in M4 quotation: consider `__file__' is active.
20303         And BTW, when invoking m4, pass the --include in the right order:
20304         the wrong one.
20306         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
20307         4m.
20309 2001-09-05  Akim Demaille  <akim@epita.fr>
20311         * lib/Autom4te/XFile.pm: New lib file.
20312         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
20313         * bin/autoheader.in: Use it.
20315 2001-09-05  Akim Demaille  <akim@epita.fr>
20317         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
20318         defined.
20320 2001-09-05  Akim Demaille  <akim@epita.fr>
20322         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
20323         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
20325         * bin/autoscan.in: Use `getopt' and `find_files' etc.
20326         Add -I, --include support.
20327         * doc/autoconf.texi (autoscan Invocation): Adjust.
20329 2001-09-05  Akim Demaille  <akim@epita.fr>
20331         CVS GNU M4 doesn't like `undefine(undefined)'.
20333         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
20334         New, extracted from main.
20335         Use IO::File wherever possible.
20336         (input.m4): Be constant, use -I instead of hard coding $tmp.
20337         Therefore be a quoted heredoc.
20338         Don't invoke `_au_disable', since ac was not loaded, but just
20339         `unm4.m4'.
20341 2001-08-31  Akim Demaille  <akim@epita.fr>
20343         Version 2.52d.
20345 2001-08-31  Akim Demaille  <akim@epita.fr>
20347         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
20348         previous patch.
20349         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
20351 2001-08-31  Akim Demaille  <akim@epita.fr>
20353         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
20354         serious problems handling heredocs in heredocs.
20355         Reported by Nicolas Joly.
20357 2001-08-31  Akim Demaille  <akim@epita.fr>
20359         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
20360         (Making testsuite Scripts): Update.
20362 2001-08-31  Akim Demaille  <akim@epita.fr>
20364         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
20366 2001-08-31  Akim Demaille  <akim@epita.fr>
20368         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
20369         (testsuite Scripts): There is no such thing as `atconfig.in'.
20370         And actually one diagram is missing: test suite runtime.
20372 2001-08-31  Akim Demaille  <akim@epita.fr>
20374         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
20375         inverse order.
20377 2001-08-31  Akim Demaille  <akim@epita.fr>
20379         * bin/autoupdate.in (@include): `installcheck' revealed the path
20380         to m4sugar was lacking!
20382 2001-08-31  Akim Demaille  <akim@epita.fr>
20384         * man/Makefile.am (.x.1): We really have to pass
20385         autom4te_perllibdir.
20387 2001-08-31  Akim Demaille  <akim@epita.fr>
20389         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
20390         debug scripts, in particular passing explicitly listed tests to
20391         run is stupid.
20393 2001-08-31  Akim Demaille  <akim@epita.fr>
20395         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
20396         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
20397         Use directly autom4te, not autoconf.
20398         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
20400 2001-08-31  Akim Demaille  <akim@epita.fr>
20402         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
20403         * bin/autoheader.in (%symbol): Strip arguments of macros.
20405 2001-08-31  Akim Demaille  <akim@epita.fr>
20407         * doc/autoconf.texi: Catch up -I, --include changes.
20409 2001-08-31  Akim Demaille  <akim@epita.fr>
20411         * bin/autom4te.in (&parse_args): Die on unknown languages.
20412         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
20413         need for autoconf.
20414         Promote --include over --macrodir and other obsolete options.
20416 2001-08-31  Akim Demaille  <akim@epita.fr>
20418         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
20419         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
20420         * bin/autom4te.in ($autoconf): Pass --force.
20421         `print $out' doesn't print `$_' but `$out'.
20422         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
20423         (autoheader): Pass --force since the test suite goes too fast for
20424         the time stamps.
20425         Adjust to the new autoheader messages.
20427 2001-08-31  Akim Demaille  <akim@epita.fr>
20429         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
20430         Check the completeness of the #template.
20431         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
20432         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
20433         invocation.
20435 2001-08-31  Akim Demaille  <akim@epita.fr>
20437         * lib/Autom4te/General.pm (&find_file, &update_file): New.
20438         * bin/autoupdate.in, bin/autoheader.in: Adjust.
20439         Drop AC_MACRODIR dead for real.
20440         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
20441         `autoheader: `config.hin' is created'.
20442         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
20444 2001-08-31  Akim Demaille  <akim@epita.fr>
20446         * bin/autoheader.in: Rewrite in Perl.
20447         * tests/autoheader: Adjust.
20449 2001-08-31  Akim Demaille  <akim@epita.fr>
20451         * bin/autoconf.in (--include, -I): New option.
20452         Map --localdir, --autoconf-dir onto it.
20453         Forward autom4te's options instead of interpreting them.
20454         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
20455         There is no such envvar since the inception of autom4te.cfg.
20456         * bin/autom4te.in (&parse_args): Uniquify `@include'.
20457         * bin/autoupdate.in: Adjust, and perform more control.
20458         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
20459         * tests/autoconf: Dittowise.
20461 2001-08-31  Akim Demaille  <akim@epita.fr>
20463         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
20464         * bin/autom4te.in (&find_file): Support `FILE?' standing for
20465         optionally `FILE'.
20466         Use -e, not -f, since /dev/null for instance is OK.
20467         (&parse_args): Adjust.
20468         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
20470 2001-08-31  Akim Demaille  <akim@epita.fr>
20472         * configure.ac: Also find tested executables in bin.
20473         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
20474         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
20475         installed peer executables, only PATH is allowed to resolve it.
20476         Pass `autoconf_dir' via options, not via invisible envvars.
20477         * lib/Autom4te/General.pm (&find_peer): Remove.
20478         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
20479         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
20480         * man/Makefile.am: Let help2man rely on PATH instead of trying to
20481         find the executables for it.
20482         * tests/Makefile.am: Major cleanup.  Too lazy to document...
20483         * tests/atlocal.in: Remove all the obscure envvar manipulations.
20484         We only need PERL.
20485         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
20486         indeed related to running the test suite, while passing
20487         --autoconf-dir and others is related to running non installed
20488         Autoconf executables.  So don't do that, leave it to...
20489         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
20490         * tests/autoscan: New.
20491         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
20492         refer to library files: rely on --language.
20494 2001-08-29  Akim Demaille  <akim@epita.fr>
20496         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
20497         s/--set/--language/.
20499 2001-08-29  Akim Demaille  <akim@epita.fr>
20501         * doc/autoconf.texi: Strip the @nodes.
20502         Suggested by Paul Eggert.
20503         (Initializing configure): Typo.
20505 2001-08-29  Akim Demaille  <akim@epita.fr>
20507         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
20508         Suggested by Paul Eggert.
20510 2001-08-29  Akim Demaille  <akim@epita.fr>
20512         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
20513         download in a tmp dir.
20515 2001-08-29  Akim Demaille  <akim@epita.fr>
20517         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
20518         case insensitive OSes out there :(
20519         From Tim Van Holder.
20521 2001-08-29  Akim Demaille  <akim@epita.fr>
20523         * lib/autom4te.in: New.
20524         * lib/Makefile.am (edit, autom4te.cfg): New.
20525         * bin/autom4te.in (BEGIN): Simplify.
20526         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
20527         (&load_configuration): New.  Use it.
20528         (&parse_args): Support --mode, --set, and --melt.
20529         * bin/autoconf.in: Simplify and adjust.
20530         * tests/Makefile.am (AUTOMAKE): Use --set.
20531         * tests/atlocal.in: Adjust.
20532         * BUGS: distcheck and check are weak.
20534 2001-08-29  Akim Demaille  <akim@epita.fr>
20536         * lib/autotest/general.m4: Use
20537                 foo=`(command) 2>/dev/null`
20538         not
20539                 foo=`command` 2>/dev/null
20540         (at-devnull): Rename as...
20541         (AT-devnull): this.
20542         (--clean): Remove AT-* files too.
20543         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
20544         Reported by Nicolas Joly.
20546 2001-08-28  Akim Demaille  <akim@epita.fr>
20548         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
20549         quotes inside single quotes.
20550         Reported by Nicolas Joly.
20552 2001-08-28  Kevin Ryde  <user42@zip.com.au>
20554         * doc/autoconf.texi (Function Portability): Mention C right shifts.
20556 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
20558         * lib/autotest/general.m4: Reword some messages.
20559         (AT_INIT): Check for the `times' builtin before using it.
20560         Support test ranges as arguments to the testsuite.
20561         Have -e imply -d as the help text suggested.
20563 2001-08-27  Akim Demaille  <akim@epita.fr>
20565         * Makefile.maint: Formatting changes.
20566         (do-po-update, po-update, cvs-update, update): New targets.
20567         (AMTAR): Remove.
20569 2001-08-27  Akim Demaille  <akim@epita.fr>
20571         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
20572         <at_cmd_line>: New.
20573         Pass it to debug-*.sh scripts.
20574         <AUTOTEST_PATH>: May contain absolute dir names.
20576 2001-08-27  Akim Demaille  <akim@epita.fr>
20578         * lib/autotest/general.m4 (AT_INIT): Log the command line.
20579         Support `VAR=VAL' as arguments.
20580         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
20581         may be set via the command line.
20583 2001-08-27  Akim Demaille  <akim@epita.fr>
20585         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
20586         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
20587         first the build dirs, then the src dirs.
20588         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
20590 2001-08-27  Akim Demaille  <akim@epita.fr>
20592         * lib/autotest/general.m4 (AT_INIT): Output the definition of
20593         at_data_files earlier.
20594         (--clean, -c): New option.
20595         * tests/Makefile.am: Use this option.
20597 2001-08-27  Akim Demaille  <akim@epita.fr>
20599         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
20600         `ac_top_builddir' to mimic Automake's vocabulary, which much more
20601         readable.
20602         Adjust callers.
20603         * doc/autoconf.texi (Configuration Actions): Document the vars
20604         available in commands.
20605         Emphasize the risks of collisions in init-cmds.
20607 2001-08-27  Akim Demaille  <akim@epita.fr>
20609         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
20610         (Initializing configure): this new node.
20612 2001-08-27  Akim Demaille  <akim@epita.fr>
20614         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
20616 2001-08-27  Akim Demaille  <akim@epita.fr>
20618         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
20619         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
20620         New file.
20621         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
20623 2001-08-27  Akim Demaille  <akim@epita.fr>
20625         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
20626         to...
20627         * lib/autoconf/autoheader.m4: this new file.
20628         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
20629         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
20630         Move to...
20631         * lib/autoconf/autoupdate.m4: this new file.
20633 2001-08-27  Akim Demaille  <akim@epita.fr>
20635         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
20636         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
20637         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
20638         -> ac_dir).
20639         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
20640         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
20642 2001-08-27  Akim Demaille  <akim@epita.fr>
20644         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
20645         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
20646         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
20647         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
20648         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
20649         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
20650         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
20651         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
20652         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
20653         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
20654         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
20655         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
20656         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
20657         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
20658         (_AC_OUTPUT_SUBDIRS): Move to...
20659         * lib/autoconf/status.m4: this new file.
20660         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
20661         * tests/Makefile.am, tests/suite.at: Adjust.
20663 2001-08-27  Akim Demaille  <akim@epita.fr>
20665         Automake 1.5.
20667         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
20668         (AMTAR): Help automake define it.
20669         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
20670         needed, 1.5 can have a macro and a target with the same name.
20671         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
20672         * m4/strip.m4: New.
20673         * m4/init.m4, m4/sanity.m4: Update.
20674         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
20675         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
20676         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
20677         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
20679 2001-08-27  Akim Demaille  <akim@epita.fr>
20681         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
20683         * lib/autoconf/version.in: Remove.
20684         * lib/m4sugar/version.in: New.
20685         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
20686         Adjust callers.
20687         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
20688         the name of the directory they're in, instead of the filename,
20689         since version.m4 is now in m4sugar, but m4_acversion must not be
20690         classified as an Autoconf macro.
20691         ($input_m4): Don't qualify the path to m4sugar.
20692         Rather, pass autoconf_dir to m4.
20693         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
20694         * tests/suite.at: Require 2.52c.
20696 2001-08-27  Akim Demaille  <akim@epita.fr>
20698         testsuite.log should include config.log.
20700         * lib/autotest/autotest.m4: New.
20701         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
20702         * tests/suite.at : Adjust.
20703         (AT_INIT): Log config.log.
20704         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
20705         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
20706         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
20707         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
20708         of config.log on traps.
20709         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
20710         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
20711         for config.status'.
20712         Open the log as soon as possible.
20713         Use the same log introduction as configure's.
20715 2001-08-22  Paul Eggert  <eggert@twinsun.com>
20717         * doc/autoconf.texi (Indices): New node.
20718         Move indices out of the top level menu and into this submenu.
20720 2001-08-22  Akim Demaille  <akim@epita.fr>
20722         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
20723         AC_TRY_COMMAND.
20724         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
20726 2001-08-22  Akim Demaille  <akim@epita.fr>
20728         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
20729         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
20730         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
20731         * lib/autoconf/programs.m4: here.
20732         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
20733         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
20734         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
20735         * lib/autoconf/programs.m4: here.
20736         (_AC_DECL_YYTEXT): Rename as...
20737         (_AC_PROG_LEX_YYTEXT_DECL): this.
20738         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
20739         * tests/Makefile.am, tests/suite.am: Adjust.
20741 2001-08-22  Akim Demaille  <akim@epita.fr>
20743         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
20744         Move to...
20745         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
20746         here.
20747         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
20748         * lib/autoconf/functions.m4: here.
20749         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
20750         (AH_CHECK_LIB): Move to...
20751         * lib/autoconf/libs: this new file.
20752         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
20753         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
20754         * lib/autoconf/libs.m4: here.
20755         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
20757 2001-08-22  Akim Demaille  <akim@epita.fr>
20759         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
20760         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
20761         (AC_SITE_LOAD): Better logging of config.site.
20763 2001-08-20  Akim Demaille  <akim@epita.fr>
20765         * configure.ac (AT_CONFIG): Fix the path.
20766         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
20767         can be used.
20769 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
20771         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
20772         program with AC_LANG_PROGRAM before feeding it to
20773         AC_COMPILE_IFELSE.  Cleanup grep usage.
20775 2001-08-20  Akim Demaille  <akim@epita.fr>
20777         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
20778         * NEWS, README, README-alpha, TODO, tests/README: This package is
20779         `Autoconf', not `autoconf' (the executable).
20781 2001-08-20  Akim Demaille  <akim@epita.fr>
20783         Info readers seem to need `Index' in the index node title :(
20785         * doc/autoconf.texi: Reverse the 2001-08-15 change which
20786         simplified index node names.
20788 2001-08-20  Akim Demaille  <akim@epita.fr>
20790         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
20791         arguments are not literals.
20792         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
20793         Specify the output variables, and macros defined.
20795 2001-08-20  Akim Demaille  <akim@epita.fr>
20797         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
20798         (Examining Syntax) <AC_TRY_COMPILE>
20799         (Examining Libraries) <AC_TRY_LINK>
20800         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
20801         their arguments.
20802         Reported by Werner Lemberg.
20804 2001-08-20  Akim Demaille  <akim@epita.fr>
20806         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
20807         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
20808         Load atlocal late enough to dump it in the log.
20809         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
20811 2001-08-20  Akim Demaille  <akim@epita.fr>
20813         * tests/torture.at (Configuring subdirectories): New test.
20814         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
20815         looking for.
20816         * m4/atconfig.m4: Be sure the let $[0] be expandable.
20817         (top_srcdir): Fix its computation.
20819 2001-08-20  Akim Demaille  <akim@epita.fr>
20821         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
20822         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
20823         test suite lives.
20824         Create `atconfig' automagically.
20825         Configure atlocal.in if present.
20826         * tests/atconfig.in: Remove.
20827         * tests/atlocal.in: New.
20828         * tests/Makefile.am: Adjust.
20830 2001-08-20  Akim Demaille  <akim@epita.fr>
20832         Huh!?!?!  There are still some user EOF tags used, which prevents
20833         their use in AC_CONFIG_COMMANDS for instance...
20835         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
20836         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
20837         `_CSEOF', or `_ATEOF', as appropriate.
20838         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
20839         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
20841 2001-08-20  Akim Demaille  <akim@epita.fr>
20843         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
20844         * tests/semantics.at, tests/tools.at, tests/torture.at:
20845         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
20847 2001-08-20  Akim Demaille  <akim@epita.fr>
20849         Autotest invokes M4sh's initialization.
20851         * lib/autotest/general.m4: Adjust the diversion names.
20852         (AT_INIT): Run AS_INIT.
20853         Use the BINSH diversion to invoke /bin/sh.
20854         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
20855         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
20857 2001-08-20  Akim Demaille  <akim@epita.fr>
20859         Let M4sh have its own diversions.
20861         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
20862         (_m4_divert(NOTICE)): Rename as...
20863         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
20864         (_m4_divert(HEADER-COMMENT)): these.
20865         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
20866         (_m4_divert(NOTICE)): New, for Libtool.
20867         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
20868         long ago with `_m4_divert(GROW)'.
20869         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
20871 2001-08-20  Akim Demaille  <akim@epita.fr>
20873         * tests/base.at, tests/compile.at, tests/foreign.at,
20874         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
20875         * tests/semantics.at, tests/suite.at, tests/tools.at,
20876         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
20878 2001-08-20  Akim Demaille  <akim@epita.fr>
20880         * bin/autom4te.in (handle_output): Handle @__@.
20882 2001-08-20  Akim Demaille  <akim@epita.fr>
20884         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
20885         * lib/autotest/general.m4: Adjust the license.
20887 2001-08-17  Paul Eggert  <eggert@twinsun.com>
20889         * doc/autoconf.texi (Function Portability): Mention snprintf,
20890         following up on a suggestion by Kevin Ryde.
20892 2001-08-17  Akim Demaille  <akim@epita.fr>
20894         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
20895         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
20897 2001-08-17  Akim Demaille  <akim@epita.fr>
20899         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
20900         `$0.log' as for projects where testsuite is in src, we'd have
20901         testsuite.log created in src.
20903 2001-08-17  Akim Demaille  <akim@epita.fr>
20905         * bin/autom4te.in (&parse_args): Recognize --normalize.
20907 2001-08-17  Akim Demaille  <akim@epita.fr>
20909         Start implementing the AC_CHECK_HEADER transition scheme.
20911         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
20912         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
20913         (AC_CHECK_HEADER): Use them.
20915 2001-08-17  Akim Demaille  <akim@epita.fr>
20917         * doc/autoconf.texi: Work around Texinfo buglets.
20918         (Transformation Rules): One example is enough, users are expected
20919         to have their brains on. And BTW, use DESTDIR.
20920         (dvar): New macro.  Use it.
20922 2001-08-17  Akim Demaille  <akim@epita.fr>
20924         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
20925         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
20926         looking for ChangeLogs.
20928 2001-08-17  Akim Demaille  <akim@epita.fr>
20930         * bin/autom4te.in: --normalize is a new option.
20931         * bin/autoconf.in: Use it.
20933 2001-08-17  Akim Demaille  <akim@epita.fr>
20935         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
20936         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
20938 2001-08-16  Paul Eggert  <eggert@twinsun.com>
20940         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
20941         start, not at end.
20943 2001-08-15  Akim Demaille  <akim@epita.fr>
20945         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
20946         Use it.
20948 2001-08-15  Akim Demaille  <akim@epita.fr>
20950         * doc/autoconf.texi (pr): New index.
20951         (prindex, findex): Use, merge, and output them.
20952         (Environment Variable Index, Output Variable Index)
20953         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
20954         (Autotest Macro Index): Rename as...
20955         (Environment Variables, Output Variables,Preprocessor Symbols)
20956         (Autoconf Macros, M4 Macros, Autotest Macros): these.
20957         * doc/install.texi: Use @command.
20958         (Environment Variables): Rename as...
20959         (Defining Variables): this.
20961 2001-08-15  Akim Demaille  <akim@epita.fr>
20963         * doc/autoconf.texi (Function Portability): sprintf's return
20964         value.
20965         From Kevin Ryde.
20967 2001-08-15  Akim Demaille  <akim@epita.fr>
20969         * Makefile.maint (CVS): New.
20970         (local-check): Run changelog-check. last.
20971         (alpha): Don't depend upon local-check, since...
20972         (cvs-dist): depends upon it.
20974 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
20976         * tests/Makefile.am: Use a clean-local rule to remove
20977         autom4te.cache (it's a directory, not a file.
20978         * Makefile.am: Ditto (but maintainer-clean-local).
20980 2001-08-15  Akim Demaille  <akim@epita.fr>
20982         * bin/autom4te.in (@m4_warning): New.
20983         (&handle_m4): Use it.
20984         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
20985         warnings are issued at each run.
20986         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
20987         is in the src tree.
20989 2001-08-15  Akim Demaille  <akim@epita.fr>
20991         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
20992         don't waste time running `autoupdate --version' works.
20993         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
20995 2001-08-13  Akim Demaille  <akim@epita.fr>
20997         * doc/autoconf.texi (ma): Rename this index as...
20998         (ac): this.
21000 2001-08-13  Akim Demaille  <akim@epita.fr>
21002         * Makefile.am: Remove dead code and dead comments.
21003         (pdf, html): New targets.
21004         * doc/autoconf.texi (Using Autotest): New chapter.
21005         * doc/Makefile.am (pdf): New targets.
21006         (CLEANFILES): Adjust.
21008 2001-08-13  Akim Demaille  <akim@epita.fr>
21010         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
21011         duration of the test suite.
21013 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
21015         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
21016         endianness for comparison instead of relying on AT_CHECK_ENV.
21018 2001-08-11  Paul Eggert  <eggert@twinsun.com>
21020         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
21021         to the INSTALL file.
21023 2001-08-11  Paul Eggert  <eggert@twinsun.com>
21025         * NEWS: The autoconf manual now is distributed under the terms
21026         of the GNU Free Documentation License.
21028         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
21029         Add an appendix "Copying This Manual" for the FDL.
21031         * doc/fdl.texi: New file, from
21032         <http://www.gnu.org/licenses/fdl.texi>.
21034         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
21036 2001-08-10  Paul Eggert  <eggert@twinsun.com>
21038         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
21039         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
21040         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
21041         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
21042         m4/sanity.m4, tests/README, tests/aclocal.m4,
21043         tests/atspecific.m4, tests/base.at, tests/compile.at,
21044         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
21045         tests/semantics.at, tests/suite.at, tests/tools.at,
21046         tests/torture.at: Add copyright notice.
21048         * tests/mktests.sh: Update year in copyright notice.
21050 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
21052         * tests/semantics.at (AC_C_BIGENDIAN): New test.
21054 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
21056         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
21057         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
21058         * doc/autoconf.texi (C Compiler Characteristics): Update
21059         documentation for AC_C_BIGENDIAN.
21061 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
21063         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
21064         magic values from an object file when cross-compiling.
21065         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
21067 2001-08-10  Akim Demaille  <akim@epita.fr>
21069         * bin/autom4te.in (&handle_output): Don't use `grep' with side
21070         effects.
21071         Suggested by Russ Allbery.
21073 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
21075         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
21076         current $prefix to the sub-configures.
21078 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
21080         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
21081         extension (needed on BeOS).  Reported by Guido van Rossum.
21083 2001-08-09  Akim Demaille  <akim@epita.fr>
21085         * bin/autom4te.in ($icache): Load it only if older than autom4te.
21087 2001-08-07  Akim Demaille  <akim@epita.fr>
21089         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
21090         removed.
21091         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
21092         No need to remove the files before and after the each test, before
21093         each test and at the end of the suite is enough.
21094         Display only the children `times', not the shell's.
21095         If the test failed or was skipped, at-times is not available.
21097 2001-08-07  Akim Demaille  <akim@epita.fr>
21099         Always produce testsuite.log, including when there are no
21100         failures.  This helps getting information on skipped tests, and
21101         duration of the tests.  Err, implement the latter btw.
21103         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
21104         Dump information on the first run of each test.
21105         (AT_CLEANUP): Create `at-times' containing the duration of the
21106         test group.
21108 2001-08-07  Akim Demaille  <akim@epita.fr>
21110         The use of `dumpstat' revealed that `len' was used although it
21111         should not.  m4_text_wrap was using it, but in the Autoconf world
21112         where it is legal.  Hence (i) test M4sh in its own world, not
21113         Autoconf's, and (ii), ahem, fix the bug :)
21115         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
21116         does not like `' instead of [].
21117         (AT_INIT): Forbid `^_?AT_'.
21118         And don't output such tokens.
21119         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
21120         `script.as', and `autom4te.cache'.
21121         Remove `empty' and `macro' which are no longer used.
21122         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
21123         * tests/m4sugar.at: Use it.
21124         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
21126 2001-08-07  Akim Demaille  <akim@epita.fr>
21128         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
21130 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
21132         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
21134 2001-08-04  Akim Demaille  <akim@epita.fr>
21136         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
21137         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
21138         AC_TRY_LINK.
21139         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
21140         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
21141         (AC_F77_MAIN): Likewise.
21143 2001-08-04  Akim Demaille  <akim@epita.fr>
21145         Don't rely on M4sugar outputting the patterns in files, since we
21146         might process the output _without_ running m4, hence without these
21147         files.
21149         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
21150         * bin/autom4te.in (@Request::includes): Remove, unused.
21151         (@Request::source): Rename as...
21152         (@Request::input): this.
21153         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
21154         (&handle_output): Fetch the patterns from the traces.
21155         `$forbidden' and `$allowed' are constant: use m//o.
21156         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
21157         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
21159 2001-08-04  Akim Demaille  <akim@epita.fr>
21161         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
21162         autoconf', i.e., in addition to caching traces, cache the output.
21164         * bin/autom4te.in (Request::cache): Rename as...
21165         (Request::id): this.
21166         ($cache, $icache, $tcache, $ocache): New.
21167         (&handle_m4): Save M4 output in the cache instead of $tmp.
21168         (&handle_output): Adjust.
21169         (&up_to_date_p): Check that the output cache is up to date too.
21170         (top level): Run `&handle_m4' iff force or the cache is invalid.
21171         Run `&handle_output' if the output cache is more recent.
21173 2001-08-04  Akim Demaille  <akim@epita.fr>
21175         * bin/autom4te.in ($force): New.
21176         (&parse_args, &print_usage): -f, --force is a new option.
21177         (&handle_output): CPP directives might have spaces after `#'.
21178         (&parse_args): The first file only can be frozen.
21180 2001-08-04  Akim Demaille  <akim@epita.fr>
21182         Don't let autom4te compute the `include' traces several times:
21183         first check that the trace cache file is up to date, and then
21184         compare its timestamp with that of the output.
21186         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
21187         the preamble.  Don't require 5.005 as Autom4te::General does it,
21188         and better yet (use `use', not `require'!).
21189         * lib/Autom4te/Struct.pm: Rename the last occurrences of
21190         Class::Struct as Autom4te::Struct.
21191         * lib/Autom4te/General.pm (File::stat): Use it.
21192         (&mtime): New, export it.
21193         * bin/autom4te.in: Use it.
21194         Declare `$req' is invalid if it is outdated.
21195         Don't declare it valid before saving it if something went wrong.
21197 2001-08-04  Akim Demaille  <akim@epita.fr>
21199         Autom4te shall not encode Autoconf data, and preselecting traces
21200         must be proposed to the users.
21202         * bin/autom4te.in (@required_trace): Remove.
21203         (@preselect): New.
21204         (&parse_args, &print_usage): -p, --preselect is a new option.
21205         (&up_to_date_p): Adjust.
21206         * bin/autoconf.in: Preselect some Autoconf macros.
21208 2001-08-04  Akim Demaille  <akim@epita.fr>
21210         * tests/tools.at (autoconf --trace: user macros): Check traces on
21211         macros invoked without arguments, and macros invoked with multiple
21212         lines arguments.
21214 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
21216         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
21217         arguments.
21219 2001-08-03  Akim Demaille  <akim@epita.fr>
21221         * bin/autoconf.in ($@): Work around the usual sh bug.
21222         From Nicolas Joly.
21224 2001-08-03  Akim Demaille  <akim@epita.fr>
21226         Clean up the handling of the M4 builtins tracing exception.
21228         * bin/autom4te.in (Request::request): Don't complete M4 builtins
21229         trace requests.
21230         (@m4_builtins): Rename as...
21231         (@m4_builtin): this.
21232         (%m4_builtin_alternate_name): New.
21233         (&parse_args): Complete the trace requests with alternate names.
21234         (&handle_traces): Hence no longer do it here.
21235         (&trace_requests): Remove, unused.
21237 2001-08-03  Akim Demaille  <akim@epita.fr>
21239         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
21240         m4_if, and m4_wrap.
21242 2001-08-03  Akim Demaille  <akim@epita.fr>
21244         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
21245         (m4_divert_pop): Dump the whole diversion stack when a diversion
21246         mismatch happens.
21247         * bin/autom4te.in (&handle_output): Remember of the first
21248         occurrence of a possibly undefined macro, not the last.
21249         Complain about the possibly undefined macros in the same order as
21250         the appear in the output.
21251         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
21252         * tests/tools.at (autoconf: forbidden tokens, basic)
21253         (autoconf: forbidden tokens, exceptions): No longer sort
21254         autoconf's stderr, as it is now deterministic.
21255         Check that `dnl' is caught.
21257 2001-08-01  Akim Demaille  <akim@epita.fr>
21259         * configure.ac: Bump to 2.52c.
21261 2001-08-01  Akim Demaille  <akim@epita.fr>
21263         Version 2.52b.
21265         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
21267 2001-08-01  Akim Demaille  <akim@epita.fr>
21269         Version 2.52a.
21271 2001-08-01  Akim Demaille  <akim@epita.fr>
21273         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
21274         `die'.
21275         (&END): New.
21276         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
21277         `END', as `Autom4te::General::END' will be triggered.
21278         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
21279         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
21280         system to run `mv', `rm', and `cmp'.
21282 2001-08-01  Akim Demaille  <akim@epita.fr>
21284         * lib/Autom4te/General.pm (&unique): New.
21285         * bin/autoscan.in (&output): Use it to issue trace requests once.
21287 2001-08-01  Akim Demaille  <akim@epita.fr>
21289         * lib/Autom4te/General.pm: New.
21290         * bin/autom4te.in (Autom4te::General): Use it.
21291         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
21292         (&find_configure_ac, &find_slave): Remove.
21293         * bin/autoscan.in: Likewise.
21294         * bin/autoupdate.in: Likewise.
21296 2001-08-01  Akim Demaille  <akim@epita.fr>
21298         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
21299         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
21300         * bin: here, new directory.
21301         * lib/Autoconf: Rename as...
21302         * lib/Autom4te: this, to please case insensitive junkie OSes.
21304 2001-08-01  Akim Demaille  <akim@epita.fr>
21306         * autom4te.in ($m4): Handle the --nesting-limit.
21307         * autoconf.in (M4): Remove.
21309 2001-08-01  Akim Demaille  <akim@epita.fr>
21311         * autoconf.in ($AWK): Remove, no longer used.
21312         * test/tools.at: Use AT_CHECK_AUTOCONF.
21313         (AWK portability): Remove, for autoconf no longer uses AWK.
21314         (Syntax of the Perl scripts): New.
21315         * configure.ac: autoconf no longer needs an AWK with a good
21316         regexp engine.
21317         Use a static test on AC_PACKAGE_VERSION.
21318         * autom4te.in (&up_to_date_p): Output depends on the arguments.
21319         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
21320         * tests/atconfig.in (PERL): New.
21322 2001-08-01  Akim Demaille  <akim@epita.fr>
21324         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
21325         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
21326         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
21327         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
21328         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
21329         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
21330         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
21331         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
21332         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
21333         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
21334         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
21335         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
21336         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
21337         * lib/autoconf/c.m4: here, new file.
21339         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
21340         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
21341         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
21342         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
21343         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
21344         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
21345         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
21346         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
21347         (AC_F77_FUNC): Move to...
21348         * lib/autoconf/fortran.m4: here, new file.
21350 2001-08-01  Akim Demaille  <akim@epita.fr>
21352         * acfunctions.m4: Rename as...
21353         * lib/autoconf/functions.m4: this.
21354         * acgeneral.m4: Rename as...
21355         * lib/autoconf/general.m4: this.
21356         * acheaders.m4: Rename as...
21357         * lib/autoconf/headers.m4: this.
21358         * aclang.m4: Rename as...
21359         * lib/autoconf/lang.m4: this.
21360         * acoldnames.m4: Rename as...
21361         * lib/autoconf/oldnames.m4: this.
21362         * acspecific.m4: Rename as...
21363         * lib/autoconf/specific.m4: this.
21364         * actypes.m4: Rename as...
21365         * lib/autoconf/types.m4: this.
21366         * autoconf.m4: Rename as...
21367         * lib/autoconf/autoconf.m4: this.
21369         * m4sugar.m4: Rename as...
21370         * lib/m4sugar/m4sugar.m4: this.
21371         * m4sh.m4: Rename as...
21372         * lib/m4sugar/m4sh.m4: this.
21374         * tests/atgeneral.m4: Rename as...
21375         * lib/autotest/general.m4: this.
21377         * acfunctions: Rename as...
21378         * lib/autoscan/functions: this.
21379         * acheaders: Rename as...
21380         * lib/autoscan/headers: this.
21381         * acidentifiers: Rename as...
21382         * lib/autoscan/identifiers: this.
21383         * aclibraries: Rename as...
21384         * lib/autoscan/libraries: this.
21385         * acmakevars: Rename as...
21386         * lib/autoscan/makevars: this.
21387         * acprograms: Rename as...
21388         * lib/autoscan/programs: this.
21390 2001-08-01  Akim Demaille  <akim@epita.fr>
21392         * doc/autoconf.texi: Moving/deleting open files is not portable.
21393         Portability issues for `.' (source), and more information about sed.
21395 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
21397         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
21398         which has a special meaning and is not a reference to libibmil.a.
21399         Reported by Matteo Frigo.
21401 2001-07-25  Pavel Roskin  <proski@gnu.org>
21403         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
21404         output.
21406 2001-07-25  Akim Demaille  <akim@epita.fr>
21408         * autoconf.in: Try to define the variables before using them.
21409         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
21410         instead of `$perllibdir'.
21411         * tests/atconfig.in ($autom4te_perllibdir): Export it.
21413 2001-07-25  Akim Demaille  <akim@epita.fr>
21415         * autoconf.in (ac_LF_and_DOT): Remove, unused.
21417 2001-07-24  Akim Demaille  <akim@epita.fr>
21419         Let autoconf use autom4te for traces.
21421         * autoconf.in ($task, task trace): Remove, merely pass --trace to
21422         autom4te.
21423         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
21424         (Because I found no way for autom4te to accept `-').
21425         * autom4te.in (&Request::request): Beware of M4 builtins.
21426         (END): Don't try to remove the content of an empty dir.
21427         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
21428         (&handle_output): Set a default value to `$forbidden'.
21429         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
21430         ($autoconf): Pass --debug and --verbose.
21431         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
21432         cache.
21434 2001-07-24  Akim Demaille  <akim@epita.fr>
21436         Let autoconf use autom4te to create configure.
21438         * autoconf.in ($automate): New var.
21439         (task script): Use autom4te.
21440         * autom4te.in (File::Spec): Use it.
21441         (&find_file): New.
21442         (&parse_args): --warning is -W, not -w.
21443         Find the top level files.
21444         (&handle_m4): Pass the warnings flags.
21445         Don't report verbosely m4's failures, unless requested.
21446         (&handle_output): Don't complain for forbidden tokens in comments.
21447         Be sure to report all the forbidden tokens within a single line.
21448         (&trace_format_to_m4): Preserve `$_'.
21449         (&handle_traces): Sort the output macros.
21450         (&up_to_date_p): Find the files before trying to get its time stamp.
21452 2001-07-24  Akim Demaille  <akim@epita.fr>
21454         * Makefile.am: Ship, build and install Autom4te.
21455         (SUBDIRS): Add lib.
21456         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
21457         * configure.in: Require Perl.
21458         * man/autom4te.in: New.
21460 2001-07-19  Paul Eggert  <eggert@twinsun.com>
21462         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
21463         example, rather than (exit 1); exit (which isn't portable).
21465 2001-07-18  Akim Demaille  <akim@epita.fr>
21467         Version 2.52.
21469 2001-07-18  Akim Demaille  <akim@epita.fr>
21471         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
21472         was run, while they are needed also when it is expanded.
21473         Reported by Nicolas Joly.
21475         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
21476         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
21477         AC_F77_DUMMY_MAIN being expanded.
21479 2001-07-18  Akim Demaille  <akim@epita.fr>
21481         * configure.in: Bump to 2.51a.
21483 2001-07-17  Akim Demaille  <akim@epita.fr>
21485         Version 2.51.
21487 2001-07-17  Akim Demaille  <akim@epita.fr>
21489         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
21490         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
21492 2001-07-17  Akim Demaille  <akim@epita.fr>
21494         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
21495         used.  Well, then use the prototypes when you can, and runtime as
21496         a last resort.
21497         Reported by Artur Frysiak
21499         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
21500         (AC_FUNC_GETPGRP): Use it.
21501         First try to compile with 0-ary or 1-ary calls.
21503 2001-07-17  Akim Demaille  <akim@epita.fr>
21505         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
21506         replacement type.
21507         From Paul Eggert.
21509 2001-07-17  Akim Demaille  <akim@epita.fr>
21511         * Makefile.maint: Sync. with cppi 1.10.
21513 2001-07-17  Akim Demaille  <akim@epita.fr>
21515         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
21516         AC_F77_DUMMY_MAIN has been run.
21517         From Pavel Roskin and Steven G. Johnson.
21519 2001-07-17  Akim Demaille  <akim@epita.fr>
21521         * configure.in: Rename as...
21522         * configure.ac: this.
21524 2001-07-17  Akim Demaille  <akim@epita.fr>
21526         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
21527         rules.
21528         From Marc Espie.
21529         * Makefile.maint (release-archive-dir): Rename as...
21530         (release_archive_dir): this, so that it can be specialized in
21531         Makefile.
21533 2001-07-14  Akim Demaille  <akim@epita.fr>
21535         * configure.in: Bump to 2.50d.
21537 2001-07-14  Akim Demaille  <akim@epita.fr>
21539         Version 2.50c.
21540         * Makefile.maint (alpha): Typo.
21542 2001-07-14  Akim Demaille  <akim@epita.fr>
21544         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
21546 2001-07-14  Akim Demaille  <akim@epita.fr>
21548         * config/config.guess, config/config.sub, config/texinfo.tex
21549         * doc/standards.texi, doc/make-stds.texi: Update.
21551 2001-07-14  Akim Demaille  <akim@epita.fr>
21553         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
21555 2001-07-14  Akim Demaille  <akim@epita.fr>
21557         * Makefile.maint (maintainer-check): Rename as...
21558         (maintainer-distcheck): this.
21559         (changelog-check, static-check): New.
21560         Use them.
21562 2001-07-14  Kevin Ryde  <user42@zip.com.au>
21564         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
21565         for CXX is g++, not gcc.
21567 2001-07-14  Akim Demaille  <akim@epita.fr>
21569         * doc/autoconf.texi (Files): New subsection.
21571 2001-07-14  Akim Demaille  <akim@epita.fr>
21573         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
21574         of...
21575         (Generic Compiler Characteristics): this.
21576         (C++ Compiler): New subsection.
21578 2001-07-14  Akim Demaille  <akim@epita.fr>
21580         * autoscan.in: Use IO::File.
21581         Adjust all the routines to use it.
21582         ($log): New file (autoscan.log).
21583         (output): Dump detailed logs into $log, and a shortened version to
21584         stderr.
21585         (&scan_makefile): Refine the regexp catching tokens in the code.
21586         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
21587         and the `configure.ac' checking feature.
21589 2001-07-12  Akim Demaille  <akim@epita.fr>
21591         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
21592         Reported by Michael Elizabeth Chastain.
21594         * autoconf.in: Refuse such AWK.
21595         * configure.in: Likewise.
21596         * Makefile.am (acversion.m4): Do not use move-if-change this file
21597         has dependencies.
21598         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
21600 2001-07-10  Jens Petersen  <petersen@redhat.com>
21602         * autoscan.in (&scan_makefile): Improve programs regexp to parse
21603         things like "g++", "file.c" and "some-conf" as tokens.
21604         (&scan_file): Match C++ files extensions.
21605         If the filename extension is C++ then ask for c++.
21607 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
21609         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
21610         AC_TRY_LINK_FUNC, to check whether defining a dummy
21611         main-like routine is needed for linking with F77 libs.
21613 2001-07-05  Pavel Roskin  <proski@gnu.org>
21615         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
21616         after using break.
21617         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
21618         linking.
21620 2001-07-05  Akim Demaille  <akim@epita.fr>
21622         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
21623         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
21624         Makes' lives.
21625         Reported by Nicolas Joly.
21627 2001-07-04  Akim Demaille  <akim@epita.fr>
21629         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
21630         up.
21631         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
21632         warnings from compilers.
21633         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
21634         for all the compilers, not only GNU.  Hence move from here...
21635         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
21637 2001-07-04  Akim Demaille  <akim@epita.fr>
21639         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
21640         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
21641         AC_COMPILE_IFELSE.
21643 2001-07-04  Akim Demaille  <akim@epita.fr>
21645         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
21646         the ``strings.h'' change claimed below.
21648 2001-07-04  Akim Demaille  <akim@epita.fr>
21650         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
21652 2001-07-04  Akim Demaille  <akim@epita.fr>
21654         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21655         strings.h if usable with string.h.
21656         Suggested by Paul Eggert.
21658 2001-07-04  Akim Demaille  <akim@epita.fr>
21660         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
21661         From Jens Petersen.
21663 2001-07-03  Akim Demaille  <akim@epita.fr>
21665         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
21666         etc. in the log.
21668 2001-07-03  Akim Demaille  <akim@epita.fr>
21670         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
21671         compiler, not the preprocessor.
21672         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
21673         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
21674         the right thing.
21675         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
21676         earlier if there are.
21678 2001-07-03  Akim Demaille  <akim@epita.fr>
21680         * autoscan.in ($initfile): Remove.
21681         (&find_file): Rename as...
21682         (&scan_file): this.
21683         Immediately scan the current file, instead of gathering them, and
21684         later having them handled by &scan_files.
21685         (&scan_files): Merely invoke Find::File.
21686         Adjust.
21688 2001-07-02  Akim Demaille  <akim@epita.fr>
21690         * autoscan.in: Formatting changes, matching the invocation order.
21691         (File::Find): Use it instead of Perl 4's `find.pl'.
21692         (&wanted): Rename as...
21693         (&find_file): this.
21695 2001-07-01  Pavel Roskin  <proski@gnu.org>
21697         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
21698         break in the argument to AC_TRY_LINK_FUNC.
21699         (AC_F77_MAIN): Remove conftest* after using break in the
21700         argument to AC_TRY_LINK.
21702 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
21704         Add alternate 'main' routine detection for linking C/C++ with Fortran,
21705         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
21707         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
21708         dummy alternate main is required even if the user provides her own
21709         'main'.
21710         (AC_F77_MAIN): New macro to detect whether it is possible to
21711         provide an alternate 'main' function name, using the 'main' from
21712         the Fortran libraries.
21713         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
21714         cross-language link tests can be performed successfully.
21715         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
21716         after $LIBS, for consistency; this should be the general rule since
21717         the user may want to link to Fortran libraries that require $FLIBS.
21718         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
21720 2001-06-29  Pavel Roskin  <proski@gnu.org>
21722         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
21723         at-stdout and at-stderr instead of removing the newline
21724         from the echo output, which is not guaranteed to work.
21726 2001-06-28  Jens Petersen  <petersen@redhat.com>
21728         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
21729         confdefs.h when non-zero.
21731 2001-06-28  Akim Demaille  <akim@epita.fr>
21733         * configure.in: Bump to 2.50c.
21735 2001-06-26  Akim Demaille  <akim@epita.fr>
21737         Version 2.50b.
21739 2001-06-26  Akim Demaille  <akim@epita.fr>
21741         Version 2.50a.
21743 2001-06-25  Pavel Roskin  <proski@gnu.org>
21745         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
21746         argument, AUTOCONF-FLAGS.
21747         * tests/mktests.sh (update_exclude_list): Add
21748         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
21749         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
21750         AC_FUNC_WAIT3 with "-W no-obsolete".
21752 2001-06-25  Akim Demaille  <akim@epita.fr>
21754         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
21756 2001-06-25  Akim Demaille  <akim@epita.fr>
21758         * autoscan.in (%macro): Now maps from word to list of macros.
21759         (&init_tables): Die when a word which is already handled by
21760         explicit macros is mapped to the default macro.
21761         (&print_unique): Remove, inlined in...
21762         (&output_kind): here.
21763         (File::Basename): Use it.
21764         (&output): Sort the CONFIG_FILES.
21765         * acheaders: Normalize.
21766         * acfunctions: Likewise.
21768 2001-06-25  Akim Demaille  <akim@epita.fr>
21770         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
21771         characteristics in the logs.
21772         Suggested by Mo DeJong.
21774 2001-06-24  Akim Demaille  <akim@epita.fr>
21776         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
21777         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
21778         * doc/autoconf.texi (Autoconf 2.13): New section.
21780 2001-06-24  Akim Demaille  <akim@epita.fr>
21782         * autoconf.in (Task traces): Separate the error messages from the
21783         traces to improve robustness.
21785 2001-06-23  Akim Demaille  <akim@epita.fr>
21787         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
21788         three as failures are unlikely, and speed matters.
21790 2001-06-23  Akim Demaille  <akim@epita.fr>
21792         * doc/autoconf.texi (Redefined M4 Macros): New.
21794 2001-06-23  Akim Demaille  <akim@epita.fr>
21796         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
21797         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
21798         5.3.
21800 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
21802         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
21803         config.status targets to after the evaluation of the INIT-CMDS.
21804         Double quote config.status targets (used to be single quoted).
21806 2001-06-23  Akim Demaille  <akim@epita.fr>
21808         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
21809         Check the content of the created file.
21810         Check the ./config.status command line invocation.
21812 2001-06-23  Akim Demaille  <akim@epita.fr>
21814         * tests/foreign.at (Libtool): Reject prehistoric versions.
21816 2001-06-23  Akim Demaille  <akim@epita.fr>
21818         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
21819         preexisting files matching a.*.
21821 2001-06-23  Akim Demaille  <akim@epita.fr>
21823         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
21824         stderr.
21825         * doc/autoconf.texi (AC_ARG_VAR): Update.
21827 2001-06-21  Akim Demaille  <akim@epita.fr>
21829         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
21830         precious variables have changed.
21831         * tests/torture.at (AC_ARG_VAR): Adjust.
21833 2001-06-21  Akim Demaille  <akim@epita.fr>
21835         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
21836         but some sed choke on multiple `;', and other tools (e.g.,
21837         Automake), include the separator themselves.
21839         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
21841 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
21843         * doc/autoconf.texi (Functions Portability): Rename as...
21844         (Function Portability): this.
21845         (Function Portability): Document potential problems with unlink().
21847 2001-06-19  Paul Eggert  <eggert@twinsun.com>
21849         * NEWS, doc/autoconf.texi: Document quadrigraphs.
21851 2001-06-18  Akim Demaille  <akim@epita.fr>
21853         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
21855 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
21857         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
21858         (_AC_FUNC_VFORK): this.
21859         Remove AC_DEFINEs and don't guess cross-compilation values.
21860         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
21861         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
21862         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
21863         vfork doesn't work.
21864         Guess values if cross-compiling, but warn.
21865         * acfunctions: Add AC_FUNC_FORK.
21866         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
21867         and vfork appropriately.
21869 2001-06-18  Akim Demaille  <akim@epita.fr>
21871         * doc/autoconf.texi (Functions Portability): New section.
21873 2001-06-18  Akim Demaille  <akim@epita.fr>
21875         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
21876         in $M4.
21877         Suggested by Andreas Schwab.
21879 2001-06-18  Akim Demaille  <akim@epita.fr>
21881         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
21882         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
21883         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
21884         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
21885         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
21886         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
21887         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
21888         the converse).
21890 2001-06-18  Akim Demaille  <akim@epita.fr>
21892         * doc/autoconf.texi (ms): New index.
21893         (Macro Index): Rename as...
21894         (Autoconf Macro Index): this.
21895         (M4 Macro Index): New appendix.
21896         (Programming in M4): New chapter.
21897         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
21898         (Quoting): Rename as...
21899         (M$ Quotation): this.
21900         Be part of `Programming in M4).
21902 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
21904         * tests/torture.at (AC_ARG_VAR): Set variables and export them
21905         in separate statements for compatibility with Tru64 v5.1.
21907 2001-06-17  Akim Demaille  <akim@epita.fr>
21909         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
21910         current values of the precious variables, not the previously
21911         cached values.
21912         Pass precious variables which are set to config.status.
21913         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
21914         * tests/torture.at (AC_ARG_VAR): New.
21916 2001-06-15  Paul Eggert  <eggert@twinsun.com>
21918         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
21919         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
21920         and explain why and how to replace them.
21921         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
21922         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
21924 2001-06-15  Akim Demaille  <akim@epita.fr>
21926         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
21927         Reported by Bruno Haible.
21929         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
21930          (_AC_ARG_VAR_PRECIOUS): to here.
21932 2001-06-15  Pavel Roskin  <proski@gnu.org>
21934         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
21935         an unused pointer use cast to this type and `if' statement to
21936         avoid warnings from the compiler.
21937         (AC_HEADER_TIME): Likewise.
21938         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
21939         in `if' statement to avoid warnings from the compiler. Declare
21940         ac_aggr static to avoid the need to initialize it.
21942 2001-06-14  Akim Demaille  <akim@epita.fr>
21944         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
21945         Macros'.
21947 2001-06-13  Akim Demaille  <akim@epita.fr>
21949         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
21950         Suggested by Alexander Mai.
21952 2001-06-13  Akim Demaille  <akim@epita.fr>
21954         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
21955         sys/types.h and sys/stat.h, and check for them.
21957 2001-06-13  Akim Demaille  <akim@epita.fr>
21959         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
21960         INCLUDES.
21962 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
21964         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
21965         succeeds and only try adding libdnet upon a failure.
21967 2001-06-12  Akim Demaille  <akim@epita.fr>
21969         * autoscan.in (&output_kind): Output the comment only if it exists.
21970         (%kind_comment): Add entry for `programs'.
21971         (&output_programs): Use &output_kind.
21972         (&output_functions, &output_identifiers, &output_headers)
21973         (&output_programs): Inline, and remove.
21975 2001-06-12  Akim Demaille  <akim@epita.fr>
21977         * autoscan.in (%kind_comment): New.
21978         (output_kind): New.
21979         (output_functions, output_identifiers, output_headers): Use it.
21981 2001-06-12  Akim Demaille  <akim@epita.fr>
21983         * autoscan.in (&print_unique): Take `$kind' and `$word' as
21984         arguments, to factor indirections into `%macro' and `%used'.
21985         (%generic_macro): Fix a typo.
21987 2001-06-12  Akim Demaille  <akim@epita.fr>
21989         * aclibraries: New.
21990         * autoscan.in (@kinds): Add `libraries'.
21991         Use `@kinds' instead of hard coded lists.
21992         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
21993         Remove, replaced by...
21994         (%used): this.
21996 2001-06-12  Akim Demaille  <akim@epita.fr>
21998         * autoscan.in (%functions_macros %headers_macros)
21999         (%identifiers_macros %programs_macros %makevars_macros): Remove,
22000         replaced by...
22001         (%macro): New.
22003 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
22005         * aclang.m4 (AC_NO_EXECUTABLES): Override
22006         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
22008 2001-06-11  Akim Demaille  <akim@epita.fr>
22010         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
22011         trailing new line.
22012         Reported by Andreas Schwab.
22014 2001-06-11  Akim Demaille  <akim@epita.fr>
22016         * Makefile.am, Makefile.maint: Typos.
22018 2001-06-09  Akim Demaille  <akim@epita.fr>
22020         * doc/autoconf.texi (Here-Documents): New section, gathering
22021         documentation about here-documents.
22022         Use `href', not `uref', and other changes.
22024 2001-06-09  Akim Demaille  <akim@epita.fr>
22026         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
22027         chapter.
22029 2001-06-09  Akim Demaille  <akim@epita.fr>
22031         * doc/autoconf.texi (Limitations of Builtins): Complete the
22032         description of the here-docs penalties with Alexandre Oliva's
22033         explanations.
22035 2001-06-01  Paul Eggert  <eggert@twinsun.com>
22037         * doc/autoconf.texi: Talk about here documents and speedups.
22038         Do not use "echo" on arbitrary strings.
22039         Spell "here-documents" consistently with the standard.
22041 2001-06-09  Akim Demaille  <akim@epita.fr>
22043         * doc/autoconf.texi (Concept Index): Introduce it.
22044         Regenerate the menus.
22046 2001-06-09  Akim Demaille  <akim@epita.fr>
22048         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
22049         * config/prev-version.txt: New.
22050         * config/move-if-change: New, for GNU libc.
22052 2001-06-06  Pavel Roskin  <proski@gnu.org>
22054         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
22056 2001-06-06  Akim Demaille  <akim@epita.fr>
22058         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
22059         properly when $1 is not a literal.
22060         Fixes PR Autoconf/187, reported by Bram Moolenaar.
22062 2001-06-06  Akim Demaille  <akim@epita.fr>
22064         Invoking AC_COPYRIGHT before AC_INIT fails.
22066         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
22067         * acgeneral.m4 (_m4_divert(VERSION_FSF))
22068         (_m4_divert(VERSION_USER)): New.
22069         (AC_COPYRIGHT): $2 is the diversion to use.
22070         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
22071         (AC_INIT): Remove dead comments as now it's commutative.
22073 2001-06-06  Akim Demaille  <akim@epita.fr>
22075         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
22076         PR autoconf/187.
22078 2001-06-05  Akim Demaille  <akim@epita.fr>
22080         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
22081         can be empty.
22082         `*dir' variables cannot be NONE.
22083         Reported by Mark Kettenis.
22085 2001-06-05  Paul Eggert  <eggert@twinsun.com>
22087         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
22089 2001-06-04  Akim Demaille  <akim@epita.fr>
22091         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
22092         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
22093         (AC_TR_SH): Move as...
22094         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
22095         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
22096         (AS_TR_SH): these.
22097         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
22098         (_AS_TR_SH_PREPARE): New.
22099         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
22100         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
22102 2001-06-02  Akim Demaille  <akim@epita.fr>
22104         * Makefile.am (.m4.m4f): Pass the options first.
22105         Fixes PR autoconf/182.
22107 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
22109         GNU getopt, when POSIXLY_CORRECT does not permute options and
22110         arguments.  So pass the options first.
22111         Fixes PR autoconf/184.
22113         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
22114         (run_m4): Remove files.
22115         (run_m4f): Remove.
22116         Update remainder of script to use them.
22117         (for warning in): Do not use a literal comma as it will not be
22118         split by IFS.
22120 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
22122         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
22123         Fortran compilers to check.
22124         (_AC_PROG_F77_V): Add '-###' as a possible option to print
22125         information on library and object files.
22126         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
22127         to check.
22129 2001-06-02  Akim Demaille  <akim@epita.fr>
22131         * autom4te.in (Request::@request): Declare with `vars', not `my',
22132         as it prevents updates via `do FILENAME'.
22134 2001-06-02  Akim Demaille  <akim@epita.fr>
22136         * configure.in (standards_texi): Remove, dead code.
22138 2001-06-02  Akim Demaille  <akim@epita.fr>
22140         * autom4te.in: New.
22142 2001-06-02  Pavel Roskin  <proski@gnu.org>
22144         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
22145         for signals other than 0 - exit with code 1.
22146         * m4sh.m4 (AS_TMPDIR): Likewise.
22147         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
22148         * autoheader.in: Likewise.
22149         * autoreconf.in: Likewise.
22150         * tests/torture.at (Signal handling): New test for the above.
22152 2001-06-01  Akim Demaille  <akim@epita.fr>
22154         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
22155         message.
22157 2001-05-31  Akim Demaille  <akim@epita.fr>
22159         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
22160         Add copyright and comments.
22161         * acheaders: Add stdint.h.
22162         Suggested by Paul Eggert.
22164 2001-05-31  Akim Demaille  <akim@epita.fr>
22166         * atgeneral.m4 (AT_INIT): Use $SHELL.
22167         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
22169 2001-05-31  Akim Demaille  <akim@epita.fr>
22171         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
22172         stdint.h.
22173         From Paul Eggert and Lars Hecking.
22175 2001-05-31  Akim Demaille  <akim@epita.fr>
22177         * tests/base.at: Adjust line numbers in error messages.
22179 2001-05-31  Akim Demaille  <akim@epita.fr>
22181         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
22182         to emit the bangshe line.
22183         Reported by David Carter.
22185 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
22187         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
22188         Fortran (95) compilers to check.
22190 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
22192         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
22193         Macro Archive URL.
22195 2001-05-23  Pavel Roskin  <proski@gnu.org>
22197         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
22198         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
22199         (AC_PROG_CXXCPP): Likewise.
22201 2001-05-22  Akim Demaille  <akim@epita.fr>
22203         * config: New directory.
22204         * configure.in: AC_CONFIG_AUX_DIR it.
22205         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
22207 2001-05-22  Akim Demaille  <akim@epita.fr>
22209         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
22210         * autoupdate.in: Specify the Emacs mode.
22211         * acversion.m4.in: Rename as...
22212         * acversion.m4: this.
22213         * tests/Makefile.am (CLEANFILES): More garbage.
22215 2001-05-22  Akim Demaille  <akim@epita.fr>
22217         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
22218         Rename as...
22219         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
22220         these.
22222 2001-05-21  Akim Demaille  <akim@epita.fr>
22224         * configure.in: Bump to 2.50a.
22227         -----
22229         Local Variables:
22230         coding: utf-8
22231         End:
22233         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
22234         2009, 2010 Free Software Foundation, Inc.
22236         This program is free software: you can redistribute it and/or
22237         modify it under the terms of the GNU General Public License as
22238         published by the Free Software Foundation, either version 3 of the
22239         License, or (at your option) any later version.
22241         This program is distributed in the hope that it will be useful,
22242         but WITHOUT ANY WARRANTY; without even the implied warranty of
22243         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22244         General Public License for more details.
22246         You should have received a copy of the GNU General Public License
22247         along with this program.  If not, see
22248         <http://www.gnu.org/licenses/>.